Create with reference using BAPI_SALESDOCU_CREATEFROMDATA

Hi,
  I have been trying to use BAPI_SALESDOCU_CREATEFROMDATA to create with reference. I am trying to use the fields REF_DOC and REF_DOC_CA in structure ORDER_HEADER_IN
but the created order is not copying any data from the referenced order. Aaprt from the ref order I am passing the sales area data and sold to customer. Am i missing something or is create with reference not supported?
Regards,
Hari.

Hi,
This bapi will work when you try to copy invoice to the credit memo request..pass the billing document number in salesdocument parameter and pass the sales document type(CMR type) in documenttype.
Thanks
Naren

Similar Messages

  • Add pricing condition within order created with reference to SPA

    Hi,
    I have a requirement wherein I need to add a $50 fine to order if the total order weight is below 75 kg.
    Problem I am facing is with orders created with reference to SPA wherin pricing is not calculated but copied from SPA.
    Please help me in solving this issue.
    Also, Please let me know the pricing userexit / BADI for CRM wherein this can be coded.
    Regards,
    Willban
    Edited by: willban_sap on Jul 21, 2010 11:43 AM

    Hi Willban,
    wonder wether you could use any weight dependent (net or gross) group condition with a scale. Delow 75 kg across all grouped items you would charge 50 $ and starting at 75 kg you would charge 0 $. As the scale base should get adjusted with the copy / create with reference step, I see no need for custom code.
    Best Regards,
    Michael

  • Error  : Sales order 'create with Reference' to the contract

    We have made a value contract. Now we are trying to make a Sales order 'create with Reference' to the contract.
    when we do that, we am getting error 'copying material in any value contract item is not permitted'
    Any help or directions would be greatly appreciated . We are on Ecc 6.0
    Rohit

    As of now my value contract has just one material. so i dont need assortment module settings. right?
    in VTAA settings are as follows
    Target type: OR  
    Source type: ZK1
    there is only on item category
    Target item category: TAN   
    Source item category: WKN
    Copying requirement : 301
    update doc flow : 2
    pricing type : C
    cont item copy mode : A
    DataT am using 151,102,002
    There are no schedule line.
    Rohit
    Edited by: rohit kumar on May 15, 2008 7:36 PM

  • Credit memo to be created with reference to return delivery

    Dear Gurus,
    We have a requirement for mapping return process
    Credit memo to be created with reference to return delivery (instead of with reference to return order)
    Following issue faced in mapping the same:
    Billing document No. 1234 dated 25.03.2010 where there is 4% VAT.
    when we are creating return order with reference to billing document 1234
    4% VAT is calculated since the Service Rendered date is 25.03.2010 (Copied form Billing document)
    return delivery is created today 08.04.2010. (VAT revised to 5%)
    when credit memo is created with reference to delivery document
    VAT is calculated 5% which is applicable from 01.04.2010
    since the service rendered date is appearing in billing document
    08.04.2010 (the date of Post Goods Receipt).
    The VAT should be actually 4% in Credit Memo.
    regards,
    Rajesh T

    In the copy controls from delivery to Invoice, at the item level try to use pricing type C and Pricing source Blank ( Blank is order).
    If it doesnt work , then you might have to go for a requirement routine for this Tax , based on the document category that is being processed, read the tax from the originating order.Assign the routine to tax condition in the pricing procedure.
    Regards
    Sai

  • Enable - Create With Reference in Sales order

    Hi All,
    I want to enable - Create With Reference in Sales order
    We have 1 billing doc type YX1 to be used as reference for a sales order type ZX3
    How to enable Create with reference from Sales Document type YX1 to Sales Document type ZX3.
    Currently, I am getting error 'Copying from sales document type YX1 to ZX3 is not supported'.
    Please let me know the steps to be followed.
    Thank you!
    Regards,
    Shanu Jain

    Hi,
    The error clearly suggests that there is no copy control maintained b/w invoice YX1 and sales order type ZX3. You need to maintain that in SPRO > Sales and Distribution > Sales Documents > Copy control for sales documents. (You may check the correct node here). Here, you select the billing document to sales document.
    Check for source and destination. You can take the source as F2 and CR (if ZX3 is a credit Memo request) as Destination document. You can copy the same and change the source and destination as YX1 as source and ZX3 as destination. Then, at the item level, if you have a new item category you can specify it as the 'Proposed Item Category'. Save it.
    Now try to create the sales document ZX3 w.r.t YX1... It should work.
    Hope this helps
    Thanks
    Mukund S

  • POs created with reference to PRs

    Dear All
    I want PR item valuation price is to be copied in to the PO item as net price, when this PO item is being created with reference to a PR item.
    This is required for both materials PR items and Service PR items
    Presently for material PRs, system is coping the prices from material master, whereas for services no prices are copied as I am not following any service master.
    I want prices directly from PR item. Is this possible in SAP (ECC 6.0)?
    Thank you

    1. Go to SPRO > MM > Purchasing > Authorization Management > Define Function Authorizations for Buyers > Function Authorizations: Purchase Order > Here "New Entries" and define Function Authorization Key as "01" and give description.
    OR use T. Code - OMET
    Here under "General parameters" subscreen, cctivate "Adopt PO Price" indicator and select "Enter conditions"
    In "Possible ref. objects", select "W/o reference" otherwise reference documents (for e.g. PR, RFQ, etc...) for PO creation will become mandatory.
    2. Now go to SU01 > Enter User ID > Parameters Tab > Here for Parameter ID EFB i.e. Function Authorization: Purchase Order, maintain value "01" and check in PO, PR will become mandatory for that user.
    3. Now during creation of PR in ME51N, under "Valuation" Tab, you will get option for PO Price Adoption as Net or Gross. Select as per your requirement and it will copy Price to PO.

  • How to implement a Copy or Create with Reference scenario

    For business objects, you might want to implement a Copy or Create with Reference scenario. The following procedure describes the UI configuration that you need if you want to place a copy button (in our example on an OWL) that starts a quick activity floorplan (on the same BO = Copy, or a different BO = Create with Reference). Pre-requisie in the target BO: The target BO requires a BO element SourceBOID and a Copy action that reads the SourceBO by SourceBOID by query, and copies the elements from the source to the target BO.
    The UI configuration in the target floor plan is:
    1. Open the QAF floor plan of the target BO (target floor plan).
    2. In the DataModel view of the target floor plan, select the Root entry and select Add Data Field from the context menu. Rename the created data element to OBN_OriginBOID.
    3. Choose the Controller tap, and select INPORTS and choose ADD INPORT from the context menu. A new in-port is created. Rename the in-port, for example to Copy.
    4. In the in-port maintenance form, activate the check box OBN INPORT.
    5. Select the namespace of your solution and the target business object.
    6. In the input field SELECT OPERATION enter Copy. A new select operation is created. The combination of business object name (including namespace), business object node and operation identifies the in-port and therefore the related floor plan as navigation target.
    7. Select the port type package /SAP_BYD_UI/SystemPortTypes.PTP.uicomponent.
    8. In the PARAMETERS section of the form, click the ADD button. Maintain the binding of the created parameter to /Root/OBN_OriginBOID. Based on this configuration, the system will transfer the parameter of the in-port to the element in the data model when the OBN is executed.
    9. In the Properties view, select the drop-down list box of the property EVENTS u2022 ONFIRE. Scroll down and select the entry u2026 NEW EVENT HANDLER u2026. The system starts the maintenance window for event handlers. Rename the event handler to CopyIn.
    10. In the OPERATIONS table of the maintenance window for event handlers, select type: BUSINESS OBJECT OPERATION. In the form below the table select the value CREATE for the input field BUSINESS OBJECT OPERATION TYPE. This operation will create a BO instance in the backend when the OBN is executed.
    11. In the OPERATIONS table, create a new operation of type: DATAOPERATION.  In the configuration of the data operation, select the operation type ASSIGN, source expression /Root/OBN_OriginBOID and target expression /Root/<BO>/OriginBOID.
    12. Create a third operation of type: BUSINESS OBJECT ACTION. Select the Copy action of the target business object and click the BIND button. Note: This action enforces another roundtrip to the backend. The Copy action must be implemented so that it will read the origin BO and copy selected data from the origin to the newly created object.
    13. Test the changes in the preview. If no error message is issued, save and activate the floor plan.
    The following procedure describes the configuration in the source floor plan (e.g. OWL floorplan ):
    1. Open the Source BO OWL floor plan (source floor plan).
    2. In the Designer view, place cursor the on the toolbar area and select ADD u2022 APPLICATION-SPECIFIC BUTTON u2022 MY BUTTON from a context menu. Rename the new button to Copy.
    3. In the Properties view, select the drop-down list box of the property MENU INFORMATION u2022 NAVIGATION. The system launches the maintenance window for OBN configuration.
    4. Select the in-port of the target floor plan by selecting the target business object (with namespace and name) the target business object node and the target operation, and the operation Copy.
    5. Choose the navigation style NEWWINDOW.
    6. Close the OBN configuration maintenance window by clicking the OK button. The system creates the OBN configuration, an out-port, that is used by the OBN configuration, and an event handler that uses the out-port and that is assigned to the button (see Properties view, EVENTS u2022 ONFIRE).
    7. Go to the Controller view and rename the OBN configuration to Copy, the new out port to Copy and the new event handler to CopyOut.
    8. Check that the event handler CopyOut fires the out-port Copy.
    9. In the Parameters section of the out-port maintenance form, click the ADD button. Maintain the binding of the created parameter as /Root/<BO>/<BO>ID. Based on this configuration, the system will transfer the identifier of the selected source BO to the out-port data structure when the OBN is executed.
    10. In the Operations table, select type: FIREOUTPORT. In the form below the table select the out-port CopyOut.
    11. Test the changes in the preview. If no error message is issued, save and activate the floor plan.

    Hi Dries-
    There are no pre-packaged solutions with BADIs since they are, by definition, custom development.  If that's the path you need to go down then consider the following high level alternatives:
    Incorporate custom code into the BPC Write Back BADI.  You can restrict the execution of the BADI using filters on the BADI definition, so that the BADI execution only occurs when a data manager package is called, and only for some defined combination of applications/appsets.  Utilized the standard copy/move functions delivered in Data Manager. When the BADI is called, interrogate each record being processed (table CT_ARRAY) and determine if the record has a value you want to process (i.e. save to the target application).  Skip any record that has a zero value.
    Another alternative is to develop the BADI as custom logic.  Data Manager parameters can be picked up in Script Logic and the values can be sent to the BADI by adding parameters.  Please see an example of parmater use in the "How To" document for Destination App at:
    [EPM How To Guides|https://wiki.sdn.sap.com/wiki/display/BPX/Enterprise%20Performance%20Management%20%28EPM%29%20How-to%20Guides]  > "How-to Desitnation App"
    Regards,
    Sheldon

  • Scheduling agreement created with reference to contract-Issue

    Hi all,
               I had posted a query as how to update net price in the contract/scheduling agreement if the condition price is updated through inbound Idocs.I got the correct answer  as you need to run the report RM06ENP0/RM06ENP1 as per note 685117.
    But now I am having a different issue;the scenario is like: A scheduling agreement is created with reference to contract.So the SA is linked to contract now.I am now going to change the condition price of SA through Inbound Idoc.After the updation ,the condition price gets changed in all cases.
    In one server,I found that the net price gets updated and the link btn contract and SA is broken without running the report RM06ENP1(Ideal situation,this is what I want).In other server ,I found the net price is not getting updated,ie the link is not broken even after running the report RM06ENP1.
    Can anybody tell me why the second situation is happening?

    Hi,
    i have done ur scenario. According to ur scenario, quantity contract is created for 100 units may be kg, pc etc.. Then scheduling agreement is created with reference to that contract but for 200 units may be kg, pc etc.. Scheduling agreement is created without getting any error or warning message.
    In the Next step, i.e. maintain delivery schedule( Tcode: ME38). U get the ERROR message as Scheduling agreement document number xxxxx is does not exist after entering scheduling agreement number in the initial screen of ME38.
    if this information is useful for u, reward me according to ur usage.
    bye
    Narasimha Rao Gunda

  • Condition types doubling/tripling/...when sales documents created with reference to other documents

    Hi,
    When I create a sales order with reference to a Quote, the pricing condition types are duplicating. Same is happening when subsequent documents like Billing, credit memo request and credit memo are created. Particularly, the condition types  are doubled/tripled/.... in the subsequent documents. Because of this, pricing net value is calculated wrong. For example, freight charges getting added twice. I searched the forum and found similar issue was discussed at Condition types - Doubling UP  raised by forum member Sridhar Vijjhalwar, however there is no solution added in it.
    Has any other member came across this issue and resolved?
    I have checked the access sequence and exclusive indicators are checked. Copy controls are also checked, looked good and I tested by adding copying type D/G. Checked OSS note also and found one OSS note 1459807 - Invoice has missing/incorrect conditions when created from a sales order.
    but it is not solving the problem either. Issue also elevated to SAP for their investigation. Our system is SAP ECC 6.0 - EHP6.
    Quote Pricing:
    Sales order Pricing:
    I appreciate any pointers to resolve the issue.
    Regards,

    what was the scenario, and how did you replicate?
    It is a configuration for a new project (France country), however we found that the same issue popping up for existing business processes also. As for replicating, we just tried the same procedures, the issue is found in subsequent documents.
    If you have observed one notable thing is - all the condition types which duplicated were Z Conditions, and the standard conditions were never duplicated at least in my case.
    In our case even standard condition types like MWST, SKTO, GRWR, VPRS also shows duplicating.
    if you can throw about the business process?
    As you have mentioned order created with reference to quote was only the straight forward scenario?
    I tested other scenario also, like creating a sales order, then delivery and then billing. In this case in billing document, the condition types are duplicating. If I create a credit memo request against the billing document, then it further duplicating.
    I am not sure what is causing this. I initially thought it may be copy control settings pertaining to the new project, however other business documents also has the same issue. Other business are using different document types.
    Thanks for your follow-up.
    Regards,

  • Create with reference where original document is incomplete

    Hi Guys
    We use variant configuration as part of our sales order process. Within the VC we have 'discontinued' validation i.e. a component of the configuration may be discontinued and therefore unavailable. In this case, we would want to lock the configuration, reject the order item and create a new order item for a different component. We do not wish to delete the order item because of the effect this has on BI sales reporting.
    However, if we later wish to create another document (such as a FOC replacement) with reference to this document we receive an error message to the effect that the document being referenced is incomplete and cannot be used as a reference.
    Does anyone know of a way of being able to copy complete items only during create with reference or being able to set the status of an incomplete ('being processed') item to complete.

    "Incomplete" and "being processed" are two different things. If document is "incomplete", there are some fields that are required and must be filled in before the document may be processed any further. As correctly pointed out above, such fields will appear in the incompletion log.
    There is no way to work around the incompletion procedure. If you need to make the field required only in certain situations, you might want to take it out of the incompletion procedure and add a user exit instead.
    If an order is displayed as "being processed", this means that one of the statuses (see Status tab on header and item level) is "partially processed". Normally setting the rejection reason updates the overall item's status (not to be confused with the header's status) to "complete", but I've heard of some cases when for some reason this does not happen. Unfortunately, I don't recall if there was any solution.
    Hope this helps.

  • Create with reference - Screen settings

    Hi,
    Please help me find where we do settings for the create with reference screen. When we try to create a sales order in VA01 and click create with reference it gives a small pop up on which there are tabs (Order, Inquiry, Quote, etc..). I want to know where we are the settings for this small pop up (create with reference ) screen.
    I remember we can change the default tab (ex: Quotes to Order) on the create with reference screen. I am unable to find it now.
    Thanks !!

    Hello,
       I've just face the same question and found that its possible to use a couple of user setting parameters :
    VRA parameter to set a doc number eg.. 0
    VRV parameter to set the default reference type (A-> Inquiry, B->Quotation, C-> Order, G-> Contract)
    This is working only for sales order type.
    Christophe.

  • Order - create with reference - more information in Item selection ??

    Hi all:
      We are using "Copy control " from Quotation to Sales order..., it works OK.
      But we are facing a problem now... The user used to copy all Quotation as 1 SO and now they need to choose the specific items.
      So, they using  VA01 -> Create with reference -> Item selection ->  "Then Choose items"
       But the screen only has information about  "Item/Material No./Material description and Open quantiry"... not enought for user, they need more info like Plant, batch ... to choose the item....  any setting can make it??
      I have tried "Table setting" and IMG but found nothing !!
      I know we can copy all first and remove it, but is there any way we can choose them from "Item selection"...
      Thanks..

    Hi Amit
    Thanks your answer and which enhancement do you recommand ??
    if there is "easy" enhancement can do it, we might do it otherwise we will use "Copying requirements" only...
    Thanks again

  • Create with reference button - sales order

    Hi,
    This question applies for sales order creation.
    When a sales order is created cand 'create with reference button' is selected, system automatically defaults to quotation field?
    Is it hard coded that way or can we change it to a different default field Inquiry document number?
    Thank you

    Hi Pradyumna,
    I was replying to a specific question whether we can default to inquiry document number and gave my answer to that specific question.
    My system has copy control settings for IN to OR which I presume to be a standard copy control settings in all systems.
    As suggested by Ravi, we can add this in copy control table in case it is not available in system.
    Regarding your next point, I don't think that is the reason why system is defaulting to quotation.
    The reason is because of field 'SD document categ' in sales document type (transaction VOV8).
    If you assign C- order, then system would default to Quotation field when you use create with create reference button.
    If you assign K - Credit memo request, then system would default to Billing field when you use create with create reference button.
    If you assign H - Returns, then system would default to Orders field when you use create with create reference button.
    Regards

  • BAPI Sales Order create with reference Invoice document

    Hi
      I am using BAPI ''SD_SALESDOCUMENT_CREATE''  to create debit memo request with reference Invoice document.
      First time its successfully created with reference Invoice.When i am going to create 2nd time debit memo request with  same reference Invoice and item
      no its giving following error.
          Reference quantity:             
    10 EA (total referenced:             
    40 EA)
           Error in SALES_ITEM_IN 000010
           Condition ZSLS is not allowed as header condition
           Sales document  was not changed
        Please help any one to resolved this issue.
       Regards
       Shyam

    SD_SALESDOCUMENT_CREATE is not a BAPI. Is there any specific reason you're using this FM when the actual BAPI exists?
    ZSLS is a custom condition. There might as well be some user exit that attempts to add it [possibly incorrectly], how would we know this on SCN? There is enough information in the error message to troubleshoot on your own, it seems. What kind of analysis have you done before posting on SCN?

  • Error while posting a sales order created with reference from contract for

    Hi,
    I am posting a sales document( Type: WA)  created with reference from contract document(  type wk2) for delivery.  The item category in the sales order of the Item is WAN. On posting this document for delivery I am getting the error as "Item category WAN is not defined".  Please help me out how to resolve this issue.
    Thanks
    Jayant

    Hi Jayant,
    I think its value contract releated error,
    You suppose to check material item category group through T.code-MM02 into sales2 tab and maintain VCIT,
    and do item category assignment through T.code- VOV4.
    plz.maintain like that,
    WK2 -          -VCIT-         -           - WAN(contract item category),
    wk2  -          -        -VCTR-          - WAN((contract item category),
    you should also maintain same against your standard Sales Document type and for Standard Item category into VOV4,
    WA(standard docu.type) -VCIT-                             -                -TAN(your standard docu.type item category),
    WA(standard docu.type) -         -VCTR(item usage)-              -TAN(your standard docu.type item category),

Maybe you are looking for

  • ITunes 8 won't recognize iPhone

    I'm experiencing this issue on 2 separate computers. When I was prompted to install iTunes 8, I downloaded and installed. During the installation, an error box popped up saying that the iPod service wouldn't be installed. Of course, once installed, t

  • Does the MBP Late 2006 output 1080p @ 24 Hz?

    I'm planning to hook up my MBP Late 2006 model to a Panasonic plasmascreen. Since the tv supports 1080p/24p Im wondering if the MBP can output 1080p @ 24 Hz? Im planning to use a DVI-I -> HDMI cable. Thanks in advance MacBook Pro gen2,2, 15" (Late 20

  • How long does it take to restore 2TB drive to a New external?

    I recently purchased a new 2tb external drive FW800 and wanted copy data from my older 2tb FW400 to this one. I used the restore method in Disk Utility to copy disk partition to the new partition. Its being saying "setup" for hours and hasn't copied.

  • When reopening my document to work on it, 2nd page was not there.

    I was working on editing an iPages brochure. When I reopened it a few hours later, the second (back) page had disappeared. All other times I had previously closed and reopened it, both pages had been there.

  • Where do I find help to use AOL on MacBook?

    This may not be the correct forum to answer this but I would be very grateful if anyone could point me to the right place. I have just acquired a MacBook and as a long term AOL user, I have had to install the current AOL Desktop Beta because it is th