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

Changing Posting Key with BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
2,623

Hi all,

I want to post FI document with BAPI_ACC_DOCUMENT_POST . But i could not change Posting key. I want to pass Posting key with 25, but by default taking 21.

Best regards,

Munur

6 REPLIES 6
Read only

Former Member
0 Likes
1,462

Hi,

There is a BADI for the BAPI which can be used to change the posting key. In the structure T_ACCIT structure, if you change the posting key, it reflects in your document.

Hope this answers your query.

Regards,

Hari

Read only

0 Likes
1,462

Hi Hari,

What is the name of BADI's?

Best regards,

Munur

Read only

0 Likes
1,462

Hi Munur,

Enhancement Spot                     BADI_ACC_DOCUMENT
BAdI Definition    BADI_ACC_DOCUMENT
Interface          IF_EX_ACC_DOCUMENT
Classes	CL_EXM_IM_ACC_DOCUMENT
Object	ACC_DOCUMENT

method FILL_ACCIT has parameters you need

FLT_VAL	Type	AWTYP	Importing	Parameter FLT_VAL of Method CHANGE_BAPI_ACCIT
I_ACCHD	Type	ACCHD	Importing	Interface to Accounting: Header Information
C_BAPI_ACCIT	Type	ACCBAPIFD5	Changing	ACC BAPIs: Surplus Amount of Accounting Document Line Items
C_ACCIT	Type	ACCIT	Changing	Accounting Interface: Item Information

Regards,

Clemens

Read only

0 Likes
1,462

You can change posting key using the "business Transaction event" implementation of "RWBAPI01".

Regards

Vinod

Read only

Former Member
0 Likes
1,462

thans

Read only

Former Member
0 Likes
1,462

thanks