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: 

SD Document flow

Former Member
0 Kudos
166

Hi,

Please help me with this problem.I am given an invoice say inv1 and I need to create a sale order with reference to that invoice and from this sales order I need to create another invoice say inv2.I have done this successfully.When I see the document flow I can see inv1,sales order,inv2.But when the functional people have done the same thing manually we can also see the sales order and delivery number from which invoice inv1 was created that is we can see the complete flow which is sales,delivery,inv1,sales,inv2.What I mean is that the first two things are missing in the document flow when I create them automatically that is through a program.Can any one please tell me the reason for this and also how to overcome this

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

hi check this..

4 REPLIES 4

Former Member
0 Kudos
82

Hi,

Please check the tble VBFA(SD flow) also.

Also check all the tables that are affecting when invoice are created. based on the data element for invoice number field, check which tables are affected and then track the information.

I think more tables are to be included in your program to svae these changes.

Thanks & Regards,

Chandralekha.

Former Member
0 Kudos
83

hi check this..

Former Member
0 Kudos
82

Hi,

Once you create a Sales order with reference to an Invoice you go to the transaction VL01 and do the PGI. To do PGI (from transaction VL01), in the menu, go to Outbound Delivery->Save and Subseq.Func->Transfer order. This will take you to Transfer order transaction. click on Generate TO and save. Now return to transaction VL02 and click on Post Goods Issue. This will do the PGI. Now go to VF01 and you will have the delivery number just created as a line item. Select it and click on execute button. Save once the execution is done and a Billing doument (invoice) is created. Now if you go to the sales order and click on document flow all these documents will be displayed.

Former Member
0 Kudos
82

Hi,

I wanted to know what should be done within the code to make the sales order and the delivery visible in the document flow