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

BAPI_ACC_DOCUMENT_POST with holding tax problem

Nawanandana
Active Contributor
0 Likes
601

Dear all

Im using the FM BAPI_ACC_DOCUMENT_POST for the document posting.

in here im passing WHT information in to the


ACCOUNTRECEIVABLE
ITEMNO_ACC = '0000000002'
CUSTOMER  = 'D200'
COMP_CODE =1000'

ACCOUNTPAYABLE

ITEMNO_ACC ='0000000001'
VENDOR_NO ='1234567'
COMP_CODE ='1000'

CURRENCYAMOUNT
ITEMNO_ACC = '0000000001'
CURRENCY    = 'LKR'
AMT_DOCCUR = '-2,500.0000'
AMT_BASE      = '-2,500.0000'

ITEMNO_ACC = '0000000002'
CURRENCY    = 'LKR'
AMT_DOCCUR = '2,500.0000'
AMT_BASE      = '2,500.0000'

ACCOUNTWT

ITEMNO_ACC = '0000000001'
WT_TYPE      = 'W1'
WT_CODE    = 'W1'
BAS_AMT_LC = '2,500.0000'
BAS_AMT_TC = '2,500.0000'
BAS_AMT_IND = 'X'


when i post the document it will post correctly , the problem is customer line item also put it the with holding tax line item. but in here i pass only the with holding tax code vendor only. Can you tel me the issue of that. I need to get with holding line only the vendor.

regard

nawa

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

Hi,

Here is the sample code. check if some thing is missing in ur code.

http://helponabap.blogspot.com/2009/03/help-on-bapiaccdocumentpost-and.html

--

Reddy

1 REPLY 1
Read only

Former Member
0 Likes
472

Hi,

Here is the sample code. check if some thing is missing in ur code.

http://helponabap.blogspot.com/2009/03/help-on-bapiaccdocumentpost-and.html

--

Reddy