2007 Dec 21 4:18 PM
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
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
2007 Dec 21 4:23 PM
u must use GET PARAMETER-ID in program B. i think u've missed that.
Reward if useful
Thanks
Sayak
2007 Dec 21 4:29 PM
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.
2007 Dec 21 4:29 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |