Application Development 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: 

BAPI_ACC_GL_POSTING_POST - pointers need on enhancing the bapi - EXTENSION1

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you read OSS [Note 487722 - Using EXTENSION1 for accounting BAPIs|https://service.sap.com/sap/support/notes/487722].

You will put your data in EXTENSION1 and use it via CMOD/SMOD enhancement ACBAPI01 or FIBF/FINF BTE/OPEN FI RWBAPI01.

Regards,

Raymond

7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

Did you read OSS [Note 487722 - Using EXTENSION1 for accounting BAPIs|https://service.sap.com/sap/support/notes/487722].

You will put your data in EXTENSION1 and use it via CMOD/SMOD enhancement ACBAPI01 or FIBF/FINF BTE/OPEN FI RWBAPI01.

Regards,

Raymond

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

When i look at my local customizing, every code we use is in the T007A table, so i never get this error message. (but that suggests a "yes" answer)

You may ask this on forum - [T007A|https://forums.sdn.sap.com/search.jspa?objID=f141&q=t007a]

Sorry,

Raymond

0 Kudos

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.