2013 Sep 30 11:15 AM
Hi all
We have a requirement where in I'm using BAPI_ACC_DOCUMENT_POST for clearing vendor invoices.
Everything is working fine except for the table WITH_ITEM is not getting updated despite of populating BAPIACWT09 with all due details.
I can see my accounting document created everywhere across system (all other tables are well updated but not WITH_ITEM ).
Any help/suggestions will be highly appreciated & rewarded.
Thanks in Advance
Sunny
2013 Oct 03 4:55 AM
Hi all
Thanks for helpful replies.
As I told, I resolved it myself. So I'm posting the correct way of populating BAPI structures & tables to get all required tables including WITH_ITEM updated.
We need to populate following:
BAPIACHE09 --> Header Info
BAPIACGL09 --> G/L Info
BAPIACAP09 --> Vendor Info
BAPIACWT09 --> Withholding Tax Info (Line item no should be same as of AP line item's)
BAPIACCR09 --> Amount & Currency Info (One line item each for AP & G/L)
As I told in my earlier reply to Shreekant that only below mentioned fields are needed to fill in BAPIACWT09:
ITEMNO_ACC
WT_TYPE
WT_CODE
And, pls DONOT populate it's amount fields.
Hope it helps!
Happy programming
Regards
Sunny
Hi all
We have a requirement where in I'm using BAPI_ACC_DOCUMENT_POST for clearing vendor invoices.
Everything is working fine except for the table WITH_ITEM is not getting updated despite of populating BAPIACWT09 with all due details.
I can see my accounting document created everywhere across system (all other tables are well updated but not WITH_ITEM ).
Any help/suggestions will be highly appreciated & rewarded.
Thanks in Advance
Sunny
2013 Sep 30 7:31 PM
Hi Sunny,
What are the details you are populating in withholding tax table? Following fields are mandatory.
ITEMNO_ACC
WT_TYPE
WT_CODE
BAS_AMT_TC
AWH_AMT_TC
Thanks,
Shreekant
2013 Oct 01 5:49 AM
Hi Shreekant
Many thanks for prompt reply.
And, only
ITEMNO_ACC
WT_TYPE
WT_CODE
fields are mandatory to fill in withholding tax table & did exactly same.
However, I solved it myself yesterday only.
Thanks again.
Regards
Sunny
2013 Oct 03 4:55 AM
Hi all
Thanks for helpful replies.
As I told, I resolved it myself. So I'm posting the correct way of populating BAPI structures & tables to get all required tables including WITH_ITEM updated.
We need to populate following:
BAPIACHE09 --> Header Info
BAPIACGL09 --> G/L Info
BAPIACAP09 --> Vendor Info
BAPIACWT09 --> Withholding Tax Info (Line item no should be same as of AP line item's)
BAPIACCR09 --> Amount & Currency Info (One line item each for AP & G/L)
As I told in my earlier reply to Shreekant that only below mentioned fields are needed to fill in BAPIACWT09:
ITEMNO_ACC
WT_TYPE
WT_CODE
And, pls DONOT populate it's amount fields.
Hope it helps!
Happy programming
Regards
Sunny