2011 Dec 21 8:46 AM
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 .
2011 Dec 21 5:55 PM
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
2011 Dec 21 6:11 PM
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
2011 Dec 21 9:21 PM
Hi ,
Please use the statements IMPORT/EXPORT with fields/tables , so that you can transfer one value from one tcode to another.
2011 Dec 25 9:46 PM