Skip to Content
0
Jun 16, 2020 at 07:39 AM

BAPI_ACC_DOCUMENT_POST - REF_DOC_NO_LONG in header is not updating

1131 Views

Hello Experts!

I am using BAPI_ACC_DOCUMENT_POST to post accounting document. And the ask is to store filename (coming from 3rd party system) in field REF_DOC_NO_LONG field of header in this BAPI. This field length is 35.

If I pass value equal to or less than 16 characters than I can see this value in field XBLNR in posted document.

But when I am using more than 16 characters (up to 35 characters), XBLNR comes blank.

I tried debugging the BAPI itself but didn't reached to any solution.

Do I require to implement any BAdi for this? Or should I go ahead with adding custom field in BKPF table and passing it from this BAPI extension part?

Any leads/links will be appreciated.

PS: I am working on S/4 HANA 1809 system.

Thank you

Virendra Kedia