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 and return to program, but saving data in called TA

Former Member
0 Kudos

Dear,

I came across the following problem:

when I call a standard SAP transaction (from within my Z-program) with "CALL TRANSACTION", I see that the transaction returns to the calling program when the user pushes the SAVE or the BACK button, but to my big surprise, the transaction is not saving the input data at all.

Using "LEAVE TO TRANSACTION", saving is ok, but returning to the calling program is not possible, of course.

Unfortunately, I want both : I want the standard SAP transaction SAVE the data input and THEN return to the calling program.

"CALL FUNCTION" to mimic the transaction call, don't allow me to skip the first screen...I suppose. I hope I'm wrong.

Who can help?

Thanks and best regards,

S. Dejonghe

2 REPLIES 2

Former Member
0 Kudos

Try to put COMMIT WORK there.

Awrd points if useful.

0 Kudos

Dear,

any suggestion where to put the commit work?

Anyway, the problem didn't seem to be a problem : the call transaction did indeed save the user input from that transaction.

My excuses...

S. Dejonghe