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: 

BDC call transaction

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

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

4 REPLIES 4

former_member632729
Contributor
0 Kudos

Hi ,

your query is not clear.. boss..

dhirendra_pandit
Active Participant
0 Kudos

Hi

Can you plaese clear your Question.

Regards

MarcinPciak
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks