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

Short dump with BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
1,623

Dear All,

When I try to use BAPI "BAPI_ACC_DOCUMENT_POST" for F-02 posting, I get the following short dump:

"Syntax error in program SAPLACC9".

"The data object GS_ACCIT does not have a component called BAPI_PARA"

Please suggest me how can this error be removed.

Regards,

Kanupriya

8 REPLIES 8
Read only

Former Member
0 Likes
1,271

HI,

Check all the FMs in the function group ACC9.

Probably some note is missing. Have you upgraded toa new system or applied any support pack recently?

Regards,

Ankur Parab

Read only

0 Likes
1,271

Hi Ankur,

Recently we moved from HRSP level 80 to level 91 in R/3 4.7.

Could this have led to some changes in FM BAPI_ACC_DOCUMENT_POST.

Regards,

Kanupriya

Read only

Former Member
0 Likes
1,271

Hi Kanupriya Madan,

Can You paste a snippet of code what all you are passing to FM BAPI_ACC_DOCUMENT_POST, and cross check what

mandatory fields to be passed to that FM.

Rds,

Suneel G

Read only

0 Likes
1,271

Hi Suneel,

Please look at the code below:

LOOP AT it_upload_rec.
    header-bus_act = 'RFBU'.
    header-doc_date = it_upload_rec-bldat.
    header-pstng_date = it_upload_rec-budat.               header-header_txt = 'F-02 Posting'.
    header-comp_code = 'PL10'.
    header-doc_type = 'SA'.
    header-username = sy-uname.

    APPEND header.
    CLEAR header.

    account_gl-itemno_acc = '1'.
    account_gl-gl_account = it_upload_rec-account1.
    APPEND account_gl.
    CLEAR account_gl.

    account_payable-itemno_acc = '2'.
    account_payable-vendor_no = it_upload_rec-account2.
    APPEND account_payable.
    CLEAR account_payable.

    currency_amount-itemno_acc = '1'.
    currency_amount-currency = 'INR'.
    currency_amount-amt_doccur = it_upload_rec-amount.
    APPEND currency_amount.
    CLEAR currency_amount.

  ENDLOOP.


  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
      documentheader          = header
*   CUSTOMERCPD             =
*   CONTRACTHEADER          =
   IMPORTING
  obj_type = gv_obj_type
  obj_key = gv_obj_key
  obj_sys = gv_obj_sys
    TABLES
     accountgl               = account_gl
   ACCOUNTRECEIVABLE       =
     accountpayable          = account_payable
*   ACCOUNTTAX              =
      currencyamount          = currency_amount
*   CRITERIA                =
*   VALUEFIELD              =
*   EXTENSION1              =
    return                  = it_return
*   PAYMENTCARD             =
*   CONTRACTITEM            =
*   EXTENSION2              =
*   REALESTATE              =
            .

Regards,

Kanupriya

Read only

0 Likes
1,271

We are facing the same issue after R/3 plug-in upgrade. DId you find any fix?

Thanks,

Parag

Read only

0 Likes
1,271

We are facing the same issue after R/3 plug-in upgrade. DId you find any fix?

Thanks,

Parag

Read only

Former Member
0 Likes
1,271

Hi Kanupriya ,

gs_accit is of type -- >

gs_accit     TYPE accit

Here there is one filed like BAPI_PARAM ,so obviously the system will pop an error if you miigt have attempeted to assign something to a filed BAPI_PARA .

In the Prog - SAPLACC9 in the Inlude -LACC9F20 check out these lines..

It should be like this.

* Menge: Flag Retourenposition setzen
  IF NOT gs_accit-xmfrw IS INITIAL.
    PERFORM negative_quantity.
  ENDIF.

  gs_accit-bapi_param   = gs_bapi_accit-parameter.           "NOT BAPI_PARA !!!!!!!
  gs_accit-bapi_tabix   = gs_bapi_accit-tabix.

Regards

Rajesh Kumar

Read only

former_member480923
Active Contributor
0 Likes
1,271

Please check the entries in the table:

GJV_PROG_BAPI

Hope That Helps

Anirban M.