‎2010 Jul 01 9:38 AM
Hi,
i have to update the dunning block of an invoice (BKPF/BSEG/BSID). It's in field MANSP.
I have found fm BAPI_ACC_DOCUMENT_POST to do it, but which fields/structures must be filled to do it correctly ?
The structure documentheader and tables currencyamount and return are mandatory.
Table Accountreceivable contains the dunning block field.
Can i only give in the itemnumber and dunning block, or should i fill everything ?
The same for the documentheader. Only the keyfields or everything ?
Is there a good method to collect all the header fields ? Move-corresponding does not work because of different fieldnames.
regards,
Hans
‎2010 Jul 01 10:04 AM
Hi,
As per my understanding, the BAPI - 'BAPI_ACC_DOCUMENT_POST' is not meant for changing a document. This BAPI is used to create a posing in accounting for certain business transactions.
Please try with u2018FI_DOCUMENT_CHANGEu2019.
Regards,
Selva K.
‎2010 Jul 01 10:14 AM
Are you sure ?
Because we were using the FI_DOCUMENT_CHANGE function, and a functional lead tell us to use the BAPI because the FI_DOCUMENT_CHANGE is a low-level function, and he is affraid of the data integrity.
regards,
Hans
‎2010 Jul 01 11:27 AM
Yes, I hope so. I have used this BAPI to create a new document and to post it.
Please refer the SAP standard program - RFEBKA20 (Deletes Dunning Blocks), it is using the same function module - ' FI_DOCUMENT_CHANGE' and I don't think any high level data integrity issue comes if we use this FM.
Regards,
Selva K.