Problem using BAPI for Final Invoice Tick

Hi,
I am using the BAPI BAPI_PO_CHANGE to set the Final invoice flag in a PO line item. But the call throws up various kinds of errors.
Are there any mandatory parameters that I may have missed out for the updation of this particular field.
Thanks in advance,
Ashish

Hi,
As per my knowledge the following parameters are required.
PURCHASEORDER
POHEADER
POHEADERX
RETURN
POITEM
POITEMX
There is very good function module documentation available for the BAPI.
Open the function module in SE37 and click documentation.
YOu will see example also.
Thanks
Ramakrishna

Similar Messages

  • Final invoice tick on Purchase order

    Hi Friends,
    Production order mentioned in the purhcase order is having TECO status. If I go to me22n & tick final invoice I am able to save the PO without any error.
    We have made custom program  to tick final invoice for mass POs using bapi for PO change but we are getting error message that Procution order against PO is having status TECO.
    If I go to me22n & click on account assignment tab then I am not able to set final invoice tick. So in me22n I am getting diffferent behaviours as it able to save me po & if i click on account assignment it does not allow.
    So what should be ideal  case should it be able to final invoice or not. So that In custom program I can change this error message of Production order TECO to convert to warning message.
    Thanks,
    Kiran

    Hi Kiran,
    I think that there is some user exit getting called in place where you have issues. Ideally the final invoice should never check the order as the order can be in teco during invoicing.
    I suggest you to debug it using your ABAPer as the signs are of some code inconsistency. The results are different when you directly click the final invoice and click after once seeing the account assignment,
    Regards
    Vivek Singh

  • Final Invoice tick in PO

    What is the use and purpose of Final Invoice tick in PO  ?

    During IV posting, this indicator can be set maually at invoice item. Please see note  377304.
    Solution
    In contrast to the delivery completed. indicator, the final invoice
    indicator is not set automatically for purchase order or invoice
    documents: it can only be set manually.
    Create the invoice after entering the invoice amount and the purchasing
    document, setting the final invoice indicator manually in the invoice
    item. In the standard system, an entry is possible at this point.
    Logistics invoice verification:
    Post the invoice and then go to the invoice document display or direct
    to the display screen for the relevant purchase order. The final invoice
    indicator should now be set in both cases.
    Conventional invoice verification:
    The indicator is not adopted in the invoice document when the latter is
    saved. Here it only serves to set the final invoice indicator in the
    purchase order.
    Use:
    The final invoice indicator serves as information for the applications -
    cash management and forecast
        o  Cash budget management
        o  Funds management
        o  IS-PS (Industry Solution - Public Sector)
    If you set the final invoice indicator, purchase order commitments are
    reset. However, the final invoice indicator does not prevent the posting
    of further invoices. Neither does it replace GR/IR account maintenance
    in the event of a variance between the quantity of goods received and
    the invoice quantity. It has no influence on the reorganization of
      purchase orders.
    Kind Regards,
    Suneet

  • BAPI for Vendor invoice Park FV60

    Hi All,
       Do you knwo any BAPI for vendor invoice Park through FV60, I have tried
       BAPI_INCOMINGINVOICE_PARK  - Got struck where It is asking to pass teh PO data in Itme level, where as i have to uplaod only
       GLaccounts data.
      and i tryed for another  BAPI_ACC_DOCUMENT_POST   but is not working its not related to my requiremment it seems...
    Can any one know better about the process to do this.. pleas let me know..?
      Can anybody did the same, if ues please share with me... its very urgent it need it...
    Thanks,

    use bapi: BAPI_INCOMINGINVOICE_PARK

  • BAPI for FI invoice parking

    Hi,
    Is there a BAPI for FI invoice parking?
    Regards,
    Arun Mohan

    Hello Arun,
    U can try with these:
    ACC4                           FI/CO: BAPIs for UPDATE
    BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_RECEIPT_POST  Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
    ACC6                           Accounting: BAPIs for UPDATE II
    BAPI_ACC_INVOICE_REV_CHECK     Accounting: Check Reversal of Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_REV_POST      Accounting: Post Invoice Receipt Reversal (OAG: LOAD PAYABLE)
    MRM_BAPI                       Invoice Verification BAPIs
    BAPI_INCOMINGINVOICE_CANCEL    Invoice Verification: reverse invoice
    BAPI_INCOMINGINVOICE_CREATE    Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_GETDETAIL Invoice Verification: display invoice
    BAPI_INCOMINGINVOICE_GETLIST   Invoice Verification: list invoices
    BAPI_INCOMINGINVOICE_PARK      Invoice Verification: Park Invoice
    BAPI_INCOMINGINVOICE_RELEASE   Invoice Verification: release invoice
    BAPI_INCOMINGINVOICE_SAVE      Invoice Verification: Flag Invoice for Background Processing
    If useful reward.
    Vasanth

  • Interface Using BAPI for Uploading shipment datas

    Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI

    Hi
    Except hiring (or new joinee) for all other actions you can use below Function Module.
    HR_INFOTYPE_OPERATION.
    ~~~Ganesh Kumar K.

  • How to improve the load performance while using Datasources for the Invoice

    HI All,
    How to improve the  load performance while using Datasources for the Invoice . Actually my invoice load (Appx. 0.4 M records) is taking very long time nearly ~16 to 18 hrs  to update data from R/3 to 0ASA_DS01.
    If I load through flat file it will load with in ~20 Min for the same amount of data.
    Please suggest how to improve load performance.
    PS: I have done the Inpo package settings as per the OSS note.
    Regads
    Srininivasarao.Namburi.

    Hi Srinivas,
    Please refer to my blog posting [/people/divyesh.jain/blog/2010/07/20/package-size-in-spend-performance-management-extraction|/people/divyesh.jain/blog/2010/07/20/package-size-in-spend-performance-management-extraction] which gives the details about the package size setting for extractors. I am sure that will be helpful in your case.
    Thanks,
    Divyesh
    Edited by: Divyesh Jain on Jul 20, 2010 8:47 PM

  • Using BAPIs for sales contracts

    Hi,
    I'm having this situation that I have to upload sales contracts into SAP from flat files. We planned to use BAPIs for this purpose. Is it a good option. Can anyone suggest better ideas. If BAPI is a good option, has anyone used standard BAPIs for sales contracts updation in SAP System. If yes, can you guide me through the process.

    Hi,
      You can start off with a program with:
    Get the filename of the convert file
      IMPORT /SAPDMC/LSMEMORY FROM MEMORY ID '/SAPDMC/LSMW'.
      V_PROJECT = /SAPDMC/LSMEMORY-PROJECT. " Project
      V_SUBPROJ = /SAPDMC/LSMEMORY-SUBPROJ. " Subproject
      V_OBJECT  = /SAPDMC/LSMEMORY-OBJECT.  " Object
      IF V_PROJECT IS INITIAL.
        V_PROJECT = 'XXXX_LOC'.
      ENDIF.
      IF V_SUBPROJ IS INITIAL.
        V_SUBPROJ = 'SD'.
      ENDIF.
      IF V_OBJECT IS INITIAL.
        V_OBJECT = 'XXXX_VA41'.
      ENDIF.
    Function will return path of converted file by LSMW object
      CALL FUNCTION '/SAPDMC/LSM_FILE_INFO_GET'
        EXPORTING
          PROJECT           = V_PROJECT  " /sapdmc/lsmemory-project
          SUBPROJ           = V_SUBPROJ  " /sapdmc/lsmemory-subproj
          OBJECT            = V_OBJECT   " /sapdmc/lsmemory-object
          X_ONLY_USED_FILES = 'X'
        IMPORTING
          FILE_CONV         = V_DSNAME   " Path of converted file
        EXCEPTIONS
          NO_SUCH_OBJECT    = 1
          OTHERS            = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    I am not much of an LSMW expert so wont be able to comment much.
    regards
    Aveek

  • BAPI for Vendor Invoice and Credit memo - FB60

    Hi
    Iam using BAPI_ACC_DOCUMENT_POST for creating Vendor invoice and Credit memo ..Could you please tell me which fields to be populated on the below structures?
    what will be the value i should use for BAPIACHE09-BUS_ACT...RFBU or RMRP?
    ACCOUNTPAYABLE ( BAPIACAP09)
    ACCOUNTGL(BAPIACGL09)
    CURRENCYAMOUNT( BAPIACCR09)
    Only the fields which needs to be populated on these structures when we do FB60 invoice and credit memo using bapi..
    Thanks in advance
    Govi

    Hi,
    Populate in Document_header : (User name, Comp code, Doc DAte, Doc type, Ref Doc No)
                       Account GL : ItemNo_Acc, GL Accuont, REf Key1, Refkey2, Refkey3, Account Type = 'A', Doc Type, Comp code
                                              Account_number, Cost_center
                       Account Payable: ItemNo_Acc, Vendor_No, Rey_key1, Ref_key2, Ref_key3
                      Currency Amount: Item No_Acc = 2, 1
                                                    Curr = USD, USD
                       Amt_Doccur 
    At last use commit bapi.
    Thanks,
    Krishna

  • Required BAPI for Vendor Invoice park

    Hi,
    I need to create vendor invoice upload program which support the withholding functionlity also.
    Normally for vendor invoice parking we use FV60 transaction code. is there any standared BAPI which does vendor invoice park.
    please let me know.
    With Regards!
    kannan.ja

    use bapi: BAPI_INCOMINGINVOICE_PARK

  • BAPI for POST INVOICE

    Hi all,
        Which is the BAPI used to Post an Invoice after the delivery has been made.
    Thanks,
    Madhan.

    Hi,
    Please have a look at the BAPIs under Accounting General -> Accounting Interface. The one you're looking for is probably AcctngBilling.Post (BAPI_ACC_BILLING_POST), but that is just a guess.
    Hope that helps (please reward me if it does ,
    Joerg

  • Bapi for final confirmation serviceorder

    I'm looking for a bapi which enables me to give a final confirmation to a serviceorder.
    in the current scenario people are using cats for hourdeclaration on serviceorders. most of the time it is not known after hours are entered if the job is finished or not. when it's know after a few days the engineer has to declare 0,01 hours to make it possible to give final confirmation.
    I 'm searching for a bapi where I can set the final confirmation for the serviceorder
    the other alternative is to use IW41 to set the final confirmation only that can't be fully programmed inside cats with bdc
    if anybody has any alternatives they are also welcome
    kind regards
    arthur de smidt

    when I use the BAPI_ALM_CONF_CREATE
    bapi I can enter the data already available like
    confirmation no order . I also set the indicator for final confirmation but I get the error ARU806 not valid call ??
    solution coding in my case
            SELECT SINGLE * FROM afru INTO gs_afru
                            WHERE aufnr EQ h_raufnr
                            AND vornr EQ wa_sap_catsd-vornr.
    * Indien terugmeldingsnummer aanwezig dan eindterurmelding met nummer doen                       
            IF sy-subrc = 0.
              gs_timetickets-conf_no = gs_afru-rueck.
              gs_timetickets-orderid = gs_afru-aufnr.
              gs_timetickets-operation = gs_afru-vornr.
              gs_timetickets-fin_conf = 'X'.
              APPEND gs_timetickets TO gt_timetickets.
              CALL FUNCTION 'BAPI_ALM_CONF_CREATE'
    * EXPORTING
    *   POST_WRONG_ENTRIES       = '0'
    *   TESTRUN                  =
    * IMPORTING
    *   RETURN                   =
                TABLES
                  timetickets              = gt_timetickets
                  detail_return            = gt_return.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    kind regards
    arthur de smidt
    Edited by: A. de Smidt on Dec 5, 2008 1:28 PM

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • Creating a PO Using BAPI For Multiple PLants Or Multiple Line Items

    Hi All
        Can you please suggest me how to create a Purchase Order Using BAPI_PO_Create1 for Multiple Plants Or for Multiple Line items. The Requirement is like the PO is for single material for single vendor but for mulple stores i.e plants
    NOte:  Suggest me the  Creation of PO for MUltiple Line items or for multiple plants Using BAPI . Hope you people will give me the needful.
    Regards
    Shivakumar Bandari

    Hi,
    Here is the sample code to do that...
    *---> po header data
      wa_poheader-vendor    =  your vendor..
      wa_poheader-doc_type  =  Your doc type..check with Functional contact....
      wa_poheader-purch_org =  Purchasing Org..
      wa_poheader-pur_group =  Purchasing Group
    *---> po header data (change toolbar)
      wa_poheaderx-vendor    =  'X'.
      wa_poheaderx-doc_type  =  'X'.
      wa_poheaderx-purch_org =  'X'.
      wa_poheaderx-pur_group =  'X'.
    *---> poitem data
    data: item like ekpo-ebelp.
    item = '0010'.
    loop at t_parts.
      it_poitem-po_item  =  '00010'.
      IT_POITEM-PLANT    =  Plant..
      IT_POITEM-STGE_LOC =  Sloc...
    *---> poitemx (item data change toolbar)
      it_poitemx-po_item  =  '0010'.
      it_poitemx-po_itemx  =  'X'.
      IT_POITEMX-PLANT    =  'X'.
      IT_POITEMX-STGE_LOC =  'X'.
    *---> add record's to internal table
      APPEND:  it_poitem,
             it_poitemx.
    endloop.
    *call bapi_po_create1
      CLEAR v_ebeln.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = wa_poheader
          poheaderx        = wa_poheaderx
        IMPORTING
          exppurchaseorder = v_ebeln
        TABLES
          return           = it_return
          poitem           = it_poitem
          poitemx          = it_poitemx.
    *---> check the return table for error message
      READ TABLE it_return WITH KEY type = 'E'.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
      endif.
    Thanks,
    Murali

  • Problem using BAPI to create Service Confirmation in CRM

    Good afternoon all.
    I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
    We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
    I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
    Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
    Regards
    Nick

    I am going to pop this thread into General ABAP forum too.
    Nick

Maybe you are looking for

  • Error while trying to import .dmp file in oracle

    Hi, I am trying to import a .dmp file using impdp command. Whenever I try that I get following error logs: Import: Release 10.2.0.1.0 - Production on Wednesday, 27 July, 2011 19:22:18 Copyright (c) 2003, 2005, Oracle. All rights reserved. Connected t

  • Insert or Cut Time and move automation data - how to do it?

    Hi when I cut or insert time it moves the regions but not the automation data. I have tried switching nn 'move automation with regions' but it doesn't move the automation that goes past the end f regions eg plug in settings like delay feedbacks etc.

  • Changing data in Std table

    hi all i need to chabge data for 2 feilds in table eskn.i had done the meintanace genaretor,but in tcode sm30 im not able to see my table eskn.plz help me out

  • Comparision between Multimaster replication and data guard

    Hi, I have some questions regarding Multimaster Replication and Data Guard. Like *1.)* I have a web site having database in oracle 10.2.0 and multimaster replication configured on it. But whenever i need to change the structure of the tables i need t

  • DB link performance.

    HI Experts One of our developers is facing performance issue on one query using dblinks. When we run the query in remote db it is taking 4-5 mins. When we execute the query from his local db using db links it is never ending. Looking at this initiall