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_Document_Post + Service tax calculation

ravi_rajput
Participant
0 Kudos
205

KIndly suggest how to use this bapi i,e BAPI_ACC_DOCUMENT_POST for service tax calculation. Per se If I have got 2 line items in an excel sheet. One is for GL and other is for vendor (Posting key would be 40 and 31 respectively). How to fill this ACCOUNTTAX structure in this BAPI. I have used

  CALCULATE_TAX_FROM_NET_AMOUNT for calculating the various fields in IT_MWDAT which is of the structure -

  (RTAX1U15).

Also I am getting this runtime error in BAPI which says "delete t_accr from begin_tabix to end_tabix in abap".  ALso the dump message i am getting is

Short dump TABLE_INVALID_INDEX

Also by researching on SCN forums I found out about this SAP NOTE number - 1337351. I am just really apprehensive about getting this note implemented. Please explain what could be the pros and cons of this note.

Kindly explain what needs to be done to remove this error  and also how to fill accounttax table in bapi_acc_document_post with an example. Its an urgent requirement so please help me. Your help will be highly appreciated.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
122

Hello,

To me this looks like a program fix. You could see if implementing this note removes the dump issue. You could always go back by removing the note.

As the note says this usually happens when the table T_ACCIT does not receive correct or no data while posting. So you may check if the data you are passing is correct or complete too.

Best Regards,

Swanand

2 REPLIES 2

Former Member
0 Kudos
123

Hello,

To me this looks like a program fix. You could see if implementing this note removes the dump issue. You could always go back by removing the note.

As the note says this usually happens when the table T_ACCIT does not receive correct or no data while posting. So you may check if the data you are passing is correct or complete too.

Best Regards,

Swanand

0 Kudos
122

Hi Swanand,

Thanks for your reply.

Could you please tell me how to fill this accounttax structure in BAPI and what should be the corressponding entrires in Currencyamount for tax related items ?