Link Between Sales Order - Internal Requisition - Internal Sale Order

Hi Expert,
I tried writing the query to find the supply and demand details in ASCP Planning.
In our scenario we created a sales order '5110416.AT PROJECT.ORDER ENTRY(6.1)' and launch the plan. It has created the plan order and after releasing it has created the internal requisition and then Internal sales order. But the supply sales order number is not populated in order_number column of msc_supplies.
Please help me if I am missing some thing. Just for your info I have run the plan again and then also its not updated. Below is the query which I have written. This is very critical for me. Please advice.
SELECT
MS.ORDER_NUMBER,MS.ORDER_TYPE,MS.ORDER_LINE_NUMBER,MD.SALES_ORDER_LINE_ID,MD.ORDER_NUMBER
FROM
MSC_SUPPLIES MS,
MSC_FULL_PEGGING MFP,
MSC_DEMANDS MD
WHERE 1=1
AND MS.TRANSACTION_ID=MFP.TRANSACTION_ID
AND MD.DEMAND_ID=MFP.DEMAND_ID
AND MD.ORDER_NUMBER='5110416.AT PROJECT.ORDER ENTRY(6.1)'
Thanks in advance.
Regards
RV

Hi Suraj,
In MSC Supplies Order_Number column contains the information for Planned Order, but not the Sales order. This same planned order number, once released from planning workbench, would be become the Work Order number of Purchase Req number, depending on the item make/buy code.
However, if you would like to see the supply created for the particular SO, then you also need to create a join for MSC_Sales_orders table in your query. Sales orders after collection are stored in this table. Once the plan is run, relevant SO come into MSC_Demands with origination_type = 30
Hope this answers your question.
Regards,
Kanishk Maheshwari.

