Skip to Content
avatar image
-1
Former Member

Error in BAPI_ACC_DOCUMENT_POST for asset posting?

Hi Experts,

I am trying to post the assets in BAPI_ACC_DOCUMENTS_POST. I am now getting following error.

E AA 326 Enter a transaction type

Even though I have maintained transaction type CS_TRANS_T = 100 in ACCOUNTGL, I am still getting the same error.

Kindly help.

Regards,

Tamilselvan.M

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jun 12, 2017 at 03:11 AM

    Hi,

    Try putting a break point at FM 'AM_ASSET_CHECK' (Line no.257).

    Regards,

    Priyanka.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Priyanka,

      Thanks!

      This is to update you that I am working in S4 Hana system but not in SAP ECC system. The FM AM_ASSET_CHECK is not there in S4 Hana system.

      Regards,

      Tamilselvan.M

  • avatar image
    Former Member
    Jun 13, 2017 at 05:28 AM

    Hi Experts,

    Any update on this. It is an urgent requirement. Kindly help.

    Regards,

    Tamilselvan.M

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 13 at 09:11 AM

    Hi,

    I've solved the error E AA 326 Enter a transaction type by implement BADI_ACC_DOCUMENT to pass my Trasaction Type = 100.

    In method BADI_ACC_DOCUMENT->CHANGE I've change the C_ACCIT-ANBWA = 100 ( by passing them form Z program) then able to post FI-AA.

    Follow Example step below.

    1. Tcode SE24 to create class for passing your variable.
      - Classe: ZCL_ACC_PASS
      - Attribute: GV_ANBWA TYPE ANBWA. ( As level static for passing value to BADI_ACC_DOCUMENT)
    2. Tcode SE19 to implement BADI_ACC_DOCUMENT in method CHANGE.
      Method IF_EX_ACC_DOCUMENT~CHANGE.
      FIELD-SYSBOLS:<LFS_ACCIT> TYPE ACCIT.
      LOOP AT C_ACCIT ASSIGNING <LFS_ACCIT>.
      "need to apply AA Transaction Type in here which passing from Z program
      <LFS_ACCIT>-ANBWA = ZCL_ACC_PASS=>GV_ANBWA.
      ENDLOOP.
      ENDME
    3. In Z program need to pass value before call function BAPI because the implemented BADI will be triggered inside 'BAPI_ACC_DOCUMENT_POST'.
      " Passing your value 100
      ZCL_ACC_PASS=>GV_ANBWA = '100'. "AA Transaction Type
      " Inside this
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'.
      "need to clear when you not use it
      CLEAR ZCL_ACC_PASS=>GV_ANBWA.

    Hope it help.

    Sayan.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04 at 06:35 PM

    Hi,

    can you share how did you populate your BAPI_ACC_DOCUMENT_POST for Fixed Asset Invoice posting? Thanks.

    Warm regards,

    John

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      I write some step to solve this please check it out.

      I've solved the error E AA 326 Enter a transaction type by implement BADI_ACC_DOCUMENT to pass my Trasaction Type = 100.

      In method BADI_ACC_DOCUMENT->CHANGE I've change the C_ACCIT-ANBWA = 100 ( by passing them form Z program) then able to post FI-AA.

      Follow Example step below.

      1. Tcode SE24 to create class for passing your variable.
        - Classe: ZCL_ACC_PASS
        - Attribute: GV_ANBWA TYPE ANBWA. ( As level static for passing value to BADI_ACC_DOCUMENT)
      2. Tcode SE19 to implement BADI_ACC_DOCUMENT in method CHANGE.
        Method IF_EX_ACC_DOCUMENT~CHANGE.
        FIELD-SYSBOLS:<LFS_ACCIT> TYPE ACCIT.
        LOOP AT C_ACCIT ASSIGNING <LFS_ACCIT>.
        "need to apply AA Transaction Type in here which passing from Z program
        <LFS_ACCIT>-ANBWA = ZCL_ACC_PASS=>GV_ANBWA.
        ENDLOOP.
        ENDME
      3. In Z program need to pass value before call function BAPI because the implemented BADI will be triggered inside 'BAPI_ACC_DOCUMENT_POST'.
        " Passing your value 100
        ZCL_ACC_PASS=>GV_ANBWA = '100'. "AA Transaction Type
        " Inside this
        CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'.
        "need to clear when you not use it
        CLEAR ZCL_ACC_PASS=>GV_ANBWA.

      Hope it help.

      Sayan.