Error when posting AR Invoice with serial

Hi experts, just want to ask what is the problem when posting AR Invoice with serial number. The error is "Internal error (-5002) occurred [الرسالة 131-183]"
Here's my code :
                            If Not oSerial Is Nothing Then
                                oSerial.DefaultView.RowFilter = "product_reference_code = '" & oDrView("product_reference_code") & "' " 'AND site_reference = '" & oDrView("site_reference") & "' "
                                For Each oDrSerial As DataRowView In oSerial.DefaultView
                                    Try
                                        .Lines.SerialNumbers.Quantity = 1
                                        .Lines.SerialNumbers.InternalSerialNumber = oDrSerial("serial_no")
                                        .Lines.SerialNumbers.Add()
                                    Catch ex As Exception
                                    End Try
                                Next
                            End If

Hi Bryan,
Have you try to debug it , which line is causing problem.
With serial numbers you don't have to set the qty.
other fields that need to be set are :
for (int count = 0 ; count < totalcount; count ++)
     if (count > 0)
          .Lines.SerialNumbers.Add();
     .Lines.SerialNumbers.SystemSerialNumber = SysSerialNum;
     .Lines.SerialNumbers.ManufacturingSerialNumber = ManufacturingNum;
     .Lines.SerialNumbers.InternalSerialNumber = internalserialnumber;
     Count++ ;
Hope it will help.
Regards

Similar Messages

  • Tax error when posting vendor invoice

    Dear Friends ,
    I am posting this 3rd time, I am geting this error when poatin vendor invoice , I am geting this error in production system before GOLIVE ,when we are doing live data entry test . All the seting related to taxes has been testing more than 10times , But we are unable to find the problem . We had checked with all past messages and best possible solution in SDN ......but problem is not solved . Said error is as follows ....
    Tax code V0 country IN does not exist in procedure TAXINN
    Message no. FF713
    Diagnosis
    You entered a tax code which is not defined for the country of the company code to be posted to in the tax calculation procedure.
    System Response
    Procedure
    Check and, if necessary, correct the entry.
    Procedure for System Administration
    If it is not an input error, check and possibly change the system settings.
    To do this, choose Maintain entries (F5).
    Check whether the company code is assigned to the correct country and whether the correct tax calculation procedure has been entered for the company code country.
    Create a new tax code if necessary.
    Caution:
    Since it is possible that the tables in question are being updated at a different time on another computer, it can take a certain amount of time for the tax code to be on all local machines in client server architectures after saving the new code.
    Raghu

    hi
    go to ftxp choose tax code v0
    here in first input field give 00
    then select that field and click on gl acct tab
    here mention a gl or go to ob40 and mention gl for the acct key of that field
    try finding
    Tax code country IN does not exist in procedure TAXINN
    on SDN u will get many threads
    Tax code XX country IN does not exist in procedure TAXINN (MIRO Error)
    conclusion is u must get acct for at least one condition in the tax code
    regrads
    kunal
    award if helpful

  • Error when posting Down payment with reference to down payment request

    Hi Experts,
    In October of 2010 we upgraded from version SAP 4.7 to version 604 SAPKH60406.  
    With this upgrade we decided to select the following FM setting:
    "Flag to activate down payment request update to PO history"
    If this flag is set, down payment requests are updated to the purchase order history. In addition, when you create a down payment referencing this down payment request , the down payment request is cleared by the down payment.
    Use- Set this flag if you want to see the down payment requests  in the purchase order history.
    So, since October 2010, the Down payment requests have been updated to the PO history (note - no update of the down payment request was made to the PO status tab) and the down payments (made with reference to the down payment request) have been clearing the DP requests.
    Today we have applied packages SAPKH60407 - SAPKH60409 and we are in the process of testing. 
    Now we are experiencing errors when processing down payments:
    1. create the down payment request (F-47) - this is OK
    2. create the down payment (F-48) with reference to the down payment request - ERROR MESSAGE F5373 - "Order value will be exceeded"
    Can anyone please explain why this is happening?  We would like to keep the "Flag to activate DPR update to PO history" ON
    as it has been since October 2010.
    Thanks,
    Michelle

    Hi,
    Please find the below link it will help full for you,........
    Order Value will be exceeded Msg No. F5373
    Naresh

  • Error when posting invoice for Asset purchase order

    Hi,
    we are getting the errore message account determination for asset posting with keys not defined in chart of accounts,when posting an invoice for asset purchase order.
    Can any one see why this error is coming and what will be the solution.
    Nagesh

    Hi Prabhakar,
    Here is the reply,
    we have 10 line items,in which 3 items are freight related and other 7 items are related to goods reciept.
    i am trying to enter invoice for 3 line items at a time with two relevant to goods reciept and other related to non goods receipt(freight related).
    accounting entries generated after the GR are as follows,
    asset under construction account,and GR/IR account.
    Let me know the details is sufficient or not.

  • Error when posting goods issue

    hi gurus,
    can anyone please help me with this error when posting goods issue to a free issue sales order " line item text is mandatory for vendor invoices".
    thanks in advance

    Dear Ysabella
    It seems the item texts is not maintained in the order which is made as mandatory.
    Go to sale order VA02, select that line item and click on "GotoItemTexts".  There maintain the relevant text and retry.
    thanks
    G. Lakshmipathi

  • Error while posting vendor invoice in F-43

    Hi experts,
    while posting vendor invoice with Tax code , i am getting the following error:
    Posting is only possible with a zero balance; correct document
    Message no. F5060
    Here tax line item is not yet all displaying in simulation.
    If I posted with tax code with ZERO percentage it is posting correctly.
    where as same transaction I am able to post through transaction code FB60.
    What could be the reason?
    regs,
    ramesh b

    Hi
    Please check and correct the respective line items , because your selecting incorrect GL account with respective posting keys
    Example : You have exp gl a/c at first line items against vendor invoice posting's, normaly this vendor will post in first line item with posting key is 31 with vendor a/c and second line item 40 with exp GL a/c and same you will check any required inputs have missed out from this transactions.
    Regards
    CHOWDARY

  • Error when posting IDoc *** in system ERP100

    Hi Experts!
    Can you pls help me with a goods receipt issue?
    When user tries to make a good receipt on a PO, we have the msg "Error when posting IDoc *** in system ERP100" in SRM front-end application monitor.
    The same msg is getting displayed in RZ20.
    On the idoc itself in tcode WE02 however, I can't see any problem and unfortunately I have no access to the same t-code in R/3. Anyway, I don't see the GR on the PO.
    What can be the reason for this problem please?
    What is in general the way to analyse and solve this kind of issue?
    Thanks a lot !!
    imre

    Hi,
    First find out the PO number from the idoc in tx WE02 in SRM system. Then in ERP , transaction BD87 , specify the details like message type and the system information .... and find out the PO that was errored out for GR. From this we can find the cause of the error. First try to rectify the error and then run the report to clear the contents of  BBP_DOCUMENT_TAB.
    Hope this helps.
    Regards,
    Kalyan

  • Post Vendor invoice with Down Payment via BAPI_INCOMINGINVOICE_CREATE

    Hi Experts,
    We have configured downpayment functionality for PO's. We have below process
    Create PO with down Payment request -> Create down payment request -> Run payment program for paying down payment -> Post GR -> Post invoice with BAPI (considering down payments against invoice)
    But unfortunately when I am trying to post PO invoice with downpayment details using BAPI_INCOMINGINVOICE_CREATE I do not see any fields related to down payment. Can some one confirm me if SAP has provided this functionality? if NO any workarounds?
    Rgds,
    Harish

    Hi experts,
    any suggestions?
    Regards,
    Elena

  • Error when posting the goods receipt

    Hi we have recently successfuly updated 4.6 B to ECC 6.0.But when i am doing captive consumption by 949 Mvt. through process message system gives an error that
    Error when posting the goods receipt
    Message no. CB345
    Diagnosis
    With the selected process message, a goods receipt for the order was reported to the warehouse (destination ZPI1).  However, an error occurred when the goods receipt was posted.
    Please do needful.
    Regards,
    PP

    Hi Daniel,
    This is the first time i am coming across an issue like this.
    neverthless from a logical front,
    1. Remove Cost center as a valid receiver in Settlement Profile.
    2. Your OKB9 setting are pretty much good. No need to worry about it.  Becasue, OKB9 only will work if the system doesn't identify any other cost object. In this case Production Order is an automatic cost object which system should have taken.
    3. Check the Settlement rule when you have created Production Order. It should have been MAT.
    4. I hope you are creating Production Order with Material (using CO01 and not CO07)
    5. Make sure in OPL8, the default rule in controlling tab is PP1.
    Once all these are fine, i do not see any reason why you will get your probelm.
    Please check and revert back to me if the problem still persists.
    Best Regards
    Surya

  • Error when posting to profitabilty segments

    Dear All
    I get the following error when posting poriftabilty segment data in the accounting doument, if i try to enter the same characteristic value even to diffrent G/L Accounts.
    Data record already exists
    Message no. KE581
    Diagnosis
    This error should not occur.
    Procedure
    Contact your system administrator or SAP directly (component CO-PA-ACT).
    Has anyone come across this issue... ? Pls let me know how to resolve this?
    Thanks
    Gayani

    Hi,
    Please implement the latest version of the note 1321225 into your system in order to solve this problem!
    Afterwards please execute the function module RKE_GENERATE_INTERFACE_ACT in transaction SE37 for the operating concern you use - as described in note 1321225 under 'Solution'!
    Please enter function module RKE_GENERATE_INTERFACE_ACT in transaction SE37, press F8, enter your operating concern and press F8 again.
    Afterwards the described problem with error message KE581 should be solved.
    regards
    Waman

  • Error when posting a SOAP request

    Hi all,
    Facing error when posting the SOAP request and after entering the Server Username and password giving error that http not found and url
    The URL i follow is http://<hostname>:<port>/XISOAPAdapter/MessageServlet?version=7.0&channel=:BusinessSystem:PI_SOAP_CC
    can any one of you tell me in place of XISOAPAdapter what should i place?
    Please help me to post the SOAP request to PI server.
    Thanks in advance ,
    Manohar.

    Hi ,
    copy the same URL  (Endpoint that you had given while generating wsdl file) to the browser and chek the status. ( http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel)
    See the below URL for the same i.e. SOAP adapter...http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    You should get response something like this '
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#15 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    This  is make sure that webservice endpoint is given correctly. Don't forget to give username and password for connecting to XI server. user should xiappluser .
    Ranjeet Singh.

  • Other solution during stock shortage when posting several invoice item?

    Hi Experts,
    Referring to Note 362037, posting an invoice with price variance to a material with moving average price , the stock quantity coverage is less than the posting quantity.
    The standard SAP system perform the stock shortage exam considering each posting item, not the whole quantity.
    And, according to the note, no solution is provided in the SAP standard system.
    In some cases, this may cause the material price extremely high and lead to misunderstandings.
    So, is there any solution to this VARIANCE POSTING?
    Example as follows:
    The following FI postings are generated:
                                Debit Credit
    Creditor                        2000
    Stock account   960                        for item 0001
    PRD account    40
    Stock account   960                         for item 0002
    PRD account    40
    However, you expected the following:
                                Debit Credit
    Creditor                         2000
    Stock account     960                          for item 0001
    PRD account      40
    Stock account     0                            for item 0002
    PRD account      1000

    Hi,
    Its not possible to post the 1000 to PRD account. You need to do GR for shortage quantity and balance the quantity. Thanking you.

  • Error when install sap license with 'saplicense -install'

    Dear experts,
    Error when install sap license with 'saplicense -install':
    SAPLICENSE (Release 640) ERROR ***
        ERROR:   Can not set DbSl trace function
        DETAILS: DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20
        RC-INFO: error loading dynamic db-library - check environment for:
                 dbms_type = <db-type>  (e.g. ora)
                 DIR_LIBRARY = <path to db-dll>  (e.g. /usr/sap/SID/SYS/exe/run)
    Could you gvie me any ieda?

    Another way is to open a command prompt as nspadm and run saplicense -install
    To do this follow the steps below
    Click "Start" -> "Run..." and enter:
    runas /u:nspadm cmd
    Enter nspadm's password. A command prompt appears running as user nspadm. Now change to \usr\sap\nsp\SYS\exe\run and run
    saplicense -install
    Hope this helps.
    Regards,
    Klause

  • Error when trying to chat with more than one perso...

    I am getting an error when trying to chat with more than one person at a time.
    The message is like below:
    There has been an error while proccesing.
    Do you want to start debugging.
    Row: 0
    Error: No authorization
    Thank you in advance for assistance.
    Kind Regards
    Marcin
    Attachments:
    error.jpg ‏12 KB

    What is the version of Internet Explorer installed on your computer?
    In Internet Explorer go to Help -> About Internet Explorer.
    P.S. Please, don’t say that you are not using Internet Explorer. This is irrelevant. Skype depends on Internet Explorer.

  • Runtime Error when Posting Invoice with text added (MIRO)

    Hi Gurus,
    We are getting a shortdump (runtime error) when we post certain invoices in MIRO. This happens when we input some text in the text field or add some text to the NOTE tab.
    We are having exception ERROR_DP raised in the program c_textedit_control.
    If the text field is blank and nothing is writing in the NOTE tab, the invoice gets posted with no problem.
    Has anyone come accross this issue before and how did you solve it please.
    Thanks.

    are u processing thru BADI, then it is very easy there are interfaces and methods for handling texts. u sud not get any error and plz never write commit work in BADI.
    May be i cud provide more help if u share more details but let me tell more but let me share one recent development that i did.
    In ME59n when we do PR TO PO then texdts sud be copied to header text in PO and get reflected in PO. the coding is like below may be can give some clues wid ur MIRO stuff.
    METHOD if_ex_me_process_po_cust~process_header.
    *  Author        : Prasenjit Bist                                          *
    *  ID            : PRBIST                                                  *
    *  Date          : 04.08.2011                                              *
    *  Changes       : New Devlopment                                          *
    *  Change Request:                                                         *
    *  Description: To copy LSP information in PO                               *
    TYPES:
            BEGIN OF ty_text,
              auto_pr_po TYPE zman_auto_pr_po,
              plant TYPE zman_plant,
              vendor TYPE zman_vendor,
              lsp_vendor TYPE zman_lsp_name,
              contract_no_text TYPE zman_contract_no_text,
            END OF ty_text.
      TYPES:
           BEGIN OF ty_address,
             ort01      TYPE ort01_gp,  " city
             ort02      TYPE ort02_gp,  " district
             pfach      TYPE pfach,     " PO Box
             pstlz      TYPE pstlz,     " Postal code
             region     TYPE regio,     "Region (State, Province, County)
             telf1      TYPE telf1,     "1st telephone number
             telf2      TYPE telf2,     "2nd telephone number
             telfx      TYPE telfx,     "Fax number
             land1      TYPE land1,
           END OF ty_address.
      DATA:
       get the header level details
            ls_mepoheader TYPE mepoheader,
            lt_purchase_order_items TYPE purchase_order_items,
            ls_purchase_order_items LIKE LINE OF lt_purchase_order_items,
       get the line item details
            lt_mepoitem TYPE STANDARD TABLE OF mepoitem,
            ls_mepoitem TYPE mepoitem,
            lt_textlines TYPE mmpur_t_textlines,
            ls_textlines LIKE LINE OF lt_textlines,
    TEXT TYPES
            lt_texttypes TYPE mmpur_t_texttypes,
            ls_texttypes LIKE LINE OF lt_texttypes.
      DATA: l_name TYPE thead-tdname,
            ls_header TYPE thead,
            lt_lines TYPE STANDARD TABLE OF tline,
            ls_lines TYPE tline,
            l_tdobject TYPE thead-tdobject,
            l_metafield TYPE mmpur_metafield.
      DATA: ls_text TYPE ty_text,
            l_text(50).
      DATA: l_continue(1).
      DATA: l_pass_vendor TYPE lifnr,
            l_pass_plant TYPE werks,
            l_name1(35).
    fetch the address
      DATA: ls_address TYPE ty_address,
            l_landx    TYPE landx.
      CONSTANTS: lc_id TYPE thead-tdid     VALUE 'F01',
                 lc_langu TYPE thead-tdspras  VALUE 'E',
                 lc_object TYPE thead-tdobject VALUE 'EKKO'.
      CONSTANTS: lc_set(1) VALUE 'X',
                 lc_vendor(11) VALUE 'Vendor:    ',
                 lc_lsp_vendor(11) VALUE 'LSP Vendor:',
                 lc_contract_no_text(14) VALUE 'Contract Text:'.
      CLEAR: l_continue.
      IF sy-uname EQ 'PRBIST'.
    Read the header data
        ls_mepoheader = im_header->get_data( ).
    read teh item level data.
       break prbist.
        lt_purchase_order_items = im_header->get_items( ).
        LOOP AT lt_purchase_order_items INTO ls_purchase_order_items.
    The item attribute of the structure is reference to line item
          ls_mepoitem = ls_purchase_order_items-item->get_data( ).
          APPEND ls_mepoitem TO lt_mepoitem.
        ENDLOOP.
    CHECK VENDOR IS THE ONE WE WANT.
        SELECT SINGLE name1 FROM lfa1 INTO l_name1 WHERE lifnr = ls_mepoheader-lifnr.
    First read the vebdor name based on LIFNR.
        TRANSLATE l_name1 TO UPPER CASE.
        IF ( l_name1 EQ 'LSP1' ) OR ( l_name1 EQ 'LSP2' ).
          LOOP AT lt_mepoitem INTO ls_mepoitem.
            TRANSLATE ls_mepoitem-werks TO UPPER CASE.
            IF ls_mepoitem-werks EQ 'FI01'.
              l_continue = lc_set.
              l_pass_vendor = ls_mepoheader-lifnr.
              l_pass_plant = ls_mepoitem-werks.
              EXIT.
            ENDIF.
          ENDLOOP.
        ENDIF.
        IF l_continue EQ lc_set AND sy-tcode EQ 'ME21N'.
    Call the POP UP screen to display LPS information.
          CALL FUNCTION 'ZMAN_LSP_POP_UP'
            EXPORTING
              im_vendor = l_pass_vendor
              im_plant  = l_pass_plant
            IMPORTING
              ex_text   = l_text.
    GET Text Object (TTXOB)
          im_header->if_longtexts_mm~get_textobject(
                        IMPORTING ex_tdobject = l_tdobject
                                  ex_metafield = l_metafield ).
    GET TEXT IDS
          im_header->if_longtexts_mm~get_types(
                        IMPORTING ex_texttypes = lt_texttypes ).
    CHECK TEXT TYPE 'F01' EXISTS.
          READ TABLE lt_texttypes INTO ls_texttypes WITH  KEY tdid = lc_id.
          IF sy-subrc EQ 0.
    UPDATING ITEM TEXT.
            MOVE: l_tdobject TO ls_textlines-tdobject,
                  ls_texttypes-tdid TO ls_textlines-tdid,
                  '*' TO ls_textlines-tdformat.
         break prbist.
            ls_text = l_text.
         CONCATENATE l_text ls_texttypes-tdtext INTO ls_textlines-tdline.
           CONCATENATE ls_text-vendor
                       ls_text-plant
                       ls_text-lsp_vendor
                       ls_text-contract_no_text
                                               INTO ls_textlines-tdline SEPARATED BY space.
           APPEND ls_textlines TO lt_textlines.
          INSERT VENDOR
           CLEAR ls_textlines-tdline.
           CONCATENATE lc_vendor ls_text-vendor INTO ls_textlines-tdline SEPARATED BY space.
           APPEND ls_textlines TO lt_textlines.
          INSERT LSP VENDOR
            CLEAR ls_textlines-tdline.
            CONCATENATE lc_lsp_vendor ls_text-lsp_vendor INTO ls_textlines-tdline SEPARATED BY space.
            APPEND ls_textlines TO lt_textlines.
          INSERT CONTRACT TEXT.
            CLEAR ls_textlines-tdline.
            CONCATENATE lc_contract_no_text ls_text-contract_no_text INTO ls_textlines-tdline SEPARATED BY space.
            APPEND ls_textlines TO lt_textlines.
         INSERT A BLANK LINE.
            CLEAR ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
    INSERT addreSS CAPTION.
            CLEAR ls_textlines-tdline.
            MOVE 'Address:' TO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
            break prbist.
    READ THE ADDRESS
            SELECT SINGLE   ort01      " city
                            ort02      " district
                            pfach      " PO Box
                            pstlz      " Postal code
                            regio      "Region (State, Province, County)
                            telf1      "1st telephone number
                            telf2      "2nd telephone number
                            telfx      "Fax number
                            land1      "COUNTRY
            FROM lfa1 INTO ls_address WHERE lifnr = ls_mepoheader-lifnr.
    GET COUNTRY
            SELECT SINGLE landx FROM t005t INTO l_landx WHERE spras = 'E' AND land1 = ls_address-land1.
    INSERT ADDRESS DETAILS.
            CLEAR ls_textlines-tdline.
            CONCATENATE ls_address-ort01 ls_address-ort01 INTO ls_textlines-tdline SEPARATED BY space.
            APPEND ls_textlines TO lt_textlines.
    INSERT COUNTRY.
            CLEAR ls_textlines-tdline.
            MOVE l_landx TO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
    TELEPHONE DETAILS
            CLEAR ls_textlines-tdline.
            CONCATENATE 'Tel:' ls_address-telf1 '/' ls_address-telf2 INTO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
    FAX DETAILS.
            CLEAR ls_textlines-tdline.
            CONCATENATE 'Fax:' ls_address-telfx INTO ls_textlines-tdline.
            APPEND ls_textlines TO lt_textlines.
          SAVE THE HEADER LONG TEXT.
            im_header->if_longtexts_mm~set_text(
                          EXPORTING im_tdid = ls_texttypes-tdid
                                    im_textlines = lt_textlines ).
          ENDIF.
        ELSEIF l_continue EQ lc_set AND sy-tcode EQ 'ME59N'.
    No need to display POPUP simply read the values and show.
    if not
        ENDIF. "(l_continue = 'X' and transaction code is ME21N or ME59N)
        CLEAR l_continue.
      ENDIF. "(sy-uname)
    ENDMETHOD.
    Edited by: Prasenjit Singh Bist on Aug 14, 2011 10:15 AM
    Edited by: Prasenjit Singh Bist on Aug 14, 2011 10:21 AM

Maybe you are looking for

  • Unlinking two iPhones that currently have the same Apple ID

    My parents accidentally used the same Apple ID for both of their iPhones. How can I unlink their accounts and create two different, unique Apple IDs for each of their iPhones? And without losing what is currently saved to the iCloud (some of the info

  • How to get which query is using by reports using OEM

    Hi, can any one help me how to get the queries whcih are used by reports by clent by using OEM. Its same like using profiler in sql server Thanks in advance Edited by: user8884944 on Nov 6, 2010 2:18 AM

  • Hard IPL on partition with SAP instances

    Hello, Over the weekend we had a partition IPL itself (for reasons still trying to be determined - working with IBM).  Below is a list of things I'm compiling for us to walk through should this happen again (we hope it does not).  Volker helped us al

  • Airport Express as wireless internet router

    I have a Mac G4 and a Windows PC, and connect to the Internet via DSL. I would use an Airport Express module as the modem for the incoming DSL signal, and connect the Airport Express by ethernet to the Windows PC. How do I receive the Airport signal

  • Error message when trying to upgrade iphone 4 to ios 6

    Connect to laptop (windows) and the sync starts backs everything up then error occurs when restoring software when upgrading to ios 6