Application Development and Automation 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: 
Read only

Updating WITH_ITEM from BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
3,426

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,809

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,809

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

Read only

0 Likes
1,809

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

Read only

Former Member
0 Likes
1,810

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