Bapi for FB60 - Park an invoice

Hi gurus,
Im trying to park an invoice in transaction FB60. i allready tried an batch inout but it's giving me an error, that i can't park an invoice using a batch input in transaction FB60... Don't know why, if someone can explain me why i cant park using an batch input i'll be appreciated..
Anyway , is it any bapi that i can use to park an invoice to transaction FB60??
Thanks in advance,
Best Regards

I worked with the FV60 transaction and able to park the invoice successfully by batch input method. I am pasting the sample code. Try with the below code::
Populating the Header Details
  PERFORM bdc_dynpro   USING 'SAPMF05A'  '1100'.
  PERFORM bdc_field  USING 'BDC_OKCODE'  '/ECCDE'.
  PERFORM bdc_field   USING 'INVFO-ACCNT'  pv_vendor.
  MOVE pv_invoice_date TO lw_date.
  WRITE lw_date TO lw_fdate.
  PERFORM bdc_field  USING 'INVFO-BLDAT'  lw_fdate.
  PERFORM bdc_field  USING 'INVFO-XBLNR'  vendor_invoice.
  IF pr_posting_date IS INITIAL.
    MOVE sy-datum TO pr_posting_date.
  ENDIF.                           
  CLEAR: lw_date, lw_fdate.
  MOVE pr_posting_date TO lw_date.
  WRITE lw_date TO lw_fdate.
  PERFORM bdc_field USING 'INVFO-BUDAT'  lw_fdate.
  PERFORM bdc_field USING 'INVFO-SGTXT'   pv_text.
  PERFORM bdc_dynpro  USING 'SAPLACHD'  '1000'.
  PERFORM bdc_field  USING 'BDC_OKCODE'  '=ENTR'.
  PERFORM bdc_field  USING 'BKPF-BUKRS'  pv_bukrs.
Populating the Item Details
  LOOP AT pr_item_details INTO fs_item_details.
    IF sy-tabix NE 1.
      PERFORM bdc_dynpro USING 'SAPMF05A' '1100'.
      PERFORM bdc_field  USING 'BDC_OKCODE'  '=0005'.
      PERFORM bdc_field  USING 'ACGL_ITEM-MARKSP(01)'  'X'.
    ENDIF.                             " If sy-tabix...
    PERFORM bdc_dynpro   USING 'SAPMF05A'   '1100'.
    PERFORM bdc_field  USING 'BDC_OKCODE'  '/00'.
    PERFORM bdc_field  USING 'ACGL_ITEM-HKONT(01)'
                                          fs_item_details-expense.
    PERFORM bdc_field  USING 'ACGL_ITEM-WRBTR(01)'   lw_amount.
      PERFORM bdc_field  USING 'ACGL_ITEM-MWSKZ(01)'   pv_tax.
    PERFORM bdc_field    USING 'ACGL_ITEM-KOSTL(01)'   pv_costcenter.
    PERFORM bdc_field    USING 'ACGL_ITEM-SGTXT(01)'
                                          fs_item_details-item_text.
    lw_totamount = lw_totamount + lw_amount.
  ENDLOOP.                          
  lw_totamount = lw_totamount + lw_taxamount.
  PERFORM bdc_dynpro USING 'SAPMF05A'  '1100'.
  PERFORM bdc_field  USING 'BDC_OKCODE'  '=PBBP'.
  PERFORM bdc_field  USING 'INVFO-WRBTR'         lw_totamount.
  PERFORM bdc_field USING 'INVFO-WMWST'         lw_taxamount.
  CALL TRANSACTION 'FV60' USING    t_bdc_data
                          MODE     lw_mode
                          UPDATE   c_update
                          MESSAGES INTO t_bdcmsgcoll.
**ignore the variable used
Regards,
Kiran Bobbala

Similar Messages

  • BAPI for  FB60 park vendor invoice

    Hi SAP Gurus,
    Please let me know what is the BAPI for Park Vendor invoice in FB60.
    Thanks in advance
    Vinod
    Edited by: Vinod Malagi on Dec 9, 2008 7:21 AM
    Message was edited by: Jürgen L.

    Hi Preethi,
    I ahev checked this BApi this is for With PO and i need for without refernce to PO.
    only Vendor number, GL account numbers, amount, date and other details.
    Please suggest.
    Thanks in advance
    Vinod

  • Bapi for vendor non po invoice parking

    Hello,
    We have a requirement to Create a Non PO Invoice and also parking invoice.
    I could able to create Vendor Invoice (Non PO) using BAPI: BAPI_ACC_DOCUMENT_POST.
    But i am unable to find a BAPI for Parking the Vendor Invoice (Non PO). When i try to use BDC on FB01 transaction for creating Parking Vendor Invoice, it is throwing an error that "Parking Invoice creation is not allowed in batch input".
    Can anybody help me for creating Parking Invoice (Non PO).
    Note: There is a BAPI: BAPI_INCOMINGINVOICE_PARK, which wont support for Non PO Invoice creation. It is PO based.
    Thanks in Advance for your support.
    Thanks & Regards,
    Sreedhar.

    Hi,
    Please see the given link, hope It will help you.
    Re: BAPI to Park the Invoice Document
    Regards,
    Shamma

  • BAPI for Vendor Non-PO Invoice processed through MIR7 Transaction

    Hi All,
    I have a requirement where i will get data from flat file. Using this data Vendor Non-PO Invoice
    will be processed through MIR7 transaction with Multiple line items - Invoice Upload Parking the document for vendor non-po invoices.
    The data is in below format in flat file:
    Header fields in 1st line
    Dr. Key related fields in 2nd line
    Cr. Key related fields in 3rd line
    Header fields in 4th line
    Dr. Key related fields in 5th line
    Cr. Key related fields in 6th line
    etc .... in flat file
    In these main fields coming in from flat file are: comp.code, doc.type, vendor no,
    Debit/Credit indicatorSHKZG, G/L a/c no, inv/post dates etc..
    My issues:
    1. I am planning to use F.M BAPI_INCOMINGINVOICE_PARK is it the correct F.M!
    But Here PO number seems to be mandatory for this F.M but it is not available as per our flat file,
    if so can anybody suggest a BAPI for Vendor Non-PO Invoice parking for MIR7 transaction!
    2. What are the parameters need to be used for from above flat file data especially for 2 line itemshttp://Dr./Cr. data other than header data. So as per Header & 2 Line items http://Dr. & Cr. Data which parameters will be updated with which data in above flat file! can anybody clarify!
    3. Also in flat file WorkflowNo is available in which parameter this fields will need to be filled & also by doing this will it trigger workflow automatically!
    Can anybody clarify about above points!
    Thanks in advance.
    Thanks,
    Deep.

    Hello Deep,
    I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
    data: headerdata like bapi_incinv_create_header value is initial,
            table_item type table of bapi_incinv_create_item,
            gl_account like bapi_incinv_create_gl_account,
            table_gl type table of bapi_incinv_create_gl_account.
    * fill headerdata and table_gl, leaving table_item empty
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
        EXPORTING
          HEADERDATA                = HEADERDATA
    *   ADDRESSDATA               =
        IMPORTING
          INVOICEDOCNUMBER          = lv_docnr
          FISCALYEAR                = lv_year
        TABLES
          ITEMDATA                  = table_item
    *      ACCOUNTINGDATA            = table_acc
          GLACCOUNTDATA             = table_gl
    *   MATERIALDATA              =
    *      TAXDATA                   = table_tax
    *   WITHTAXDATA               =
    *   VENDORITEMSPLITDATA       =
          RETURN                    = lt_return.
    This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty.

  • Reg : BAPI For FB60

    Hi All,
    Can Any one Tell me which bapi should i use for fb60 transaction i have tried BAPI_INCOMINGINVOICE_PARK but it is asking PO as mandatory field but i don't have po for this scenario.
    i have tried BAPI_ACC_DOCUMENT_POST but its not having a export parameter to give the invoice number.
    So can anyone suggest me which bapi i have to go without referring the po.
    Regards,
    Karthik.

    Hi Sudharshan,
    Thanks For your quick response could you provide any sample program for this type of scenario so that it is easy to understand .I have tried BAPI_ACC_DOCUMENT_POST but in the ACCOUNTTAX  tables its asking me to fill the posting date but its not there ,so can you provide any sample program.

  • FM or BAPI for changing parked documents information of transaction FB02

    Hi Guys!
    Currently I'm working an upload report that will change the field XREF3 of FB02 (parked). I'm using BDC for the change but unfortunately, some invoice no. did not work out to my expectation because of a POP window (information). I'm just wondering if you guys have an idea how to deal with this kind of scenario. Using FM or BAPI can do it. Do you guys know any BAPI or FM for FB02 (parked doc) that will change the details XREF3. Thanks a lot. Hoping for your help!
    Regards,
    Mark

    Hi,
    Hi this might change from one client to another.. so better check if it suit to ur screens.
    [call transaction fb02;
    Regards,
    Surinder

  • BAPI for J1IJ depot excise invoice required

    Hi All,
    Please let me know the BAPI to create depot excise invoice with J1IJ from a delivery.This require to automate the process.
    Please let me know the parameters also.
    Thanks'
    Mukul Kumar

    Hi Mukul,
    CIN does not support any BAPIs for goods receipts and excise updates.
    However, CIN uses MB_MIGO_BADI definition and CIN_PLUG_IN_TO_MIGO implementation. You can create multiple implementations of this BAdI. You can use the same BAdI for single step capture and post of excise invoice in MIGO.
    Regards,
    Rajasree..

  • "Change" BAPI for FB60

    Is there a BAPI for changing/updating documents that were created by FB60?

    BAPI_INCOMINGINVOICE*,  package MRM, object IncomingInvoice,  are linked to transacton MIRO; not FB60 which is "pure" FI and not MM.
    Look for FI BAPI via objects like AcctngInvoiceReceipt, package ACID, with BAPI BAPI_ACC_PYMNTBLK_UPDATE_POST or BAPI_ACC_INVOICE_REV_POST and BAPI_ACC_INVOICE_RECEIPT_POST.
    Regards

  • BAPI for FB60

    Hi all,
    I need to park a document using FB60 tansaction. I need to use BAPI to do the job. Which BAPI can i use to park the document?
    When the document is park, how do i know the status? Which database table stored the information that is pass via BAPI?
    Please Advice. Thanks
    Regards,
    Rayden

    Use BAPI_INCOMINGINVOICE_PARK
    Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
    Also tables ITEMDATA and RETURN are mandatory.
    Check the following sample code
    LOOP AT i_ekbe INTO wa_ekbe.
    CLEAR: wa_invoice_header,
    i_invoice_item,
    i_return,
    v_inv_doc_no,
    v_fisc_year,
    wa_return.
    REFRESH: i_invoice_item,
    i_return.
    Appending Invoice header Work Area
    wa_invoice_header-invoice_ind = c_x.
    wa_invoice_header-doc_date = sy-datum.
    wa_invoice_header-pstng_date = wa_ekbe-budat.
    wa_invoice_header-comp_code = c_100.
    wa_invoice_header-gross_amount =
    wa_invoice_header-currency = c_usd.
    wa_invoice_header-calc_tax_ind = c_x.
    Appending Invoice item data
    i_invoice_item-invoice_doc_item = '0001'.
    i_invoice_item-po_number = wa_ekbe-ebeln.
    i_invoice_item-po_item = wa_ekbe-ebelp.
    i_invoice_item-tax_code = ' '.
    i_invoice_item-item_amount = '20.00'.
    i_invoice_item-quantity = '10.000'.
    i_invoice_item-ref_doc = '5600000634'.
    i_invoice_item-ref_doc_year = '2006'.
    i_invoice_item-ref_doc_it = '10'.
    i_invoice_item-po_unit = 'EA'.
    i_invoice_item-COND_TYPE = 'VPRS'.
    APPEND i_invoice_item.
    Calling module BAPI_INCOMINGINVOICE_PARK
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
    EXPORTING
    headerdata = wa_invoice_header
    ADDRESSDATA =
    IMPORTING
    invoicedocnumber = v_inv_doc_no
    fiscalyear = v_fisc_year
    TABLES
    itemdata = i_invoice_item
    NFMETALLITMS =
    ACCOUNTINGDATA =
    GLACCOUNTDATA = i_gla
    MATERIALDATA = i_mat
    TAXDATA =
    WITHTAXDATA =
    VENDORITEMSPLITDATA =
    return = i_return.
    READ TABLE i_return INTO wa_return
    WITH KEY type = c_e.
    IF sy-subrc EQ 0.
    ENDIF.
    ENDLOOP.
    Hope this helps
    Vinodh Balakrishnan

  • BAPI for FB60 Posting

    Hi,
    I would like to do the Invoice posting by modifying the tax base amount and tax amount(as against system computing on its own) through FB60 transaction code. Is there any suitable bapi I can use to achieve this scenario. I am not sure whether we can use the  BAPI_ACC_DOCUMENT_POST to solve this.Please suggest.
    Thanks,
    Ram

    Hi,
    Yes. You can use the BAPI BAPI_ACC_DOCUMENT_POST to post the vendor Invoices. Use the below tables parameter structures of BAPI.
    ACCOUNTGL                    LIKE    BAPIACGL09    G/L account item
    ACCOUNTRECEIVABLE    LIKE    BAPIACAR09    Customer Item
    ACCOUNTPAYABLE          LIKE    BAPIACAP09    Vendor Item
    ACCOUNTTAX                   LIKE    BAPIACTX09    Tax item
    CURRENCYAMOUNT        LIKE     BAPIACCR09    Currency Items
    Fill the corresponding structures for line items and call this BAPI.
    Regards
    Gangadhar

  • BAPI for attachment to incoming invoice

    Hello,
    I am creating documents for incoming invoices with an RFC that uses BAPI_INCOMINGINVOICE_CREATE. I also want to attach an external file to the document created. Is it possible to achieve this with a BAPI or an fm?
    Thanks in advance,
    Ali

    Hi,
    I am giving a brief about the flow you should follow.
    PERFORM file_upload USING p_file.  (This is the perform in which you will upload your file with the business object of the document, document key, archiv type, the local path of attachment etc...)
      PERFORM validate_file.   ( This is to validate your entries from the file)
      PERFORM bo_existence_check. (This is to check the the existence check of the business object and document key in the system)
    LOOP AT gt_upload_file INTO gs_upload_file.  (This is looping through the file for each entry i.e. each document)
          PERFORM upload_attachment. ( This is to upload scanned attachment to optical archiv drive)
    Use FM SCMS_AO_FILE_PUT_FE for uploading the file
           PERFORM link_archiv.  (This is to link the uploaded document in archiv drive with the document in SAP system)
    USE FM ARCHIV_CONNECTIONTABLE_INSERT  for linking the document and attachment.
    ENDLOOP.
    Let me know if you find it useful.
    Thanks and Regards,
    Kiran Mohan

  • BAPI for changing parked documents

    Hi ,
    I need to know any BAPI exist for changing the posting date of the parked documents.
    Please let me know if there are any BAPI's
    Thanks

    Hi,
    have a look at bapi 'BAPI_INCOMINGINVOICE_PARK'.
    i´m not sure but i guess it allows to change a parked document.
    Best regards.

  • BAPI for Invoice parking & completion

    Hi Friends,
    I want to make a BAPI for LIV park & complete option.
    I found the following :
    BAPI_INCOMINGINVOICE_PARK for Parking.
    BAPI_INCOMINGINVOICE_POST for Invoice Verification: Post Provisional Invoice
    BAPI_INCOMINGINVOICE_CREATE for Invoice Verification: Post Invoice
    When we chk in MIR7 we can do this manually.
    Is there any BAPI for doing this activity thru MIR7.
    Regards
    Sai Krishna

    Hi,
    We can do this by using thre following BAPI:
    BAPI_INCOMINGINVOICE_CHANGE
    change the INVOICE_DOC_STATUS to B , then we can park & complete the doc.
    Regards
    Sai Krishna

  • BAPIs fpr T-Codes FV70 and FV-75 for creation of Customer Invoices

    Hi all,
    Can any1 tell me Validation BAPIs for T-Codes FV70 and FV75.
    Please bear the following points
    1. The BAPI should NOT create Parked Customer Invoices, they should just validate that the data to create the customer invoice.
    2. The Transaction are used for CUSTOMER invoices NOt Vendor.
    3. I've searched SDN and I got the follwing BAPIs 
                  a. BAPI_INCOMINGINVOICE_PARK
                  b. MRM_INVOICE_PARK
                  c. MRM_PARKED_INVOICE_ACCDATA
    But they are all for Vendor Invoices and CREATE parking invoices, Both the things I do not want.
    If someone knows the name of the BAPI please forward to me at the earliest.
    Cheers
    Abhishek

    Hi Eric,
    Many thanks, I'll check the BAPI out, meanwhile can u also tell me whether there is a BAPI for creating Parking documents, i.e. BAPIs for T-Codes for FV70 and FV75.
    I've tried to find a lot about this, but they say that BAPIs are there for only posting, not parking the Customer Invoices.
    Cheers
    Abhishek

  • BAPI/FM to release Parked Vendor Invoice

    Hi,
    I'm looking for a function module or bapi to release Parked Vendor Invoice (FV60) in background. 
    Regards,
    Steph

    Try  "BAPI_ACC_INVOICE_RECEIPT_POST" or "BAPI_ACC_DOCUMENT_POST"
    Shail

Maybe you are looking for