Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

replacement function module

former_member206377
Active Contributor
0 Likes
431

Hi

Can anybody suggest the replacement FM for the below FM and how the parameters of this shud be passed to the replacement FM..?

CALL FUNCTION 'POPUP_TO_DECIDE'

EXPORTING

DEFAULTOPTION = '2'

TEXT_OPTION1 = 'ja'

TEXT_OPTION2 = 'nein'

TEXTLINE1 = Text1

TEXTLINE2 = Text2

TEXTLINE3 = Text3

TITEL = Title

CANCEL_DISPLAY = SPACE

IMPORTING

ANSWER = ANSWER.

Thanks in advance..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
410
DATA: header(30),
Question(30),
answer(20),
button1(10),
button2(10).

header = 'Confirm for Deletion'.
question = 'Do you want to Continue'.
button1 = 'Yes'.
button2 = 'No'.


CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = header
TEXT_QUESTION = question
TEXT_BUTTON_1 = button1
TEXT_BUTTON_2 = button2
DEFAULT_BUTTON = '1'
IMPORTING
ANSWER = answer
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

if answer eq '1'.
continue................................
ENDIF.
2 REPLIES 2
Read only

Former Member
0 Likes
411
DATA: header(30),
Question(30),
answer(20),
button1(10),
button2(10).

header = 'Confirm for Deletion'.
question = 'Do you want to Continue'.
button1 = 'Yes'.
button2 = 'No'.


CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = header
TEXT_QUESTION = question
TEXT_BUTTON_1 = button1
TEXT_BUTTON_2 = button2
DEFAULT_BUTTON = '1'
IMPORTING
ANSWER = answer
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

if answer eq '1'.
continue................................
ENDIF.
Read only

Former Member
0 Likes
410

Hi

Use the fun module

POPUP_TO_CONFIRM

<b>Reward points for useful Answers</b>

Regards

Anji