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

call transaction and skip first screen

Former Member
0 Likes
1,724

hi,

i want to call a transaction via "call transaction and skip first screen" with parameter id's. the problem is now, that when I go back I get the screen which I have skiped before. So how can I go directly back to the transaction from which I call the transaction.

I cannot use leave to screen 0 in the called program, as the program which I called normally runs with a selection screen.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,250

You may use the field sy-calld. For ex:

say the screen you have skipped is number 0900.

IF sy-calld = 'X'.

LEAVE PROGRAM.

ELSE.

CALL SCREEN 0900.

LEAVE SCREEN.

ENDIF.

9 REPLIES 9
Read only

sridhar_meesala
Active Contributor
0 Likes
1,250

Hi,

Try using CALL TRANSACTION.

Thanks,

Sri.

Read only

Former Member
0 Likes
1,250

This message was moderated.

Read only

0 Likes
1,250

the problem is as follows:

example:

in report 1 i have

SET PARAMETER ID 'PARAMID' FIELD gf_field.

CALL TRANSACTION 'program2' AND SKIP FIRST SCREEN.

in program 2 I have in my user_command.

case ok_code.

when 'EXIT'.

LEAVE TO SCREEN 1000.

endcase.

I cannot use leave to screen 0 as program 2 normally runs with a selection screen.

Read only

0 Likes
1,250

Try set screen 0.

Read only

0 Likes
1,250

or leave program

Read only

0 Likes
1,250

Hai,

Just write leave program in the Case section instead of leave to screen 1000.

case ok_code.

when 'EXIT'.

//LEAVE TO SCREEN 1000.--replace this line

Leave program.

endcase.

Best Regards,

rama

Read only

Former Member
0 Likes
1,250

This should work. The control should return back to calling transaction.

SET PARAMETER ID: 'CAR' FIELD carrid,

'CON' FIELD connid.

CALL TRANSACTION 'FLIGHT_TA' AND SKIP FIRST SCREEN.

Read only

Former Member
0 Likes
1,251

You may use the field sy-calld. For ex:

say the screen you have skipped is number 0900.

IF sy-calld = 'X'.

LEAVE PROGRAM.

ELSE.

CALL SCREEN 0900.

LEAVE SCREEN.

ENDIF.

Read only

0 Likes
1,250

thanks it works with calld.