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

get back to subscreen

Former Member
0 Likes
768

hi friends,

in a screen i have button.when i click this it should show the previous subscreen i have designed.. what can i do plz give some sample programs

3 REPLIES 3
Read only

former_member196299
Active Contributor
0 Likes
531

hi Karthik ,

For any user command you need to handle these codes separately .For your requirement, when the buton is clicked , you need to capture this ok_code for that and then you can call the needed ( previous) subscreen and fill the values in the PBO itselff. if you need further help please write back .

For any example refer to transaction ABAPDOCU - > dialog programs .

Reward for helpful answers .

Thanks

Ranjita

Read only

Former Member
0 Likes
531

define a FCODE for the button u press...

then at SY-UCOMM for that FCODE u can write the come <b>leave screen</b> this will go back to the previous screen. or u can use <b>leave to screen XXX</b>. this will go the screen number XXX

Read only

Former Member
0 Likes
531

MAN WAT U CAN DO IS

ASSIGN A FUNCTION CODE TO THE BUTTON SAY 'PB_BACK'.

AND WHEN USER PRESSES IT..

CASE SY-UCOMM

WHEN 'PB_BACK'.

lEAVE TO SCREEN NUMBER.

ENDCASE..

THIS WILL SOLVE UR PROBLEM...

IF NOT DO LET ME KNOW.

<b>AWARD POINTS IF IT SOLVES UR PROBLEM</b>