07-28-2014 1:41 PM
Hi Experts,
Do we have any standard function module..for that Sales order should be input and invoice as output?
I know the SD Flow table VBFA. if we pass SO to this table we can get the Invoice no.
But instead of write logic do we have any standard FM?.
Thanks in advance.
Regards,
Venkat Mote.
07-28-2014 2:03 PM
Hi Venkatesh,
you can use the FM - 'SD_VBFA_SELECT' and then read the Invoice document number from the table structure - 'FVBA' by using the Indicator - "VBTYP_N = 'M' " which is for normal Invoice.
But again you can have other Invoice Category as well, like Intercompany Invoice, Proforma Invoice.
So you have to read the Invoice with that category.
Let me know if that works for you.
Rather I would suggest you can create your own FM and reuse it whenever needed. You can include the logic for Delivery as well.
Regards,
Abhi
07-28-2014 2:03 PM
Hi Venkatesh,
Please find the following FM to read the invoice details.
Regards
Rajkumar Narasimman
07-28-2014 2:03 PM
Hi Venkatesh,
you can use the FM - 'SD_VBFA_SELECT' and then read the Invoice document number from the table structure - 'FVBA' by using the Indicator - "VBTYP_N = 'M' " which is for normal Invoice.
But again you can have other Invoice Category as well, like Intercompany Invoice, Proforma Invoice.
So you have to read the Invoice with that category.
Let me know if that works for you.
Rather I would suggest you can create your own FM and reuse it whenever needed. You can include the logic for Delivery as well.
Regards,
Abhi
07-28-2014 3:09 PM