2009 Sep 08 1:17 PM
Hi Friends,
I have a problem in modulepool program, my user wantsto display the information message in screen1
without calling the 2nd screen.
for example.
user give the some input to screen fields, the system compare the what ever given inputs in screen1 is correct or not,
incase the information is not correct, that time my user wants the information message,
i wrote the information message in screen1 PAI, the message was displayed successfully but when i click the enter button the system calls the 2nd screen , what my user exact requirement is system does not call the second screen, he want to shows the frist screen after getting the message.
Can you please tell me solution.
Thanks
CHINNU
2009 Sep 08 1:21 PM
When you give information message write code
SET SCREEN <screen1>.
Hi Friends,
I have a problem in modulepool program, my user wantsto display the information message in screen1
without calling the 2nd screen.
for example.
user give the some input to screen fields, the system compare the what ever given inputs in screen1 is correct or not,
incase the information is not correct, that time my user wants the information message,
i wrote the information message in screen1 PAI, the message was displayed successfully but when i click the enter button the system calls the 2nd screen , what my user exact requirement is system does not call the second screen, he want to shows the frist screen after getting the message.
Can you please tell me solution.
Thanks
CHINNU
2009 Sep 08 1:21 PM
When you give information message write code
SET SCREEN <screen1>.
2009 Sep 08 1:21 PM
instead of information message...use pop_to_confirm .....and remain in the same screen....
CLEAR v_response.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Confirm Posting'
text_question = 'Do you want to Post Documents'
text_question = text_question
text_button_1 = 'Yes'
text_button_2 = 'No'
default_button = '2'
display_cancel_button = ' '
start_column = 25
start_row = 6
IMPORTING
answer = v_response
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.
CHECK v_response = '1'.
Edited by: sugunav on Sep 8, 2009 6:04 PM
2009 Sep 08 1:28 PM
just check with
screen->attributes tab->next screen
give the same screen no here