Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Update dunning block with BAPI_ACC_DOCUMENT_POST

h_senden2
Active Contributor
0 Likes
2,023

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,169

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.

Read only

0 Likes
1,169

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

Read only

0 Likes
1,169

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.