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

Problem with postingkeys in using BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
406

Hi everyone,

I'm passing the postingkey, WBS element, Sales tax code into the EXTENSION1 variable of BAPI_ACC_DOCUMENT_POST. But it is populating the postingkeys with other values.

suppose, i'm passing the posting keys with values 02, 12 but when i check the posted document number in FB03 it is showing the posting keys as 01 & 11.

Could anyone help me with this.

Regards,

Tom

2 REPLIES 2
Read only

Former Member
0 Likes
352

hi tom,

yes we know that EXTENSION1 is used for updating the ehnacement fields in the data base table esure that your are possing properly into the fields. and use the belwo link.

Read only

Former Member
0 Likes
352

Hi,

I just checked the coding of this BAPI and saw that Extension1 is used in a user exit as below, which calls a Business transaction events. So I guess you will have to implement the BTE by creating your own function module to change the posting key according to your requirement.

Have a look at the function module OPEN_FI_PERFORM_RWBAPI01_P. This is called from the subroutine below


    PERFORM call_customer_function
            TABLES extension1.

For further details, check the function module's (BAPI_ACC_DOCUMENT_POST) documentation and click on extension1 -- further click on BTE link provided there.

You can also achieve this using the BADI ACC_DOCUMENT, here you would have to pass your data to extension2 isntead.

KR,

Advait

Edited by: Advait Gode on Aug 7, 2009 8:28 AM