Purchase order link to sales order

In account assignment dropdown in purchase order, 'sales order' option is available. Will that link sales order to PO ?
1. Does it mean when material is received, it will be used for assigned to that sales order ?
2. But some sales order can not be entered in purchase order. Does anybody know why ?

Hi,
For third party order, either you can create the material master with item category group as BANS, so the system will automatically pick TAS in the sales order for the material or you can change the item category manually to TAS in the order.
This will trigger a PR, based on the PR a PO will be generated.
Defining Item Category Group
IMG ® Sales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item category groups
Defining Item CategorySales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item Categories
Item category TAS
Description 3rd party with SN CM
Item type Blank
Completion rule Blank
Special stock Blank
Relevant for billing B
Billing plan type Blank
Billing block Blank
Pricing X
Statistical value Blank
Revenue recognition Blank
Delimit. start date Blank
Business data item X
Sched. line allowed X
Item relev. for delivery Blank
Returns Blank
Weight/Vol.- relevant X
Credit active X
Determine cost X
Aut. batch determ. Blank
Rounding permitted Blank
Order qty = 1 Blank
Incomplete proced. 28
PartnerDetermProced T
TextDetermProcedure 01
Item cat. status group 1
Screen seq. group N
Status profile Blank
Create PO autom. Blank
Config. strategy Blank
Mat. variant action Blank
ATP material variant Blank
Structure scope Blank
Application Blank
Value contract material Blank
Contract release ctrl Blank
Repair procedure Blank
Billing form Blank
DIP profile Blank
Assigning Item Category
IMG  Sales and Distribution  Sales  Sales Documents  Sales Document Item  Assign Item categories
Creating Material
MM01
1. On the screen Create Material (Initial Screen) enter the material number if External.
2. Choose Select View(s). (Basic View 1&2, Sales Views, Purchasing views and accounting views).
3. Enter the relevant data and save the material. Use material group BANS in the item material group field.
Creating SD Pricing Conditions for material
VK11
Creating Vendor Master
XK01
Regards

