Invalid document number  [RCT2.DocEntry][line: 1]

I'm getting this error when creating Invoice then Incoming payment. Though, in the other transaction it successfully saved.
Here's my code in incoming payment
                            .Invoices.DocEntry = oDocNum '<--- it was retrieved by oCompany.GetNewObjectKey
                            .Invoices.InvoiceType = 13
                            .Invoices.SumApplied = PaidSum '<--- it is just sum amount
                            .Invoices.Add()

Hi Bryan,
The last .invoices.Add() is too much if you don't fill the instance of the object after.
Regards,
Eric

Similar Messages

  • Report invoice document number againt PO line item

    Hi Forums,
    Can any body so kind to tell me is there any standard report in SAP 4.7 C where we can get the list of invoice document number against each line item of PO.
    I have tried the ME2N & ME2L report. If I double click the POH then only it give me the invoice document report. But i want a report where I get invoice document no against each line item wise in PO.
    Thanks in advance.
    Regards,
    sp sahu

    Hi sp sahu,
    I am sorry, but I am not aware of any report which might suit your requirements, this is the reason why I addressed you to the table EKBE. You might build your own report out of this table.
    Sorry!
    Esther.

  • Unable to trace out the Reference Document number in commitment line item.

    Dear All,
          Kindly help me in bellow problem
    When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    Thanks,
    Asu.

    >
    Asutosh Mahapatra wrote:
    > Dear All,
    >
    >       Kindly help me in bellow problem
    >
    >
    > When I click the reference document no. in the line item wise display the commitment in t-code S_ALR_87013558 at that time the system open the display PR screen and the massage is displayed in the below, the Purchase document does not exist.
    >
    > Due to this reason the price capture in commitment line item is not traceable and I am not able to delete the commitment line item.
    >
    > Kindly suggest how to trace out the reference document number and delete it and release the commitment price.
    >
    > Thanks,
    > Asu.
    Can you explain what is your requirement..?
    Do you want to correct the data in the report..?
    Or  it is effecting your availability control and you want to correct it..?
    Or you want to trace a deleted document..? Which is not possible...

  • View the actual sales order (VA03, Display Mode) by double clicking on the Document Number of any line item displayed in the report.

       CLASS LCL_HANDLE_EVENTS DEFINITION.
      PUBLIC SECTION.
        METHODS:ON_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_SALV_EVENTS_TABLE
        IMPORTING ROW COLUMN.
    ENDCLASS. "lcl_handle_events DEFINITION
    DATA: EVENT_HANDLER TYPE REF TO LCL_HANDLE_EVENTS.
    *       CLASS lcl_handle_events IMPLEMENTATION
    CLASS LCL_HANDLE_EVENTS IMPLEMENTATION.
      METHOD ON_DOUBLE_CLICK.
        CASE COLUMN.
          WHEN C_VBELN.
            READ TABLE T_FINAL INTO WA_FINAL INDEX ROW.
            IF SY-SUBRC = 0.
              SET PARAMETER ID: C_AUN FIELD WA_FINAL-VBELN.
              CALL TRANSACTION C_VA03 AND SKIP FIRST SCREEN. "#EC CI_CALLTA
            ENDIF.
        ENDCASE.
      ENDMETHOD. "on_double_click
    ENDCLASS. "lcl_handle_events IMPLEMENTATION
    Is Something Wrong With The Code?

    If you are using ABAP for the report this will fulfill your requirement.
    Take a close look at the ZUSEREXIT program.
    When you execute it you enter the t-code e.g. VA01.
    It will display the enhancements available in VA01.
    Now you can click on the user exit name and you will
    automatically be transferred to SMOD t-code with the
    selected enhancement as a parameter.
    You can see in the below code how simple it is to implement this.
    You will not call SMOD but VA03 t-code on click.
    You can use this code to execute it in SE38 and see how it works.
    CODE STARTS BELOW:
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
              tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
        select single * from tadir where pgmid = 'R3TR'
                         and object = 'PROG'
                         and obj_name = tstc-pgmna.
        move : tadir-devclass to v_devclass.
           if sy-subrc ne 0.
              select single * from trdir where name = tstc-pgmna.
              if trdir-subc eq 'F'.
                 select single * from tfdir where pname = tstc-pgmna.
                 select single * from enlfdir where funcname =
                 tfdir-funcname.
                 select single * from tadir where pgmid = 'R3TR'
                                    and object = 'FUGR'
                                    and obj_name eq enlfdir-area.
                 move : tadir-devclass to v_devclass.
               endif.
            endif.
            select * from tadir into table jtab
                          where pgmid = 'R3TR'
                            and object = 'SMOD'
                            and devclass = v_devclass.
             select single * from tstct where sprsl eq sy-langu and
                                              tcode eq p_tcode.
             format color col_positive intensified off.
             write:/(19) 'Transakcija - ',
                  20(20) p_tcode,
                  45(50) tstct-ttext.
                         skip.
             if not jtab[] is initial.
                write:/(95) sy-uline.
                format color col_heading intensified on.
                write:/1 sy-vline,
                       2 'Naziv exita',
                      21 sy-vline ,
                      22 'Opis exita',
                      95 sy-vline.
                write:/(95) sy-uline.
                loop at jtab.
                   select single * from modsapt
                          where sprsl = sy-langu and
                                 name = jtab-obj_name.
                        format color col_normal intensified off.
                        write:/1 sy-vline,
                               2 jtab-obj_name hotspot on,
                              21 sy-vline ,
                              22 modsapt-modtext,
                              95 sy-vline.
                endloop.
                write:/(95) sy-uline.
                describe table jtab.
                skip.
                format color col_total intensified on.
                write:/ 'Broj exita:' , sy-tfill.
             else.
                format color col_negative intensified on.
                write:/(95) 'Nema user exita za ovu transakciju'.
             endif.
           else.
               format color col_negative intensified on.
               write:/(95) 'Transakcija ne postoji'.
           endif.
    at line-selection.
        get cursor field field1.
        check field1(4) eq 'JTAB'.
        set parameter id 'MON' field sy-lisel+1(10).
        call transaction 'SMOD' and skip first screen.

  • Please let me know how to Count Number of completed line items in past 6 mo

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how
    Krishna

    Hi Experts,
    I dont have a defined Restricted key figure yet.
    I have populated 0COMPL_DEL(Delivery Completed Indicator)  and 0EBELN (Purchasing Document Number) and 0EBELP (Line Item Number in Purchasing Document) .
    This is what I think how I need to calculate:
    Number of completed line items in past 6 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 6 months
    and
    Number of completed line items in past 12 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 12 months
    Please let me know if the logic is correct. If so, how I can create this in report

  • Format of reference document number is invalid  Message no. 8A556

    Dear Expert,
    I have problem while executing transaction Manual Posting incoming invoice with t-code FB60. The error message shown as written above "Format of reference document number is invalid  Message no. 8A556"
    I have check the customizing on document type and number range, they are all standard SAP, nothing strange as far my concern.
    Could any one give any idea on this problem.
    Thanks in advance
    Irhasni

    Dear Experts,
    I have tried to investigate this problem but still have no solution for doc. type KR (Posting vendor invoice)
    During investigation on this problem, I did a simulation posting using document type other than KR (assign manually) either by t-cod FB60 or F-02 or F-43, I chose doc. type KA and SA, there is no error when using this doc type, it create Accounting document and Tax line item also appear.
    From the simulation I did with this problem, the  problem seems on Document type KR (default doc. type for Vendor Invoice). I suspect, it might some setting at other modul likely at MM that control the "Reference" field during document entry...  eventhough this field is not set as mandatory at OBA7, it's still saying the same error message.
    Is there anyone have any ideas about problem in document type KR?
    Thanks in advance
    Irhasni

  • ASN Reference document number is invalid error with SA

    Hi~
    We have ASN creation error with SA(Scheduling Agreement).
    Portal Menu : Delivery-Receipts and Requirements-Due List for purchasing document(Supplier)
    1. Select SA(Scheduling Agreement) line
    2. Click 'Create ASN '
    3. After enter ship from location, ASN number, Error occur
       "ASN ASN-1112, item 000001: Reference document number is invalid "
    When we execute with PO, there are no error.
    But with SA, there are always error.
    Bestregards,
    SKY

    Hi SKY
    Please make sure the external procurement releationship (SA) exists in the below transaction
    /n/sapapo/pwbsrc1 between source and destination locations. i.e shipfrom and ship to
    Also make sure that the external procurement relation ship is referenced in the transportation lane /n/sapapo/tl1
    Select your product -specific transportation lane- go to detail screen
    There you can find external procurement releationship, maintain the data
    Please enhance your master data acoringly. Afterwards you can select reference doc nomber as well as item number with the value help in the ASN creation screen. By that the reported error msg should not appear anymore.
    Or Switch off PURCH_REF_MANDATORY validation check
    i suggest you follow first method and complete the master data setup
    Best Regards
    Vinod

  • Reference document number field on Invoice line item

    Can anyone please tell me , where in customization , do i define what should get copied in the reference document number field on the line item of an invoice.
    Currently in our system, credit memo request number is getting populated for a credit memo.
    Thank you for your help in advance.

    Hi,
    If you are talking about line item level, then it is called Allocation Number. At the header level, it is called Reference number.
    This is controlled using the copy control for billing - at the header level control.
    The reference number & allocation number once maintained in the configuration, will show up in the Accounting doc - header level & item level, respectively.
    For example - if the customer payment always refers to his PO number, then it really helps to use the allocation number for the accounting doc line items - which helps in clearing incoming payment faster. In this case, the reference number could be our delivery number. This is one of the examples for using both Ref & allocation #'s.
    Hope, this helps!
    S. Siva

  • Table to link FI document number, line item and pricing condition type

    Hi,
      I am looking for tables to link the FI document number, line item and PO pricing condition type.
      Appreciate any help on this.
    Thanks.

    For any PO in ME23n in which Goods receipt has happened, you can check in the itemdetails->Po history tab in ME23n.
    Here you will find the material document number. Just click on the material document, it will take you to anpther screen here you will find a button for FI document.
    Click that button for FI document. In PO history istelf you can see the Condition types.
    Hope this helps.

  • F-30 Post with clearing screen 734, need document number with line item

    We are trying to use the 'line item' selection for F-30 transfer postings, for when we are only clearing certain line items for a document number. I have seen this done at other clients, but when we go to the line item in additional selections, it gives us screen 731, which only has a line item number; it is grayed out where the document number should be. We need screen 734 which has both line item and document number; I cannot find how to get this in there in configuration. Can someone tell me how I get this in? Thanks!

    We are trying to use the 'line item' selection for F-30 transfer postings, for when we are only clearing certain line items for a document number. I have seen this done at other clients, but when we go to the line item in additional selections, it gives us screen 731, which only has a line item number; it is grayed out where the document number should be. We need screen 734 in SAPMF05A which has both line item and document number; I cannot find how to get this in there in configuration. Can someone tell me how I get this in? Thanks!

  • Originating document number not updated for one invoice line item

    Hi,
    We have a invoice document number in which the originating document number is not updated for one of the line items ,this is order related down payment invoice .May be this is due to system inconsistency so is there any SAP note to overcome this problem.
    Best Regards,
    Rohit

    Dear All,
             I found out the problem for not updated in F-04. "While create the receipt document in GL master Open item management maintained box was not checked". It can be found in BSIS table - OI Management'.
             Is there any other way to clear this document.
    Thanks...

  • Three same material document number generated for single PO line item.

    Hi,
    I found three same material number has been generated for single PO line item. Is there any specific reason for this.
    Here is the detail.
    PO
    LN   qty
    10    100
    PO history for LN 10
    Mat doc          qty               price
    5000000000     100               100
    5000000000     100               100
    5000000000     100               100

    see aditya , tables having document number as a primairy key will have a single entry , where as tables having primary key other then material documnet number is having multiple entries . as far as material document is concern , it is only one document in system , now we have to find why it is appearing 3 times . i will test this in my system and let you know .
    well thanx for your Cooperation . i will definatly get back to you .
    regards
    ravikant dewangan

  • Dreamweaver CS5 fatal error XML parsing: Invalid document structure, line:1, File: C:\User\Tyler\App

    XML parsing fatal error: Invalid document structure, line: 1, file: C:\User\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configureation\Workspace\Classic.xml
    I have gone through older disscussion forums and have followed the steps recommended by deleting the corrupted .xml file itself (in this case "Classic.xml") but imidiatly after when i try to open Dreamweaver again, i am prompted with the same fatal error message including the file that i have just deleted. Next i deleted the entire configure file and this did not help either.
    It is also odd that when i follow the path to find the corrupted .xml file from the prompt, the path is different in that i do not find the "Classic.xml" file through th "en_US\Configuration\Weorkspace" navigation, however i do find the corrupt "Classic.xml" file in the "configure" folder of the "Adobe Dreamweaver CS5" file.
    Im not sure what to do now and i would really like Dreamweaver back up and running so please help if you can!!!
    Thanks
    -Tyler

    Step 1: Close DW, Navigate to C:\User\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configureation\Workspace\ and delete that Classic.xml file
    Re-open DW. DW should auto-create your Workspace layout XML file again. See if it works fine.
    PROCEED TO STEP 2 ONLY IF STEP 1 DOESN'T SOLVE THE ISSUE
    Step 2: Navigate to C:\Users\Tyler\AppData\Roaming\Adobe\Dreamweaver CS5\en-US\Configuration and delete the entire 'CONFIGURATION' folder. Re-open DW. DW should auto-create your configuration folder based on predefined layouts and config options. This will definitely fix your issue.
    Reason for this issue: This issue would have been caused due to a malformed workspace layout configuration. That may happen due to customizations you may have done to the layout/ improper file permissions/ improper shutdown on Windows.
    See if these fixes resolve your issue and post your results here.
    Cheers,
    ST

  • XML parsing fatal error: Invalid document structure, line: 1, file: ... (in this case "Classic.xml"

    dreamweaver not initiating..claiming a parsing fatal cerr because classic.xml is corrupted. I tried re-installing dreamweaver... nothing

    See here Dreamweaver CS5 fatal error XML parsing: Invalid document structure, line:1, File: C:\User\Tyler\App

  • Can't open DW CS5.5  Invalid document structure line 1 - anyone know how to fix this?

    I get:
    XML parsing fatal error: Invalid document structure, line 1, file:

    The first thing to try is Deleting Corrupted Cache in DW
    http://forums.adobe.com/thread/494811
    If that doesn't help, try Restore Preferences
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    If all else fails, use the CC Cleaner Tools below followed by a software re-install.
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Nancy O.

Maybe you are looking for

  • Why does DVD Studio Pro compress my 3GB video?

    I thought since the original Quicktime movie I made with FCP was under the 4.7(?) capacity of a DVD, that Studio Pro wouldn't compress my 3GB movie. But after import to DVD Studio Pro the whole project only shows up as using 350MB of space. And when

  • Exact Positioning of Spry Menu

    I have a vertical spry menu that I placed in a table (left vertical column) at www.nwtampa.com , and I see where I can locate the menu at top, center, baseline, etc., but I don't see where to go to position the menu exactly where I want to place it o

  • Help me. I cant back up my ip5. because i forgeted the password. How to get the password from Apple

    i cant back up my ip5 because i forgeted password. how i can take my password. help me. tks

  • Multibyte characters(Chinese Data)

    Hi, We have a table in oracle(10g) which stores Chinese data as well English characters. Production is designed in such a way that, we can' t increase size of the columns. Is there any way to handle multi-byte characters like Chinese with the same le

  • Newbie Question about InterConnect

    1. We need to exchange data via ftp and in CSV format. It seems that FTP Adapter only workds with XML. Any suggestion on CSV files over ftp? 2. Where can I find document about iStudio SDK and Adapter SDK? I am quite new to InterConnect, I appriciate