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

navigation problem with back button in module pool

Former Member
0 Likes
2,108

Hi everyone,

I have a scenario in module pool programming in which i need help.

I have an i/p filepath screen where the user inputs his/her file and clicks on validate button provided in the toolbar.

After that it goes to the next screen which displays all the messages(error/success).

After I click on Execution button it goes to next screen displaying all the created data.

Now when I click on back button I want it to go to the i/o filepath screen.

Please give me your comments on this.

Leave to screen XXXX is giving me dump so any other options plz let me know.

Thanks in advance.

Hi everyone,

I have a scenario in module pool programming in which i need help.

I have an i/p filepath screen where the user inputs his/her file and clicks on validate button provided in the toolbar.

After that it goes to the next screen which displays all the messages(error/success).

After I click on Execution button it goes to next screen displaying all the created data.

Now when I click on back button I want it to go to the i/o filepath screen.

Please give me your comments on this.

Leave to screen XXXX is giving me dump so any other options plz let me know.

Thanks in advance.

4 REPLIES 4
Read only

former_member925838
Participant
0 Likes
946

hi,

if your input screen is 100 2nd screen s 200 and 3rd screen is 300

and u want to go to screen 100 u can directly call screen 100.

i,e on screen 300.

case sy-ucomm.

when back.

call screen 100.

endcase.

Read only

lijisusan_mathews
Active Contributor
0 Likes
946

What does your dump say?

Read only

Former Member
0 Likes
946

Hi,

In the Module user_command Input of 3rd screen.

Try like this

CASE ok_code.

WHEN 'BACK'.

SET SCREEN '0'.

ENDCASE.

you have to declare ok_code in the elements list of that particular screen.

Thanks,

Rajesh.

Read only

Former Member
0 Likes
946

Hi Amit,

Lets say you have 3 screens 100, 200 and 300. screen 100 has you input file path and 200 shows the message and 300 shows the created data.

Now in PAI of 300 write as below.

IN the screen as below

MODULE USER_COMMAND_300_EXIT AT EXIT COMMAND.

In the include as below

MODULE USER_COMMAND_300_EXIT.

CASE sy-ucomm.
WHEN 'BACK'.   " OK code for BACK button.
CALL SCREEN 100.
WHEN 'CANCEl'.
LEAVE TO SCREEN 0
ENDCASE.

ENDMODULE.

Please revert if you still face problems.

Regards,

Praveenkumar T