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

how to stop the 2nd screen processing from fristscreen

Former Member
0 Likes
637

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
591

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

3 REPLIES 3
Read only

Former Member
0 Likes
592

When you give information message write code

SET SCREEN <screen1>.

Read only

Former Member
0 Likes
591

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
591

just check with

screen->attributes tab->next screen

give the same screen no here