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

User field in BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
1,846

hai friends,

I am using BAPI_ACC_DOCUMENT_POST for GL posting. The user wants to populate values in the custom field in BSEG Table, say BSEG-ZZFLAT1 through Bapi for posting.

I populate the table EXTENSION1 in the BAPI. But it cannot update in the BSEG table. How it can be done?

Thanks in advance,

Elamaran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
860

Can you debug

PERFORM call_customer_function

TABLES extension1.

in the BAPI and check the error / cause for not updating the structures.

2 REPLIES 2
Read only

Former Member
0 Likes
861

Can you debug

PERFORM call_customer_function

TABLES extension1.

in the BAPI and check the error / cause for not updating the structures.

Read only

Former Member
0 Likes
860

You need to use SAP Enhancement (trans SMOD/CMOD) ACBAPI01.

Also see <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000325242002">OSS Note 487722</a>

The BTE (Business Transaction Event) RWBAPI01 may be useful too. The above referenced Note states:

Implementing the Business Transaction Event (BTE, also OPEN FI) RWBAPI01 with enhancement structure EXTENSION1 at BAPI_ACC_DOCUMENT_POST

As for CMOD/SMOD exit ACBAPI01, it is possible to change the accounting document in this case. Access: Transaction FIBF:

1. Call the menu path "Settings > Products -> ...of a customer" and create a product that mirrors the function which is to be mapped in the BTE.

2. Create a function module that contains the same interface, such as example module SAMPLE_INTERFACE_RWBAPI01.

3. Call menu path "Settings -> Process function modules > ...of a customer" enter process = RWBAPI01, the function module created and the product.

4. Finally, activate the product you have created in the first step so that the module will run.

Message was edited by: James Gaddis