Strange error in delting item in Purchase Order

Dear All
I created a Purchase Order with reference to a Contract.Then when I try to delete the item in the Purchase Order I get the eror
Date in Item 000010 of document 4600013853 does not exist.Here 4600013853 is number of the contract.I checked the date of the contract but the contract is fully valid.
I am not sure why I get this error.
Can anybdoy guide me on this?
Regards
Amit

Hi,
Please remove the contract number from po line item before deleting the PO line item.
regards
Vivek.

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.

  • Not to include item from purchase order to the delivery order

    Hi,
    i need some guidance on above topic. The user requested to have the functionality not to include the item from purchase order to delivery order when the item having  order balance quantity more than the available stock.
    In other words, if a PO contains several items, those order balance quantity which is more than the available stock will not be included in the DO.
    is the above scenario possible?
    please advise.
    Thanks.

    Hi Yue ,
    u can do it , but in this case u have to make use of user exit or BADI.
    option 1 .
    by using user exit , u can delete/change picking/confirm qty .
    option2:
    while doing  the PGI , do can cross check stock avail with PO qty and raise error messages.
    LE_SHP_GOODSMOVEMENT --> see its documentations in se18.
    Regards
    Peram

  • 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.

  • "All items from purchase order cannot be invoiced"

    Hello,<br />
    <br />
    I'm on a SRM 7.0 SP 5 system (ext-classic scenario). Here i try to create an invoice with reference to a Purchase Order, but none of my Purchase Orders can be used for reference. I get the following warning message 'All items from purchase order cannot be invoiced'.<br />
    <br />
    - Created via POWL (create with reference -&gt; invoice/credit memo) i always get the warning message 'All items from purchase order cannot be invoiced'. And no items are converted / can be used for invoicing. Additionally when i use the search option 'find purchase order' within the create invoice transaction i can not find any purchase order to use, it shows 'There is no search result' while there are plenty purchase orders marked with 'invoice expected'.<br />
    <br />
    I am able to create invoices without reference.<br />
    <br />
    I tried vendors set up only for 'invoice expected' and 'GR', 'invoice expected' / 'GR' / 'GR-based-IV' and 'invoice expected' only none of them works, indicators set on vendor master are correctly used on the created purchase order. Outputting PO doesn't make any difference neither.<br />
    <p />
    I have not set up the following (do i need to?):<br />
    - Deactivated the 'CRME' transaction type, no Credit Memo transaction type has been configured/is active.<br />
    - I have not defined the 'INV' transaction type as a follow-on document for my ECPO transaction type within the define transaction type transaction.<br />
    - Tollerances<br />
    <br />
    <b>edit</b> -&gt; i've already searched thorougly for SAP notes but no note seems to cover this particular problem.<br />
    <br />
    Help is very much appreciated

    Solved! Added SYS attribute for back-end system in organisational scheme.

  • 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

  • How to restrict the user to enter the item in purchase order?

    I want to restrict user to enter the item in purchase order.
    How can i do this?
    Please help
    Abhishek

    Hi,
       You may create a transaction variant for ME21N in SHD0 transaction. Make the item field as output only as shown below:
    Result:
       You may check the doc: Learning SHD0 with Example
    Regards,
    AKPT

  • Retrieve Material group item in Purchase Order.

    Hi all,
    I would need to retrieve the material group from item in Purchase order to compare in Step condition in workflow.
    I have a copy of WS14000075. The container from this WF hasn't this field, at least that I know.
    How can to retrieve this value from purchase order?
    Some idea for it?
    Many Thanks,
    Regards,
    David.

    Hi Nishant,
    I will obtain the material group, but I need pass to workflow the value for each item and compare it with another values obtained from Z table (this part is implemented).
    I would need something similar to BO BUS2121 attribute "MaterialGroup".
    Many Thanks.
    Regards,
    David.

  • Delete item from Purchase Order

    Dear All,
    I want to cancel line item from Purchase Order.
    But  i am unable to do it as i have already made advance payment against PO/Item.
    Actually advance payment was against another Item of PO but by mistake selected wrong item while f-47.
    Now i want to delete item for which made avance payment and transfer advance payment with another PO item.
    How to do it.
    Regards
    Swati

    Hi,
    Your Issue
    Lets say, you have created two items in a PO, and made adv payment against item 10 instead of 20.
    Now you want to delete the item 10---
    Solution
    I hope you have not done any GRN to both items (10 & 20) of your PO.
    Then make your item 10 as same as your item 20. (Do change the material code, order qty, price etc)
    Then delete the item 20.
    So with this, you have made your errorised PO item as actual item, and deleting yout actual PO item as errorised item.
    This is as good as swaping the items from one item to another item in the same PO.
    This will resolve your issue.
    Thanks,
    Srinu

  • Delete the perticuler Line Items of PURCHASE ORDERS.

    Hi Friends,
    i want delete the perticuler Line Items of PURCHASE ORDERS.
    EXAMPLE :
    I HAVE ONE PO  : 2000010.
    IT HAVING 10 LINE ITEMS. LIKE 1 , 2 , 3 , 4 ,5 ,6 ,7 ,8 ,9 , 10.
    FOR THIS PO , I WANT DELETE THE 5TH LINE ITEM.
    MEAN FOR PERTICULAR PO I WANT DELETE ITS SPECIFIC LINE ITEM NO.
    ANYBODY EXPLIAN..
    THANKS

    Are you looking to do this from an ABAP program or from the PO Screens?   EKPO does have a field for the Deletion Indicator.  Is there a reason why you would choose to do this from an ABAP program rather than the ME22n?

  • Creating Commitment Items In Purchase Order Level

    Hi Friend,
                    I need some information on How to create commitment items  at Purchase Order item level. Any  BADI's,  please suggest me.
    Thanks in Advanced
    Shiv'.

    Hi dude ,
    Here i am not suppose to  create any new tab at item level , could you  little bit clear............,
    Thanks .
    Shiv'.

  • User Exit to add line item in Purchase Order

    Hi SAP Gurus,
    Can any body tell me which user exit is used to add the line items in Purchase Order. I want to link the Packaging material (material type - VERP) to the header material (Material type - FERT) in PO for order type NB or UB. Because our requirement is what, when we enter the finished material in PO then packaging material linked with that finished material should automatically comes into PO as a line item.
    Please help me for the same.
    Thanks in Advance.
    Regards,
    Sujay

    Hi,
    You can use Function Module for this requirement.
    BAPI_PO_GETDETAIL1
    Bye,
    Muralidhara

  • Alternative items on Purchase Order

    Hi Experts:
        I have a question regarding the alternative items on Purchase order. If alternative item A2 is setup for item A1 from Vendor XYZ, and if we place a PO with XYZ for item A1 but they ship item A2: can we receive A2 in stock on the initial PO for A1? Dose SAP have these kind of solutions?
    Thanks and best regards
    Xincheng JIN

    Hi,
    there is one good solution for this sort of requirement...However, the limitations are there; may be suitable for example, we order for envelopes from vendor.  You may order for one type of envelope and vendor may send other type...size may be the same, one envelope with window for address and other type may not have a window....similar such situations can be easily address using the standard SAP's below example: (I implemented this already in 2 projects previously)
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/fb79385feddf6ae10000009b38f8cf/frameset.htm
    Example: Configurable Materials in Purchasing
    You are responsible for procuring office supplies for your company, including envelopes. A printing firm supplies you with envelopes featuring your company logo in various sizes, with or without an address window.
    In order not to have to create separate material master records for every possible combination (e.g. C5 with window, C6 without window), you wish to use a configurable material.
    You must carry out the following activities for a configurable material:
    Create characteristics
    Create class
    Create material
    Create configuration profile
    Create Characteristics
    You define the criteria you use to differentiate between the variants of a material (in this case, the size of the envelope and the address window) by means of characteristics. You must create a characteristic for each criterion under Logistics ® Central Functions ® Classification System ® Master Data ® Characteristics Management.
    Characteristic: Size of envelope
    Enter size_of_envelope in the field Characteristic.
    Choose Create.
    Enter the following data on the tab page Basic Data:
    · Description: Size of envelopes
    · Data type: Character format
    · Number of characters: 20
    This indicates how many characters a characteristic value may comprise.
    · Select the Single value indicator in the area Value assignment.
    If you set the Single value indicator, one value only may be assigned to the characteristic. For example, only one size may be chosen when you specify the dimensions of the envelopes that are to be ordered in a PO.
    Enter the following data on the tab page Values:
    · Enter possible values for the characteristic:
    Characteristic value
    Description
    DIN C4
    229 mm x 324 mm
    DIN C5
    229 mm x 162 mm
    DIN "Langhülle"
    218 mm x 114 mm
    DIN C6
    162 mm x 114 mm
    · Select the Additional values indicator.
    If this indicator is selected, you may also specify values that you have not yet defined here when assigning values to the characteristic.
    Choose the class type 300 (variants) on the tab page Restrictions.
    Choose Save.
    Characteristic: Address window in envelope
    Enter window_in_envelope in the field Characteristic.
    Choose Create.
    Enter the following data on the tab page Basic Data:
    · Description: Address window in envelopes
    · Data type: Character format
    · Number of characters: 4
    · Select the Single value indicator in the area Value assignment.
    Enter the following data on the tab page Values:
    · Values of characteristic: yes , no
    · Do not select the Additional values indicator.
    Choose the class type 300 (variants) on the tab page Restrictions.
    Choose Save.
    Create Class
    You group several characteristics to form a class. The class is then assigned to a material.
    Choose Logistics ® Central functions ® Classification system ® Master data ® Class management.
    Enter the following data on the initial screen:
    · Class : Envelope
    · Class type: 300 (variants)
    Choose Create.
    Enter a short description of the class in the Description field on the tab page Basic data: Envelopes with company logo.
    On the tab page Characteristics, enter the characteristics you created previously: size_of_envelope, window_in_envelope .
    Choose Save.
    Create Material
    Choose Logistics ® Materials management ® Material master ® Create material ® Create (general) ® Immediately.
    Enter the following data:
    · Material: Envelope
    · Industry sector: Office supplies
    · Material type: Configurable material
    Choose Enter.
    Choose the views Basic Data 1, Basic Data 2, Purchasing, and Accounting 1.
    Enter plant 0001.
    Enter the following data on the tab page Basic Data 1:
    · Short description of the material: Envelopes with company logo
    · Base unit of measure: KI (box)
    · Material group: Office supplies
    On the tab page Basic Data 2, check whether the Material is configurable is selected.
    On the tab page Purchasing, select the Subject to batch management indicator.
    On the tab page Accounting 1, enter the following data:
    · Valuation class:
    · Price control: V
    · Moving average price: 99.95
    Choose Save.
    Create Configuration Profile
    In the configuration profile, you assign characteristics to the material via a class.
    Choose Logistics ® Central functions ® Variant configuration ® Configuration profile ® Create.
    Select Material and choose Enter .
    Enter envelope in the field Material.
    Choose Goto ® Profile overview.
    Enter the following data:
    · Priority: 01
    · Profile name: Envelopes
    · Class type: 300 (variants)
    Choose Goto ® Class assignment and enter envelope in the Class field.
    Choose Save.
    Use in Purchasing
    You can now create, change and display this configurable material in all purchasing documents.
    Display
    If a configuration already exists for the material, you can display it in the purchasing document.
    Change
    If the configuration of the material was adopted from a sales order or from the material master record, you can change it in the purchasing document. This may be necessary if a material with the selected characteristic value cannot be supplied (is not available) and has to be changed to the material in the quotation.
    If you change the configuration of a material in the purchasing document:
    A new price determination process is carried out
    You do not change the original configuration in the sales order or in the material master record as a result
    Subsequent changes to the sales order or the material master record do not affect the configuration in the purchasing document
    Create
    If no configuration yet exists for a configurable material, you can create one in the purchasing document. This may be necessary, for example, if a configurable material is to be ordered without reference to a sales order.
    Subcontracting items and the archiving of the characteristic values are not supported.
    For more information on configurable materials, refer to the section  LO Variant Configuration.

  • Error: Automatic tick in free Item in purchase order on line for specific vendor

    Hello All,
    Sales order is created then running mrp through MD01,requisitions are created.while creating purchase order for a particular vendor it is automatically ticking on free item indicator and giving error as material is not maintained in the plant (XXX) Free trade. while PR is not created for plant(XXX).
    i have checked they are not doing any transaction in plant (xxx).
    Please do needful in above issue.

    Hi all ;
    Can you share screen-shoots for your sales document ?
    1-What is your sales document type ? Go to VOV8 find it and share.
    2-What is your item category for this sales order? Go to VOV7 find it and share us.
    3-What is your schedule line ? Go to VOV6 find it and share us.
    Regards.
    M.Ozgur Unal

  • Error while closing the open purchase order for MRP run

    HI expets,
                     We are facing issue while closing the old purchase order(18.12.2007) for MRP run, if we are clicking delivery completed for the particular line item ,system is showing the error NET PRICE MUST BE GREATER THAN ZEROthough we have made GR and IR aganist the line item an value is also showing in the purchase order history tab, but in the condition tab there is no value showing for the particular line item .Kindly suggest the way forward.
    regards
    Karthick sundaram

    one thing for sure, you cannot proceed without maintaining proper conditions in the PO.
    Why they are not there or not anymore there is probably caused by customizing or vendor master data changes.

Maybe you are looking for