cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_ACC_DOCUMENT_POST using EXTENSION2

spinellll
Participant
0 Kudos

I have a requirement to populate BSEG-XNEGP in BAPI_ACC_DOCUMENT_POST but that field is not part of the interface. I've created the appropriate extension2 structure and have implemented BADI ACC_DOCUMENT. The BADI is working fine. Itab C_ACCIT-XNEGP is getting populated with an 'X'. However, when the document is created, BSEG-XNEGP is blank. See the attached screen shot.

Any clues?

Thanks

Leo

xnegp.png

Accepted Solutions (0)

Answers (3)

Answers (3)

raymond_giuseppi
Active Contributor
0 Kudos

Did you try to set also the flag at header value DOCUMENTHEADER-NEG_POSTNG?

iklovski
Active Contributor
0 Kudos

Hi,

First of all, check that the negative posting is permitted on the company code level (OBY6) and on the document type level (OBA7).

Regards,

Eli

former_member239428
Participant
0 Kudos

Did you use BAPI_TRANSACTION_COMMIT afterwards?