Skip to Content
author's profile photo Former Member
Former Member

Passing Business place in BAPI_ACC_DOCUMENT_POST in ACCOUNTGL table.

Dear Experts,

I am working on BAPI_ACC_DOCUMENT_POST for posting the accounting documents which includes G/Ls and Vendor payments. BAPI is ready and working fine, but we want to pass the Business Place with GL, as it allows iin FB01, i have searched though the ACCOUNTGL but i didn't find any field for this or like BUPLA.

Any suggestion ... How to pass Business Place field in ACCOUNTGL...?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Dec 08, 2009 at 06:27 AM

    Hi Prasad,

    Try field BUSINESSPLACE in ACCOUNTSRECEIVABLE. I think this should work

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2009 at 06:27 AM

    duplicate

    Edited by: Vasuki S Patki on Dec 8, 2009 11:57 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Prassad,

      I've faced the same issue here; we were facing an error while posting to accoountgl, because AR & AP are working fine, so what we've come up with and worked is;

      Append the businessplace into BAPIACGL09 structure and i should look like this;

      ...

      wl_accountgl TYPE bapiacgl09,

      ....

      wl_accountgl-businessplace = wl_file_i-local_neg.

      ....

      in bapiacgl09 structure

      .APPEND ZZST_BUSINESS ...

      BUSINESSPLACE ACPI_BRANCH CHAR 4 0 ...

      This was the ABAPer solution here in the company, i hope it helps.

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2010 at 10:37 AM

    Solved by self

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2010 at 10:37 AM

    self

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 04:56 PM

    I don't advise changing Standard Structures, especially BAPIs.

    Following my contribution to the solution of the problem, here it worked, I hope it helps.

    Use table parameter: EXTENSION2 on FM: BAPI_ACC_DOCUMENT_POST.

    The parameter EXTENSION2 is used of the routine:

    PERFORM call_badi
     TABLES extension2.

    The routine call the:

     CALL METHOD g_exit->change

    Where is allowed the instantiation of the Badi and to use the method:

    IF_EX_ACC_DOCUMENT~CHANGE

    Sample:

    READ TABLE c_extension2 INTO wl_extension WITH KEY structure = 'ZBUSINESSPLACE'
     BINARY SEARCH.
     IF sy-subrc EQ 0.
     LOOP AT c_accit ASSIGNING <fl_accit>.
     <fl_accit>-bupla = wl_extension-valuepart1.
     ENDLOOP.
     ENDIF.

    Sample: In the call BAPI

    DATA: tl_extension2TYPE TABLE OF bapiparex,
          wl_extension2LIKE LINE OF tl_extension2.
    
    
    CLEAR wl_extension2.
    wl_extension2-structure  = 'ZBUSINESSPLACE'.
    wl_extension2-valuepart1 = xxxx.  " Value
    APPEND wl_extension2    TO tl_extension2.
    
    
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader = wl_docheader
      IMPORTING
        obj_type       = vl_obj_type
        obj_key        = vl_obj_key
        obj_sys        = vl_obj_sys
      TABLES
        accountgl      = tl_accountgl
        currencyamount = tl_curramount
        extension2     = tl_extension2
        return         = tl_return.

    I hope it helps.

    Best regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.