02-27-2009 2:50 PM
I pass bdc data by call transaction. I'm calling a new transaction by bdc, from another. How can I pass the name of the calling tranaction also?
03-26-2009 2:34 PM
Use ABAP memory:
"in calling program
IMPORT prog FROM sy-repid TO MEMORY ID 'PROG'.
CALL TRANSACTION 'SOME_ZTCODE'.
"In called transaction (accually program)
data: call_progr like sy-repid.
EXPORT progr TO call_progr FROM MEMORY ID 'PROG'.
write call_progr.
Note!
It only makes sense to pass something b/w programs/transactions if the called transaction is the custom one. If it is standard, you can't do any coding inside so passing anything besides selection parameters is useless.
Regards
Marcin
02-28-2009 2:50 AM
03-25-2009 12:11 PM
03-26-2009 2:34 PM
Use ABAP memory:
"in calling program
IMPORT prog FROM sy-repid TO MEMORY ID 'PROG'.
CALL TRANSACTION 'SOME_ZTCODE'.
"In called transaction (accually program)
data: call_progr like sy-repid.
EXPORT progr TO call_progr FROM MEMORY ID 'PROG'.
write call_progr.
Note!
It only makes sense to pass something b/w programs/transactions if the called transaction is the custom one. If it is standard, you can't do any coding inside so passing anything besides selection parameters is useless.
Regards
Marcin
05-28-2009 11:21 AM