‎2009 Jul 23 1:23 PM
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.
‎2009 Jul 23 1:54 PM
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.
‎2009 Jul 23 1:29 PM
‎2009 Jul 23 1:31 PM
‎2009 Jul 23 1:37 PM
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.
‎2009 Jul 23 1:38 PM
‎2009 Jul 23 1:39 PM
‎2009 Jul 23 2:08 PM
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
‎2009 Jul 23 1:49 PM
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.
‎2009 Jul 23 1:54 PM
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.
‎2009 Jul 23 2:04 PM