Which Sales order created a purchase order?

Dear Experts,
What would be the table to look at to check which Sales order is  used to create a type of purchase order?
I know the stock purchase order but not the sales order number that triggered an auto creation of this PO.
Pls advise. Thanks
regards
M Russo

Hello,
Ideally purchase order is linked to sales order in cross docking and third party sales scenario.
In both of above scenario's  sales order is linked to purchase order via purchase requistion.
If you know the purchase order number, then you can find the respective sales order number in the account assignment tab in purchase order screen.
You need to open the purchae order with ME23N/ME22N and go to item detail and check the account assignment tab.
Here you will get the corresponding sales order number.
BR/
Tushar

Similar Messages

  • Sales Order Item to create a Purchase Order

    Hi,
    Iu2019m not SD consultant but I would like to create a sales order and originate a PO for that sales order item.
    Which item category should I select and after that I just have to create the PO, the cost of this PO are also allocated to this sales order correrct?
    Thanks,
    Bo 75.

    Hi,
    Assuming all the basic settings are configured
    Step1: Run T Code VA01 and input the u201Cdocument typeu201D as OR along with your sales area. Then enter your business partner number along with the material number and quantity. Save the order.
    Step2: T Code VA03 input the order number which you have created. Select the line item and (menu bar) Goto u2013 Items u2013 Schedule lines. You will find the u201Cpurchase requisitionu201D for that item just copy the number.
    Note: If you unable to see the u201Cpurchase requ201D in the sales order then make sure you need to change the Item category group of a material in MM02 as BANC in Sales: sales org 2 tab.
    Step3: Run T Code ME21N under the item paste the u201Cpurchase requisitionu201D number generated at sales order level and hit enter that will automatically give all the details, save. You can save the Purchase order.
    This scenario will only help to create purchase order until I know why you want to create a purchase order I canu2019t proceed further.

  • Create a purchase order linked to sale order with DI

    Hello all,
    I tried to create a purchase order based on a sale order with the DI but I get an error message "the business partner selected in base document is different than the target document"
    As you understand, this is normal to have a different business partner. So my question is : is it possible to create with the DI a purchase order linked to a sale order or is this a missing functionality ?
    Thank you
    Sebastien

    Hi sébastien,
       oDoc.Lines.ItemCode = "A00001"
        oDoc.Lines.Quantity = 1
        oDoc.Lines.BaseType = 17
        oDoc.Lines.BaseEntry = 213
    A Purchase document's BaseType can only be a Purchase document itself.
    A Sales document's BaseType can only be a Sales documento itself.
    To create a Purchase Order based on a Sales Order you must go through each row of the Sales Order and copy the values (ItemCode, Quantity, Discounts, VatGroup, etc.) to the Purchase Order.  And remember the VATCode used in a Sales document cannot be the same as the one used in a Purchase document.
    Best Regards,
    Vítor Vieira

  • Create Sales order from Internal Purchase Order using IDOC

    Hello Friends,
    I have requirement to create Sales Order from Internal Purchase Order Using IDOC.
    Backgorund, we have already configured IDOC orders05 to create Sales Order from external Purchase order from Inbound IDOC, and it is working fine.
    Now we have new requirement to create Sales Order from our own Purchase order, i.e. When PO is created in one plant corresponidng sales order automatically must needs to create in another Plant with respect PO.
    I m trying to design a solution for above problem as follows,
    1.create an Inbound Idoc from PO, by creatiing one new message type on PO save.
    2.Process that Inbound  IDOC same as it is from external PO.
    3.Once processed Sales order will create.
    Please help me in step 1. to create Inbound IDOC from PO.
    If you want any further clarification please write me.
    Thanks,
    Mahesh

    I had done a similar scenario before and we achieved it through SAP XI. The problem is with the control record. When we create a ORDERS IDOC from a PO the control record will be for outbound transmission. We sent the file to XI and XI resent it back with some data parsing and a new inbound control record. This way it went neat outbound and inbound.
    I'm not sure what kind of architecture you have. If you have to do it within your ECC/R/3, then you could create the outbound IDOC to a new port and write a fresh RFC to pick it up from the same folder and create a new control record for inbound processing.
    I haven't tried this; but there is a "processing w. trigger (inbound)" option on the outbound process code. May be you can explore into that a bit more.
    I'm sure there could be better approaches to handle this within ECC so if you stumble on any, do write back. I would like to know to update my knowledge .

  • Creating a Purchase Order using ORDERS05 Idoc

    Hi Experts,
    I need to create a purchase order using ORDERS05 Idoc, with the data I am using a sales order is gettig created but I need to create a PO insted of SO.
    Please let me know what is difference between a PO and SO while using ORDERS05. Also please let me know what are all the fields that needs to chaged in the Idoc.
    Thanks,
    Suma

    Hi,
       I'm looking at a similar problem, can we use ORDERS05 IDOC basic type to create a Purchase Order?
       What is the inbound processing FM?  I tried IDOC_INPUT_ORDRSP, but it seem to only allow changes to a PO, and not creation of a PO.
       For IDOC_INPUT_ORDERS FM this one seem to only create Sales Orders?
       Which inbound FM should i be using?
    Regards.

  • Sales order based on purchased order

    Hi,
    How can do a sales order based on a purchase order? I will see all the document workflow on the purchase order history?
            Thanks in advance...
                  Best Regards
                         João Fernandes

    Hello Fernandes,
         I don't think there would be a process where in we place a purchase order to our vendors and then create a sales order based on it for a customer.. Its not at all a common business process..
    Generally we will purchase if required, if we have any sales order, for which we don't have enough stock or doesn't manufacture those products; but the vise versa may not happen in general.
               And even SAP doesn't support that, you can never see the Sales order in the Purchase order history.
       We can create the Sales order based on the purchase order that was placed by the customer .
    Please confirm your business requirements, and let us know to help you in a better way.
    Regards,
    Ajai
    Don't forget to reward points if helpful.

  • DBIF_RSQL_INVALID_RSQL when creating a Purchase Order (ME21N)

    Hi,
    The system is generating a short dump DBIF_RSQL_INVALID_RSQL when a user tries to create a purchase order.
    what could be the cause of this? i have analysed the short dump in st22 and looked at sm21 and st11 and they are giving very little detaill.
                                                                                    Error in the module RSQL accessing the database interface.                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLZMM_GET_ACT" had to be terminated because one of    
    the                                                                               
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                                                                               
    What can you do?                                                                               
    Print out the error message (using the "Print" function)                          
    and make a note of the actions and input that caused the                          
    error.                                                                               
    To resolve the problem, contact your SAP system administrator.                    
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer          
    termination messages, especially those beyond their normal deletion              
    date.                                                                               
    Error analysis                                                                               
    An exception occurred. This exception is dealt with in more detail below  
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was  
    neither                                                                  
    caught nor passed along using a RAISING clause, in the procedure          
    "ZMM_GET_ACT_PLN" "(FUNCTION)"                                           
    Since the caller of the procedure could not have expected this exception  
    to occur, the running program was terminated.                            
    The reason for the exception is:                                          
    The SQL statement generated from the SAP Open SQL Statement violates a    
    restriction imposed by the database system used in R/3.                                                                               
    Possible errors:                                                          
    o The maximum size of an SQL statement has been exceeded.                
    o The statement contains too many input variables.                       
    o The space needed for the input data exceeds the available memory.      
    o ...                                                                               
    You can usually find details in the system log (SM21) and in the          
    developer trace of the work process (ST11).                               
    If an error occurs the developer trace often informs you about the        
    current restrictions.                                                                               
    How to correct the error                                                                               
    The exception must either be prevented, caught within the procedure             
    "ZMM_GET_ACT_PLN"                                                              
    "(FUNCTION)", or declared in the procedure's RAISING clause.                    
    To prevent the exception, note the following:                                   
    The SAP Open SQL statement must be divided into several smaller units.          
    If the problem occurred due to the use of an excessively large table            
    in an IN itab construct, you can use the addition FOR ALL ENTRIES               
    instead.                                                                        
    When you use this addition, the statement is split into smaller units           
    according to the restrictions of the database system used.                                                                               
    You may able to find an interim solution to the problem                         
    in the SAP note system. If you have access to the note system yourself,         
    use the following search criteria:                                                                               
    "DBIF_RSQL_INVALID_RSQL" CX_SY_OPEN_SQL_DBC                                     
    "SAPLZMM_GET_ACT" or "LZMM_GET_ACTU01"                                          
    "ZMM_GET_ACT_PLN"                                                               

    Hi,
    Wherever you have used SQL statement please do check all the fields here as some of the fields are not in correct order as they are required per the actual table in dictonary, to just verify that you can use addition of "INTO CORRESPONDING FIELDS OF INTERNALTABLE" in your SQL statement as this will not require the fields to be in order but this may cause performance issue.
    Thanks and Regards
    Sudharshan

  • Creating a purchase order, cost price?

    hi, when im creating a purchase order and also producing an invoice for it obviously i want the item cost to be used rather the the selling price. however, for some reason the system continues to uses selling price, so when it comes to paying an invoice i need to change all the prices to the cost, which is very annoying.
    many thanks.

    Hi........
    Please check I guess you have assigned sepping price list to the vendors. Please unassign Price List from Vendors.......
    Regards,
    Rahul

  • Creating a Purchase Order, is there any help out there?

    I am creating a purchase order for our sales team that can be utilized on iOS. I have two issues:
    1) Some of our sales will be exempt and will need to be toggled off. How do you go about doing this while not destroying the end total?
    2) Our sales tax varies due to county's jurisdiction. Is there a way to change that once the form is ready to be filled out?
    Thanks Guys
    Below is how my form is being set up, mind you this is an import from excel.

    I don't see a way for you to currently specify that an item is exempt...
    Maybe add another column with check-boxes for the exempt status. However,
    implementing this in the calculation will require a custom-made script.
    As for the sales tax, you can place that in a text field as well and use it
    in your calculation directly. It's even possible to set it up so that a
    selection in a county drop-down will automatically populate the Sales Tax
    field with the correct value.

  • How to create a purchase order in sapR/3

    Hi,
      I want create a purchase order in SAPR/3 system.so for that i need some information like
          which bapi i need to run,input parameters for that bapi.Important values and how to set them.pls kindly send me the related information about that and also send me the java code to do it.

    bapi for creating ourchase order is bapi_po_create.
    Try run it and in return table will be error message about mandatory/wrong parameters.
    For more information get documenatation about that bapi (eq. sap gui, "bapi" transaction) or ask in abap forum
    Regards
       Vedran

  • Steps to create a purchase order in SAP r/3

    Hi All,
        I need to create a purchase order in SAP R/3,I am very new to SAP R/3 just started using material managements module in R/3.Could any one please help me to know what all steps i need to take for creating a PO.Do i require some pre-requisite data in R/3?
    Waiting for your reply!
    Thanking you.
    Regards,
    Namrata.

    Trigger
    A purchase order needs to be created, and the vendor is known
    Business Process Description Overview
    A purchase order is a legal document issued by the buyer to the vendor to supply materials or service at the agreed price, terms and conditions. The Purchase Order forms the basis for all follow-on activities like Goods Receipt, Invoice Verification, etc. The Purchase Orders can be created directly by entering all the required data, copying already created purchase order, with reference to an RFQ/Contract or with reference to a PR.
    Purchase Order creation is possible only if sufficient budget allocation is there for the Fund Centers. It is not possible to create Purchase Orders for a Vendor who is blocked for procurement or not maintained in source list for that item. Also it is not possible to create PO for Quantity more than the PR quantity.
    All the price components which are to be paid to vendors and requires to be inventoried has to be included in PO.It is possible to add different vendors for delivery costs. The tax codes should be correctly maintained in PO for the purpose of Cenvat availment etc.
    The payment term defaulted from Vendor Master or RFQ has to be verified and changed if required.
    The incomplete Purchase Orders can be saved as HOLD document and later completed and saved thru Change PO menu
    Input - Required Fields     Field Value/Comments
    Vendor     Vendor number
    Purchasing Organization     1000
    Purchasing Group     Purchasing Group code
    Date     Purchase order date
    Account assignment category     Where costs will be allocated
    Delivery Date     Anticipated Delivery Date
    Plant     For which plant we are buying the material
    Output - Results     Comments
    Purchase order document     Can be changed, displayed or printed which can then be mailed to vendor
    Tips and Tricks
    The Purchase Orders can be created directly by entering all data required for creating PO or by copying another PO or with reference to RFQ/Contract/PR.To create a purchase order by copying existing document (PO/RFQ/PR), you can either select the desired document in the document overview   .and adopt it in the current purchase order in the right-hand area of the screen using the ADOPT button   .In addition you can drag it onto the shopping basket symbol   with the left-hand mouse button. 
    Click the Personal Settings button on the tool bar, this function is for default information for purchase order header data and also purchase order item data.  This will reduce the amount of redundancy in the data entry, i.e. plant, company code.
    One Purchase Order may be created for several purchase requisitions
    Procedural Steps
    1.1.     Access transaction by:
    Via Menus     Logistics èMaterials ManagementèPurchasingèPurchase OrderèCreateèVendor/Supplying Plant Known.
    Via Transaction Code     ME21N
    1.2.     Double-click   
    On screen “Create Purchase order”
    On screen select Domestic Purchase order in this screen . You can also select other document if you want to create other. Here drop down menu is available.
    Click   to enter the organization data.
    Screen will change in the header; enter data as given in the table below:
    Field Name     R/O/C     Description
    Purchasing Org.     R     Enter the purchasing organization code.
    Example: 1000
    Purch. Group     R     Enter the purchasing Group which is procuring the material
    Example: P01
    Company Code     R     Enter the company code under which above purchasing
    Organization is.
    Example: 1000
    After entering the organization data enter the vendor or material supplier in the field    here drop down is available.click   to see the drop down.
    Field Name     R/O/C     Description
    Search term     O     Text that describes the vendor in more detail.
    Example:     MICON
    Vendor     O     Description of the vendor.
    Example:     100008
    Click   .
    System displays all possible entries available as per data entered
    Restrict value range (1)   1 Entries found
    To select required Vendor Click   .
    Click   .
    Vendor selected
    Now go to   ,here the system will pick up the data automatically from the vendor master but if you want to chane the data you can change the data. Here drop down menu is available.
    Now go to   to mainatin the text.
    After maintaining the text if you want to see or change the vendor address click   and do the amendments.
    Now Go to   and click to enter the Items and other data as per the table given below:
    Field Name     R/O/C     Description
    Account Assignement     R     Key that identifies specific settlement receiver types such as cost centers, internal orders, work orders, asset accounts, or project WBS elements.Example: K
    drop down menu is available here.
    Item Cateogry     O     How the procurement of a material is controlled.
    Drop down menu is available here.Example: Standard
    Material     R     Here you will enter the material to be purchased from the
    Vendor.
    Here also drop down menu is available. Use the following
    to select the material. Example ZROH-DEMO
    In the figure above enter the search cretira for the material for example ZROH-DEMO and click
      . The follwing result will appear on the screen select the line item and click   to select
    the material.
    Short Text     R     Enter here short description about the material,if the text is not
    automatically picked up from the material master.
    PO Quantity     R     Enter here quantity to be ordered.
    Example 10
    Order unit     R     Here we enter the order unit’s of measurement.
    Here also drop down menu is available.
    Example : KG
    Category of delivery date     O     Here you can enter deleviery date format.
    Here also drop down menu is available.
    Example : Day format
    Delivery date     R     Enter the delivery date. You can use the calender provided by
    the system.
    Example : 28.02.2006
    Net price     R     Enter the net price of the material here
    Example : 1000 INR
    Material group     R     Enter the material group to which that material belongs.Here
    also drop down menu is available. This field is also automatic
    picked up field.
    Example : M10001
    Plant     R     Enter the plant code for which you are purchasing the material
    Here also drop down menu is available.
    Example : 1100
    Storage location     O     Here you will enter where the material is to be stored. Drop
    Down menu is available here.
    Example WH01
    Click Enter and system will give you message  
    You will now see the screen
    Field Name     R/O/C     Description
    Cost Centre     R     The purchase is done for which purpose. Here also drop down
    Menu is available.
    Example: 11050 for CDU/VDU /SGU OP
    G/L Account     R     G/L account from which payment will be done.
    It will be automatically be picked up from the material group
    You can change it also.
    Unloading Point     O     Specifies the point at which the material is to be unloaded.
    Recipient     O     Specifies the recipient for whom the material is destined.
    Click   to see and to change the Tax Code at item level.
    Select    to view the taxes applied on the line item.
    click   to go back to the previous screen .
    On the main screen in the same tab if you want to change the taxe select the tax code from the drop down available
    After selection again, Select    to view the taxes applied on the line item.
    If you want to add more conditions click   tab and enter the conditions from the drop down
    You can also maintain the text at item level by clicking   tab.
    After completeing this all click   to check wether here is any error in the purchase order , If there will not
                             ↓
    any error then on the screen following line will appear.
    If there will be some error the system will throw the message on the screen
    select the line item and click   to see the detail of the error.
    close this window now and goto main screen to rectify the error.
    After rectifying the error again click   to check wether here is any error in the purchase order.
    Now click   to save the purchase order, after clicking the button the following message will appear

  • To copy data from Sales order to subsequent purchase order

    Hi all,
    My requirement is to copy Ship-to party address and Incoterms from sales order to subsequent Purchase order.
    I am using exit EXIT_SAPFV45E_001 for this.
    My doubt is - in which tables, Ship-to party address and Incoterms for a purchase order are stored? So that I can copy them from Sales order and update Ship-to party address and Incoterms for corresponding purchase order.
    In exit I can access sales order number and corresponding purchase requisition.
    Thanks,
    Sachin

    what business scenario is this? third-party-order-processing? in that case SAP standard would submit the data from the sales order to the purchase order (via purchase requisition) automatically, see documentation: http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/560287545a11d1a7020000e829fd11/content.htm

  • How to create multiple Purchase Order  using the same document number?

    HI Friends,
    I m in a product which extracts data from SAP and stored in Access database.
    For that,while i extracting Purchase Order from the Demo Database (SBODemo_US)for OEC Computers,the same DocNum is used for several Purchase Order using Index Line numbers.
    eg:
    DocNum for Purchase Order1 -->3000   0 (Index)
      DocNum for Purchase Order2 -->3000   1 (Index)
        But i can't create multiple Purchase Order using same DocNum manually in SAP B1,Could anybody please help me <b>to create a Purchase Order using same DocumentNumber?</b>
    Thanks in Advance
    SooriyaKala.P

    Hi,
    The problem statement is not quite clear to me.
    As far as I understand your statement, I think you want to club multiple orders into one purchase order using the index incrementally.
    For this I think once you have created the first purchase order, open the purchase order in edit mode the second time and append the new line items.
    If I am getting you wrong please explain the problem statement in more detail.
    Regards,
    Rara.

  • Allow to create a purchase order with purchase requisiton item deleted

    Dear all,
    I have a question about creation purchase order process.
    Firstly, I have a purchase requisition with 2 items, first of them is deleted.
    If I try to create a purchase order thru transaction ME57N with the previous purchase requisition, I can only create it with one item (the one wich is not deleted)
    However, if I try to create the purchase order thru transaction ME21N, with purchase requisition as reference, I can create the PO with item that was deleted in PR.
    I don't understand why system allows to create a purchase order with an item that previously was deleted in PR.
    Does anyone have a explanation about this issue?
    Many thanks in advance
    Best Regards.

    Hi,
    In the document overview of ME21N you get all the items of the purchase
    requisitions, no matter if they are deleted or not.
    When you convert the deleted item into a Purchase Order you get message
    06 050 stating that this item is deleted in the purchase requisition.
    This message can be defined as an error message in the customizing
    transaction OME0. This way, it will not be possible to order an item
    which is deleted in the referenced purchase requisition.
    BR
    Nadia Orlandi

  • How to create a Purchase order from XI Using ORDERS05

    Hello Experts,
    I need to create a purchase order using OREDRS05 from XI. I was not able to create and I am having these quires.
    1. What are all the mandatory fields that I need to fill in to create a purchase order?
    2. Which part of the SAP will take care of the control record? Is this done by SAP or Integration Tool?
    3. When I have tryed with an existing Inbound Idoc(On R/3 Side) its showing Satus 51 what should I do?(Error: There is no article description for item 000010)
    If Possible give me the step by step procedure to reslove..
    Thanks in Advance,
    Sai Suma

    Hi Suma,
    Check this link
    Creating Purchase Order IDOC through XI
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    Sachin

Maybe you are looking for

  • How to make a copy of DefaultStyledDocument Object for RTF text ?

    Hi All, In my application, I need to copy RTF text from Org_Default_Styled_Document to New_Default_Styled_Document (both are independent objects.) For this I wrote the below method : public DefaultStyledDocument copyRTFStyledDocument(DefaultStyledDoc

  • ABC Analysis-Reports

    Hi gurus, In some reports output i found the button ABC analysis button. What are the featurs of this button, can anybody explain it. Cheers, Sumith

  • Work centres for employee of more than one plant

    Hello experts I have a question regarding work centres. Our department is managing a pool of workers which consist of employee from more than one plant. Somebody had made experience concerning this issue? Furthermore we have to manage external worker

  • Line input failed

    I can't get any line input signal to show up now, either in OSX or in XP Pro (bootcamp). My input source is not a mic, so I know reduced input voltage is not the issue. I also know that I have the Audio Midi Setup settings properly configured. I've t

  • How to collapse a folder in the project bin?

    Hi there. I'm trying to figure out how to collapse/expand a folder in the project bin. I whipped up a AEGP that listens and reports any/all command IDs, but when I collapse/expand the folder, I'm not getting any command ids. I've noticed there are ma