‎2009 Aug 07 6:28 AM
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
‎2009 Aug 07 6:44 AM
‎2009 Aug 07 7:24 AM
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