‎2009 Aug 18 6:50 AM
Hi Gurus,
I am using BAPI_ACC_GL_POSTING_POST and abl to post documents.
I have a scenario wherein I need to pass Tax Code - MWSKZ for posting as well.
Since the Bapi does not support Tax Code, I need to enhance the Bapi to include Tax Code field as well.
Please help me with pointers on this.
Many Thanks,
Madan
‎2009 Aug 18 7:03 AM
‎2009 Aug 18 7:03 AM
‎2009 Aug 18 8:03 AM
Hi Raymond,
Yes, I need to implement the exit - ACBAPI01 - EXIT_SAPLACC4_001.
I basically need to pass Tax Code - MWSKZ to the BAPI_ALL_GL_POSTING_POST for Tax Accrual Postings.
Can u please guide me on how to use T_ACCIT & EXTENSION under tables paramter.
Please help me with steps on using the above structures.
Thanks for your help,
Madan
‎2009 Aug 18 8:15 AM
Actually read the note (or ask you hierarchy or customer for an OSS access)
I enclose an extract thar answers you :
In your calling program
DATA: wa_extension TYPE bapiextc,
it_extension TYPE STANDARD TABLE OF bapiextc.
wa_extension(3) = '005'. "ITEMNO_ACC
wa_extension+3(11) = 'Note 487722'. "Data, not in standard interface
APPEND wa_extension TO it_extension.In the implementation of the exit
* Determine line item
READ TABLE t_accit WITH KEY posnr = extension(3).
IF sy-subrc IS INITIAL.
* Update the line item text
t_accit-sgtxt = extension+3(11).
MODIFY t_accit INDEX sy-tabix.
ENDIF.Regards,
Raymond
‎2009 Aug 18 8:17 AM
hi,
U need to create a appens stcrure to include ur fields in the two strutre u mentioned....Then populate the values in ACCIT structure with the field u want in the userexit.
Regards,
Nagaraj
‎2009 Aug 18 2:24 PM
Hi Raymond,
Thank You !! I implemented the Exit and it is working fine.
But I have a question on Tax Code which I am using in the Exit. When i use Tax Code for Tax Posting, BAPI is throwing error message - "Calculation procedure TAXUSX and tax key C1 not in table T007A"
For Tax Code, are calculation procedure and tax key mandatory ??
Please help me with some pointers.
Many Thanks,
Madan
‎2009 Aug 18 3:03 PM
‎2009 Aug 18 6:18 PM
Hi Madan,
Please check if the tax code u r using is a valid one or not. Then also verify if the tax code is defined in the pricing or pricing procedure or not. as the said error only occurs if no tax code is defined in the pricing.
Regards,
Durga.