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

regarding back button issue

Former Member
0 Likes
1,098

hi friends..

i hav 2 pgm in se38, for eg zpgm1 and zpgm2..

zpgm1 contain selectionscreen

zpgm2 is an alv report with back button(user command)

zpgm2 is called by using submit statement from zpgm1 based on the selection screen in zpgm1

my issue is

while pressing the back button in zpgm2 program i want to return to zpgm1 selection screen..

how can i get tis..

thanks in advance

10 REPLIES 10
Read only

Former Member
0 Likes
1,052

Assign a transaction to Zprogram1 say ZP1.

LEAVE TO TRANSACTION ZP1.

Read only

0 Likes
1,052

hi prashant..

thanks 4 ur effort on my query..

is there any other way by using leave screen statement

Read only

Former Member
0 Likes
1,052

use submit & return statement in Zpgm1 to call zpgm2.....

Read only

Former Member
0 Likes
1,052

Please reward points if helpful.

Read only

Former Member
0 Likes
1,052

IN PAI section write (if you are using oops)

Or for normal also

CASE sy-ucomm.

WHEN 'PUSHBUTTON'.

SUBMIT zpgm2.

WHEN 'BACK' OR 'CANC' OR 'EXIT'.

SET SCREEN 0.

LEAVE SCREEN.

WHEN OTHERS.

ENDCASE.

so that zpgm2 is called by using submit statement from zpgm1 based on the selection screen in zpgm1

Rewards if useful...........

Minal

Read only

Former Member
0 Likes
1,052

Hi,

In the back button user command use any one of this

Leave to Screen XXXX(give the selection screen no.) or

Leave to list processing.

Thanks,

Muthu

Read only

Former Member
0 Likes
1,052

Have u tried using SUBMIT again..

I mean when u write

<b>case sy-ucomm</b> for pushbutton

write <b>submit program zpgm1</b>

I think it shud work out

Read only

0 Likes
1,052

hi prasant..

still i hav a issue..

i tried wit submit once again from zpgm2 to zpgm1

Read only

0 Likes
1,052

hav u tried SUBMIT with AND RETURN clause??

Read only

0 Likes
1,052

its not possible to use return becoz

in zpgm1 i do some selection.

zpgm2 i do some updation in database..

if i give submit and return

it enter into the zpgm1..

i don't want control return back to zpgm1

i want the control in the selction screen of zpgm1