2008 Dec 17 4:29 AM
Hi all,
I am using BAPI_ACC_DOCUMENT_POST to post accounting documents. Does anybody know a way how to get generated document number (BELNR) to reference field (XBLNR) automatically (like FB01 does when one enters character * as invoice reference)?
Thanks for any ideas.
Hi all,
I am using BAPI_ACC_DOCUMENT_POST to post accounting documents. Does anybody know a way how to get generated document number (BELNR) to reference field (XBLNR) automatically (like FB01 does when one enters character * as invoice reference)?
Thanks for any ideas.
2008 Dec 17 5:55 AM
Hi Rastislav,
you can refer to the following document :
Hope it helps.
2008 Dec 17 9:29 AM
sorry, in provided document I did not find the information I need Any other ideas?
2008 Dec 18 6:15 AM
Hi,
do u want to fill BSID-XBLNR with generated doc No automatically?
regards
Arjun
2008 Dec 18 10:41 AM
well, mainly I need to fill XBLNR in BKPF with generated document number BELNR. When I am calling BAPI_ACC_DOCUMENT_POST, I cannot pass document number, because I do not know it ... system automatically generates document numbers ...
2008 Dec 18 11:50 AM
hi,
i think u can do several things.
u can find the document number which is going to be generated from BKPF by adding the last document number of same doc type with 1,and pass this to XBLNR.
or
u can copy the bapi and make a custom bapi.
then write an insert sql statement to BKPF with the generated document number.
or search for user exit or badi.
first one is simplest
regards
Arjun
2008 Dec 18 1:13 PM
hi,
>> u can find the document number which is going to be generated from BKPF by adding the last document number of same doc type with 1,and pass this to XBLNR.
I do not think this is usable solution. We have to take into account a paralel transactions so we are not able to get lastly generated documet number
>> or can copy the bapi and make a custom bapi. then write an insert sql statement to BKPF with the generated document number.
well, maybe, but I am still hoping that standard bapi should support this ...
>> or search for user exit or badi.
YES, this was what I was asking for ... if anybody does not already know suitable and usable user exit or BADI
>> first one is simplest
... I think the first one is the worst solution
2009 Jan 21 2:45 PM
2009 Jan 21 2:59 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |