Error in Accounting document Posting using - BDC

While creatind document in FB01 using BDC
  PERFORM fill_dynpro_fields1 USING:
           co_true    co_program        '0100' lit_bdcdata,
           space      'BKPF-BLDAT'       it_bkpf-bldat lit_bdcdata,
           space      'BKPF-BUDAT'       it_bkpf-budat lit_bdcdata,
           space      'BKPF-BLART'       tp_type1 lit_bdcdata,
           space      'BKPF-BUKRS'       it_bkpf-bukrs lit_bdcdata,
           space      'BKPF-WAERS'       it_bkpf-waers lit_bdcdata,
           space      'BKPF-XBLNR'       it_bkpf-xblnr lit_bdcdata,
           space      'RF05A-NEWBS'      lco_postkey lit_bdcdata,
           space      'RF05A-NEWKO'      it_bseg-kunnr lit_bdcdata,
           space      'BDC_OKCODE'       co_intro lit_bdcdata,
           co_true    co_program        '0301' lit_bdcdata,
           space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
           space      'BSEG-ZTERM'       it_bseg-zterm lit_bdcdata,
           space      'BSEG-SGTXT'       it_bseg-sgtxt lit_bdcdata,
           space      'RF05A-NEWBS'      lco_postkey1 lit_bdcdata,
           space      'RF05A-NEWKO'      it_bseg-kunnr lit_bdcdata,
           space      'BDC_OKCODE'       co_intro lit_bdcdata,
           co_true    co_program        '0301' lit_bdcdata,
           space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
           space      'BSEG-ZTERM'       it_bseg-zterm lit_bdcdata,
           space      'BSEG-SGTXT'       it_bseg-sgtxt lit_bdcdata,
           space      'BDC_OKCODE'       co_intro lit_bdcdata.
I am getting message like bseg-wrbtr input value is longer than screen field. but i have declare it as same type as above space      'BSEG-WRBTR'       it_bseg-wrbtr lit_bdcdata,
Can you help me.
Always use proper subject line

Hi Vijay ,
I have one more problem regarding same please help me.
In the program i am calling the transaction FB01 twice and two different document is created of SA and DA type.
After the program is executed i can only see the DA document created log message. But the SA document(message) is getting suppressed but the document is getting created .
How can i get the both document no at a time once i run the program.

