Bapi for invoice parking

Hi,
Does anyone know any BAPI to park a invoice using purchase order at the level of the services. I know BAPI_INCOMINGINVOICE_PARK, but it supposed to only park the invoice at the level of the purchase order items, not of the level of included services in each purchase order item. And we want to enter information related to the service's items.
Thanks,
Paulo Sousa

Hi Paulo,
the same bapi can be used for services as well:
Here is the example given in the documentation:
"Example: Incoming invoice for a purchase order for external services and servie-based invoice verification
This example shows you which header data you need to enter in table HeaderData, which item data in table ItemData, and which accout assignment data you enter in table AccountingData in order to enter and post an incoming invoice.
You receive an invoice with reference to PO number 4500000191, PO item 10. The invoice is for two services A and B, each with a quantity of six service units. Service A has a gross amount of 580 USD including 16% tax. Service B has 812 USD including 16% tax. 50% of service A was assigned to each of the cost centers 1000 and 2000. 50% of service B was assigned to each of the cost centers 1000 and 3000. The service acceptance is performed jointly for both services with the service entry sheet number 1000000022. The account assignments cannot be changed.
Enter the following data:
Table HeaderData
INVOICE_IND (Post invoice/credit memo): X
DOC_TYPE (Document type): RE
DOC_DATE (Document date): 01.10.2002
PSTNG_DATE (Posting date): 01.10.2002
COMP_CODE (Company code): 0001
CURRENCY (Currency key): USD
GROSS_AMOUNT (Gross amount): 1392.00
CALC_TAX_IND (Calculate tax automatically): X
PMNTTRMS (Terms of payment key): 0001
Table ItemData
First entry for service A:
INVOICE_DOC_ITEM (Item in invoice document): 000001
PO_NUMBER (PO number): 4500000191
PO_ITEM (PO item): 00010
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Item amount): 250.0
QUANTITY (Quantity): 3
PO_UNIT (Unit of measure): SU
SHEET_NO (Entry sheet number): 1000000022
SHEET_ITEM (Line number) : 10
Second entry for service A:
INVOICE_DOC_ITEM (Item in invoice document): 000002
PO_NUMBER (PO number): 4500000191
PO_ITEM (PO item): 00010
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Item amount): 250.00
QUANTITY (Quantity): 3
PO_UNIT (Unit of measure): SU
SHEET_NO (Entry sheet number): 1000000022
SHEET_ITEM (Line number) : 10
First entry for service B:
INVOICE_DOC_ITEM (Item in invoice document): 000003
PO_NUMBER (PO number): 4500000191
PO_ITEM (PO item): 00010
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Item amount): 350.0
QUANTITY (Quantity): 3
PO_UNIT (Unit of measure): SU
SHEET_NO (Entry sheet number): 1000000022
SHEET_ITEM (Line number) : 20
Second entry for service B:
INVOICE_DOC_ITEM (Item in invoice document): 000004
PO_NUMBER (PO number): 4500000191
PO_ITEM (PO item): 00010
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Item amount): 350.00
QUANTITY (Quantity): 3
PO_UNIT (Unit of measure): SU
SHEET_NO (Entry sheet number): 1000000022
SHEET_ITEM (Line number) : 20
Table AccountingData
First account assignment for service A:
INVOICE_DOC_ITEM (Document item in invoice document): 000001
SERIAL_NO (Sequential number of the account assignment): 01
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Amount in document currency): 250.00
QUANTITY (Quantity): 3
PO_UNIT (PO unit of measure): SU
Second account assignment for service A:
INVOICE_DOC_ITEM (Document item in invoice document): 000002
SERIAL_NO (Sequential number of the account assignment): 02
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Amount in document currency): 250.00
QUANTITY (Quantity): 3
PO_UNIT (PO unit of measure): SU
First account assignment for service B:
INVOICE_DOC_ITEM (Document item in invoice document): 000003
SERIAL_NO (Sequential number of the account assignment): 01
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Amount in document currency): 350.00
QUANTITY (Quantity): 3
PO_UNIT (PO unit of measure): SU
Second account assignment for service B:
INVOICE_DOC_ITEM (Document item in invoice document): 000004
SERIAL_NO (Sequential number of the account assignment): 03
TAX_CODE (Tax code): V1
ITEM_AMOUNT (Amount in document currency): 350.00
QUANTITY (Quantity): 3
PO_UNIT (PO unit of measure): SU
Regards,
Ravi

