Application Development 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: 

call transaction

Former Member
0 Kudos
64

I encounter problem when passing values from program A to program B. In program B, there is a field with a parameter ID tied to it. I have written something like this:

SET PARAMETER ID <PID> <VALUES FROM PROGRAM A>.

CALL TRANSACTION <PROGRAM B'S TCODE>.

When I execute, there is no values being passed into program B. I have tested the above codes by calling standard transaction codes and was able to get values on the standard tcode screen. Would anyone know why when I pass to a customized program, it did not have the value in it? Is there any extra steps that needs to be done?

Please advice.Thanks

3 REPLIES 3

RoySayak
Active Participant
0 Kudos
39

u must use GET PARAMETER-ID in program B. i think u've missed that.

Reward if useful

Thanks

Sayak

Former Member
0 Kudos
39

You can only use that method to pass values to a transaction not to a Program.

If you want to pass values to another program then use the statement SUBMIT. Keep a break-point at this statement. On clicking F5 you can see the flow from Program A to Program B.

If you want to return to program A then use the Return Addition.

Former Member
0 Kudos
39

This is an exemple:

Program A:

SET PARAMETER ID: 'NUM' FIELD tg_zmmagrcol1-zagrnum,

'RB1' FIELD c_x.

CALL TRANSACTION c_trans AND SKIP FIRST SCREEN.

Program B:

MODULE status_0100 OUTPUT.

SET PF-STATUS 'MENU_0100'.

IF NOT sy-calld IS INITIAL.

GET PARAMETER ID: 'NUM' FIELD vg_zagrnum_low,

'RB1' FIELD rb1.

ENDIF.

Hope it helps.

Chang