Application Development 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: 

How to populate field XBLNR_ALT in table BKPF through BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

I have a requirement  to populate BKPF-XBLNR_ALT field through my program which is using BAPI_ACC_DOCUMENT_POST to create accounting document. But the header structure 'DOCUMENTHEADER' has no field which can be used for this purpose. How can i solve this problem?

Regards,

Meenu

1 ACCEPTED SOLUTION

former_member184569
Active Contributor

Try to populate using BTE.

Populate the extension table in the BAPI_ACC_DOCUMENT_POST.

Implement the BTE FM (RWBAPI01) and configuration in FIBF. (Check documentation for BTE).

And move the value to the field.

4 REPLIES 4

former_member184569
Active Contributor

Try to populate using BTE.

Populate the extension table in the BAPI_ACC_DOCUMENT_POST.

Implement the BTE FM (RWBAPI01) and configuration in FIBF. (Check documentation for BTE).

And move the value to the field.

0 Kudos

Hi,

Do you think it is posible to use BADI ACC_DOCUMENT +  the extension table in this case ?

Regards.

0 Kudos

Hi Susmitha,

I can not find BTE RWBAPI01 in my system. Can you suggest what should i do?

I tried using BTE 00001120.  here I populated T_BKPF-XBLNR_ALT with desired value but after complete execution BKPF-XBLNR_ALT is still empty.

Reagrds,

Meenu

0 Kudos

Hi Meenu,

you can append one field XBLNR_ALT in structure BKPF_SUBST and add the code  appending your value in BKPF_SUBST and BKPF.

once you executed then value will be added in this field through BTE 00001120.

you can also refer BTE documents details.

Regards,

Prasenjit