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: 

How to transfer data from one tcode to another

Former Member
0 Kudos
845

Hi experts

I needs to automate a document creation in a particular transaction when executing another tcode in SAP . For e g : when I'm doing inbound delivery in sap and save the document then another documents needs to be generated automatically in sap with reference to this inbound delivery number .

Can any one tell me the solution for this .

Regards

Prinort .

4 REPLIES 4

nabheetscn
Active Contributor
0 Kudos
438

Can you please provide what other documents apart from delivery in that casem, you can do this in an exit and submit a report in background or new task.

Nabheet

mithun_shetty4
Contributor
0 Kudos
438

U can use BADI : DELIVERY_PUBLISH for the same.

and for Document Number generation

1. Create a Number Range Object in SNRO.

2. Use FM: NUMBER_GET_NEXT for getting the next available number

For Number range Object u can refer

<link to blocked site removed by moderator>

Edited by: Thomas Zloch on Dec 22, 2011 12:02 AM

former_member203501
Active Contributor
0 Kudos
438

Hi ,

Please use the statements IMPORT/EXPORT with fields/tables , so that you can transfer one value from one tcode to another.

Former Member
0 Kudos
438

Why dont you Go For a BDC ..