Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]

We are trying to create Invoices using the SDK tool for a clients interface. Everything goes ok, except at the point where we add the document, we get the following message:
Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]
Any ideas? We have searched the SAP notes, but nothing is available. Are we missing anything?
We are running on Version 6.50.098
Thanks
Marios

Hello Marios,
This error occurs because the last line you are trying to add to the Marketing Document is an empty line. It is a new functionality in Version 6.5 that the document object automatically comes with one document line so if you are adding just one line you do not need to use oDocument.Lines.Add,                                           
It is only for the second and subsequent lines of marketing documents that you require the method oDocument.Lines.Add. Note 722693 describes the issue.                 
Regards,
Lisa

Similar Messages

  • Re: Error in submitting Import Standard Purchase orders from Pl/Sql

    Hi All,
    Iam using the following code to submit a concurret program
    "Import Standard Purchase orders" from pl/sql
    Program is sucessfully submittted but it is Completing in error status i am stuck there please help me in resolving this
    My instance R12
    My Code
    ======
    DECLARE
    v_request_id VARCHAR2 (100);
    BEGIN
    mo_global.set_policy_context ('S', 204); --org_id for the operating unit which the purchase order records belong too
    mo_global.init ('PO'); -- sets the application
    FND_GLOBAL.APPS_INITIALIZE (1013436, 50578, 201); --Consists of the user_id, responsibility_id, responsibility_application_id which is 201 for purchasing
    v_request_id :=
    fnd_request.submit_request (application => 'PO',
    program => 'POXPOPDOI',
    description => NULL,
    start_time => NULL, -- To start immediately
    sub_request => FALSE,
    argument1 => '31348', -- Buyer_ID
    argument2 => 'STANDARD', -- Doc Type
    argument3 => '', -- doc subtype
    argument4 => 'N', -- update items
    argument5 => '', -- create sourcing rules not used
    argument6 => 'INCOMPLETE', -- Approval status
    argument7 => '', -- release generation method
    argument8 => '1021387', -- batch_id
    argument9 => '', -- operating unit null
    argument10 => '', -- global agreement null
    argument11 => '', -- enable sourcing null
    argument12 => '', -- sourcing level null
    argument13 => '', -- inv org enabled null
    argument14 => '' -- inv org null
    DBMS_OUTPUT.put_line ('Request submitted. ID = ' || v_request_id);
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line (
    'Request set submission failed - unknown error: ' || SQLERRM
    END;
    output
    =====
    when i check output i am getting the follwing error
    DECLARE
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at line 133
    Log message
    ==========
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    31348
    STANDARD
    N
    INCOMPLETE
    1021387
    Start of log messages from FND_FILE
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 945297
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
    User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
    End of log messages from FND_FILE
    Thanks
    Manoj kumar

    Pass NULL instead of ''
    Check the flag
    SELECT multi_org_category
      FROM fnd_concurrent_programs
    WHERE concurrent_program_name = 'POXPOPDOI'Update it as per the below MOS Doc
    R12 / POXPOPDOI - 'ORA-01422' Error While Running 'Import Standard Purchase Orders' [ID 457628.1]
    Otherwise,
    Follow the below doc and insert values to the interface tables (headers, lines and distribution) and run the Import Standard Purchase Orders from the front end.
    How To Diagnose Problems With Importing Standard Purchase Orders [ID 781351.1]
    HTH
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • Standalone Scenario - Error during Creation of Local Purchase Order

    Hi All,
         I am trying to setup Standalone Scenario, i have created all the master data locally, i am able to Order SC, but after workflow approval SC goes into error 'Error during creation of local purchase order from shopping cart XXXXXXXXX'
         I have created following configuration setting for local PO number
    1) In SPRO -> Cross-Application Basic Settings -> Number Ranges -> Define Number rang. for Schopping Carts and Follow-on Doc. --- i have number ranges for PO follow-on doc. i.e.
    inrerval No = PO, from number = 0004000000, to number = 0004999999, ext. = unchecked
    2) In SPRO -> Cross-Application Basic Settings -> Number Ranges -> Define Ranges per backend system for follow-on documents PO, PR etc
    3) In sourcing (SPRO -> Cross-Application Basic Settings -> Sourcing -> Define Interactive Sourcing for product categories) ---  sourcing is never carried out.
    Can anybody help?
    Regards,
    SAP Guy.
    Edited by: SAP Guy on Apr 23, 2008 2:32 AM

    Hi SAP Guy,
    Following steps are must for Local number range
    1) Create number range for local PO
    2) Maintain your logical system in 'Define number range per backend system for follow on document'
    3) Define Transaction Type for BUS2201, define document type (e.g. EC1)
    4) Assign Document type (EC1) in Org attribute BSA.
    Hope this helps.
    Regards,
    Manish.

  • Suppress PO output in case a PO is updated by a purchase order response

    Experts,
    we are in SRM 5.0. We are trying to suppress any PO output when a PO is updated by purchase order response. We are experimenting with PO output start conditions (Customizing). No succes until now. We tried to check whether the object status table has status 'Variance in PO response' (I1352). No effect.
    Does anybody have a clue or even better, an example, how to achieve this without the use of BADI's or defining any customer fields?
    Apparantly when a purchase order is updated via the purchase order response the BBP_DOC_CHANGE_BADI is not triggered, or at least we were not able to debug it, so it looks like this is no option either.
    Any suggestions?
    Thanks for your help, Maurice de Feijter

    Hello Jay, thanks for your suggestion. We are currently implementing SP 14 to 17 in which the note you mentioned is included. Unfortunately PO output is still not suppressed automatically when a PO response is accepted and copied to the PO, even if no content is changed (price, quantity, delivery date ....) .
    That is the reason why we were looking for the possibility to use start conditions in customizing. The main problem there it that we do not know how to recognize that a PO change is triggered by the PO response, and how to configure that in a condition. SAP docu does not give any clue.
    So, any other suggestion is welcome

  • INFO UPDATE in the purchase order ( ME21N)

    Why the field INFO UPDATE in the purchase order ( ME21N) is not flaged when I create a purchase order?
    I create a PO, and I flag it in ME21N, but it cancel it? WHY
    I have already tried it in spro Default values for purchasing, and all seem good!!
    Anybody could tell how can I tick this field?
    Thanks a lot
    Kari

    Hi
    Info update indictor can be set by defualt if you maintain the same in the Purchase inforecord,
    If no inforecord exists then this would not be flagged and if you flag it then the Purchase inforecord gets created with the update of with or wothout plant based on the default value assigned to the buyers.
    Thanks & Regards
    Kishore

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • Why do I keep getting an "error 5002" when trying to purchase my wish list?

    Why do I keep getting a "error 5002" while attempting to purchase my iTunes wishlist?

    I've been trying to figure this out for the past four days myself. I tried everything I could to reset my account information since most of the forums indicated the problem was with my payment information. That didn't ring true for me because I regularly make purchases with no problem. In my case, the problem was that one of the songs I was trying to purchase had been purchased previously. I found this out when I went to each song in my wish list individually and hit the buy button. Surprisingly, each song was purchased and downloaded successfully. When I got to the sixth song or so in my wishlist, iTunes told me that I had already purchased that song and asked if I wanted to download it again. I said yes. I then hit the buy all button for the remaining songs (the behavior that had not worked previously and generated the 5002 error) and the download happened properly.
    I realize that the 5002 error seems to be generated by multiple issues, but that is what worked for me. Perhaps you could try the same approach and see what happens if you haven't already resolved your issue. Good luck.

  • SDK Error -5002 when adding a sales order

    I'm getting an error -5002 when adding a sales order.
    Source code:
          IDocuments m_so2 = SBOCOMUtil.newDocuments(icmp, SBOCOMConstants.BoObjectTypes_Document_oOrders);
          line = m_so2.getLines();
          m_so2.setCardCode("2173231916");
          m_so2.setCardName("test Sales order");
          SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy");
          Date today = Calendar.getInstance().getTime();
          m_so2.setDocDueDate(today);
          line.setItemCode("01005");
          line.setDiscountPercent(new Double(10));
          line.setItemDescription("description Testing");
          line.setQuantity(new Double(3));
          line.setTaxCode("0");
          line.add();
          long rc = m_so2.add();
    Question:
    Where can I find a list of error codes that can be easy to understand? PDF, word, etc.
    Thanks.

    Hi Diego,
    Looking at your code I see that you are doing a
    line.add();
    You don’t need to have this here unless you are adding another line to your document.
    Maybe this will help you.
    Also just because java is a bit different from VB get the last error message using
    SBOErrorMessage errMsg= comp.getLastError();
    System.out.println(errMsg.getErrorMessage());
    -Cormac

  • Service purchase order with quantity

    Hi all,
    Is it possible to create a service purchase order with quantity ?
    Our client is using sap b1 2005b pl39.
    Expecting you all valuable reply.
    Jeyakanthan

    Hi, Jeyakanthan,
    I guess there are 2 ways out for this:
    1. Define the Service as an item ...i.e. create aitem master for it.Then you can define the quantities for it.
    2. Use a UDF in the service type document as quantity and put a FMS to calculate the qty.
    Nagesh

  • Getting error 5002 when trying to purchase software update for 1st gen iPod Touch

    The iPod Touch currently has iOS 2.2.1. I am trying to purchase the iOS 3.1 update by following the link on this support page: http://support.apple.com/kb/HT2052
    Upon signing in and agreeing to the terms of service I recieve error 5002. I have restored the iPod and the error still occurs. I have tried purchasing the update on multiple Apple accounts and on multiple computers, both Mac and PC with no success.
    Any idea how to fix this?
    Thanks!

    Try this artilce.
    http://support.apple.com/kb/TS3297
    It says:
    This alert is often the result of an issue with verifying your billing.
    Quit iTunes.
    Open iTunes.
    Test the issue.
    If it persists, sign in to store.apple.com using your iTunes account
    Click on Change account information
    Modify or remove your credit card information.
    Click Continue.
    Test the issue.
    It could be related to the errors than some users are seeing today and yesterday about checking billing address.

  • MEI7 - Price Updation in Open Purchase Order

    Hi Friends,
    I'm using transaction MEI7 for chaning condition prices in open purchase order items. I get the message log with a list of purchase order items successfully updated, but when i check the 'Item Changes' in PO i don't see any changes with MEI7 or in some cases even if i see that something got changed with MEI7 there is not sufficient information to see what exactly got changed.
    I don't see any documentation in SAP .
    Are there any configuration points to be checked for MEI7?
    How to analyze the results of MEI7?
    Thanks in advance.

    go SE38, enter report name, set the radio button to documentation and click display button.
    This will usually give you the docu.
    Further you can use google to get some good results:
    http://www.se80.co.uk/sapreports/r/rmeb/rmebein2.htm
    Not to forget that help.sap.com is the first place to search:
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/8a/7bf437e676091fe10000009b38f889/frameset.htm
    Please read as well OSS notes like
    Note 173587 - Settings for the pricing worklist
    Edited by: Jürgen L. on Apr 25, 2011 3:17 PM

  • Error in Standard Program for Purchase Order

    Hello Everyone,
    I am getting an ABAP Dump Error while Displaying & Printing Purchase Order using TCODE : ME9F & ME23N.
    We have applied new Patches.
    for Logistics it is 26 & ABAP it is 58.
    I am getting Error in standard INCLUDE
    Program : LMEDRUCKF1K at line 64.
    The Error is :- "Field "ENJPREVIEW" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."
    Declaration for "ENJPREVIEW" is also available in
    include LMEDRUCKTOP. still it gives an error.
    These lines of code is included by SAP note 855263.
    Before applying these Patches it was working properly, but now it gives an error.
    Please , Can anyone give solution for this.
    Regard's
    Archana.

    Hi Archana ,
    Check is there any Inactive Versions in ur Systems ?
    useful tcodes are SPAU /SPDD for tables
    Regards
    prabhu

  • Error While submitting Import Standard Purchase Order Concurrent Program

    Hello All,
    When I am trying to submit Import Standard Purchase Order Concurrent Program from front end, it gets submitted properly.
    and from backend,I am getting Following error.
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 27810853
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
    User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
    When I looked in Parameters in both program(manually submitted and called from backend) I found a difference.
    difference is Parameter Operating Unit. It not get submitted while program calling from backend.
    Please anybody tell me solution for this. for setting this parameter.
    (Also I have applied for patch 13001705 as per Metalink suggested).
    Thanks in advance.
    Regards
    Ravi Raj.
    Edited by: Ravi Raj on Jan 23, 2013 10:50 PM

    Please paste the code here.. there may be some parameter issue while submission.

  • Error while submitting standard import purchase order program

    Hi,
    iam submitting Standard import purchase order concurrent program, iam getting
    error in view - output like
    Enter value for 12: EXEC FND_CONC_STAT.COLLECT;
    Enter value for 14:
    in view-log like
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 10451963
    can any one help me?
    Regards
    Bhaskar

    Please paste the code here.. there may be some parameter issue while submission.

  • Error Occurred while saving the purchase order

    Dear Experts,
    While changing PO and Schedule Agreement using T.Code : ME22, ME32 we are facing below error message.
    Problem occurred While altering and saving the purchase order.
    Error message FGV004 - "SYST:date 00.00.0000 is not permitted" is generated
    when modifying an Scheduling Agreement that does not have a Delivery
    Schedule using ME32L.
    Please Kindly help to fix this error as soon as possible.
    Thanks in Advance.
    Prasath Manoharan

    hi,
    In addition to above..
    I also checked for the SAP note...
    It shows only one note regarding MM...
    pls check the sap note 355827..
    As per this note you need to add few corrections...pls take help of basis consultant..
    Regards
    Priyanka.P