Similar Messages

  • Deletion purchase requisition linked to sales orders

    Hi gurus,
    in my SAP system there are purchase requisition created by schedule line from sales orders. For different reasons the sales orders were deliveried and billed with stock free and not with customer stock.
    When I try delete de purchase requisition, because the sales order is completed, the system alarms a message that is not posible to delete in purchase requisition else in sales order. But the sales order is completed and we don't touch it.
    Any idea to delete this purchase requisitions?
    Thank you, I will revvard all answers..

    Hi Mancho ,
    Try to run the program BANF_OHNE_KDAUF in Transaction SE38 and delete the PR.
    The other way would be to change the item category in Sales Order - Line Item so that no PR is generated.But in this case i doubt whether system permits u to change the Item category as u had completed the subsequent process.Just check it.
    Unfortunately currently i am not at my system to check the same.
    Regards
    Ramesh Ch

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • Link Sales Order & Purchase Order in Reports

    Hi All,
    We create all our Purchase Order's back-to-back to our Sales Orders. When we look at Row Details in a Sales Order we can see the linked Purchase Order, and vice versa.
    Is it possible to run a Query that will show the list of Sales Orders (all the rows), and the linked Purchase Order number on each line?
    This would make our life much easier when we use DTW to update the shipping dates in the Sales Order based on the dates we get from our supplier on the Purchase Order.
    Best regards,
    Myran

    I think you can start with this query:
    SELECT T0.DocNum 'Sales order',
    T1.LineNum, T1.ItemCode, T1.Quantity, T1.ShipDate,
    T2.DocNum 'Purchase order', T2.CardCode, T2.CardName
    FROM ORDR T0 
    INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    Inner join OPOR T2 On T2.DocEntry=T1.PoTrgEntry

  • Link between GTM and FSCM (sales or purchase order hedging)

    Hi all,
    I am trying for a few days to have SAP GTM working (I am in an IDES ECC6 system, and as far as I know in EhP4 version). The main goal in fact is to test the currency hedging, and therefore to the link GTM and FSCM, either single-sided purchase or sales order, or two-sided . The flow I want is the following :
    -     I buy or sell a product, in GTM, through a trading contract which generates a purchase or sales order.
    -     Automatically a currency hedge is generated to cover the risk, in FSCM, I guess in exposure management.
    -     And then the financial products (derivatives) are generated as well.
    No problem to create the trading contract, no problem to generate the sales or purchase order. But in spite of the (very little) customizing I found in u201CSAP GTM => currency hedgesu201D, and some in FSCM, in u201Ctreasury and risk managementu201D, no way to have this link between GTM and FSCM, no additional document is generated like a Forward Exchange Transaction (I guess I should have this, and then a risk exposure in FSCM).
    Would you have an idea ? Is this customizing, or an additional Business Functions or Extension Set not activated ? SAP says : u201Cit worksu201D, but canu2019t find the way.
    Thank you very much for your help, I am quite looking for this link for a few days now u2026
    Best regards
    Patrick

    Yes Mr Ashish!
    As far as iam concern there is no link between Project & Customer Master, you have to link it with SALES order, I had check in XD03,XD01, the complete customer master, i didnt find any field in customer master which links with Project.
    I'll let you know if i find any links.
    Regards,
    ANSAR

  • Link a Purchase order to a sales order

    I am looking for a way to link a specific Purchase order to a Sales Order so that when the Purchase Order is received the items are allocated to that specific Sales Order and another sales person cannot sell the murchasedise.  I know you can create a po from a sales order but it seems like when the po is copied to a goods receipt, anyone can invoice those items on a different sales order/ a/r invoice?
    Thanks,
    Don Shields

    Hi Don,
    What you are looking for is more of a hard allocation of Items to a SO.  This functionality does not exist in B1 today.
    If you want to manually create some processes and validation for this, it could be done. 
    1.  Use Batch numbers management for items and linking a Batch to a SO and use the same Batch number in the Goods Receipt.
    I have provided an ellaborate solution for this on this forum last year
    You may check this thread in the meanwhile
    Suda! Again to restriction of items from PO based on SO

  • Link Purchase Order to Sales Order

    Hey All,
    I am trying to link a purchase order created via the DI API to a sales order in the B1 system.
    I set the following fields:
    B1Document.oDocument.Lines.BaseEntry = B1Detail.BaseDocEntry;
    B1Document.oDocument.Lines.BaseLine = B1Detail.BaseDocLine;
    //set base type to sales order = 17
    B1Document.oDocument.Lines.BaseType = 17;
    When I add the purchase order I get this error message:
    Unable to Create Document. Error: Base document card and target document card do not match.  [POR1.VatGroup][line: 1]. -
    After searching for this error I found forum posts relating this to mismatched cardcodes when adding invoices based on sales orders etc.. But the PO will always have a different cardcode then the sales order. I can link the purchase order using the B1 client using the PO checkbox on the sales order form with no problems.
    Am I doing something wrong or is this not possible to do via SDK?

    OK I even tried setting this in XML:
    xmltemplate.InnerXml.Replace("<BaseCard></BaseCard>", "<BaseCard>C20000</BaseCard>");
    I then used that xml to load the purchase order object via GetBusinessObjectFromXML and it still gets the same error. Is there anyone who has figured out a way to do this?

  • Link between vendor number in purchase order and supplying plant (Sales O.)

    Hi All
    Please could you advise, what settings control the following:
    1. Purchase order created for vendor A. (vendor- is internal supplier within same company in SAP, but different company code).
    2. Sales order automatically created on vendors side, plant B.
    Question is where is the link between vendor number (A) and supplying plant name (B):
    How SAP identifies, what plant sales order (for created purchase order) should be generated at?
    Thanks!
    Regards, Andrey

    Hi,
    Click the below link for more infromation about SD & MM integration.
    http://sap-img.com/sap-sd/link-between-sap-sd-mm-and-fi.htm
    regards,
    Venkatesan Anandan

  • 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

  • Purchase Requisition & Planned Order link to sales order

    Dear Gurus,
    please help me to find the link between
    - sales order item
    and
    - ( purchase requisition & Planned orders for semi-finished )
    that created from running the MRP.
    dispite we can see all these data in one screen
    in TCode (MD4C) or (MD09)
    thnak you .
    Edited by: Alvaro Tejada Galindo on Feb 5, 2008 10:50 AM

    Hi,
    For third party order, either you can create the material master with item category group as BANS, so the system will automatically pick TAS in the sales order for the material or you can change the item category manually to TAS in the order.
    This will trigger a PR, based on the PR a PO will be generated.
    Defining Item Category Group
    IMG ® Sales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item category groups
    Defining Item CategorySales and Distribution ® Sales ® Sales Documents ® Sales Document Item ® Define Item Categories
    Item category TAS
    Description 3rd party with SN CM
    Item type Blank
    Completion rule Blank
    Special stock Blank
    Relevant for billing B
    Billing plan type Blank
    Billing block Blank
    Pricing X
    Statistical value Blank
    Revenue recognition Blank
    Delimit. start date Blank
    Business data item X
    Sched. line allowed X
    Item relev. for delivery Blank
    Returns Blank
    Weight/Vol.- relevant X
    Credit active X
    Determine cost X
    Aut. batch determ. Blank
    Rounding permitted Blank
    Order qty = 1 Blank
    Incomplete proced. 28
    PartnerDetermProced T
    TextDetermProcedure 01
    Item cat. status group 1
    Screen seq. group N
    Status profile Blank
    Create PO autom. Blank
    Config. strategy Blank
    Mat. variant action Blank
    ATP material variant Blank
    Structure scope Blank
    Application Blank
    Value contract material Blank
    Contract release ctrl Blank
    Repair procedure Blank
    Billing form Blank
    DIP profile Blank
    Assigning Item Category
    IMG  Sales and Distribution  Sales  Sales Documents  Sales Document Item  Assign Item categories
    Creating Material
    MM01
    1. On the screen Create Material (Initial Screen) enter the material number if External.
    2. Choose Select View(s). (Basic View 1&2, Sales Views, Purchasing views and accounting views).
    3. Enter the relevant data and save the material. Use material group BANS in the item material group field.
    Creating SD Pricing Conditions for material
    VK11
    Creating Vendor Master
    XK01
    Regards

  • Linking Between Sales Order And Purchase ORder

    Dear Gurus,
      How to link the Sales Order Number and Purchase Order Number. I know the Sales Order Number and I need the tables from which I can know the Purchase Order Numbers for that Sales Order Number.
    Points will be awarded.
    Thanks,
    Ravi

    Hi,
    Goto Table Mseg-kdauf is sales order no.
    get mseg-ebeln is purchase order.
    Or u can do the following code.
    from sales order no VBELN get VBFA-VBELV.
    SELECT SINGLE vbeln  FROM  likp
             INTO l_delno
             WHERE  vbeln   = vbfa-vbelv.
    SELECT SINGLE ebeln
               INTO l_sono
               FROM ekbe
               WHERE  belnr = l_delno    
               AND   bewtp = 'L' .  
    L_DELNO IS PURCHASE ORDER.
    If it is helpfull pls reward it.
    Regards
    Srimanta

  • Link between Purchase Orders - Sales Documents

    Hi all,
    How can I find the link between a Purchase Order and a Delivery? I searched in table VBFA (Sales Document Flow) but I can't find anything. When I look into this table I only can see WMS Transfers Order and Shipment numbers. Does anybody have a clue where I can find the link?
    Thx in advance!
    Carl

    Hi
    in <b>EKKN</b> table you have sales order and Item fields (VBELN and POSNR)
    using these fields search for the deliveries in LIPS table
    EKKN-VBELN = LIPS-VGBEL and
    EKKN-POSNR = LIPS-VGPOS
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • DTW cannot link Purchase Orders to Sales Orders

    Despite giving the right values to the BaseEntry, BaseLine and BaseType fields of the PO lines, dtw import or update will fail, claiming "Base document card and target document card do not match".
    Sure, they are different as SO is linked to a customer while PO to a supplier.
    Is that a bug, or am I misundernstanding something?

    Thanks for your prompt answer.
    Yes, after importing the sales orders I am importing the purchase orders. It is working as expected for the other links (like sales orders to quotations and purchase delivery notes to purchase orders), but it fails for purchase orders to sales orders.

  • How to Link Sales Order for Non Purchase items to Purchase Order

    Hi,
    I am using SAP 2007A SP01 PL05.
    I am creating a Sales Order for Non Purchase Items where i have 3 companies involved.
    1. Owner of the Product
    2. Transport Agent
    3. Customer
    Owner Sells to the Customer non Purchase Items manufactured internally.
    Owner buys transports services from the Agent for these non purchase items.
    I am creating a Sales Order for the Customer and at the same time i want to create a Purchase Order to the Transport Agent.
    How do i Link Sales Order to a Purchase Order for Transport.
    The Transport Charges are not to be Charged to the Customer and should not be added to the Sales Order.

    Hi
    Create purchase Item frieght in the purchase tab enter the transporter. include this in the sales order and in the logistic tab of sales order active purchase order check box, you frieght item will have a value of 0. when you create sales order the the system will lead you to create purchase order. there you can enter the price of freight. you can explore options there.
    hope this will help you.. by doing this your base ref for PO would be Sales order.
    Regards
    Sandeep

  • Sales Order and Purchase Order Linking

    This functionality exists in the B1 client but is currently not available via the DI API. Please add this to the list of changes that should be completed with the product. Currently in the API you can base many documents on other documents but for some reason it does not allow you to base a purchase order on a sales order.

    Hi,
    Goto Table Mseg-kdauf is sales order no.
    get mseg-ebeln is purchase order.
    Or u can do the following code.
    from sales order no VBELN get VBFA-VBELV.
    SELECT SINGLE vbeln  FROM  likp
             INTO l_delno
             WHERE  vbeln   = vbfa-vbelv.
    SELECT SINGLE ebeln
               INTO l_sono
               FROM ekbe
               WHERE  belnr = l_delno    
               AND   bewtp = 'L' .  
    L_DELNO IS PURCHASE ORDER.
    If it is helpfull pls reward it.
    Regards
    Srimanta

Maybe you are looking for