Purchase requisition with reference to blocked sales order

Hello,
we are creating purchase requisitions (PR) manually with reference to a sales order (account assignment Z). When this sales order is blocked, we still can issue the purchase requistion.
What can we do to avoid this? I think in 2 solutions:
- use enhancement MEREQ001 to show error message when SO is blocked, so PR is not created. Is this possible?
- create a release strategy for PR created in that plant (tr. OME6). The problem is that release strategy refers to an amount in the PO, and not to other factor, like SO blocked. Maybe in the former enhancement we can set the field EBAN-GSFRG to 'X'?
Thanks for your help.

Many thanks for your answer. It help me to solve the issue.
So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
            da_sy-msgid = 'Z1'.    (message class)
            da_sy-msgno = '001'.  (message number)
            error_exception = true.
and then the PR is not created.
Regards.

Similar Messages

  • Creation of Purchase requisition with reference to Contract documents

    Dear All
    I am not able to create the Purchase requisition with reference to Contract documents, in outline agreement field if I enter the contract document number which is already existing it is not copying the details, again I have to enter all the details like Plant, Material, document type, Qty etc.  Even after selecting the PR document type as RV for outline agreement also it is not coping. Kindly let me know that can we not able to give reference of Contract number in this outline agreement field to create Purchase requisition.
    regards
    Dhanu

    1.Logistics--Materials Management--Purchasing ---Purchase Requisition --Follow-on functions --- Assign and Process
    2.ME57
    3.Select the Assigned Purchase Requisitions checkbox if you also want to see requisitions already assigned, and choose Execute.
    4.On the Assign and Process Purchase Requisitions screen, select the requisition lines for your material.
    5.Choose Assign Manually if the info record already exists.
    6.On the pop-up Assign Source of Supply Manually dialog box, make the following entries:
    Agreement     46XXXXX            Agmt item     10          
    7.Choose Assign Source of Supply.
    For assign the source of supply, you can also choose Assign Automatically (only if not already assigned by MRP due to existing source list). If more than one source exists, select the contract in the Source Overview for Purchase Requisition 100XXXXX window and confirm with Enter.
    When assigning a source, make sure to select the contract.
    8.Choose Save.
    9.Select the line item, and then choose Assignments Overview (SHIFT+F5).
    10.On the Assign and Process Requisitions: Overview of Assignments screen, select the line below Vendor (you can only select one at a time), then choose Process Assignment.
    11.On the Process Assignment: Create PO window, check and make sure the Order Type (NB), Purchasing Group and Purch. Organization fields then choose Continue (Enter) to confirm.
    12.On the Create Purchase Order screen, select the requisition in the Document Overview section and choose Adopt in the left part of the Document Overview screen.
    13.Choose Save.

  • Creation of Billing with reference to the Sales Order

    Dear Friends,
    I need your suggestion for the following scenario.
    Client wants to create the Billing Document with reference to the Sales order.I mean when he is entering sales Order while creating the billing document ,the system should generate the billing document only for the delivered quantity.
    e.g  sales order is created for 100 Tons.And there are 5 delivery documents for 50 Tons.(Still the Sales order is open).
    Now when billing document is created with reference to the sales order ( Not with reference to the Delivery Document) it should create the billing document only for these five deliveries.
    Is it possible? If yes,how?
    Thanks in advance.
    Regards,
    Shrikant

    Hi Murali,
    Currently client has software where he enters only  Sales Order no and their software creates the billing for the delivery document for this Sales Order.
    Here client does not want to enter multiple delivery document nos if any.He wants to enter only Sales Order no.
    Regards,
    Shrikant

  • Invoice VF01 with reference to the sales order

    Dear Experts,
    Our business requirement is to book the invoice with reference to the sales order without posting delivery and PGI. Provide me the step by step process to complete this configuration.
    Is that suggestible to change the existing document type which the business is using by creating delivery PGI and Invoice to the document type where invoice booking with reference to sales order or I have to go with the new document type only.
    With Regards
    Uday
    Message was edited by: G Lakshmipathi
    Please dont add such text in your post which is not encouraged in SCN.

    TW Typewriter
    can you help, by creating the entire process in Sandbox and informing uday about the configuration steps?
    At the outset, please refrain posting like this which, being a senior member of SCN, you should be aware of rules where spoon feeding is definitely not encouraged.  Those sort of efforts have to be taken by OP.   This forum is only to guide the people wherever they get stucked. 
    cc: Phanikumar V
    You should also be knowing the forum rules and I thought, you would have expressed like what I said above.
    G. Lakshmipathi

  • Single Invoice with reference to 2 Sales Order

    Hi,
    How can i make a single  billing invoice no (vf01) with reference to 2 sales order?
    billing plan has been maintained from each sales order,we dont have any pgi process.
    so process is sales order->billing plan-> invoice
    my user want to generate single invoice with reference to 2 sales order - same customer no.

    For processing  billing due list (VF04) - The system combines documents with the same customer number, proposal billing type and sales organization, and attempts to include them all in the same billing document. If the preconditions are met, then a single invoice is created for the deliveries and/or orders.
    To do a collective billing. Collective Billing Documents
    The selected documents in the billing due list are billed. The system tries to combine them as much as possible. Processing of the selected documents is carried out in the background. After processing of the documents, you return to the billing due list. The sysytem will indicate whether or not a document has been billed successfully.
    If successful, then Save
    You can also carry out a simulation of billing. In this case, select Simulate. The system simulates the collective billing / online function described above.
    -After the collective run you can display a log for the collective run. This displays possible errors during billing.
    -You can also branch to the resulting billing documents, in order to carry out a split analysis.
    -The billing documents of a collective run can also be canceled.
    Re: VF04
    Hope it assist you.
    Thanks & Regards
    JP

  • TO CREATE AN INVOICE WITH REFERENCE TO THE SALES ORDER

    I have a credit memo request(sales order) and I need to create a credit memo(invoice) on saving the sales order without creating the delivery order in between.The invoice(credit memo) must be created directly with "reference" to the sales order(credit memo request) without the delivery order in between

    Hi,
      You can deliver the standard sales order by VA02 going to sales document-> deliver.
    then save it it will give you outbound delivery number then go to vl02n the do the PGI of the same.
    and for Invoices first create billing document byVF01 then create invoice list VF21
    Thanks
    Ankur
    Edited by: Ankur Sharma on Jul 23, 2008 7:51 AM

  • Credit memo with reference to a sales order with reference to a contract?

    Hello All
    Now I created a quantity contract and the customer paid the Amount that means the billing is done then I started creating sales orders with reference to the contract, can I create credit memos with reference to these sales orders?
    Regards
    Jacopo Francois

    Hi,
    You can create a contract for a longer duartion say 1 year, andyou can create sales order in reference to your contract. This would be an ideal scenario in case of service materials.
    You can now surely create credit memo's in reference to this sales order.
    You will invoice the sales order first and create a credit memo request in reference to your sales invoice and then invoice the credit memo request to raise your credit memo for the customer.
    Reward if helpful.
    Regards
    Ravi

  • Create a Sales order with reference to another sales order  using BAPI

    Dear All,
    Can any one tell me what are all the parameters required to create a Sales order with reference to another sales order using BAPI_SALESORDER_CREATEFROMDAT2....
    Thanks in advance

    Hi Madhan
    Thanks a lot for your reply.
    However, I would like to know which parameters need to passed in this BAPI in case of SO creation with reference. I beleive there are only a few parameters that need to passed in ORDER_HEADER_IN, ORDER_ITEMS_IN, etc.
    Need to know exactly which are these parameters.
    Regards
    Mihir Shah.

  • One sales order with reference to 2 sales orders

    Hi Gurus,
    can v create one sales order with reference to 2 sales orders?
    i think it is not possible, but if there is any chance let me know?
    Cheers,
    Sumith

    First u need to ensure whether copy controls are maintained between the documents (say Ex ZOR ---> ZOR) here i am assuming that ur source and target document are of same type)
    Maintain the controls.
    Then u need to create the source documents  and save.
    Then, u need to create the target document by using the create with reference button, enter the first reference order no and proceed further. ater entering into the order, again u need to press the create with reference button for the second time to enter the second reference order.
    Now both the order items will come to a single order. now u can proceed further
    Hope it is useful...
    reward points if u found useful..

  • ORDERS05 - Create a Return with reference to a Sales Order

    Hi all,
    I'm trying to create a return with reference to a sales order via IDOC ORDERS05. I'm indicating referenced Sales Order number into segment E1EDK02; indicating qualifier (QUALFR = 002) and Sales order number (BELNR). By this way, I create a Customer Return but without reference.
    Which fields or segment have to be filled in order to create it correctly?
    Thanks
    Marí

    Correct...
    You need something like:
    *Get the pricing cond number.
    select single knumv from vbak into cond
      where vbeln = '0000080347'.
    if sy-subrc = 0.
    Get the pricing record which are by line item.
      select * from konv into table konv_tbl where knumv = cond.
    Loop thru them one line at a time.
      loop at konv_tbl.
       bapi_cond-itm_number = '000010'.
        bapi_cond-cond_st_no = konv_tbl-stunr.
        bapi_cond-cond_count = konv_tbl-zaehk.
    CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
      EXPORTING
        RETURN_HEADER_IN               = bapi_hdr
       BUSINESS_OBJECT               = 'BUS2102'
        CONVERT                        = 'X'
      IMPORTING
        SALESDOCUMENT                 = bapi_salesdoc
       RETURN                        = BAPI_RET
      TABLES
        RETURN                        = bapi_ret_tbl
        RETURN_ITEMS_IN                = bapi_itm
        RETURN_ITEMS_INX               = bapi_itm_out
        RETURN_PARTNERS                = bapi_prtnr
        RETURN_SCHEDULES_IN            = bapi_schd_lin
        RETURN_CONDITIONS_IN           = bapi_cond.  "pricing
      ORDER_TEXT                    = bapi_text.

  • Create a Revenue Order with Reference to a Sales Order

    Hi Gurus,
      I have specific requirement of creating a Revenue Order ( ZCAR ) with Reference to a Sales Order. The Issue is when I create a Revenue Order from Sales Order by using the BAPI to Copy the data from Original Sales Order it will create copy the data which is there in Original Sales order. My Requirement is when I create the Revenue Order I should have Credit Line which is same as the Order Line from Orignal Sales order and also I need to have a debit line ( which will be a copy of Credit Line ) only difference is Item Categories will be different .
    Please tell me how can I add the debit line in this Scenario and which BAPI's should I use to do this.
    Thanks,
    Raj

    What is the IO you have assigned in the Sales Order please?
    Just check the Sales Order - Account assignement, so that you can able to change if there is a different IO.
    System won't pick up IO automayically until unless you secify in Sales order to done OKB9 settings.
    Chek the above
    Thanks

  • BAPI to create sales order with reference to another sales order

    hi all,
    is there a bapi that allows you to create a sales order with reference to another sales order?
    thanks,
    V

    Hi Valencia,
    I think the normal BAPI (BAPI_SALESORDER_CREATEFROMDAT1)will do. You will have to fill the fields REF_DOC, REF_DOC_IT, REF_DOC_CA of the table ORDER_ITEMS_IN (and make sure that Customizing settings allow you to copy from order to order).
    Regards,
    John.

  • FM to create Sales order with reference to another Sales order

    Hi,
    Is there any inbound IDOC FM which can create a Sales Order with reference to another Sales order.
    PLease reply
    Santhana M.

    Hi,
    try FM BAPI_SALESORDER_CREATEFROMDAT2
    with ORDER_HEADER_IN fields
    REFOBJTYPE
    REFOBJKEY
    REFDOCTYPE
    Regards,
    Clemens

  • Creating new sale order with reference of old sale order.

    Dear gurus
    i have requirement
    i want to make a sale order with reference of old sale order.
    how to achieve it?
    Regards
    Saad Nisar

    Hi,
    In vtaa
    give source and document number and assign all the relevant routines.
    Now on the left hand side, click the Item button and then give the source I.C as TAC and target also as TAC adn then fill the routines.
    Do the same for Schedule line (which is related to TAC)
    If this is done, then ur scenario will work

  • Purchase requisition got deleted in the sales order..

    Hi All,
    I got stuck up with an issue in AFS.
    The issue is that after creating a P.O with the help of a TAB order,the user has assigned a rejection reason at the item level in the sales order.
    Then again the rejection reason was removed and now the purchase requisition is not appearing in the sales order.
    Now how can i get back the purchase requisition??Is there any option to retreve the purchase requisition with the help of a correction report??
    Can any one please help me out..
    Thanks.

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

Maybe you are looking for