‎2007 Apr 23 7:41 AM
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
‎2007 Apr 23 8:08 AM
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
‎2007 Apr 23 12:04 PM
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
‎2007 Apr 24 6:51 AM
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>