05-07-2007 1:27 PM
Hi All,
I have to show one message before saving the data that maseeage box must contain 'yes' and 'no' options. If i say 'yes' then the data has to be save or update in the data base. If i say 'no' data should not be save or update in the data base. How to work on this?
regards,
Phanikumar.
05-07-2007 1:32 PM
data : l_ans(1).
CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
EXPORTING
DEFAULTOPTION = 'Y'
TEXTLINE1 = 'line1'
TEXTLINE2 = 'line2'
TITEL = 'HEADING'
IMPORTING
ANSWER = L_ANS
EXCEPTIONS
OTHERS = 1.
if l_ans eq 'J' or 'Y'.
* update database
else.
* do nothing
endif.
05-07-2007 1:31 PM
Hi
You can do this using Module pool programming by creating Push buttons and writing flow logic.
Regards
Haritha.
05-07-2007 1:31 PM
Pls use the function module
POPUP_TO_CONFIRM
It is very easy to use and provides exactly what you want
05-07-2007 1:31 PM
05-07-2007 1:31 PM
Hi phanikumar,
i don't have an SAP at the current time.
Look with SE37 for POPUP_TO*
Hope it helps.
Regards, Dieter
05-07-2007 1:32 PM
data : l_ans(1).
CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
EXPORTING
DEFAULTOPTION = 'Y'
TEXTLINE1 = 'line1'
TEXTLINE2 = 'line2'
TITEL = 'HEADING'
IMPORTING
ANSWER = L_ANS
EXCEPTIONS
OTHERS = 1.
if l_ans eq 'J' or 'Y'.
* update database
else.
* do nothing
endif.
05-07-2007 2:23 PM