Maybe you are looking for

  • In PO deletion , system asking budget, more than PO value.

    Hi Team, We have Created PR in 2013 with the value of 60,00,000 INR and PO with reference to PR with value of 23,00,000 INR in same fiscal Year. When we are trying to delete PO , system showing Error as below snap shot. PR value - 6000000 PO value –

  • How do you submit an online form?

    I am using Contribute to edit our webpage, it has been fine for what we've needed so far, but that has been very basic stuff. We're now wanting to add an online employment application that can be submitted (directly emailed) to out HR department. I'v

  • Opinions on new V1.2 Features?

    I thought there are some useful new features in V1.2 Note editing is the most useful one. You can now edit the notes in a a recording using a piano roll approach. Long overdue. Smart Strings isn't very impressive, mainly because the implementation of

  • Updating the Service Patch level

    Dear Friends,    We are updating the service patch level of EP 7.0.  It wil be EHP1 (sp05). So do we need to bring other intigrated system to this level,system like BI,SAP HR,SAP DMS etc ? Regards, Devesh

  • Java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.inte

    Hi, I am trying to deploy ejb3.0 on weblogic 10 server. I am able to find the JNDI name of the stateless session bean correctly, but getting an exception while narrowing it down. My ejb3.0 client is a standalone java client. I am trying to access the