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 BAPI_ACC_DOCUMENT_POST

abdulgaffarmohd
Participant
0 Likes
2,132

Hi all,

i am working with BAPI_ACC_DOCUMENT_POST Bapi for posting document .

this Bapi is working fine only one issue i am facing is it is not capturing with holding tax.

bapi is not calculating with holding tax .

regards,

Mohd.

11 REPLIES 11
Read only

Former Member
0 Likes
1,610

Hi Abdul,

Tyr to use this BAPI, BAPI_ACC_GL_POSTING_POST,

It will work for your requirement.

CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
      EXPORTING
        documentheader = doc_header
      IMPORTING
        obj_type       = doc_header-obj_type
        obj_key        = doc_header-obj_key
        obj_sys        = doc_header-obj_sys
      TABLES
        accountgl      = doc_item
        currencyamount = doc_values
        return         = return
        extension1     = extension1.

Read only

0 Likes
1,610

Hi,

Can u plz send the sample code...what are all the values i need pass & from where i need to pick to fullfil transaction f-28.

Please help me to resolve this...

Regards,

Ravi

Read only

0 Likes
1,610

hello Ravi!

i have the same problem.

Can u plz send the sample code?

thanks

Read only

Former Member
0 Likes
1,610

Hi,

Check this BAPI 'BAPI_ACC_GL_POSTING_POST' - General G/L Account Posting

Regards,

Jyothi CH.

Read only

0 Likes
1,610

Hi ,

BAPI_ACC_DOCUMENT_POST bapi is working fine .

only thing is how to populate with holding tax code .

regards,

Mohd.

Edited by: abdul gaffar on May 26, 2009 5:57 PM

Read only

0 Likes
1,610

Hello,

Did you try to use "ACCOUNTWT" tables on BAPI_ACC_DOCUMENT_POST function module?

Regards,

" ACCOUNTWT STRUCTURE BAPIACWT09 OPTIONAL "

Read only

Former Member
0 Likes
1,610

Fill the extension1 table with withholding tax details.

CONSTANTS:

  • variable indicator for ewt tax implementations

lc_chk_ewt_2008(13) TYPE c VALUE 'FIAP_EWT_2008',

  • Field name indicator for WT base amt in doc currency.

lc_qsshb(08) TYPE c VALUE 'WT_QSSHB' ,

  • Field name indicator for WT code.

lc_withcd(09) TYPE c VALUE 'WT_WITHCD' ,

  • Field name indicator for WT type.

lc_witht(05) TYPE c VALUE 'WITHT' ,

  • Field name indicator for Grp key WT info.

lc_key(06) TYPE c VALUE 'WT_KEY' ,

  • Indicator yes

lc_x(1) TYPE c VALUE 'X' .

  • POPULATE THE LINE ITEM & WITHHOLDING TAX CODE

lw_st_ext-field1 = lc_chk_ewt_2008. "Indicator for EWT specific code

lw_st_ext-field2 = p_w_itemno_acc. "Line item number

lw_st_ext-field3 = lc_withcd. "indicator for WITHHOLDING TAX CODE

  • lw_st_ext-field4 = lw_withcd. "WITHHOLDING TAX CODE value

  • Adding With holding tax recrods to extension table

APPEND lw_st_ext TO p_it_ext.

  • POPULATE THE LINE ITEM & WITHHOLDING TAX TYPE

lw_st_ext-field1 = lc_chk_ewt_2008. "Indicator for EWT specific code

lw_st_ext-field2 = p_w_itemno_acc. "Line item number

lw_st_ext-field3 = lc_witht. "indicator for WITHHOLDING TAX TYPE

lw_st_ext-field4 = lw_witht. "WITHHOLDING TAX TYPE value

  • Adding With holding tax recrods to extension table

APPEND lw_st_ext TO p_it_ext.

  • POPULATE THE LINE ITEM & WITHHOLDING TAX KEY

lw_st_ext-field1 = lc_chk_ewt_2008. "Indicator for EWT specific code

lw_st_ext-field2 = p_w_itemno_acc. "Line item number

lw_st_ext-field3 = lc_key. "indicator for WITHHOLDING TAX KEY

lw_st_ext-field4 = p_w_itemno_acc. "Line item number

  • Adding With holding tax recrods to extension table

APPEND lw_st_ext TO p_it_ext.

  • POPULATE THE LINE ITEM & WITHHOLDING TAX Base amount (optional).

lw_st_ext-field1 = lc_chk_ewt_2008. "Indicator for EWT specific code

lw_st_ext-field2 = p_w_itemno_acc. "Line item number

lw_st_ext-field3 = lc_qsshb. "indicator for WITHHOLDING TAX BASE AMOUNT

lw_st_ext-field4 = 0. "Tax base amount - Optional if Zero

  • Suppress leading and subsequent empty/null spaces.

CONDENSE lw_st_ext-field4 NO-GAPS.

  • Adding With holding tax recrods to extension table

APPEND lw_st_ext TO p_it_ext.

Read only

0 Likes
1,610

Solved by myself

Read only

0 Likes
1,610

This message was moderated.

Read only

Former Member
0 Likes
1,610

Hi Abdul,

I need to post incoming payments for the transaction F-28 by using BAPI_ACC_DOCUMENT_POST....

Can u plz tell me what are all the import parameters i need to pass for the above function module to post incoming payments

Regards,

Ravi

Read only

Former Member
0 Likes
1,610

Hi Abdul,

I need to post incoming payments for the transaction F-28 by using BAPI_ACC_DOCUMENT_POST....

Can u plz tell me what are all the import parameters i need to pass for the above function module to post incoming payments

Regards,

Ravi