Tuesday, November 30, 2004

BPS - FM - PopUp Confirm

FUNCTION Y_BPS_POPUP_CONFIRM_SALE.
*"----------------------------------------------------------------------
*"*"Local interface:
*" IMPORTING
*" VALUE(I_AREA) TYPE UPC_Y_AREA
*" VALUE(I_PLEVEL) TYPE UPC_Y_PLEVEL
*" VALUE(I_METHOD) TYPE UPC_Y_METHOD
*" VALUE(I_PARAM) TYPE UPC_Y_PARAM
*" VALUE(I_PACKAGE) TYPE UPC_Y_PACKAGE
*" VALUE(IT_EXITP) TYPE UPF_YT_EXITP OPTIONAL
*" VALUE(ITO_CHASEL) TYPE UPC_YTO_CHASEL OPTIONAL
*" VALUE(ITO_CHA) TYPE UPC_YTO_CHA OPTIONAL
*" VALUE(ITO_KYF) TYPE UPC_YTO_KYF OPTIONAL
*" EXPORTING
*" VALUE(ET_MESG) TYPE UPC_YT_MESG
*" CHANGING
*" REFERENCE(XTH_DATA) TYPE HASHED TABLE
*" EXCEPTIONS
*" CANCEL
*"----------------------------------------------------------------------
DATA I_ANS(1) TYPE C.

CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA'
EXPORTING
TEXTLINE1 = 'Delete sale data with selected version'
TEXTLINE2 = 'Click YES to confirm'
TITEL = 'Delete sales Data with version'
IMPORTING
ANSWER = I_ANS.
if i_ans = 'N'.
MESSAGE W999 WITH 'Function Canceled!'
RAISING CANCEL.
endif.


ENDFUNCTION.

SAPBW@TW

My BW Blog.^____^