Similar Messages

  • Is it possible to create a actual invoice auntomatically for Internal Requisitions/ Internal Sales Orders

    Currently customer has some regulations in other countries that require they create a actual invoice for Internal Requisitions/ Internal Sales Orders.
    Is there a way that these can be created automatically and emailed to specific users?
    Thanks,
    Ling.

    Pl post in the Financials forum - Financials

  • Automatic Link of  Documents in purchase requisition and purchase order

    Dear guru.
    I have created a document in CV01N and I have linked it in document data view of a material master(MM02).
    For every purchase requisition and purchase order position created for this material I need that the system execute an automatic link to this document.
    How can I do that ?
    Thanks

    Hello,
    You can only derive the attached documents from the preceding documents only (for example. Purchase Requisition). Deriving the attached document from the material master is not a standard scenario. This scenario is not in the system. You need to manually attach it.
    bg, Gabor

  • Parallel creation of sales orders, purchase requisitions and purch. orders

    Hi All,
    I have the following requirement, can you please provide feedback if it is feasible or not.If yes HOW ??
    There is report to upload data which first reads all entries in the file -> create SO/PR and then convert them into POs.
    The report displays the all the error and success records.
    When large volume of data is uploaded ,then start the PR to PO conversion after converting the first 500 SO/PRs so that the next 500 entries from file can be used to create SO/PRs and so forth. In this way the SO creation and PR to PO conversion happen in parallel batches thereby improving the performance.
    Is it possible to run the same program in parallel batches of 500 records??
    Thanks and Regards,
    Sachin M M
    Edited by: Thomas Zloch on Apr 12, 2010 3:08 PM - subject line enhanced

    It looks like each SO -> PR -> PO creation is a unit that can be handled in parallel with aRFC (asynchronous RFC), using all available dialog processes minus a few that you want to reserve for other purposes.
    Please search for "parallel processing" and "aRFC".
    I would not try to split SO -> PR and PR -> PO into several processes because of the dependencies.
    Thomas

  • How to create a new sales order to internal requisition?

    Hi, All
    Need help!!!
    How to create a new sales order to internal requisition?
    The internal requisition has generated order sales but this has already been canceled, so I need to create a new sales order to the same internal requisition.
    How to release the internal requisition to re-create new sales order and after import in OM?
    please help me
    Thanks and regards
    Manuel,

    You cannot.
    Once a ISO is generated for an IR, the transferred_to_oe flag is set on that req.
    If the ISO was canceled, you should cancel the IR and create a new one.
    Hope this helps,
    Sandeep Gandhi

  • Link between Delivery Header & Sales Order Item for extraction to 2nd level

    Hi Guys ,
    I am having a requirement that need to pull the following data to 2nd level DSO
    1.  Delivery Header Data
    2. Sales Order Item data. ( Sales Document, Item, Item RDD, Material)
    So I am planning create a 2nd level DSO on top of Delivery header and need to pull the sales order ITEM level data ( Sales document , Order ITEM, ITEM RDD date , Material)  through start routine u2026
    How can I pull the Sales Order Item data through start routine?  i.e I need the link between Delivery Header & Sales Order Item Data .
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).
    Thanks
    Edited by: krismady on Sep 22, 2010 2:26 AM
    or I need the link between LIKP ( Delivery Header) Vs VBAP ( Sales Document Item).

    Hi Krish,
    You can use VBLEN (Sales Document) to link Delivery header DS (2LIS_12_VCHDR) and Delivery item DS (2LIS_12_VCITM). Now In delivery item DS (2LIS_12_VCITM) you have VGBEL (Reference doc.) and VGPOS (Reference item) which is nothing but sales order document number and sales item in Order item DS (2LIS_11_VAITM) .
    So you need to link in above way to get other values in your DSO.
    It is proven method.
    Thanks,
    Uday Shankar.

  • Unable to tie the location to a customer for internal requisitions

    Hello
    I am trying to test internal requisitions on my test server
    10.2.0.2.0 and 12.0.6 are the version we reside on
    We have one operating unit and several organizations lying under this OU
    First Question
    Can I make an internal requistion in which source and destination organization are same?
    Second is that the metalink note says tht " you have have to create an internal location and tie it to a customer"
    I am unable to understand this.what does it mean by this.
    The requisition is raised by our companys employee, where does the customer come here
    When I am entering destination details on requisition form, it gives me following error
    "Destination location requires customers association in the source organization"
    Now which customer is it talking about. there is no customer feild mentioned on requisition form.Plus why would we need a customer , the internal requisition is for our internal org purposes
    Please advice

    Hi,
    1. you should create a move order instead for a the same source and destination organization. It is possible for the destination and source to be the same organization, but unless there is a good reason behind it, I suggest simply do it with move order transfer.
    2. Internal Requisition - Internal Sales Order needs customer association to a location, because sales order (internal or external) needs a location information to ship the materials.
    Therefore, here's what you need:
    - an internal location, basically you just create a new location which is your internal location
    - a dummy customer, just create the customer the same as you would create a normal customer. create a site with ship to and bill to. In the ship to information, click the Details option. In the newly opened form, under the order management option, there's a field called Internal Location. enter the previously created location. This is what the error you encountered before means.
    - a shipping network between two organization with Internal Order Required attribute to be active
    - a purchasable and internal ordere enabled item (don't forget the OE transactable attribute too) assigned in both organization (source and destination)
    That's all you need for internal requisitions - internal sales orders to work.
    Thanks,
    Gerry

  • Automatic Creation Of Internal Requisition

    Hi
    I have a query related to creating of IR from Sales Order Line.
    Does Release 12 support automatic Creation Of Internal Requisition from Sales Order Line. If yes, does it work for both Models and Parts? Do we need sourcing rule to make IR ?
    Pls. share your views.
    Thanks,
    Rajeev

    Thanks Sandeep,
    I am looking for creating Internal Requisition from Sales Order Line , In 11.5.10.2 we cannot create IR automatically but can create Purchase Requisition(PR) in case of Back to Back Order. If we want to source the item internally from any other org then IR has to be created manually. Pls. let me know if I can create IR from SO Line and prerequisite setups.
    My understanding says that in order to create IR automatically we need to have sourcing rule , MAKE / BUY attribute as BUY for the item in the destination org , do we have to make Source Type as INVENTORY under General Planning Tab of Item Master to trigger IR for the item from SO Line < We are not using MRP / ASCP in our case>
    Please clarify.
    Regards,
    Rajeev
    +91 98868 32466

  • Can we combine Query for cancelled requisitions and query for internal requisitions without internal sales order into a single query

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

    Hi All,
    Greetings.
    I have two queries namely,
    1.Query for cancelled requisitions and
    2.Query for Internal Requisitions without Internal Sales Orders.
    I was on a task to combine those two queries..
    Can we do that? if so, please help me do that..
    Thanks in Advance,
    Bhaskar.

  • Tell me the link between Purchase Requisition and Sales Order Number

    tell me the link between Purchase Requisition(MEREQ_TOPLINE-BANFN_EXT) and Sales Order Number(COBL-KDAUF)

    Hi Puja,
    If you have created sales order  for matrial which has both procurement type,after MRP run you will get
    planned order.This planned order you can convert to purchase requisition for external procurement or
    subcontracting.
    You will find sales order number in details of purchase requisition ( ME52N) in Account assignment tab.
    Hope this help you.
    Regards,
    Raja

  • API to create a link between Sales order and Requisition

    We are upgrade 11i to R12. We have a custom drop ship process. We have a original SO and through the sales order we create a Reqisition. We send the requisition details to the factory and the factory sends us a flat file with the quantity shipped and dates. There might be multiple lines for each requisition received. We will add the details to the SO and update the Requision with the flat file details for the SO shipment. But We will have to create a link between the SO and the requisition. Is there an API to do the linking between a SO and A requisition line?

    I created a SO and a requisition
    declare
    p_rsv inv_reservation_global.mtl_reservation_rec_type;
    p_dummy_sn inv_reservation_global.serial_number_tbl_type;
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(240);
    x_rsv_id NUMBER;
    x_dummy_sn inv_reservation_global.serial_number_tbl_type;
    x_status VARCHAR2(1);
    x_qty NUMBER;
    l_inventory_item_id number;
    l_source_header_id number;
    l_reservation_qty number;
    l_error_message VARCHAR2(300);
    l_order_number NUMBER;
    begin
    fnd_global.APPS_Initialize(1131,50654,660);
    p_rsv.reservation_id := NULL;
    p_rsv.requirement_date := to_date('30-JUN-2012','DD-MON-YYYY');
    p_rsv.organization_id := 88; ---ship_from_org_id
    p_rsv.inventory_item_id := 147001; --inventory_item_id
    p_rsv.demand_source_type_id := inv_reservation_global.g_source_type_oe;
    p_rsv.demand_source_name := NULL;-------'SALES ORDER';
    p_rsv.demand_source_header_id := 27005; --- sales order header id
    p_rsv.demand_source_line_id := 29010; --- sales order line id
    p_rsv.primary_uom_code := 'EA';
    p_rsv.primary_uom_id := NULL;
    p_rsv.reservation_uom_code := 'EA';
    p_rsv.reservation_uom_id := NULL;
    p_rsv.reservation_quantity := 200;
    p_rsv.primary_reservation_quantity := 200;
    ----p_rsv.supply_source_type_id := inv_reservation_global.g_source_type_internal_req;
    p_rsv.supply_source_type_id :=inv_reservation_global.g_source_type_inv;
    p_rsv.supply_source_header_id :=18001; -- requisition header id
    p_rsv.supply_source_line_id :=12172; -- requisition line id
    p_rsv.supply_source_name := NULL;
    p_rsv.supply_source_line_detail := NULL;
    p_rsv.autodetail_group_id := NULL;
    p_rsv.external_source_code := NULL;
    p_rsv.external_source_line_id := NULL;
    p_rsv.supply_source_line_detail := NULL;
    p_rsv.revision := NULL;
    p_rsv.subinventory_code := NULL;
    p_rsv.subinventory_id := NULL;
    p_rsv.locator_id := NULL;
    p_rsv.lot_number := NULL;
    p_rsv.lot_number_id := NULL;
    p_rsv.pick_slip_number := NULL;
    p_rsv.lpn_id := NULL;
    p_rsv.attribute_category := NULL;
    p_rsv.ship_ready_flag := NULL;
    p_rsv.demand_source_delivery := NULL;
    p_rsv.attribute1 := NULL;
    p_rsv.attribute2 := NULL;
    p_rsv.attribute3 := NULL;
    p_rsv.attribute4 := NULL;
    p_rsv.attribute5 := NULL;
    p_rsv.attribute6 := NULL;
    p_rsv.attribute7 := NULL;
    p_rsv.attribute8 := NULL;
    p_rsv.attribute9 := NULL;
    p_rsv.attribute10 := NULL;
    p_rsv.attribute11 := NULL;
    p_rsv.attribute12 := NULL;
    p_rsv.attribute13 := NULL;
    p_rsv.attribute14 := NULL;
    p_rsv.attribute15 := NULL;
    inv_reservation_pub.create_reservation
    p_api_version_number => 1.0
    , x_return_status => x_status
    , x_msg_count => x_msg_count
    , x_msg_data => x_msg_data
    , p_rsv_rec => p_rsv
    , p_serial_number => p_dummy_sn
    , x_serial_number => x_dummy_sn
    , x_quantity_reserved => x_qty
    , x_reservation_id => x_rsv_id
    IF x_status='S' THEN --- HARD RESERVATION IS DONE SUCCESFULLY ---
    dbms_output.put_line('reservation succesful');
    dbms_output.put_line('reservation id: || x_rsv_id');
    ELSE
    if(nvl(x_msg_count,0) = 0) then
    dbms_output.put_line('no message return');
    else
    for I in 1..x_msg_count LOOP
    l_error_message := fnd_msg_pub.get(I, 'F');
    end LOOP;
    end if;
    --- HARD RESERVATION API fails ---
    dbms_output.put_line('Reservation API Error Message: '||l_error_message);
    END IF;
    EXCEPTION
    WHEN OTHERS THEN ------------------ In case of any pl/sql error
    l_error_message := SQLERRM;
    dbms_output.put_line('Plsql Error Message: '||l_error_message);
    END;
    but i am getting an error
    "Reservation API Error Message: INV_RSV_DS_SO"
    I am stuck and no idea how to fix this. Any help is appreciated.
    Edited by: 901524 on May 23, 2012 1:26 PM

  • Applying Price list for sales order created from Internal Requisition

    I am using 12.0.5. I have created a price list and applicable discount. I am creating Internal Requisitions and Importing them into Order Management as Sales Order using "Create Internal Order" and "Import Request". But when the sales orders are created, the pricing flag is "Freeze Price" and to apply the price list, I have to change the pricing flag of each line and re-price order/ line. Is this a way around this such that Sales orders created from Internal Requisitions pick up the correct discounted selling pricing automatically after import?

    Hi Ravichandran,
    When the Internal Sales Orders are created via Order Import program, the pricing flag will be "Freeze Price" because the value of CALCULATE_PRICE_FLAG will be set to 'N' in the OE interface line table by the Create Internal Orders program. This is the standard functionality of the Oracle.
    However, if your requirement is to re-price the line (automatic application of discounts at the time of booking) after the SO is created then to avoid the manual repricing steps, you can write a custom program to update the CALCULATE_PRICE_FLAG to 'Y' for the OE Line records present in the interface tables itself. You need to make sure that this update happens before the Order Import program. You can create a Request Set to acheive this, for example...
    XXX Create Internal Orders (Custom Request Set)
    - Create Internal Order (Standard Oracle Program)
    - XXX Update PriceFlag for ISO (Custom Program to update the price flag)
    First run the above request set & then run standard Order Import program. So when SO is being booked, CALCULATE_PRICE_FLAG will be 'Y' i.e., Calculate Price, the required discounts will be pulled & the line will be re-priced automatically.
    I hope this is what you wanted to achieve. Let me know if you have any questions.
    Regards,
    Hemanth

  • 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

  • What is link between SD and Internal order

    hi sap garus
    can baby explain the link between Sd and internal Orders.
    advance thanks
    suresh

    Hi,
    What link exactly do you have in mind? You can assign a sales order to internal order, if that's your question.
    Regards,
    Eli

  • Import order not creating internal sales orders for some orgs

    Hi,
    We are getting one issue in UAT instance. The details are as below -
    1. Created Sales Orders in all 7 orgs.
    2. Ran ASCP plan
    3. planned orders got auto released in all orgs.
    4. Corresponding Internal requisitions got created in all orgs.
    5. Ran 'Create Internal Orders' from each org.
    6. Ran 'Order Import' from BE org as all the IR's were sourced from BE as per sourcing rules.
    7. Issue is that out of 7 orgs, in 2 orgs, DK and SE, the internal sales orders didn't get created and order import gave error. I am attaching the error log below.
    For other 5 orgs, ISO got created successfully and we performed picking/shipping and receiving as well for these 5 orgs.
    Any help will be most welcome.
    error log is -
    Order Import Concurrent Program
    Concurrent Program Parameters
    Validate Only: N
    Order Source: 10
    Order Ref:
    Sold To Org Id:
    Sold To Org:
    Change Sequence:
    Performance Parameter: Y
    Trim Blanks: N
    Operation:
    Number of Instances: 0
    Debug Level: 0
    Request Id: 6891
    Org Id: 2453
    Failed to perform Action Request BOOK_ORDER
    Failed to perform Action Request BOOK_ORDER
    Failed to perform Action Request BOOK_ORDER
    No. of orders found: 2
    No. of orders imported: 0
    No. of orders failed: 2
    Source/Order/Seq/Line Message
    10/1046001536//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_rec
    10/1046001536//2 ATP Process resulted in no data
    10/1046001536//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_tbl
    10/1046001538//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_rec
    10/1046001538//2 ATP Process resulted in no data
    10/1046001538//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_tbl
    End of Order Import Concurrent Program

    Try running the Order import from a responsibility where the profile "OM: Override ATP flag" is set to YES at that responsibility level..

Maybe you are looking for