Similar Messages

  • 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

  • MRM_QUANTITY_CHECK for invoices parked as complete

    Hi,
    is it possible to call fm MRM_QUANTITY_CHECK for invoices parked as complete (RBKP-RBSTAT = 'B' and sy-ucomm = 'COMP')?
    is it possible to have routine MENGE_PRUEFEN(SAPLMR1M) for invoices parked as complete?
    These checks get triggered when posting the invoice.
    i´d need to have these checks for invoices when they are parked as complete.
    Best regards
    Edited by: Pablo Casamayor on Apr 21, 2010 8:57 AM

    Hi,
    The purpose of using either the fm call or the subroutine is to avoid saving as complete an invoice if it hasn´t got goods receipts enough.
    The standard triggers those checks when the invoices are posted but i´d need them when the invoices are saved as complete.
    Best regards.
    Edited by: Pablo Casamayor on Apr 26, 2010 8:30 AM

  • Std Work flow for Invoice Parking & posting

    I am working om std SAP workflow for invoice document parking :
    I have done the following activities :
    1. Activate Work flow Template for Document Completion
    Here i activated the event "Complete the Parked Log. IV Document"--> Incoming Invoice Document Parked. It is showing a green traffic light .
    In agent assignment
    Complete the Parked Log. IV Document>Complete the Parked Log. IV Document>Complete the Parked Invoice--> i have assigned the user MMCONFIG
    2. In Define Release Criteria i have the following settings :
    1000 H Credit 0.01 INR US MMCONFIG
    1000 S Debit 0.01 INR US MMCONFIG
    3. In Activate Workflow Template for Release for Posting
    Here i activated the event Incoming Invoice Complete: ReleaseRel & i m getting a green traffic light .
    In assign agents i did the following
    Release the Completed Log. IV Document>Release the Completed Log. IV Document>Release the Completed Log. IV Document i assigned the user MMCONFIG
    In Invoice Parking: Approve Release i assigned the user MMCONFIG .
    For Invoice Parking: Release Invoice
    Invoice Parking: Posting an Invoice " I AM NOT ABLE TO ASSIGN ANY USER AS THESE ARE BACKGROUND TASKS ".
    Now when do a MIR7 - Park invoice & save the invoice as complete i am getting a mail in the mail box of MMCONFIG saying :
    "Invoice Release 5105xxxxxxx 2009, Completed by MMCONFIG "
    I go & release the same invoice .
    Then i executed MIRO & tried posting the released invoice . The sysem doesnt allow me 2 post the invoice .
    It automatically goes to MIR4 transaction & forces me to save as complete
    if i try to post it the system says "Parked document is release-relevant and cannot be posted"
    Pls tell me how can I post the invoice & IF MY SETTINGS FOR THE WORKFLOW IS OK ???
    Regards
    Anis

    Firstly,  check with the Binding of the event and workflow, if they are fine
    then check if the workflow gets triggered when you are posting... to check this,
    First go to transaction SWU8 - turn on the workflow trace and then
    Proceed with posting the invoice
    go to transaction SWU8 again and then turn off the workflow trace
    go to SWU9 - to check which all workflows got triggered....
    If there is any workitem in your workflow, then go to SWI1 and select the workitem of that workflow and press shift+F8 to check the status of it and also check to which all agents it had sent...
    If possible just give a hardcoded value in the workitem for testing purpose and check if that goes properly, later on implement the rule.....
    If the workflow does not triggere - go to transaction SWETYPV and deactivate and activate the event linkage with that workflow....
    Regards,

  • 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

  • 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  Invoice Credit Memo

    Hi Guys,
    Can you plz help me which BAPI is used  for Invoice credit memo.
    Thanks and regards
    Praveen

    use...
    'BAPI_CRED_MEMO_CREATEFROMDAT2'
    data: con_cr_memo_bus_obj like BAPIUSW01-OBJTYPE value 'BUS2094'.
    CALL FUNCTION 'ZBAPI_CRED_MEMO_CREATEFROMDAT2'
    EXPORTING
    ORDER_HEADER_IN = bapi_hdr
    business_object = con_cr_memo_bus_obj
    convert = 'X'
    IMPORTING
    SALESDOCUMENT = bapi_salesdoc
    TABLES
    return = bapi_ret_tbl
    ORDER_ITEMS_IN = bapi_itm
    ORDER_PARTNERS = bapi_prtnr
    ORDER_ITEMS_inx = bapi_itm_out
    order_schedules_in = bapi_schd_lin
    order_text = bapi_text.
    AND in the cloned ZBAPI above in SE37/80, add this Importing parameter: BUSINESS_OBJECT LIKE BAPIUSW01-OBJTYPE
    Please have a look in older topics:
    MWST taxcondition missing bapi_salesorder_createfromdat2
    sales order with reference to quotation
    Message was edited by: kishan negi

  • Func module/bapi  for invoice creation

    Any function module for invoice creation WITH REFERENCE TO A SALEORDER. ??

    Hi,
    check this FM:GN_INVOICE_CREATE or BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE
    check this link also.
    BAPI for creating sales invoice
    Regards
    Appana

  • Bdc for invoice parking with reference(FB60)

    Hi all,
    I am Developing a <b>RFC</b> within that i have written <b>bdc</b> code for <b>invoice parking with refernce</b> on <b>fb60 tcode</b> as there is no standard function module for this . But i am stuck in one place after parking the document it gives one<b> document number</b> in the message bar which will be further useful for posting  .
    how to catch that document number in the bdc and return it in the export parameter of trhe RFC.
    Maximum points will be allocted for any useful answer..
    thanks in advance

    You can do something like below after your call transaction to get the document number.
    do 10 times.
            wait up to 5 seconds.
            select single * from bkpf
               where belnr = belnr
                 and bukrs = bukrs
                 and gjahr = gjahr.
            subrc = sy-subrc.
            if subrc = 0.
              exit.
            endif.
    enddo.

  • Bapi for invoice create

    hi ,
    i want to create invoice ..the reference number will be delivery...is there any bapi/fm to do this..i tried bapi_billingdocu_createmultiple..but its not working..if there isn't any bapi what isthe other way...its an urgent thing..thank you..
    Thanks,
    Challa

    Check this thread for more details. It gives different aspects of creating Invoice document using BAPI for various scenarios.
    Re: invoice creation through BAPI

  • 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

  • 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

    Hi ,
    I want to Execute transaction MIRO for company code  and purchase order no  and purchase order line item   and amount.
    Is there any BAPI , which I can use for this purpose.
    Be assure for reward.

    Use BAPI_INCOMINGINVOICE_CREATE.
    For the  BAPI below is the structure mapping.
    <b>BAPI Structurename     Field     Value     Value Description</b>
    <b>Headerdata</b>
    DOC_DATE     02/08/2005     
    INVOICE_IND     X     Post Invoice
    PSTNG_DATE     02/08/2005     
    COMP_CODE     5010     Hospira Inc.
    CURRENCY/ CURRENCY_ISO     USD     United States Dollar
    GROSS_AMOUNT     100.0000     
    DOC_TYPE     RE     PO Invoice
    REF_DOC_NO     1     Billing document no
    EXCH_RATE      1.00000     
    CALC_TAX_IND     X     
    HEADER_TXT     header text     
    <b>Item Data</b>
    INVOICE_DOC_ITEM     000001     Invoice Document no
    PO_NUMBER     4500125768     PO No
    PO_ITEM     1     PO  item no
    ITEM_AMOUNT     100.0000     
    QUANTITY      10.000     
    PO_UNIT     EA     Each
    REF_DOC     5000000007     Goods Receipt No
    REF_DOC_YEAR     2005     GR year
    REF_DOC_IT     0001     Goods Receipt item no
    TAX_CODE     I0     AP, not relevant to tax
    ITEM_TEXT     Text

  • BAPI for invoice creation with reference SalesOrder

    hi Mr Anjireddy,
    i am able to create invoice with the bapi BAPI_BILLING_CREATEMULTIPLE, here i'm giving the RefDocNo of the SalesOrder, the invoice is generated but i'm not gettting the NetValue, TaxValue.
    plz give the information for that prob,
    eswar

    Hi Vinod,
    This is just idea.
    Get Purchase Requisition details using
    <b>BAPI_REQUISITION_GETDETAIL</b> and then use <b>BAPI_PO_CREATE1</b>. I think there is no Direct BAPI.
    *******Poorna*********

  • Bapi for invoice lists for a customer

    Can some one tell me the bapi which can be used to view all the invoice lists for a customer for date range.

    Hello
    I am not sure if there is such a BAPI available. However, you could try a two-step-approach:
    (1) Read sales orders of customer using BAPI_SALESORDER_GETLIST
    (2) Feed selected sales orders into REFDOCRANGE of BAPI_BILLINGDOC_GETLIST
    Regards
      Uwe

Maybe you are looking for

  • EXCEPTION_ACCESS_VIOLATION (0xc0000005)

    Hi, i'm getting this error log file but i can't read it to understand the problem, can you please help me? It seems to be generated by a method which i have JUnit tested and works but in the application make the JVM quit. If you need more info about

  • What cable will i need to transfer all my applications from iMac to Macbook?

    Hey, I just bought myself a new Macbook for work and i need to transfer all my applications (e.g. photoshop, word etc.) to my new Macbook. What wire can i purchase to do this? Thanks a lot

  • Kernel Panic when importing Nikon D90 raw to iphoto

    I am using a 2011 MacBook Pro running OSX Lion 8gd ram i have no issues importing Jpeg but all D90 RAW .NEF do you have any ideas

  • Spread the Love! Be our System Center TechNet Guru, this Valentine's

    TechNet loves you! We love your contributions at TechNet Wiki sooo much that we give you more than just love in return... We give you NOTORIETY, GLORY... and VIRTUAL MEDALS! That's not all, this love we have, together, it flows both ways my friend. Y

  • Error in Displaying results

    dear specialists, the .rpd file i am working on is consistent but in the answers when we try to create reports we get an error. it says that no data found in location. we are using xml and flat file sources. we did not build the .rpd file but other d