Application Development and Automation 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: 
Read only

Copy document numbers between transactions -pls help

Former Member
0 Likes
710

Hi Experts

We have seen some of the document numbers can be copied to immediately after the next transaction.

How to do it in our own transaction to standard transaction, and standard transaction to our own transactions.

Pls help me on this.,

Thanks in advance.

Regards

Rajaram

Hi Experts

We have seen some of the document numbers can be copied to immediately after the next transaction.

How to do it in our own transaction to standard transaction, and standard transaction to our own transactions.

Pls help me on this.,

Thanks in advance.

Regards

Rajaram

3 REPLIES 3
Read only

Former Member
0 Likes
636

Try using Export to Memory and Later Import from Memory

But the tricky part would be find a proper exit in standard transaction to do that part.

Le'me know the exact scenario and we'll look further.

Vinodh Balakrishnan

Read only

Former Member
0 Likes
636

Typically this is handled by parameter ids.

Screen fields can have attriubutes that are the parameter id, and whether the field is set or get parameter. You can see this in the screen painter. If an SAP standard transaction has the field as a set parameter ID, it will be set to memory and if you want to read it in your custom program, just check what the parameter ID is, and then use the statement: get parameter id <pid> value <variable>. (You might want to check the F1 help for the exact syntax). Or in your own custom screen, you can set the same attributes and this should work as well.

Hope this didn't confuse things too much.

Best Regards,

Chris H.

Read only

Clemenss
Active Contributor
0 Likes
636

Hi Raja,

many transactions issue success messages like "document nnn has been created". You can use SY-MSGV1 to get the value.

Regards,

Clemens