‎2008 Jul 24 10:09 AM
Hi,
I have used the function module SD_SALESDOCUMENT_CREATE to create a sales order with reference to the invoice.I have been able to successfully create the sales order.But when I go to VA03(Display Salesorder) and check the document flow for the just created sales order I am unable to see the invoice from which the sales order was created.But when the I create a sales order(credit memo request) with reference to invoice manually by going to VA01 giving the order type and clicking on the tab create with reference I am able to see the standard order,delivery,invoice,credit memo request,credit memo in the document flow that is I am able to see the complete document flow when I do it manually.Can any please help me
Thanks in advance
‎2008 Jul 24 10:48 AM
hi,
Well i can help you out by giving the relation of fields among the sales order and sales invoice..
in tableVBAP(sales order) the fields which make the link with the
VBRP(sales invoive) :-
In the table VBAP :-
VBELN and POSNR
take these field to the VBRP and make relation with the fields:-
AUBEL and AUPOS (Sales order no and Line Item)
If you have any other problem then do tell me so that i can help you out....
‎2008 Jul 24 11:17 AM
‎2008 Jul 24 11:31 AM
Hi,
The flow is like
VBAK---(LIKP) ---VBRK
-
VBFA ---
VBAP---(LIPS) -
VBRP
The fields would be like VGBEL , VGPOS in LIKP & LIPS and VBFA and the corresponding invoices would be in VBRK & VBRP.
Regards,
Khan.