2013 Oct 17 1:15 PM
Hello,
I created a module pool to generate invoice order using table control.
My requirement is
For single invoice number there may be n number if items.
How this can be obtained? Please help me out!
I tried with SNRO,which is creating unique invoice number for each items,which has no logic.
Below I Have attached my table control screen shot.
2013 Oct 17 1:30 PM
2013 Oct 17 1:38 PM
On submit, you can call bapi "BAPI_BILLINGDOC_CREATEFROMDATA". If your screen contains records for multiple invoices at same time, you would require a reference field which would hold same value for all items of one invoice. This way, you will be able to combine line items that pertain to single invoice and pass them to BAPI. If however, your screen contains all line items for a single invoice at one point in time, you can simply call the BAPI and pass data to it.
Regards
2013 Oct 17 2:58 PM
Hi ,
I faced the same situation earlier in my proj , plz go with BAPI that will update perticular table as well as correspondence table.
Regards
Arnab