Updating AR Invoices

Hi All
I need to update some UDF's on existing invoices.
Do I use the DocNum of the Invoice or the DocEntry number.
I tested with the DocEntry number and got the error message Object not found, tried with the Docnum and that worked.
So not quite sure which is correct.
Thank you
Jerusha

Hi,
If you update only AP invoice ( no base and target document) then use document number in template.
Thanks & Regards,
Nagarajan

Similar Messages

  • Updating REBZG (Invoice Reference) from Legacy system

    Need help with updating REBZG (Invoice Ref.) for credit memos.  We are using the BAPI_ACC_DOCUMENTxx series of function modules to post invoices from our legacy system.  It correctly places a u2018Vu2019 in REBZG.  We would like to replace this with the document number from the original invoice. 
    I can create a table of  all credit memos to be updated, but do not know where to insert code to update this field. (both open & closed invoices)
    Any help would be appreciated.

    i think it is either the user exit or the BTE FM. You can use one of these 2 options to update REBZG. I would prefer to use the BTE then the CMOD user exit.
    Where ever you call the bapi add the REZBG value to extension1. Only when extension1 is populated in the BAPI it will hit the exit or the BTE FM.  Here you can move the extension value to rebzg and set check to N.

  • How to update excise invoice values after migo.

    Hi Guru's,
    I have checked the forum. but did not get exact solution.
    Here im having the problem with  bapi  BAPI_GOODSMVT_CREATE . This bapi don't have the structure to update excise invoice values.
    I have one bapi  'BAPI_EXCINV_CREATE_FROMDATA'  to update the excise duty, but in that also i didn't find the structure
    'J_1IEXITEM'  to update the ECS value ( field is 'total_ecs').
    Please help me on this,Thanks in Advance...
    Regards
    Naren

    Hi Krishna
    Do not do excise invoice capture during 103. At that time select the option "No excise entry". Then capture excise invoice during 105.
    The system messge " No selectable items for this document" is prompted since the preceeding document is already assigned with invoice.
    Try this and give feedback.
    regards
    sairam akundi

  • AP - updating unpaid invoices payment priority

    all:
    Any one have suggested script which to use to update unpaid invoices payment priority code on ap_invoices_all table.
    there is ap_invoices_pkg.update_row api but do not have adequate information on this api to make this script.
    Will appreciate anyone who has done similar or another column update to unpaid invoices using this api to provide guidance.
    thanks

    Hi
    Thanks for the reply.
    We are using Oracle Applications : 12.1.1.
    we dont have approval for direct update,
    and updating through ap_invoices_pkg.Update_Row is not feasible.
    update me with the feasible solution
    Thanks and Ragards
    Dhananjaya

  • MR 11 not updating the invoicing for services

    Hi All,
    I have a scenario where the client uses MR11 for clearing the invoices.
    He does not use MIRO for invoicing.
    During our observation it is found that using MR11 does not update the invoices for services but the invoices for the material received is updated while checking the reports like ME2N.
    I have checked the Service based IV and the GR based IV in the  invoice tab of PO.
    Can you please advice me as to why this is happening only in case of services.
    Thanks and Regards
    Sridhar.

    Hi Charlie,
    Thank you very much for the response.
    Actually I am looking for the IR reduction and not the GR reduction.
    The note you have mentioned applies for GR reduction.
    Also we are in the ECC 6 environment.
    Please update me with further information.
    Regards
    Sridhar

  • Update AR Invoice - Distribution Account - Class Revenue

    Hi,
    I want to update AR Invoice - Distribution Account - Class Revenue. The transaction is completed but not posted into GL. From front-end I can do it easily, but I have 1000 + transactions.
    Is there any API available to update AR Invoices Distribution Accounts?
    Thanks
    Waqas Hassan

    Hi,
    There is no update API available. I have uploaded AR Invoices and all that invoices are complete. But our Financial Consultant send me the request to change to Distribution Account.
    It can be, if I do the invoices to incomplete and then delete it.
    This could be the logic to re-create the invoices.
    Please guide me how could I do it incomplete?
    Thanks

  • To find a user exit which update the Invoice header data

    Hi,
    I need a user exit which will update the invoice header data. For eg I need to update the fields RBKP_V-ESRNR and RBKP_V-ESRRE in table RBKP_V. I was using this user exit EXIT_SAPLMRMP_010 (Program ZXM08U16).But this is not working fine as this has no exporting parameter nor tables of structure RBKP_V.
    I need for transaction MIRO.
    Kindly help ...
    Points will be rewarded
    Thanks in advance

    Hi jayasree,
    with the help of the below given program you can find out the requried user exit by giving the T code (MIRO).
    *& Report Z_USEREXIT_DISPLAY *
    Title : Display UserExits *
    Transport Request No : *
    Modification Log *
    ModNo Date Consultant Description of Change(s) *
    REPORT z_userexit_temp
    NO STANDARD PAGE HEADING
    LINE-SIZE 200
    MESSAGE-ID zz.
    T A B L E D E C L A R A T I O N S *
    TABLES: tftit,
    e071,
    e070.
    S T R U C T U R E D E C L A R A T I O N S *
    TYPES: BEGIN OF x_tstc,
    tcode TYPE tcode,
    pgmna TYPE program_id,
    END OF x_tstc.
    TYPES: BEGIN OF x_tadir,
    obj_name TYPE sobj_name,
    devclass TYPE devclass,
    END OF x_tadir.
    TYPES: BEGIN OF x_slog,
    obj_name TYPE sobj_name,
    END OF x_slog.
    TYPES: BEGIN OF x_final,
    name TYPE smodname,
    member TYPE modmember,
    include(15), "Include name
    END OF x_final.
    I N T E R N A L T A B L E D E C L A R A T I O N S *
    DATA: it_tstc TYPE STANDARD TABLE OF x_tstc WITH HEADER LINE.
    DATA: it_tadir TYPE STANDARD TABLE OF x_tadir WITH HEADER LINE.
    DATA: it_jtab TYPE STANDARD TABLE OF x_slog WITH HEADER LINE.
    DATA: it_final TYPE STANDARD TABLE OF x_final WITH HEADER LINE.
    V A R I A B L E S D E C L A R A T I O N S *
    U S E R I N P U T S S C R E E N *
    S E L E C T I O N S C R E E N *
    SELECTION-SCREEN: BEGIN OF BLOCK blk01 WITH FRAME TITLE text-t01.
    PARAMETERS: p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk01.
    S t a r t o f S e l e c t i o n *
    START-OF-SELECTION.
    PERFORM get_tcodes. "Get Tcodes
    PERFORM get_objects. "Get Objects
    E n d o f S e l e c t i o n *
    END-OF-SELECTION.
    PERFORM display_results. "Display Results
    *& Form get_tcodes
    Get Tcodes
    FORM get_tcodes.
    SELECT tcode
    pgmna
    INTO TABLE it_tstc
    FROM tstc
    WHERE tcode = p_tcode.
    IF sy-subrc = 0.
    SORT it_tstc BY tcode.
    ENDIF.
    ENDFORM. " get_tcodes
    *& Form get_objects
    Get Objects
    FORM get_objects.
    DATA: l_fname LIKE rs38l-name,
    l_group LIKE rs38l-area,
    l_include LIKE rs38l-include,
    l_namespace LIKE rs38l-namespace,
    l_str_area LIKE rs38l-str_area.
    DATA: v_include LIKE rodiobj-iobjnm.
    DATA: e_t_include TYPE STANDARD TABLE OF abapsource WITH HEADER LINE.
    DATA: l_line TYPE string,
    l_tabix LIKE sy-tabix.
    IF NOT it_tstc[] IS INITIAL.
    SELECT obj_name
    devclass
    INTO TABLE it_tadir
    FROM tadir FOR ALL ENTRIES IN it_tstc
    WHERE pgmid = 'R3TR' AND
    object = 'PROG' AND
    obj_name = it_tstc-pgmna.
    IF sy-subrc = 0.
    SORT it_tadir BY obj_name devclass.
    SELECT obj_name
    INTO TABLE it_jtab
    FROM tadir FOR ALL ENTRIES IN it_tadir
    WHERE pgmid = 'R3TR' AND
    object = 'SMOD' AND
    devclass = it_tadir-devclass.
    IF sy-subrc = 0.
    SORT it_jtab BY obj_name.
    ENDIF.
    ENDIF.
    ENDIF.
    *- Get UserExit names
    LOOP AT it_jtab.
    SELECT name
    member
    INTO (it_final-name, it_final-member)
    FROM modsap
    WHERE name = it_jtab-obj_name AND
    typ = 'E'.
    APPEND it_final.
    CLEAR it_final.
    ENDSELECT.
    ENDLOOP.
    *- Process it_final contents.
    LOOP AT it_final.
    l_tabix = sy-tabix.
    CLEAR: l_fname,
    l_group,
    l_include,
    l_namespace,
    l_str_area.
    l_fname = it_final-member.
    CALL FUNCTION 'FUNCTION_EXISTS'
    EXPORTING
    funcname = l_fname
    IMPORTING
    group = l_group
    include = l_include
    namespace = l_namespace
    str_area = l_str_area
    EXCEPTIONS
    function_not_exist = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    IF NOT l_include IS INITIAL.
    *- Get Source code of include.
    CLEAR: v_include, e_t_include, e_t_include[].
    v_include = l_include.
    CALL FUNCTION 'MU_INCLUDE_GET'
    EXPORTING
    i_include = v_include
    TABLES
    e_t_include = e_t_include.
    IF sy-subrc = 0.
    LOOP AT e_t_include.
    IF e_t_include-line CS 'INCLUDE'.
    CLEAR l_line.
    l_line = e_t_include-line.
    CONDENSE l_line NO-GAPS.
    TRANSLATE l_line USING '. '.
    l_line = l_line+7(9).
    it_final-include = l_line.
    MODIFY it_final INDEX l_tabix TRANSPORTING include.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ENDFORM. " get_objects
    *& Form display_results
    Display Results
    FORM display_results.
    FORMAT COLOR COL_HEADING.
    WRITE:/1(150) sy-uline.
    WRITE:/ sy-vline,
    2(23) 'Extension Name',
    24 sy-vline,
    25(39) 'Exit Name',
    64 sy-vline,
    65(74) 'Description',
    140 sy-vline,
    141(9) 'Include',
    150 sy-vline.
    WRITE:/1(150) sy-uline.
    FORMAT RESET.
    SORT it_final BY name member.
    LOOP AT it_final.
    CLEAR tftit.
    SELECT SINGLE stext
    INTO tftit-stext
    FROM tftit
    WHERE spras = 'EN' AND
    funcname = it_final-member.
    WRITE:/ sy-vline,
    it_final-name COLOR COL_KEY, 24 sy-vline,
    25 it_final-member, 64 sy-vline,
    65 tftit-stext, 140 sy-vline,
    141 it_final-include, 150 sy-vline.
    WRITE:/1(150) sy-uline.
    ENDLOOP.
    Regards
    Srinivas

  • Vendor ID, Last Update Date, Invoice Details - Query

    For each Supplier, we would like to know the vendor ID, vendor number, vendor name, vendor site code, Created Date, Last Update Date, last invoice date, last payment date, total number of invoices and total $ amount of invoices for each supplier.
    1) How do i find the last payment date and supplier catagory?
    2) As i have to use sum(invoice_amount), count(invoice_amount), max(payment_date) which point to 3 different tables, i am not sure how to use "group by" based on the Vendor_id alone while i select lot of fields from different table. Could you please help me with this?
    3) Please help me to get this query fixed.

    1) You can get last_payment_date by joining vendor_id to ap_invoices_all and the joining invoice_id with ap_invoice_payments_all to get the max accounting_date (i.e. last payment date)
    2) You are partially right. Invoice_amount and invoice_count are from the same table so you have to join 2 tables. Best way is to do a select in the select.
    e.g SELECT   pv.vendor_name, COUNT (1), SUM (invoice_amount), pv.vendor_id,
             (SELECT MAX (aipa.accounting_date)
                FROM ap_invoice_payments_all aipa, ap_invoices_all aia2
               WHERE aia2.vendor_id = pv.vendor_id
                 AND aia2.invoice_id = aipa.invoice_id) latest_payment
        FROM ap_invoices_all aia, po_vendors pv
       WHERE aia.vendor_id = pv.vendor_id
    GROUP BY pv.vendor_name, pv.vendor_idSandeep Gandhi

  • Purchase Order history is not updated with Invoice number

    Hello Experts ,
    Please suggest some inputs/solution for my problem.
    Scenarios is :
    PO --> SO --> Invoice
    I am creating the invoice with the medium EDI , when I click on Save button IDOC is generated with the message " IDoc 'xxxxxxxxxxxxx' was created and forwarded for transmission " and it showing the status as 03 i.e, The IDoc was sent to an R/3 System or an external program via a transactional RFC ...but the problem is if I got to the Purchase Order history Its not updated with the Invoice number.
    What could be the problem , please suggest.

    Hi!
    I'm not sure, in which process you link PO and SO. There are some different ways, which are totally different scenarios - if you need help here, describe more detailed.
    Your invoice is probably only created with reference to SO, so check the invoice itself. In this case also the SO history should include the invoice.
    Regards,
    Christian

  • Updating AP Invoice Question

    Hi,
    I am trying to write code to update an existing AP Invoice and cannot get it working. Basically the code I am using is:
    Dim itemCode As String
                REM set the item code
                itemCode = "P-0004-SAP001-2" 'Not sure where to get this
                Dim Inv As SAPbobsCOM.Documents
                Dim InvLine As SAPbobsCOM.Document_Lines
                'Get Invoice Object
                Inv = vCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
                REM get the relevant invoice
                System.Console.WriteLine("Getting AP Invoice")
                Inv.GetByKey(168)
                'Add a line to the Invoice
                InvLine = Inv.Lines
                System.Console.WriteLine("Count(1): " & CStr(InvLine.Count))
                InvLine.Add()
                System.Console.WriteLine("Count(2): " & CStr(InvLine.Count))
                System.Console.WriteLine("Setting current line")
                InvLine.SetCurrentLine(InvLine.Count - 1)
                InvLine.ItemCode = itemCode
                InvLine.Quantity = 3
                InvLine.PriceAfterVAT = 666.0
                InvLine.TaxCode = "S"
                InvLine.VatGroup = "S"
                InvLine.Currency = "GBP"
                InvLine.ItemDescription = "This is an add item to existing test"
                'Add the Reserced Invoice
                retVal = Inv.Update()
                InvLine = Inv.Lines
                System.Console.WriteLine("Count(3): " & CStr(InvLine.Count))
                'Check the result
                If retVal <> 0 Then
                    vCmp.GetLastError(ErrCode, ErrMsg)
                    System.Console.WriteLine(ErrCode & " " & ErrMsg)
                End If
    (Note: The System.Console.WriteLine... statements are just for debugging purposes)
    The error I'm getting from this is:
    ErrCode     -5002
    ErrMsg     "Cannot add or update this document; rows are missing  [OPCH.DocNum][line: 0]"
    Can someone explain what I am doing wrong or point me in the right direction.
    Many thanks
    Adrian

    HI all,
    see [Update A/P Invoice;
    for credit memo
    this is sales process, replace document types with A/P
    Regards
    J.

  • Payment proposal  is blocking but  block key is not updating in  Invoice

    Hi All,
    While doing F110 Automatic payment program In the proposal run I am blocking some invoices. Block key is accepting  in payment proposal  run. but The block key  is not updated in the Invoice display document (FB02).
    For where I have to do the configuration setting for this.
    Please do me the needful.
    Regards,
    Sreekanth Lokaray

    HI,
    Go To t.Code  OB21 path: Financial Accounting (New)>Accounts Receivable and Accounts Payable>Customer Accounts>Preparations for Creating Customer Master Data>Define Screen Layout per Company Code (Customers) and click on Define Screen Layout per Company Code (Customers) and double click on  company code and double click on Payment transactions and Payment methodsSuppress    Req. Entry  -- Opt. entry  ---Display
    Go To  t.Code  OB24 Financial Accounting (New)>Accounts Receivable and Accounts Payable>Vendor Accounts>Master DataPreparations for Creating Vendor Master Data>Define Screen Layout per Company Code (Vendors) ouble click on  company code and double click on Payment transactions and Payment methodsSuppress    Req. Entry  -- Opt. entry  ---Display
    Thanks,
    Raviteja

  • How to update PO invoice plan?

    Dear all,
    I need to update Start-date and End-date of PO's invoice plan, the two dates storage in a Z-table.
    Anyone who can tell me which function module I should use or how I can achieve this functionality.
    Thanks very much!
    Best Regards.

    >
    kumar kaduri wrote:
    > Hi,
    >
    > You didn't mention about the link of your Z table to PO Invoice. I think it must be updated in any user Exit while crating PO. If not there must be some Z program for it. Even z program doesn't exist, you need to write a zprogram if you want to update it after creation of PO Invoice or if you want to update your z table while creating invoice, you need to write code in user exit.
    >
    >        Kumar.
    >
    > Edited by: kumar kaduri on Jun 29, 2009 11:17 AM
    Hi Kumar
    Sorry I haven't describe it clearly.
    First I create a PO with Invoice Plan, but the Start-date and End-date is estimated.
    Then vendor will send the actual dates of invoice plan, and these data will be stored in Ztable.
    Finally a Zprogram will be executed to update the Start-date and End-date of the invoice plan.
    I need to write code in the Zprogram to realize this functionality.
    Thanks.

  • Update Unpaid Invoice in Oracle R12

    I wanted to update the paygroup (PAY_GROUP_LOOKUP_CODE) of unpaid invoices in oracle R12. Is this feasible? If yes, can you please let me know the API to do the same.
    Thanks in advance, for your kind response.

    Hi,
    Use below code to identify the unpaid invoice and update the paygroup.
    Please let me know if i am missing something
    select i.invoice_num,v.vendor_name,i.invoice_date,ps.due_date,
    i.invoice_amount,i.amount_paid,ps.amount_remaining, SUM(i.invoice_amount),sum(ps.amount_remaining)
    FROM ap_payment_schedules_all ps,
    ap_invoices_all i,
    apps.po_vendors v,
    apps.po_vendor_sites_all vs
    WHERE i.invoice_id = ps.invoice_id
    AND i.vendor_id = v.vendor_id
    AND i.vendor_site_id = vs.vendor_site_id
    AND i.payment_status_flag ='N'
    AND (nvl(ps.amount_remaining, 0) * nvl(i.exchange_rate,1)) != 0
    AND i.cancelled_date is not null
    group by v.vendor_name,i.invoice_num,i.invoice_date,ps.due_date,i.invoice_amount,i.amount_paid,
    ps.amount_remaining
    Order by v.vendor_name,i.invoice_num;

  • Any FM / CLASS to change/update the Invoice-VBRK-VBELN?

    Hello Experts,
    Pls. let me know that is there any FM / CLASS to change/update the existing Invoice-VBRK-VBELN?
    BECAUSE my requirement is that I need to update/change the field - VBRK-RFBSK ('Status for transfer to accounting') of an existing Invoice in VBRK table/VF03 Tx in the system.
    Thank you

    Hi
    Why do you need to change VBRK-RFBSK, this field indicates if the bill was trasnferd to the accounting
    Max

  • Table updation after Invoice parking/ posting through FBV1

    Hello Everybody,
    Can anybody help me to know what are the tables are updating after parking and posting the FI invoice through transaction code FBV1 and what is the process to check what tables are updated ..
    thanks a lot in advance..
    Regards,
    Umakanta

    Hi Any views
    Suresh

Maybe you are looking for