Similar Messages

  • UOM group error while material document posted throgh BDC( MB01)

    Hi All,
    we are facing issue while posting material through MB0-goods reciept
    error "UOM group not maintaineed for 'XXXXX" material" for some line items,
    and i have checked in material master data, UOM group not maintained for some material,
    even after maintaind UOM group for those material's still we are facing same problem,
    as i checked in BDC code there is no validation for UOM group,
    if we posted same PO manual, document posted successfull,
    please suggest me.....why this error message coming eventhogh UOM group mainted?
    Regards,
    Suresh.D

    check this link:
    Updating Function module for Material master (UoM)
    BAPI for MIGO
    cheers
    Aveek

  • Account document post using BAPI BAPI_ACC_DOCUMENT_POST

    Hi,
    I am using the BAPI BAPI_ACC_DOCUMENT_POST to post account doument. It is working fine.
    Here I need to pass contrac number to item.
    We have one parameter REALESTATE to pass cotract number.
    Because it is a realestate, it taking contract type as 9 by default.
    But I need to pass other contract number of diffrent type.
    How we can pass the other than realestate contract number using BAPI BAPI_ACC_DOCUMENT_POST ?
    Thanks in advance.
    Sadasiva.

    I am already did the same thing, it is creating document but it is not adding the contract number to item.
    I am also filling the parameter REALESTATE with contract number, it is adding properly and contract type is taking as 9(means realestate).
    But I need to add other contract types also, for that I tried with other parameter what you mentioned.
    Thank you for your reply.
    Sadasiva.
    Edited by: Sadasiva Rao Athota on Dec 9, 2008 2:38 PM

  • How to use Bapi BAPI_ACC_DOCUMENT_POST for g/l account document posting

    Hi all,
    I am using BAPI_ACC_DOCUMENT_POST bapi for g/l account documents posting.as I am first time using BAPI in my program.can anyone give details about how to use this BAPI for document postings.what importing parameters need to be passed , which exporting parameters need to be passed and which tables need to be used.  
    Thanks in advance.
    Regards,
    Harshada

    Moderator message - Please search before asking - post locked
    Rob

  • Error in accounting document-urgent

    hi
    gurus
    iam working on ECC 6.0
    i have createe sales order , delivery and billing without taking tax conditions
    in this case accounting document is generated
    but when iam taking tax  conditions in my sale order and do the delivery and billing
    at the time of billing(in vfo1) , No accounting docuemnt is generated
    system show "error in accounting documents"
    pleae help
    thank in advance

    To resolve the error, you can analyze account determination in the billing document. Process:
    Goto T.Code: VF02 & Enter Invoice number
    Next (On the top most strip) goto Environment
    Next (Select Environment) go to Account determination
    Next (In Account Determination) select Revenue Account Determination (first option)
    This will list all the condition types in the Billing document & analyze each condition & check for which G/L accounts is not determined.
    Possible errors:
    1. VKOA not maintained for required combination
    Solution: Maintain the combination in VKOA.
    2. Account Assignment of Customer / material not maintained in Customer / Material Master (If maintained in combination in VKOA).
    Solution:
    Option 1 (Standard solution):
    step 1: Cancel Billing Document --> Reverse PGI --> cancel Delivery --> Cancel Sales Order
    step 2: Maintain Customer master / Material Master correctly.
    step 3: Recreate sales Order --> Delivery --> PGI --> Invoicing.
    Option 2:
    Force the Account Assignment Group of Customer / Material through Debug in change mode of Billing document, which will release Billing Document to Accounting.
    3. Account Key not maintained in Pricing Procedure:
    Impact: This may create accounting document, but if condition type, which are to be posted to account, but do not have account key maintained in pricing procedure, it will not be post the relevant condition type to G/L account.
    From FI Side, you require to check that all the G/L account has been maintained through T.Code: FS00. G/L account being Master data has to be created in each client ot uploaded through LSMW / SCATT / BDC.
    In Billing Document in change mode (in the first screen where we enter Billing Document number), on the top most left hand corner, take a dropdown on Billing Document & select Release to accounting. Here you can get the under mentioned possible message:
    1. G/L account not found
    2. Cost Element not maintained for G/L account.
    In both the above cases, FI consultant requires to take corrective action.
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • BAPI for Accounting Document Posting

    What is the name of BAPI for Accounting Document Posting and how can I run it?

    Hi ,
    Can you send me the code how to use the BAPI_ACC_DOCUMENT_POST.
    Regards,
    L Srikanthan.

  • Is it possible to reverse a planning document posted using KP98?

    Is it possible to reverse a planning document posted using KP98?
    The planning data in plan 0 has been overwritten with actuals for P1-12 in error does anyone know how to reverse this posting?
    Thanks for any help!

    hi,
    I have tried this and worked with my system.
    Try to execute KP98 transaction with reference actual period which has no posting(future period-01/2011) and in "reser/overwite" mode.
    Initially try with single cost center/cost element value.
    This will fix your issue.
    regards,
    ashok
    Edited by: AshokFICO on Feb 5, 2010 12:48 PM
    there is no direct t-code to reverse posted plan data exclusively for cost centers.SAP has this function to delete all plan data in integrated module so go with above response.

  • Accounting Document Post with Ledger Group

    Hi,
    I am trying you post accounting document using 'BAPI_ACC_DOCUMENT_POST', But my requirement is to post the acc documents with 'Ledger Group', I couldn't find any parameter in the  above mentioned BAPI. If anyone come accross same requirement please share your knowledge and suggest me how to proceed with this.
    Before posting this thread I searched for the threads with same category, but i couldn't find sufficient information.
    Regards,
    Narayan

    Hi Navitha,
    I am doing migration as It's a one time activity, If I implement BADI  it will be triggered whenever accounting document posting happens, Is there any other way to pass Ledger group like other BAPI / FM etc ?
    Regards,
    Narayan
    Edited by: narayanasamy rajagopal on Sep 30, 2009 11:08 AM

  • Text in accounting document posted against Excise invoice

    Hi,
       We have a requirement that the accounting document posted against excise invoice ( J1IEX) should display a text ( Vendor name and PO No.).
      We have tried entering the text at the time of capture and posting the excise invoice.But this does not reflect in the accounting document text field.
    However we can maintain the same afterwards from transaction FAGLL03.
    Is there any option that we can maintain the same at the time of capturing and posting the excise invoice.
    Also,if I think of defaulting the same ( Vendor name and Po no) is ther any user exit OR BAPI.
    Rajesh

    hi
    yes is their in this go to spro->img->Logistics - General->Tax on Goods Movements->India->Basic Settings->Maintain Excise Groups
    in this for your excise group in *migo settings please put the tick mark in post ei in migo the at the time of migo only the excise invoice will be posted. no need of doing the ji1ex here.
    Thanking you

  • Account determination error in Invoice document posting

    Problem - When generating the invoice document to customer, an error is displayed - Document is saved (Account determination error). As a consequence of this step, the invoicing is not able to create FI document
    My Analysis-
    Account determination is done in G/L account assignment (VKOA screen)
    For my billing document, the system is not able to find the GL account (below are screenshots)
    In VKOA screen, I already defined the GL account determination using KOFI procedure.
    I initially defined in table 2 Cust.Grp/Account Key and it didnt work.
    So I defined in both the tables 1 as well - Cust.Grp/MaterialGrp/AcctKey
    But still system is not reading the tables and obtaining the GL account no
    Any advice on why its not working?

    Hi Nikhil,
    As per the screen shots i could observe that you didn't maintained acct asst grp of customer.
    check the acct asst grp of customer field in billing tab is maintained or not.
    other possible reason may be in your pricing procedure -check whether the accounting keys are maintained or not.
    This could solve your issue.

  • Error in material document posting

    I am getting an error while posting goods receipt.
    Number range for trans. / event type WA in year 2007
    does not exist.
    I have defined the number ranges for accounting
    documents, for material and physical inventory
    documents and for reservations in inventory management
    and physical inventory documents. The group WA is
    attached to the group material documents for goods
    movement types and inventory differences.
    I have also used transaction OBH2 to copy the number
    ranges to the fiscal year 2007.
    Why am I still getting this error? Are there some
    settings I have not made?
    Please help me.
    Thanks,
    Ranganath Charyulu

    Hello Ranganath,
    Go to t-code OMBT
    - Click on Change Groups (F5)
    - select the check box wich includes WA (the Number Range Object Material document Grouping)
    - Click on Change (Pen)
    - Go to Edit -> Insert year
    - Give 2007 and give the new number ranges.
    Hope this will help.
    Regards
    Arif Mansuri

  • Error in Account Document - company code

    Dear Experts,
    While i am creating Enter GL account document for Company code XXXX (T Code - FB50), i am getting the belOW  error...
    DOCUMENT DOES NOT CONTAIN ANY VALID  LINE ITEMS
    For the same i have maintained GL accounts,
    can anybody let us know what exactly i missed.
    Thanks
    Raju

    Hi Raju,
    In FB50 you have to select the Debit and Credit line items options manually, it will not popup automatically. in Header level the debit and credit cell values total shold be the same then only the document will save.
    you can also use F-02 to post any journal entry
    Vara

  • Account document parking in BDC with multiple records

    Hi,
    I am writing one BDC program to park document( not posting the document) using transaction u2018FBV1u2019.In the file, we can have multiple item for posting key 40 and single item for posting key 50 and vice-versa. We can have multiple item both for posting key 40 and 50. But the summation of all amount of all record for posting key 40 and 50 should be u20180u2019( for debit and credit).All these multiple records is actually creating one account document.
    I have created the recording and written the BDC program, but I hope I am missing the grouping of records for posting key 40 and 50 for single document number. Can pls guide me for the same. If anyone has encountered such problem, can you pls guide me for the same. If you haave the code for BDC, please send me the same.
    Edited by: amrita banerjee on Jun 20, 2008 12:53 AM

    Hi amrita,
    I do not understand what do you mean by grouping of records. Can you please explain.
    Still for parking documents, the recommended solution will be to use the standard batch input program RFBIBL00.
    Here is the sample psedo-code
    *bgr00
      wa_bgr00-stype   = 0.
      CONCATENATE  'FBV1' sy-uzeit+0(2) '_' sy-uzeit+4(2)
                  INTO wa_bgr00-group.
      wa_bgr00-mandt   = sy-mandt.
      wa_bgr00-usnam   = sy-uname.
      wa_bgr00-start   = sy-datum.
      wa_bgr00-xkeep   = space.
      wa_bgr00-nodata  = '/'.
      MOVE wa_bgr00 TO wa_file.
      APPEND wa_file TO it_file.
      v_empty_indicator = wa_bgr00-nodata .
    *bbkpf
      PERFORM build_data CHANGING wa_bbkpf.
      wa_bbkpf-stype = 1.
      wa_bbkpf-tcode = 'FBV1'.
      wa_bbkpf-bldat = wa_docheader-doc_date.
      wa_bbkpf-blart = wa_docheader-doc_type.
      wa_bbkpf-bukrs = wa_docheader-comp_code.
      wa_bbkpf-budat = wa_docheader-pstng_date.
      wa_bbkpf-monat = wa_docheader-fis_period.
      wa_bbkpf-waers = 'USD'.
      wa_bbkpf-xblnr = wa_docheader-ref_doc_no.
      wa_bbkpf-bktxt = wa_docheader-header_txt.
      MOVE wa_bbkpf TO wa_file.
      APPEND wa_file TO it_file.
    *bbseg
      LOOP AT it_accntgl INTO wa_accntgl.
        CLEAR wa_bbseg.
        PERFORM build_data CHANGING wa_bbseg.
        READ TABLE it_curramount INTO wa_curramount INDEX wa_accntgl-itemno_acc.
        wa_bbseg-stype = '2'.
        wa_bbseg-tbnam = 'BBSEG'.
        wa_bbseg-zuonr = wa_accntgl-alloc_nmbr.
        wa_bbseg-newbk = wa_accntgl-comp_code.
        wa_bbseg-wrbtr = wa_curramount-amt_doccur.
        wa_bbseg-kostl = wa_accntgl-costcenter.
        wa_bbseg-aufnr = wa_accntgl-orderid.
        wa_bbseg-hkont = wa_accntgl-gl_account.
        wa_bbseg-prctr = wa_accntgl-profit_ctr..
        wa_bbseg-projk = wa_accntgl-wbs_element.
        IF wa_curramount-amt_doccur LT 0.
          wa_bbseg-newbs  = '40'.
        ELSE.
          wa_bbseg-newbs  = '50'.
        ENDIF.
        MOVE wa_bbseg TO wa_file.
        APPEND wa_file TO it_file.
      ENDLOOP.
      DATA: l_filepath TYPE eseftappl.
      CONCATENATE '/tmp/FBV1_load' sy-uzeit '.txt' INTO l_filepath.
    *write app file for rfbibl00
      PERFORM write_data_appl USING it_file l_filepath.
    *Submit the data to post the document
      SUBMIT rfbibl00 WITH ds_name   = l_filepath
                      WITH fl_check  = ' '
                      WITH callmode  = 'C'
                      WITH xinf      = 'X'
                      AND RETURN.
    form build_data  changing pv_header  TYPE any.
    DATA:
        v_field(3)   TYPE n.
      FIELD-SYMBOLS <fs_field_value> TYPE ANY.
      v_field = 1.
      DO.
        ASSIGN COMPONENT v_field  OF STRUCTURE pv_header TO <fs_field_value>.
        IF sy-subrc = 0.
    *     if the field is empty then fill it with nodata indicatort
          IF <fs_field_value> IS INITIAL.
            <fs_field_value> = v_empty_indicator.
          ENDIF.
          v_field = v_field + 1.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    endform.                    " build_data
    form write_data_appl   USING    pv_file      TYPE ty_t_filedata
                                    pv_file_path TYPE eseftappl.
      DATA:
           wa_file   TYPE ty_filedata,
           wa_return TYPE bapiret2,
           v_msg  TYPE string.
    *Open the application server file
    *and write the data
      OPEN DATASET pv_file_path FOR OUTPUT
                   IN TEXT MODE ENCODING NON-UNICODE
                   MESSAGE v_msg.
      IF sy-subrc = 0.
    *   write the file to the application server
        LOOP AT pv_file INTO wa_file.
          TRANSFER wa_file TO pv_file_path.
        ENDLOOP.
        CLOSE DATASET pv_file_path.
      ELSE.
        message e000(00) with v_msg.
      ENDIF.
    endform.                    " write_data_appl
    Thanks
    Romit

  • How to add line items to Accounting Document posted through MIRO ?

    I need to perform Additional posting when Posting through MIRO transaction..i tried with INVOICE_UPDATE BADI but this was not useful...Please let me know if there is any way to add additional posting to Accounting Document created through MIRO.
    If any user exit , BADI ot BTE present?

    Hi,
    Check the BTE's:
    00001020     POST DOCUMENT:       Prior to final checks             SAMPLE_INTERFACE_00001020
    00001025     POST DOCUMENT:       Final checks completed       SAMPLE_INTERFACE_00001025
    00001030     POST DOCUMENT:       Posting of standard data     SAMPLE_INTERFACE_00001030
    00001050     POST DOCUMENT:       Accounting interface           SAMPLE_INTERFACE_00001050
    Thanks & Regards,
    Harish

  • Down Payment FAZ Document Posting using AZWR

    For configuration of Downpayment for Milestone Billing. We have made
    use of Condition Type 'AZWR'. This works fine as long as it is above
    the VAT (TAX) Condition Type in the Pricing Procedure. The invoicing
    Process in SAP involves Milestone billing with - 10% Advance Amount
    (Downpayment) and rest Pro-Rata (%age wise) billing.
    In case of Invoicing against a Material, VAT Condition Type is picked
    up and AZWR has been configured just above the VAT (TAX) condition type
    in the pricing procedure. This works fine when we create FAZ request
    through Milestone Billing and the subsequent request in then posted
    through F-29.
    But with Billing against a Service there are three tax condition types
    viz. for SERVICE TAX, for EDU.CESS and for HIGHER EDU.CESS. In this
    case too we have configured AZWR just above the three tax condition
    types. Now, while creating a FAZ downpayment request. The system picks
    up the Tax Amount only for the last tax condition type i.e. (HIGHER
    EDU.CESS) in this case. Thus, for example if for the contract value of
    Rs.1000. We have 10% as advance, thus, we have - 90.66 as net value and
    Rs.9.34 (9.07 as ST + 0.18 as Edu Cess + 0.09 Higher EDU.Cess)as Tax
    in the FAZ Request.
    The accounting document generated upon saving shows only 90.66 as Net
    Value + 0.09 as Tax with the relevant tax code for Higher Edu. Cess
    Condition. The rest of the tax conditions are not picked up. Because of
    this, during F-29 posting only 1 line item of Tax Amount Rs.0.09 is
    picked up with the relevant tax-code, and rest of the taxes are not. We
    need all the tax conditions to be posted during FAZ so that the due
    ADVANCE AMOUNT IS POSTED.

    hi Imran
    1. Did AZWR is remain statistical or required some GL.?
    now this condition type is just for a request for a down payment so there is no reqd for a GL...coz i am doing the same thing here...but as
    if now i still face issues on this also and in the billing FAZ type you could see tat the condition base value is shown as the down payment
    like as the item billing plan tab page for the down payments...like for eg 10% of the net value ...
    2. I take the down payment with FAZ type and post the incoming payment, than how can I post the actual billing (F2)??
          well in this is true i do also have the same issue ...f-39 take the downpayments in but does not reflect . but to that i waud also like to
    add this if you go to the sales order billing plan tab page of the item and there you got to choose the final invice, just like the downpayments is shown ...then the billing amount will come ...just try it and in the VF01 it will appear as billing FAZ with the downpayment
    amount and the F2 also ....but the F2 is delivery related so i think you got to do PGI after the downpayments process then do f2...
    if you get more info on that please explian
    3. There is no update after the down payment agains the condition type AZWR, did it will manually entered, or what is the bahavior of this.
           sorry i hav no info on this
    5. Should I create a different pricing procedure with AZWR or what ????
    not reqd. coz in the existing pricing procedure you need to have a subtotal after that AZWR
    IT WUD BE REALLY KIND OF YOU TO SHARE ANY NEW UPDATES PLEASE
    REGARDS

