Creating Purchase Order from Sales Order via DI

Hi
I get the dreaded -5002 Error when trying to create a Purchase Order referencing a Sales Order.
The variables BaseEntry,BaseLibne contain valid values i've doublechecked that.
is it not possible to generate a referenced Purchase Order this way? If not is it planned?
I use the approach:
oPRDR.CardCode=CardCode
oPRDR.Lines.BaseType = 17
oPRDR.Lines.BaseEntry = BaseEntry
oPRDR.Lines.BaseLine = BaseLine
retval = oPRDR.Add()
btw. I'v tried it without:
oPRDR.CardCode=CardCode
but didn't work either.
tia

Hi Philipp,
This is a bug. Please log it on Service Marketplace.
Sorry,
Frank
PS:
I have just been asked that question by another partner as well.
He could even create a PO based on a SO that with demo databases (PL18 + PL21), but not in a real customer database (not 100% sure about the PL)
He is going to inform Support about that issue...

Similar Messages

  • Create purchase requisition from Sales Order

    Hi,
    Is there a transaction to convert directly a sales order into a purchase requisition or even purchase order?
    When our sales orders are too big our suppliers send the material directly to our customers and right now we do the PO manually.
    Best Regards,
    Carlos

    Goto VOV6 and assign SLca CS with Order type for PR
    Goto IMG>SD>Sales>Sales Documents>Sales Document Item > Assign Item Categories - Assign TAS to the Sales document
    IN material master, Assign the Item category group (BANS)
    Create a sales order, and upon saving in shedule lines you can see that the PR is created.
    Maintain a source list and a vaild info record for the material vendor combination
    Run ME59N, which will automatically converts the PR to PO
    Award points if helpful

  • Automatic posting of purchase order from sales order

    hiii
    experts,
    i m doing automatic purchase order from sales order. i have generated purchase requisition number from sales order now when i m trying to do automatic po the system says no suitable purchase requisition available.I have maintained info record, source code,automatic po tick in material master and in vendor master.what could be the problem .waiting for ur valuable inputs.
    warm regards
    thanks
    subhash kulkarni

    Hello,
    Please check all the things mentioned by our experts e.g Source allocation ,infor record, source list.
    Beside that I would suggest check document flow whether already PO is created or not.
    If every thing is in place then try to create PO with reference to PR by transaction ME21N & see what error you receives.
    Hope this help you ,
    Regards,
    Prashant

  • Update Purchase Requisition from Sales Order

    Hi,
    My requirement is to Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    I have used Userexit         :- MV45AFZB
                     Customerexit :- EXIT_SAPFV45E_002
                     BADI             :- ME_REQ_OI_EXT, ME_REQ_POSTED
    for my requirement, but in vain.
    Of these Userexit  MV45AFZB, Customerexit EXIT_SAPFV45E_002, BADI ME_REQ_OI_EXT are getting triggered in Sales order creation but, Purchase requisition is not yet triggered and we dont have the VENDOR value with which i need to do perform some checks and update the Purchase requisition.
    After I SAVE sales order, BADI ME_REQ_POSTED is getting triggered.Here, the purchase requisition is created ( not yet inserted into the database ) .I also have required VENDOR value, but in the given
    BADI ME_REQ_POSTED I can make checks according to my requirement but not able to update the new values into purchase requisition.
    Literally speaking, Iam struck up..Dont know what to do.....
    Please let me know any Userexit/BADI/BTE where I can  Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    Thanks,
    Shivaa..

    Hi Max,
    It just struck to me...
    As suggested by you, I thought of calling BAPI BAPI_REQUISITION_CHANGE  from user exit USEREXIT_SAVE_DOCUMENT in MV45AFZZ .
    I f I give PReq no. , BAPI BAPI_REQUISITION_CHANGE  will take the particular PReq no., from database and then change it according to our requirements...
    But, in our scenario I am calling the BAPI BAPI_REQUISITION_CHANGE  and passing a PReq no..which doesnt exist in the d/b itself.....
    Anyways, let me try......
    Meanwhile ,please suggest any other options for resolving the issue in question......

  • Create Billing Document from Sales Order (Without Delivery)

    Dear Experts,
    Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
    But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
    So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type  to meet above requirement.
    Thanks in advance.
    Best Regards.
    Ripon

    Hi
    There are two most important configuration:-
    1) In VOV8 for your Order Type maintain the Order Related Billing Document
    2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
    Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
    Regards
    Amitesh Anand
    Edited by: Amitesh Anand on May 24, 2010 5:09 PM

  • Error while creating Delivery Note from Sales Order

    Hi,
    I am trying to create Delivery Note from Sales Order. But, I am getting one error sayin "An Item with no delivery quantity is not permitted.Item will be deleted". Hence, the delivery note was not created.
    Can you please let me know, why this error comes. And how to rectify this error.
    Please let me know, what are all checks, I need to do, to know this error.
    Thanks,
    Sandeep

    Hi
    There may be following reason :-
    Either the relevant Item Category is not relevant for Delivery, Check the Item Category in Sales Order and then check the settings of this Item Category in VOV7.
    Also check the relevant Schedule Line in VOV6, it should be relevant for Delivery.
    The Other reason may be that your schedule line in Sales Order is Not confirmed for Available Quantity so check the Sales Order> Line Item> Schedule Line.
    Regards
    Amitesh Anand

  • Create production order from sales orders

    Hello,
    I am looking for some detailed documentation in order to make customizing in sales module. The aim is to create production orders from sales orders..
    Thanks  for your help

    See the following link from SAP help online:
    > http://help.sap.com/saphelp_47x200/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    It contains lots of useful information on Make-To-Order Production.
    I hope this helps.
    Gerard

  • Change in document type while creating billing document from sales order

    While creating billing document from Sales order it is creating with document type RV which is standerd one but i want to change Document type.
    How can i change it?
    Regards
    Raj

    Hi
    If you use another existing document type, check that it has a number range suitable to you.  Else create a new 'z' type and assign an entirely new number range, not used in the other doc types.
    It is useful to make the FI document number the same number.  If I understand from the forums, the FI number range must be external.  Search the forum for this.  It is very useful for the Finance people.
    Kind regards
    Dawn
    Edited by: Dawn Verrell on Sep 9, 2010 4:10 PM

  • Create purchase requisition form  sales order

    What are all the settings required for autiomatic creation of Purchase requisition from sales order. I am new to this topic

    Hi,
    When the material is trading / externally procured, then the requirement in the Sale order generates PR. This is because the material is required in the sale order & seperate manual data entry for generating material requirement is avoided.
    Regards,
    Prashant Kolhatkar

  • Creation of service order from sales order

    Dear gurus,
    I am creating a service order from sales order. the system is asking me the variant configurations for the said material.
    But i dont want to use a configurable material. I want to use a general material withour variant configuration and generate a service order using predefined tasklist.
    Please help!

    Hello Prashant,
    if you do not want to use configurable materials in sales order:
    make sure the material cannot be configured (material master view 'basic data2')
    make sure the customizing for the item line does not require configuration (remove the 'configuration strategy' in the customizing for the item line)
    Link your sales material to your task list using transaction OISD
    If you do not wat to configure your task list as well, just make sure it is not linked to a configuration profile.
    Does this help?  
    Nicolas

  • Production order from sales order

    Hi experts,
    I have created production order from sales order through t-code co07, there it shows error "Sales order has no CO object" like this.. how to resolve this.
    Thanks

    Hi,
    KA01 configuration is must for CO object And OKB9 config where we configured the Cost Element to Cost Center basing on the profit center as we have the Automatic Acct Assignment.
    Please try and come back.
    Regards,
    R.Brahmankar

  • Can we create service po from sales order

    HI
    can we create sales order from service po. if yes then how can we do so.

    Hi,
    we can create po from sales order in cross docking functionality.
    The steps are
    Sales order > Purcahse requistion > Purchase order > Inbound delivery with reference to purchase order and PGR > Outbound delivery with refernce to sales order and PGI > Invoice and billing.
    Br,
    Tushar Patankar

  • BAPI or FM to create outbound delivery from Sales order

    Hello All,
    My requirement is to create a outbound delivery from sales order. Also i need the batch number and texts to be updated in the delivery.
    For this i need a single FM. The catch is that we don't have the batch number and texts in the sales order. That i have to take from some other delivery. I can get all the information .
    The problem is that i can not find a FM through which i can create the delivery from the order and update the same.
    I should not use two FM.
    Could you please tell me some FM which does both in one go?
    Thanks and Regards,
    Rahul Sinha

    Hi
    Hi,
    You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
    WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
    WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    t_request-document_numb = t_vbap-vbeln.
    t_request-document_item = t_vbap-posnr.
    t_request-quantity_sales_uom = t_vbap-kwmeng.
    t_request-id = 1.
    t_request-document_type = 'A'.
    t_request-delivery_date = sy-datum.
    t_request-material = t_vbap-matnr.
    t_request-plant = t_vbap-werks.
    t_request-date = sy-datum.
    t_request-goods_issue_date = sy-datum.
    t_request-goods_issue_time = sy-uzeit.
    APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
    request = t_request
    createditems = t_created
    return = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: / 'Delivery ', t_created-document_numb.
    Regards,
    Sreeram

  • Automatic creation of Purchase Order from Sales Order

    Hi,
    please is it possible to know the use of flag "Create PO automatically" into Sales Order Item Category customizing setting? Perhaps automatic creation of PO for Third Party sales process.
    Thank you very much
    Kind Reards
    Andrea

    Hi friend,
    You are right that chekbox is used for third party only. And it will be used when you are using ALE when you have distributed system where your sales order is supposed to be created in different system and PO will be raised in different system.
    If you activate this field, the system automatically generates both a purchase order requisition for third-party schedule lines as well as a purchase order in the background when you save the sales order. This function has been designed for Application Link Enabling (ALE) but you can also use it when working with distributed systems.
    To avoid errors caused by incorrect system settings, we recommend that you carry out the SAPEVENT OCU_LINK\DS:TRAN.BD86 for your third-party material. If you SAPEVENT OCU_LINK\DS:TRAN.PFTS tasks 8097 (create)and 8114 (change) (by choosing "Extras -> Employee assignment -> Maintain"), you will receive workflow objects in your inbox, should any errors occur.

  • Order type pick for production order from Sales order

    Hello All,
    I wanted to know how is order type picked in case of Production order is generated directly from Sales order. Can any one help
    Regards
    Divya

    Hi divya,
    1. Check your material master (mm02/mm03) on tab mrp 3, Check your strategy group
    2. Check customizing for Strategy Group (OPPS). Check your Requirement type for Customer
    3. Check customizing for Requirements Types (OVZH). Check what is your requirement class for your requirement type
    4. Check customizing for Requirements Classes (OVZG). Check detail for your requirement class, in Assembly Section, maintain your Order Type. If order type is maintain empty, it changes directly to your standard order type PP01
    Be careful for maintaining this order type in . It is wisely to copy than change the standard requirement type and class setting. As my experience after changing the standard, we can't put it back to standard settings.
    Hope it's answer your question, and mind sharing some points.

Maybe you are looking for

  • How do i call a function in a library package in a form 6i ?

    Hi guys can any help me ? This is the decalred part of my function in the package specification named SECURITY_NEW: ================================================== FUNCTION LOGON_AUTH ( P_user_id IN users_codes.USE_ID%TYPE, P_password IN users_cod

  • Want to create an Receipt in Purchasing

    Hi, I wanted to study cycle entering transactions of PO - Receipt and Invoice. I have added one Purchase Order whoes status is Approved and now wanted to create "Receipts" against it. Is it right step: navigate to "Purchasing Super User" - "Receiving

  • How to import photos containing a tag from elements?

    how to import photos containing a tag from adobe elements 8?

  • Can't get ball to move

    I am trying to make a ball move on my applet but am having trouble trying to make it happen. I have a class golfcourse which draws the course, a ball which handles the drawing and (hopefully) it's movements and a bar class which extends JProgressBar

  • Blue Ring around I Photo !

    Hello I am a Mac Book Pro ! I click on the I Photo Icon It doesnt come up till I do it 2 times it shows up in the center of my scream i drag the arrow it goes blue & cant retrieve  any thing !!!