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...?

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.

Similar Messages

  • How to pass Business place to BAPI_ACC_DOCUMENT_POST

    Hello,
    I am using BAPI_ACC_DOCUMENT_POST to post the accounting documents for  G/Ls. Now iwant 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.
    I searched in SDN regarding the same but i couldn't find any solution. Please help.
    Regards,
    Kesavaperumal

    Hi,
    Better you use the badi 'BADI_ACC_DOCUMENT'.
    For passing the Business Area you need to use the extention structure of BAPI_ACC_DOCUMENT_POST and then use BADI ACC_DOCUMENT
    with the other parameters you have to populate the extension table of bapi
    data : it_ bapiparex type table of bapiparex,
    wa_bapiparex type bapiparex
    Populate the Extension table
    wa_bapiparex-structure = 'Business Area'.
    wa_bapiparex-valuepart1 = '10'. " Item number
    wa_bapiparex-valuepart2 = ' '. "  pass the value for Business Area
    APPEND wa_bapiparex TO it_bapiparex.
    Call the Bapi to post the document
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = wa_docheader
    TABLES
    accountgl = it_bapiacgl09
    accountpayable = it_bapiacap09
    currencyamount = it_bapiaccr09
    return = it_bapiret2
    extension2 = it_bapiparex
    Now create an implementation of BADI ACC_DOCUMENT in SE19 and
    write the following code in method CHANGE of BADI
    DATA: wa_extension TYPE bapiparex,
    wa_accit TYPE accit.
    LOOP AT c_extension2 INTO wa_extension.
    Extend BAPI to have Posting Keys defined by user
    IF wa_extension-structure = 'Business_Area'.
    CLEAR wa_accit.
    READ TABLE c_accit INTO wa_accit
    WITH KEY posnr = wa_extension-valuepart1.
    IF sy-subrc = 0.
    wa_accit-BUS_AREA = wa_extension-valuepart2.
    MODIFY c_accit FROM wa_accit INDEX sy-tabix TRANSPORTING BUS_AREA.
    ENDIF.
    ENDIF.
    ENDLOOP.
    Hope this solves your problem
    Regards,
    Dhina...

  • I want to make a business place in the table whose name is J_1BBRAN

    Hi Expert~
    I want to make a business place in the table
    The table's name is J_1BBRAN.
    where should i make that above? what['s transaction code?
    please help~
    Edited by: jake on Jan 7, 2009 1:20 AM
    Edited by: jake on Jan 7, 2009 1:21 AM
    Edited by: jake on Jan 7, 2009 1:44 AM

    Hi Jake,
    I'm working in ECC 6.0 and you can find this table by navegationg through SPRO :
    Cross-Application Components - General Application Functions - Nota fiscal - CNPJ Business Places - Define Business Places and Assign Business Places to Plants
    But the table name is : J_1BBRANCV  (Business Places)
    I think this is what you want.
    Att.
    Cássio Moreira

  • Error in Updating Business Place in MM documents

    Dear Experts,
    I have 2 Questions..
    Q1. I have created a subsitution rule for updating business place and section code in documents and it's working fine for FI documents but business place and section is not updating in MM documents (MIRO) . Please suggest
    Q 2. When I am trying to update business place in MM invoices with t. code J1INPP it's giving me below message.
    Please suggest how to resolve this and is there any negative impact of updating business place in MM documents ?
    Thanks in advance
    No Financial Accounting document found
    Message no. F5863
    Diagnosis
    No financial accounting document was found under application type '', application key '' and '' and logical system ''.
    System Response
    Note from financial accounting
    Procedure
    Inform your SAP consultant or get in touch with SAP directly

    Hi Ansh,
    You are facing this issue because of Business place already exist in BSEG table. It is update through substitution rule.
    Just create new program by copy the program "J_1IEWT_UPDATE_FI_FOR_BUPLA"
    Mention here your own logic that System check Business place and delete BP from documents and after that update new business place.
    Regards
    Raheem

  • How to pass BUSINESS AREA in structure EXTENSION1 in BAPI_ACC_DOCUMENT_POST

    Dear All,
    I'm doing one upload program with BAPI_ACC_DOCUMENT_POST.
    Here when I do Tax calculation, I need to pass the value for Business Area in the structure ACCOUNTTAX. But the field is not available.
    Is there any way to pass Business Area (GSBER) value to the structure EXTENSION1?
    Points will be rewarded for the correct solution immediately.
    Moreover I'm in pressure to complete this object. Please help me.
    Thanks & Regards,
    Neeraj

    The business area is passed in the field BUS_AREA in the tables ACCOUNTGL, ACCOUNTRECEIVABLE and ACCOUNTPAYABLE.
    Rob

  • Error-"Enter a business place under Basic data" in bapi_acc_document_post

    Hi,
    I am trying to post a document using bapi_acc_document_post and Bapi is throwing an error message : Enter a business place under "Basic data" .How can I resolve/skip this.
    Please help.
    Thanks,
    Sheel

    Hi,
    I guess you are not passing proper value in BUS_ACT parameter in DOCUMENTHEADER.
    Go through the documentation given for the BAPI and fill the required data properly. Get back if you still face any issues.
    Regards,
    Ganga

  • VAT GL is not picking from J_1IT030K_V table for the business place in FB60

    Hi,
    We have defined the VAT GL based on business place, while posting FB60 (Vendor invoice), system picks the VAT GL from OB40 instead of J_1IT030K_V table....
    (While posting MIRO it is correctly picking from J_1IT030K_V table).
    Please advsie.
    Thanks
    SAMEER

    HEllo,
    Please check if you have any substitution rule to change the value.
    REgards,
    REnan

  • BAPI_ACC_INVOICE_RECEIPT_POST problem with Business place

    Hi Experts,
    I'm using the the BAPI  "BAPI_ACC_INVOICE_RECEIPT_POST" for the F-43 posting, it's working fine. But I have a little problem here, Even though I pass the correct values to the fields "Valuation type" and "Business place" in the posted document I could see only "?".
    Could you please some one help me in finding what might be the problem.
    Thanks
    Nivash

    hi
    hope it will help you.
    <REMOVED BY MODERATOR>
    BAPI_ACC_GL_POSTING_CHECK
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
    EXPORTING
    documentheader = w_documentheader
    TABLES
    accountgl = it_accountgl
    currencyamount = it_currencyamount
    return = it_return.
    Populate the corresponding tables with the data you have.
    For the Date do convert it.
    PERFORM convert_date USING it_header-bldat
    CHANGING w_documentheader-doc_date.
    w_documentheader-comp_code = 'z998'
    w_documentheader-doc_type = 'SA'
    "and fill the respective tables this way .
    <b>
    BAPI_ACC_GL_POSTING_POST
    </b>
    call function 'BAPI_ACC_GL_POSTING_POST'
    exporting
    documentheader = doc_header
    IMPORTING
    OBJ_TYPE = l_objtype
    * OBJ_KEY =
    * OBJ_SYS =
    tables
    accountgl = t_accountgl
    currencyamount = t_curramt
    return = t_return
    * EXTENSION1 =
    Edited by: Alvaro Tejada Galindo on Feb 7, 2008 9:51 AM

  • Business Place for document  could not be determined

    Hi,
    When I am posting Remittance challan I am getting this following error,
    "Business Place for document  could not be determined".
    Could any body please help me to solve this problem.
    I maintained the following settings in system
    1. T-Code: J_1IEWTNUMGR
    UN04     SC04     194C     02
    2. T-Code: J_1IEWTNUM
    02     02
    3. T-Code: J_1IEWTNO
    Maintained Number ranges
    I posted vendor document and I gave Business place and Section code also. Even After all the settings I am getting this problem. Please let me know is there any steps I missed are any thing I have to maintain in system.
    Best Regards
    Raj

    Hi Pavan,
    Thanks for you replay. I checked in table, data available in the table J_1IEWTNUMGR against Company code, Business place and Off Key.
    One more question is whether we need to give Business place or Section code while creating TDS challan using J1INCHLN. It will appear like "Business Place/Section Code" in the screen. If I select from drop down It is taking Section code. Is it possible to change the logic from Section code to Business place.
    Thanks & Regards
    Raju.

  • Error in J1INCHLN " Business Place for document  could not be determined "

    Dear Gurus,
    While executing T-Code: J1INCHLN am getting the following error after updating all the field:
    Business Place for document  could not be determined
    Message no. 8I707
    Could you please help on this on priority basis.
    Regards
    JS

    Hi ,
    For slove that error
    You can maintain the internal number ranges for tax payment
    challans, with respect to each Section Code, in the Country Version
    India (CIN) Implementation Guide (IMG), by choosing India Localisation
    Menu > Tax Deducted at Source >Extended Withholding Tax > Creation
    ofremittance Challans > Maintain Number groups. This customizing needs
    to be maintained.
    (For direct view maintenance, use Transaction SM30, view name
    J_1IEWTNUMGR_1).
    On the Maintain Table Views: Initial screen, enter the table/ view name J_1IEWTNUMGR_1 and choose the Maintain push button.
    On the Change View Number Groups for Internal Challan Numbers u2013 EWT India: Section Code screen, make the following entries
    Company Code..... Section Code Off------ W/Tax Key-------Number Group
    XXXX-- XXXX 194C---- XXX
    May be this information is useful to you
    If you have any doubt feel free to ask
    Regards
    Surya

  • Business Place & Business Area in VAT Line item in MIRO

    Hi Gurus,
    I want to defualt the following values in the VAT line item in  while doing MIRO.
    1. Business place in the "VAT line item" to be defaulted from the "Vendor Line item".
    2. Business area in the "VAT line Item" to be defaulted from its relevant "Material / Expense/ GR/IR Line item".
    The same thing i have done in FB60 transaction by using a BADI. But the same BADI is not working for MIRO.
    What the BADI does it goes and updates the BSEG table for the fields "Bupla (Business Place) & GSBER(Business Area).
    But while doing MIRO the BSEG table is not called at all and hence the BADI which is used earlier is not able to update the fields and hence cannot be used.
    I feel the reason could be that while doing MIRO the BSEG table is not called directly but it is called through a Function Module. In such case a BADI will be required which will call the relevant Function module.
    Need your help in how to update the VAT Line Item's Business Place & Business Area in the MIRO document.
    Will award points if issue is resolved or if your answer is useful.
    Rgds
    Prasad

    Hi
    Try using substitution maintained in FI.Transaction code OBBH.
    Maintain the prerequisite based on the Transaction code.
    Copy the same logic used in BAdi for the exit created.
    We have used this for similar type of requirements
    Award points if useful
    Thanks & Regards
    Kishore

  • Maintain Business Place for documents without Business Place

    Dear All,
    Pls tell me how to update Business Place in documents which are posted without entering Business Place field. Pls tell me how to achieve this without using Validations & Substitutions. Any table entries can be maintained for this? Kindly guide.
    Regards
    Komal

    Hai Komal,
    In J1INPP t.code update ur place already posted docs.
    Regards
    Madhu I

  • Business Place in Dynamic Selection Screen

    Dear Gurus,
    I want to bring Business Place field in Dynamic Selection Screen of Transaction code FBL3N. Please guide how to do this.
    Regards,
    VS

    HI,
    The fields which are eligible for dynamic selection can be reviewed for
    the related logical database via trans SE36, e.g., using logical data-
    base SDF (G/L accounts), select Extras -> Dynamic selections.  The
    following tables are available:
         SKA1 G/L Account Master (Chart of Accounts)
         SKB1 G/L Account Master (Company Code)
         BSIS Accounting: Secondary Index for G/L Accounts <   Use for BUPLA
    Table BSIS contains the BUPLA (Business place) field which can be
    added to the dynamic selections for trans FBL3N (see note 310886 for
    additional info).
    Please perform the following steps to add the line item (BSIS-BUPLA)
    field to dynamic selections:
    1)  Run trans SE36 using logical database SDF.  Select Extras ->
        Selection views.  Enter origin of view CUS.  Click on Create.
    2)  Under Tables/Nodes, scroll down to table BSIS and double click on
        it.  This will display the available fields from table BSIS below.
    3)  Under Functional groups, enter functional group ID / text:
        Functional groups
    ->   01  BSIS
    4)  Under Table fields/Node fields, enter functional group ID from
        step 3 to the left of the BUPLA field:
        Table fields/Node fields
    -> 01  BUPLA            Business place
        Click on Save.  Msg S3404 "Selection view saved" should appear.
    5)  Run trans FBL3N.  Click on Dynamic selections -> BSIS.  Double
        click on Business place.  A popup box should appear allowing entry
        of a single business place value.  Click on Multiple selection ->
        Ranges to enter business place range.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • How to Update Business Place & Sec.Code Field in Posted Document

    Dear All,
    Pls suggest how to update Business Place & Section Code field in documents which are posted without entering Business Place & Section Code. Pls tell me how to achieve this without using Validations & Substitutions. Any table entries can be maintained for this? Kindly guide.
    Regards
    Abhijeet

    Hi,
         Thanks for sending the replay,
         I had already update the Material document through the J1INPP T. code. but it not use for update FI
         Document and i want to update Business Place & Section Code in FI document.
         Please suggest,
    Regards
    Abhijeet

  • How to make Business place mandatory

    Hi, SAP Gurus,
    How to make business place mandatory in "MIRO ". As i know there are two ways
    1) Through Screen Variant T/code: SHD0
    2) Validation
    But here  i Never worked on sreen variant level and validation, I need step by step to make business place mandatory in MIRO
    bY USING ABOVE T/CODES,
    Regards,
    Prabhakar

    Hi Bhanu,
    Use T.Code GGB0 - Validation maintenance - Change Validation overview.
    Choose Financial Accounting in Application area. Select Line Item and click Validation create icon.
    Give a Validation ID BP and text Business Place Mandatory and save.
    Click Step icon - Step 01 - now the prerequisites; check and message will come in margin panel.
    Give text for the step 01. Click Prerequisites. You can see the Table Fields  Structure BKPF, BSEG, and SYST.
    If you double click on this you view individual fields relating to these master tables.
    Your prerequisite may be like this :
    Company Code is = XYZ ; T.Code = MIRO & F-43; Posting key = 31 ( Credit Vendor)
    Double click BKPF > double click  BKPF-BUKRS>  click "=" >  click constant > a pop up box will open
    here fill up your company Code XYZ.  This will automatically come in the top box.  Click "AND". Now  there is a back arrow
    button in the table field panel and come back to the original display of master tables.  Here double click SYST
    Click SYST-TCODE > click "=" > click Constant > in the pop up box enter tcode MIRO. If you want to add F-43,
    you have to click "AND" after this and repeate SYST-TCODE = F-43. Now click back arrow and double click BSEG and
    click BSEG-BSCHL > Click "=" > Click Constant > in the popup window enter 31 and save the prerequisites.
    (For the above requisites, the system will check if  Business Place is 1000 is filled up during transaction and if not it has to
    give a error message.)
    Now Click Check in the right margin below prerequisites menu. Again the table list will be seen with BKPF, BSEG and SYST
    Double click BSEG > click BSEG-BUPLA > Click "=" > Click constant and in the pop up box fill the business place 1000 and save
    the check menu.
    In the right margin now double click message.  Here you can create a message text of your own "Business Place mandatory"
    Save the Message and come back and finally save the Validation so created.
    Now use T.Code OB28 and enter your Company Code > give call point 2 > and Activation level 1 and save the entries.
    Now you can check for the transaction in MIRO where without filling the Business Place field you cannot save the entries.
    Hope the above steps will be clear for you.  If you have any doubt please revert back.
    Best Regards,
    Sadashivan

Maybe you are looking for