Maybe you are looking for

  • PC Suite/no device recognition

    I have downloaded the latest version of PC Suite 6.85 and installed on my PC (windows XP home edition service pack 2) My phone is a Nokia 6233. I follow the procedure and connect to the PC with the USB cable supplied. After a while I get the message

  • Error MBR1213 again, webmail locked out

    Yet again, attempting to collect email is producing the error message AUTH MBR1213. This appears to be produced by Yahoo rather than BT, but information appears to be non-existant. Usually, I can still get my email by going to the webmail page, but t

  • Profit Centre - Transfer Price

    \We are doing the settings for Profit Centre transfer pricing using PCA settings.  Here I see that 3 types of accounts have to be given for account determination: 1. Internal Stock Changes a/c 2. Internal Revenue a/c 3. Internal Transfer a/c I am con

  • Running OS command using DBMS_PIPE

    Hi, I have reproduce the exemple in the documentation DBMS_PIPE - Example 3: Execute System Commands using the proc daemon.pc. It works, the commands are getting executed, but I have no control over them. What I need is for the calling PL/SQL functio

  • Just bought a laptop, screen is messed up

    I just bought an Asus laptop a little over a week ago, and the screen is suddenly messing up. It was fine, I fell asleep, I woke up, and now there is this weird shadowing at the top and the screen is flickering. Should I just exchange it? Is it somet