12-18-2008 11:25 AM
hai,
I need to create popup message based on values while saving the document in TC : IW41.
After entering the Order no in IW41 and pop up message should come with multiple values( i.e 5 check boxes should come for 5 values) with having SAVE button.
If user click on SAVE button then only document will save.
Can any body help me regarding this above issue ?
Regards,
Rajesh Kumar Satpathy
12-18-2008 11:31 AM
12-18-2008 11:31 AM
12-18-2008 11:33 AM
Hi,
There is function module called POPUP_TO_CONFIRM which you can use to give pop up message.
Please go through the function module documentation for help.
Example:
*--Popup to confirm the changes.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
text_question = p_qtext
text_button_1 = text-026
text_button_2 = text-027
default_button = '1'
display_cancel_button = 'X'
IMPORTING
answer = ans
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.
********************************************************
p_qtext is the question.
text-026 is Yes.
text-027 is No.
ans will be based on the input from the user.
*******************************************************
IF ans = '1'.
PERFORM proceed_to_save.
ELSEIF ans = '2'.
PERFORM free_and_backto_100.
ELSE.
SET SCREEN '200'.
LEAVE SCREEN.
ENDIF.
Thanks,
Ramya.R
12-18-2008 11:35 AM
12-18-2008 11:35 AM
Hi,
You can create a screen with 5 checkboxes and Button and call that screen.
Tou can also use FM REUSE_ALV_POPUP_TO_SELECT .
Hope this may be helpful.
Regards,
Sravanthi
12-18-2008 11:37 AM
In this case you need to design and call your own screen as popup.
Regards
Karthik D