Skip to Content

BAPI_ACC_DOCUMENT_POST notes after GST

For parking documents I have used the BAPI '

BAPI_ACC_DOCUMENT_POST ' .

Issues faced :

a. Unable to send HSN code in BAPI.

b. Sent through extension field and enhancement( BADI_ACC_DOCUMENT) value gets stored in vbsegs table but in FBV0 posting

the HSN code does not get stored to BSEG table.

c. Data gets parked( passed status 2 in bapi), but while FBV0 posting the BSET (fwste hwste ) fields are not getting posted with GST values. Values get posted in Fwbas and Gwbas .

Version EHP 6 for ERP 6.0

Regards

Sharada

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 24, 2017 at 06:20 AM

    Hi,

    You have to

    1. Populate HSN code in extension2 structure

    2. Implement BADI BADI_ACC_DOCUMENT

    3. Refer example code in CHANGE method and populate HSN Code to C_ACCIT internal table.

    Thanks and regards,

    Chandra

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 24, 2017 at 07:32 AM

    Hi,

    Check and implement note:

    1553739 - Incorrect tax amount in first local crcy for BAPI posting

    Regards,

    Eli

    Add comment
    10|10000 characters needed characters exceeded

    • Thank you all for the comments

      Actually created the Ac_document badi again without filter of BKPF and put the same coding and it worked.

      IF_EX_ACC_DOCUMENT~CHANGE

      READ TABLE c_extension2 INTO exten INDEX 1.
      IF exten-valuepart2 = XXXXX'.

      LOOP AT c_accit INTO wa_accit.
      wa_accit-taxit = 'X'.
      wa_accit-HSN_SAC = exten-valuepart1.
      MODIFY c_accit FROM wa_accit TRANSPORTING taxit hsn_sac.
      endloop.
      endif.

      vbsegs - hsn_sac

      The data goes to bset and bseg while posting.

  • Nov 13, 2017 at 11:00 AM

    Hi Sharada .

    I am trying to post S1 document using BAPI BAPI_ACC_DOCUMENT_POST .

    i am able to post S1 document with GST & SGST i.e 9%+ 9% as manually i am passing amount at respective line item

    My Problem is : But now i want to Pass hsn_sac code to be updated in Bseg table so i am using BADI "BADI_ACC_DOCUMENT"

    but unable to update HSN_SAC code in bseg using above Method which u have given in Example .

    My code is :

    if sy-tcode ='ZF130' .
    
    READ TABLE c_extension2 INTO wa_extension WITH KEY VALUEPART1 = '0000000002' .
    IF wa_extension-valuepart2 = '40'.
    
    LOOP AT c_accit INTO wa_accit WHERE POSNR = '0000000002'.
    
    wa_accit-taxit = 'X'.
    
    wa_accit-HSN_SAC = wa_extension-valuepart3. " This is HSN_CODE i want to update 
    
    MODIFY c_accit FROM wa_accit TRANSPORTING taxit hsn_sac.
    
    endloop.
    
    endif.

    Need Help in this Case

    Regards

    Deepak Dhamat

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi sharada

      I am not able to post the document through FBV0 and using the same BAPI can you please help me in this?

      Regards

      Amita