VA01: Sales order with reference to order

Hello,
I'm trying to create sales order with reference to other sales order with tcode VA01.
Original sales order has 2 items with same MATNR and MATKL
Example:
000001 MAT1 LLL
000002 MAT1 LLL
When we create a sales order with reference the system throw the following message:
Item 000001 exists already; the entry will be ignored (V1338).
Why dont the system copy the exact number of items although they are iqual?
Is there any option in configuration to control this behavior?
I thank you in advance.
Mario.

Hello Jignesh,
I've tried to perform the changes as you said, but the system trows a short dump.
PERFORM_PARAMETER_MISSING, excepction: CX_SY_DYN_CALL_PARAM_MISSING
A PERFORM was used to call the routine "BEDINGUNG_PRUEFEN_303" of the program
"SAPLV45C".                                                                
The current call contains 0 actual parameter(s),                            
but the routine "BEDINGUNG_PRUEFEN_303" expects 1 parameters.               
I image that's because we are giving a position routine at header level.
Do you have aby other sugestion: I tried to use the same routine that i had (001) and Mark Complete Reference but i didnt worked.
I thank you in advance.
Mário.

Similar Messages

  • Creating sales order with reference to order

    Hi SD gurus.
    I try creating a sales order with reference to order, but I get this error message: "Flow control: Entry SAPMV45B, UER1, E0, *   , AU  , * is missing in T185". I don't know what is missing. Please, could you help me?
    Thanks a lot.
    Marta.

    hi,
    this is to inform you that,
    i went to SE16N given there T185 and checked with UER1 which is an FCODE FOR OVER VIEW SCREEN in VOV8.
    this entry is missing for the combination.
    please check in your sales order in VOV8 whether you have maintained UER1 in the above field.
    if not :
    please maintain the entries missed in T185 in SM30.
    because i have checked teh same in SM30 it is having opportunity to maintain.
    hope this will solve your issue.
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 23, 2010 12:00 PM

  • BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER

    Hi ,
    I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
    Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
    but couldn't find for create with reference to Order ...
    Thanks in advance ...
    Regards
    Rajesh.

    Hi,
    You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
    Reward if it's useful.
    Thanks,
    Anil

  • Pricing procedure for order with reference from order

    Dear Friends,
    If I create a sales order with reference to another sales order of different type, the pricing procedure is copied too.
    But I would to use another pricing procedure for second document
    I found the oss note 14136 but this is for reference from invoce
    I tried to create new data transfer routine for orders in copy from 51, but does not work
    Can you help me??
    thanks
    best regards
    GdA

    > If I create a sales order with reference to another sales order of different type, the pricing procedure is copied too. But I would to use another pricing procedure for second document,
    Based on my understanding of query.
    You are looking for a different pricing procedure in second doc.
    For instance, the PricProc for SalesDoc1 is ZPR001 and  the PricProc for SalesDoc2 is ZPR002, in addition to that, you want SalesDoc1 to become reference doc for SalesDoc2.
    For this, ZPR002 & ZPR001 should have common base price condition type and rest pricing can change.
    And for maintaining different Pricing Procedure with similar combination of sales area for SalesDoc1 & SalesDoc2, maintain different document pricing procedure for both docs and maintain Pricing procedure accordingly..
    Thanks & Regards
    J Prakash

  • Creation of Sales order with reference to SOW contracts(VA01 )

    I had created sales order using BAPI_SALESORDER_CREATEFROMDAT2 and now i want to attach the document link for each line item.I could not do it in my program or recording.How can i enter these document type?pls help......

    Dear Machoy,
    In IMG under
    Sales and Distribution -> Sales -> Sales Documents -> Maintain Copy Control for Sales Documents -> Copying Control: Sales Document to Sales Document
    or Transaction VTAA
    http://help.sap.com/erp2005_ehp_02/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    If you create a sales document with reference to a preceding document, the system copies nearly all the data from the preceding document. The data in the preceding document originally comes from the customer and material master records. Because the data is copied from the preceding documents into the sales document, any changes that have been made to the master data records since the preceding document was created are not included in the sales document. If, when you create with reference, you add another item to the document that was not in the preceding document, the system determines the data for it from the master records, such as the material master or info record.
    You have created an inquiry and a quotation with reference to this inquiry. Before you created the quotation, you changed some data in the material and customer master records.
    You have changed the material description in the material master record. This description is stored in the sales document at item level.
    You have changed the terms of payment in the customer master record from ZB01 to ZB03. These are stored in the sales document at header level.
    When you created the inquiry, the system copies the original material description to the item. If you enter another item in the quotation for the same material, the system displays the new material description for the new item.
    However, the system continues to propose the original term of payment, that is, ZB01, for all items including the new one. This is because it is copied from the header of the preceding document into the header of the quotation, and the change in the customer master record has no affect on the quotation.
    Regards,
    Naveen.

  • Create sales order with reference to 10 quotation

    Create sales order with reference to 10 quotation I want to put all quotation means take reference in one sales order how I can do it because when tried va01 and taken reference of question it allow to put only one question number how can I do it for multiple question
    Ahmed

    Hi Raj,
    If you come back to initial screen after coping the first quotation ,then system will ask you whetehr to save or cancel the data,if we select save then it will be saved immediately,else it will cancel.So ,it is not possible to copy more than one quaotation in standard SAP.The only option is to deveop a BDC with the help of abaper.
    We can only create this when header data is same in all the quotations.
    Regards,
    Pasapula.
    Edited by: Pasapula on Jul 24, 2009 9:48 AM

  • Craete Sales Order with reference to Schedule Agreement

    Dear All,
    I want to create a sales order with reference to a schedule agreement.
    Purpose:
    In case of quantity shortages in delivery of the schedule agreement  line item (Doc type - ZDS), customer want to send a replacement for the balance.
    This replacement is send using a new sales order (Doc type - ZREP). So the requirement is to refer the schedule agreement to keep the link between initial schedule agreement & the replacement order.
    I have maintain the relevant copy controls as well. (ZDS to ZREP)
    I have 2 type of item categories used in the schedule agreement (ZDS).
    LPN - this is for the normal delivery, billing. (Billing relevance - A in the Item category)
    ZPN - this is just to do the manufacturing. No delivery billing is done using this type. (Have Billing Relevance -BLANK)
    So when I try to create a Sales order w.r.t. Schedule agreement, only lines with ZPN shows me in the copying dialog.
    But I want to copy lines with LPN, not lines with ZPN.
    Any idea how to solve this?
    Thanks a lot !

    Thanks you very much for all replies !!!
    Dear Raj/Ankur,
    This replacement is due to quality issue in the initial sent material.
    So I'm sending the same material I sent earlier from the schedule agreement LI. Only difference is to capture the replacement, I use sales order type ZREP (VA01) other than schedule agreement.
    To give you more info on this,
    They use Item category ZPN to produce semi-finished goods & keep it ready for that customer. Once customer asked it with specific color, they do color it & deliver & bill. To do delivery & billing they use Item category LPN.
    Therefore each Scheduel agreement, they have one line with ZPN - only to production.
    one or more LI's with LPN - to do subsequent delivery & billing for that customer.
    So replacement should be created with reference to the LI with LPN. Because my initial delivery happened from that LI.
    Everything is in place as you have mentioned.
    I have maintained copy controls from ZDS to ZREP
    I have copy controls from Item Category LPN to my normal order Item category.
    I have schedule line copy control as well.
    Am I missing anything??
    And there is no issue with my Item category group & material master Item category group as well.

  • Sales order with reference to quotations.

    Hello Experts ,
    I want to know how can a sales order be created with reference to more than one quotation??
    Is there a transaction to do this ?? or else its a process?? Please guide. points will be rewarded to the answers.
    Thanks,
    Arathi

    Hi Arathi Rajan,  ALL ARE GIVEN WRONG ANSWERS TO YOU : SORRY TO SAY THAT ....
    YES YOU CAN CREATE ONE SALES ORDER WITHR EFERENCE TO MULTIPLE QUOTATIONS:
    FOLLOW ME:
    1). GO TO VA01 SCREEN ENTER ORDER TYPE : OR
    ENTER SALES AREA
    2). SELECT THE ICON " WITH REFERENCE TO QUOTATION"
    AND THEN COPY THE 1 QUOTATION DETAILS, THEN IT WILL TAKE YOU TO SALES ORDER SCREEN, THERE U WILL FIND ONE LINE ITEM . OK
    3). THEN, IF U WANT TO ENTER MULTIPLE QUOTATIONS:
    SALES DOCUMENT- SELECT CREATE WITH REFERENCE AND SELECT THE MULTIPLE QUOTATIONS LIKE THIS:
    4). NOW U CAN ABLE TO CREATE THE SALES ORDER WITH REFERENCE TO MULTIPLE QUOTATIONS.
    HOPE IT HELPS YOU ,
    Thanks&Regards
    Venkat.Dhanemkula

  • Sales order with reference to sales order

    Hi,
       I need to create a sales order with reference another sales order using bapi CreateFromDat2.  Please note, Sales Ord. Dist. channel, Div, sold-to to of the new order are different from original order.   I gave reference order in field order_header_in-REFDOCTYPE .  I am getting following error when I perform single test " FB Call: insufficient parameters.  Can any of you tell me how to overcome this issue.  And is it possible to create an order refering to another Saler order with different Sales Ord, Dist. channel, Division, sold-to ?
    <b><REMOVED BY MODERATOR></b>
    Cheers
    Sudhaker
    Message was edited by:
            Alvaro Tejada Galindo

    There is an OSS note <a href="https://service.sap.com/sap/support/notes/370988">Note 370988 - BAPIs in SD: Creation with reference</a>
    <i><b>Symptom</b>
    This note describes the problems of the 'Create with reference' function when using BAPIs to create sales documents.
    If you are working online, you can use this function module to create a sales document with reference to an existing sales document or a billing document (for example, a debit or credit memo request) according to fixed rules. The rules for transferring information from the source document to the target document are defined in the copying control on header and item level. The creation with reference permits an item selection.
    When you use BAPIs in SD, a function of this type is not fully available. A reference is only possible for a quantity contract, so that the target quantity of the contract can be reduced by the order quantity of the sales document. Furthermore, the document flow is also updated.
    As an alternative to 'Create with reference' in Transaction VA01, two variants are provided for solving the 'Create with reference' problem in the BAPI.
          1. Create a '1:1 ' - that is, a document copy of a sales document (customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this point, you cannot create the 1:1 copy of either a billing document or a delivery.
          2. Create a sales document that refers to an existing document with 'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.
    <b>Other terms</b>
    BAPI_SALESDOCUMENT_COPY, BAPI_SALESORDER_CHANGE, BAPI_CUSTOMERINQUIRY_CHANGE, BAPI_CUSTOMERQUOTATION_CHANGE, BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPISDORDER_GETDETAILEDLIST
    <b>Reason and Prerequisites</b>
    As of yet, no method exists for creating a sales document that refers to an existing document.
    Solution
    For solution No. 1
          1. Create the documents using the BAPI_SALESDOCUMENT_COPY function module. However, this only permits a 1:1 copy without factoring out individual items.
          2. After you have created the document copy, you can use a change BAPI to edit this copy.
    For solution No. 2
          1. Collect the data for the reference document (for example a customer quotation) with the 'BAPISDORDER_GETDETAILEDLIST' function module. In the example code, focus exclusively on the partners, items, schedule lines and conditions.
          2. Prepare the Data. Execute the 'copying control' manually. This way, you decide which values are to be transferred.
          3. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
          4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
    An example of solution 2 is attached as a text file. You are allowed to select items and quantities for example, if you use input parameters. If there are no entries, then transfer 1:1 from the reference document. When you enter the 'condition type' parameter, you can determine whether conditions are copied or recalculated ('G' for transferring from the preceding document; 'B' or ' ' for re-determining, and 'C' for re-determining with transfer of the manual elements).</i>
    Sample : <a href="https://websmp108.sap-ag.de/~sapidb/012003146900000486112004E/BAPI_COPY_WITH_REF.txt">ZZ_MS_BAPI_COPY</a>
    Regards

  • Sales order with reference to contract using IDOC_INPUT_ORDERS

    Hi all,
    I had the requirement to create sales order with reference to contract based on some validations of idoc values and then passing the modified idoc data table to IDOC_INPUT_ORDERS. I have completed the coding till the modification of data in a new function module ('Z') and then calling the IDOC_INPUT_ORDERS FM inside that. Now my problem is while creating the sales order, the bdc for Txn VA01 is not populating those values to screen fields which I want to populate. I could find out that some modifs needs to be done in some user exit for reference to contract case.But finding difficulty in getting the exact place to make the modifications. Any pointer to this problem would be highly appreciated.
    Regards,
    Divya

    Hi,
    This issue is been resolved.
    One of my friend helped me with resolving this issue..
    Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
    u2022     SPRO --> SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Define Sales Document Types  --> Field : Outline agreement message; from blank to u201CBu201D.
    u2022     SPRO  -->SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Maintain Sales Document Types for AFS  --> Field : Outline agreement message; from blank to u201CAu201D

  • SALES ORDER WITH REFERENCE TO INVOICE

    I need to create a sales order with reference to an invoice which is called a credit memo request.Which method is better?Can we do recording using SHDB for VA01 transaction by clicking on the create with reference tab in VA01 and performing the recording or do we need to use BAPI.Please explain both the  methods if possible

    Use the BAPI: BAPI_CUSTOMERRETURN_CREATE.
    Regards
    Kannaiah

  • Sales order with reference to contract

    Hi experts,
    I'll like create a sales order with reference to contract.
    In VA01, when I select "create with reference", system visualize a pop-up windows opened in offer view.
    Is it possible open that pop-up windows in contract view as default?
    Thanks to all.
    Angelo

    Hi,
    If you want it automatic at creation of order then go to VOV8
    Select your order type >>> Details >>> Under transaction flow Tab
    Message: Mast.contr - C (Check & baranch directly to selection list)
    Now when ever you create sales order for perticular customer & material, sytem give pop up screen, for this part open contract is available along with contract number,copy it directly.
    Kapil

  • Condition Values not being copied when creating sales order with reference

    hi experts
    i am copy a sales order with reference in va01 , when i copy the order it status is shown as incomplete beacue the condition values in some condition type sis zero, whereas if i delete amount for some condition type and re-eneter it the condition values for all conditon types appears ...
    in all after copying order i go to condition at item level some codition values are zero but if erase amount for any condition type and then re enter it value comes for all condition types

    Hi Sunny,
    Maintain some value against that condition type in VK11.
    This must solve your question. Please set to resolved if it solves your doubt.
    Regards
    Abhii....

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • How to Restrict Return Sales Order with reference to a cancelled invoice

    SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
    Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
    Kindly share your possible solutions.

    Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
    Kindly go through at Copy Controls
    T.CODE:VTAF
    in that some body might have maintained between S1 invoice to RE Sales Document.
    Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
    Rewards if Usefull
    B.Shyam Sunder
    SAP SD Consultant

Maybe you are looking for