Really Urgent: Problem in making link b/w sales order and production order

Hi,
I am trying to make link b/w the sales order delivery(VL03) by taking its Batch Number(LIPS- Delivery table) and linking with AFPO(Production order Table) field (batch no) so that i can see the fruther operations done o dat production order made against sales order,but it is not coming .
I want to have help which allows me to make link b/w delivery (vf03) and the productiona order.
plzz help me out it is really urgent.
Edited by: ric .s on Apr 11, 2008 7:43 AM
Edited by: ric .s on Apr 11, 2008 7:59 AM
Edited by: ric .s on Apr 11, 2008 9:23 AM

You have delivery no(VBELN) & itam no (Posnr)from lips table.
Now
1. go to VBFA table end get the corresponding sales oredr no and order item no.
In VBFA table pass the delivery no in VBELN and delivery item in POSNN and 'J' in VBTYP_N and 'C' in VBTYP_V.
Now VBELV & POSNV will return the sales order no and sales order item.
2. Got to VBAP table and get the corresponding AUFNR to the order no and item no.
3. Now with that AUFNR you will get a connection with AFPO(Production order Table.

Similar Messages

  • Link between Purchase Order and Production Order

    Hi,
    Could some one tell me how i could get a relation ship between Purchase order and Production Order after a Good receipt is done. Coz after a GR is done I am not able to see the production order for a particular material in MD04 transaction.
    Thanks,
    Arul.

    Hi Arul ,
    i think u may not get the LINK b/w Production Order and PO , Bcos--->
    check the process --->
    RUN MRP , here System will generate the Production Plan and PRs( based on the avail.of that Raw Material).So PO will be generated by PRs.So I think there is no link b/w Production and Purchase .
    this is based on the my system settings and my knowledge.
    Regards
    Prabhu

  • Linking of sales order and production order.

    HI all,
    Currently in the system, production orders are being created without reference to sales order.
    Can someone tell me how to link a sales order to a production order? I want to know which production order is linked to which sales order. Also do let me know of the transaction to view this.

    Hi
    Use MTO strategy 20 for the header saleable part,
    then executre MRP for the Sales order using MD50.
    Now you can check the planned order assignment tab for the reference to the sales order.
    So while conversion automatically SO will be assinged to the PO
    BR
    SK

  • Urgent:  Problem in making Link b/w MKPF and BKPF

    Hi,
    I am making a report in which i have to make a relationship b/w BKPF and MKPF through AWKEY present in the BKPF with the MBLNR field in MKPF.
    Plzzz help me how to do dis as i am having the select statement like dis: -
    SELECT AMBLNR AXBLNR BBELNR BBUDAT BGJAHR BAWKEY FROM MKPF AS A  INNER JOIN BKPF AS B ON BXBLNR = AXBLNR INTO TABLE ITBSAK WHERE AXBLNR > 0 AND BBELNR IN P_BELNR.
    plzz help me out how to reterive data as in dis statement i am not using the AWKEY concept .plzz help me how do i do this as help will be definately rewarded.

    Hi check this sample code:
    form get_data.
    *************----------- VARIABLES ---------------**************
    data: vl_addrnum type t499s-addrnum,
    vl_city1 type adrc-city1.
    *************----------- Constants ---------------------**************
    constants:cl_ca01(4) value 'CA01'.
    ***********---------Field symbols ----------------------************
    field-symbols: <fs_mseg> type t_mseg.
    select a~mblnr a~mjahr a~zeile a~werks a~matnr a~bwart
    a~lifnr a~menge a~meins a~lgort a~grund a~sakto
    a~ps_psp_pnr a~ablad a~rsnum a~rspos a~kostl
    a~umlgo a~wempf a~ebeln a~ebelp a~bukrs a~belnr
    a~buzei a~sobkz
    b~budat b~xblnr b~bktxt b~xabln b~frbnr b~cputm
    c~matkl a~kzvbr a~shkzg
    from mseg as a
    join mkpf as b
    on a~mblnr = b~mblnr and
    a~mjahr = b~mjahr
    join mara as c
    on c~matnr = a~matnr
    into table i_mseg
    where a~werks in s_werks and
    a~bwart in s_bwart and
    a~lifnr in s_lifnr and
    a~umwrk in s_umwrk and
    a~wempf in s_scar and
    a~ablad in s_ablad and
    a~ebeln in s_ebeln and
    a~sjahr in s_yyyy and
    b~budat in s_date and
    b~cputm in s_time and
    b~mjahr in s_yyyy.
    if not i_mseg[] is initial.
    select pspnr fkokr fkstl posid stort
    from prps
    into table i_prps
    for all entries in i_mseg
    where pspnr eq i_mseg-ps_psp_pnr.
    select bwart sobkz btext from t156t
    into table i_text
    for all entries in i_mseg
    where bwart eq i_mseg-bwart
    and spras eq v_lan
    and sobkz eq i_mseg-sobkz
    and kzvbr eq i_mseg-kzvbr.
    select lifnr name1 from lfa1
    into table i_lfa1
    for all entries in i_mseg
    where lifnr eq i_mseg-lifnr.
    endif.
    *Awkey is the combination of MBLNR and MJAHR
    loop at i_mseg assigning <fs_mseg>.
    concatenate <fs_mseg>-mblnr <fs_mseg>-mjahr into <fs_mseg>-awkey.
    *To get the Vertex Catagory
    move <fs_mseg>-matnr to w_ztfi_product-matnr.
    move <fs_mseg>-matkl to w_ztfi_product-matkl.
    select single prdtc
    from ztfi_product
    into w_ztfi_product-prdtc
    where matkl eq w_ztfi_product-matkl.
    append w_ztfi_product to i_ztfi_product.
    endloop.
    if not i_mseg[] is initial.
    select bukrs belnr gjahr awkey waers
    from bkpf
    into table i_bkpf
    for all entries in i_mseg
    where gjahr = i_mseg-mjahr
    and bukrs = i_mseg-bukrs
    and budat = i_mseg-budat
    and awkey = i_mseg-awkey.
    select matnr maktx from makt
    into table i_makt
    for all entries in i_mseg
    where matnr = i_mseg-matnr
    and spras = v_lan.
    endif.
    if not i_bkpf[] is initial.
    select bukrs " Company Code
    belnr " Document Number
    gjahr " Fiscal Year
    buzei " Line Item
    shkzg " Debit / Credit indicator
    wrbtr " Amount
    sgtxt " Line Item Text
    vbund " Trading Partner
    kostl " Cost Center
    hkont " Account
    matnr " Material Number
    werks " Plants
    txjcd " Tax Jurisdiction
    projk " WBS Element
    into table i_bseg
    from bseg
    for all entries in i_bkpf
    where bukrs eq i_bkpf-bukrs and
    belnr eq i_bkpf-belnr and
    gjahr eq i_bkpf-gjahr.
    endif.
    sort: i_prps by pspnr,
    i_bkpf by bukrs awkey gjahr,
    i_makt by matnr,
    i_bseg by bukrs belnr gjahr,
    i_text by bwart sobkz.
    *Move to output table
    loop at i_mseg into w_mseg.
    move-corresponding w_mseg to w_output.
    if not w_mseg-lifnr is initial.
    select single name1 from lfa1
    into w_output-name1
    where lifnr = w_mseg-lifnr.
    endif.
    read table i_prps into w_prps with key pspnr = w_mseg-ps_psp_pnr
    binary search.
    if sy-subrc eq 0.
    move-corresponding w_prps to w_output.
    if not w_prps-fkstl is initial and not w_prps-fkokr is initial.
    select single ktext from cskt
    into w_output-ktext
    where spras = sy-langu
    and kokrs = w_prps-fkokr
    and kostl = w_prps-fkstl
    and datbi ge sy-datum.
    endif.
    select single addrnum from t499s into vl_addrnum
    where stand = w_prps-stort.
    select single city1 from adrc into vl_city1
    where addrnumber = vl_addrnum
    and addr_group = cl_ca01.
    w_output-city1 = vl_city1.
    endif.
    read table i_text into w_text with key bwart = w_mseg-bwart
    sobkz = w_mseg-sobkz
    binary search.
    if sy-subrc eq 0.
    w_output-btext = w_text-btext.
    endif.
    read table i_makt into w_makt with key matnr = w_mseg-matnr
    binary search.
    if sy-subrc eq 0.
    w_output-maktx = w_makt-maktx.
    endif.
    read table i_bkpf into w_bkpf with key bukrs = w_mseg-bukrs
    awkey = w_mseg-awkey
    gjahr = w_mseg-mjahr
    binary search.
    if sy-subrc eq 0.
    move-corresponding w_bkpf to w_output.
    read table i_bseg into w_bseg with key bukrs = w_bkpf-bukrs
    belnr = w_bkpf-belnr
    gjahr = w_bkpf-gjahr
    binary search.
    if sy-subrc eq 0.
    move-corresponding w_bseg to w_output.
    w_output-matnr = w_mseg-matnr.
    w_output-werks = w_mseg-werks.
    if w_mseg-shkzg = 'H'. " checking the mseg value.
    w_output-wrbtr = - w_bseg-wrbtr.
    w_output-menge = - w_output-menge.
    endif.
    perform cal_vertex_tax using w_bseg changing w_output-wmwst.
    endif.
    endif.
    perform format_output using w_output-matnr
    w_output-wrbtr w_output-budat
    w_output-rsnum w_output-rspos.
    append w_output to i_output.
    clear: w_output, vl_city1, w_prps,vl_addrnum, w_text, w_makt,
    w_bkpf, w_bseg.
    endloop.
    endform. " get_data

  • When dragging an image onto a fresh canvas, the resizing feature presnaps the image into the canvas size. I can confirm that this has not happened to me in previous projects. I've also tested this problem by making a new larger document size and dragging

    Contexts: I am very competent with GFX and have worked on many projects.
    When dragging an image onto a fresh canvas, the resizing feature presnaps the image into the canvas size. I can confirm that this has not happened to me in previous projects. I've also tested this problem by making a new larger document size and dragging in the same render. It snaps again. I don't want to re-size from the canvas dimensions, I want to resize from the render's original dimensions.

    Ap_Compsci_student_13 wrote:
    ok sorry but doesn't sscce say to post the whole code?the first S is Short, and yes, it needs to be all the code needed to illustrate the problem and let use reproduce it. If you were developing a new Web framework, your example might be short, but for a student game it's very long.

  • Hello anybody hear to solve my problem.my phone linked with developer apple id and password its factory unlock but i am unable to active it....so please please help me...

    hello anybody hear to solve my problem.my phone linked with developer apple id and password its factory unlock but i am unable to active it....so please please help me...
    <Email Edited by Host>

    when i coneect phone to my computer for activation i promt for apple id and password for activation.and it is showin apple id like  ''ad*****@gmail.com'' but it is not my apple id and i tried with my another apple id but not working i upload screen shoot from itune   thanks.......

  • DMS Object Link at Maintenence Order and Service order level

    Hi SAP Gurus,
    We had a requirement for maintaining DMS Object at Service order and maintenence order level, as Standard DMS does not provide any Standard Object link at Order level, we went for development and following the Standard procedure i could bring the Order Tab in CV01N Object Links, and also i could search the relavent maintenence order and maintain documents relevant to it,
    But the biggest problem now is i could not create DIR from the Maintenence or service order screen IW31, and the document i have placed at the order is not visible in the order screen at all,
    i know it is some sort of enhancement in the Order screen to allow DMS Documents to appear in the Order screen to provide this funtionality.
    let me pls know what exactly has to be done, as there is no config at the order level to get the DMS Screen, as DMS is not a standard object at the order level.
    one approch as suggested is modifiying the Order screen or using Screen Exit Enhancement for Order but not sure which one to use or how to move ahead,
    Thanks n Regards
    Priya S

    Dear Christoph Hopf
    Many Thanks for your answer,
    i went through the said SAP Note, but it only speaks about the notifications level, where SAP itself has provided the standard DMS Object links, and iam in latest ECC-6 version where this note  is taken care of i think,
    iam looking for creating DMS Document (DIR) from the maintenence Order IW31 transaction screen, and have developed new Object link for Maintenence order,
    but the main problem is, iam not able to create DIR from the IW31 Screen directly as Maintennce order is not a standard SAP Object,
    please let me know how to get the list of documents that i have attached to a maintenence order to appear in the IW32 maintenence order screen, and also we need to create the documents (DIR) directly from IW31 / 32 screens.
    Thanks and Regards,
    PriyaS
    Edited by: Priya S on Aug 19, 2009 1:50 AM
    Edited by: Priya S on Aug 20, 2009 1:54 AM
    Edited by: Priya S on Aug 24, 2009 6:24 PM

  • Problem with sales order and Service order

    Dear Guru's
    We have a real problem with sales orders and service orders and how we treat these. For a project that uses a WBS, it's not a problem to manipulate SAP to give us a list of shortages (orders with no or limited supply) for each order, but for some reason our after sales orders and our service orders do not work this way.
    Thanks and Regards,
    Deethya.

    CLOSED

  • Error in converting Planned Order to Production Order (Urgent)

    Hi All,
    I am facing an error when i am trying to convert a planned order to production order.
    +Error message:
    "Assignment order/WBS" is not allowed (WBS L.XXXXXX-XXXX)
    Diagnosis:
    The current status of object 'WBS L.XXXXXX-XXXX' prohibits business transaction 'Assignment order/WBS'.
    Procedure:
    To process business transaction 'Assignment order/WBS', you first have to change the status of object 'WBS L.XXXXXX-XXXX' to allow the transaction 'Assignment order/WBS'.+
    I have another planned order identical to this one & for that i am not getting this error. So i checked the network for these 2 WBS elements, but could not find anything different in status.
    I am unable to figure out what might be causing this error. Hope my problem is clear, await inputs.
    Vivek

    Hi,
    I checked the planned order, the assignment exists. I compared the planned order for which i am not facing any issue in converting to work order & the one for which i am facing the error & i see no difference.
    So i am not able to trace what might be the reason. Is there anything which can be deciphered from the Diagnosis & Procedure which i have posted in my initial qns?
    Vivek

  • Problem with purchase orders and cancelling order lines

    Hi,
    We have a problem with purchase orders and cancelling order lines. For example we have created PO no. 4300291277:
    We have made a GR 5000186897 on 03.09.2010 amount 1.920 and tried to cancel it with GR 5000208866, but it takes the invoice amount 1.724 instead of 1.920. What is the correct way to undo this orders, so we cancel the 1.920 and not the 1.724?
    Please help me, your help will be highly appreciated.
    Regards,
    Najma.

    hi,
    You have to cancel the IR first...and then do cancel the GR...
    yes, there will be diff. in the price(if the price changes in bwtn)..if no changes in the price , the price will taken as old one..
    Process:
    1. Cancel IR
    2. Then cancel GR..
    3. then go the PO and try to delete the line item..
    Regards
    Priyanka.P

  • Planned order to production order conversion problem

    Hai All,
    I am converting a planned order to production order during which following error is coming and system is not creating production order.
    You can not make an assignment to make to order stock.
    How to solve the issue.

    hai sundaresan
    Thanks for your reply. As you mentioned i am using strategy 25 for this Material. I have tried all the settings and changes mentioned by you. But not able to convert the planned order to production order. But when I changed the strategy to 20 and created a new sale order then did MRP run and then tried to convert the planned order to production order and it worked. Now my question is when it is working with 20 why it is giving problem with 20. Actually I am doing VC for material and while creating sale order selecting the values from characetristics. Can you help out why it is not working with strategy group 25.

  • Need help to find out link between process order and purchase order.

    Hi All,
    Need help to find out link between process order and purchase order.
    We have purchase order, we can find out associated process order in MD09 (No Purchase Requisition found in Purchase order). When I tired to replicate this scenario with same material in system but not able to do.
    Please suggest me what needs to check to get purchase order link to process order.. (this is not subcontracting )
    Edited by: SAP PQ on Sep 26, 2011 5:24 PM
    Thanks,
    SAP PQ
    Edited by: SAP PQ on Sep 26, 2011 5:24 PM

    MD09 is pegging. In SAP pegging is dynamic, meaning that there's no fixed link between purchase order and process order in your case.
    This is why you did not get the same result when you tried again later.
    Such a link can exist only if you do direct procurement for the order.

  • Problems with Dinamic Link between Premiere pro CC and After Effects CC

    I'm having serious problems with dinamic link between premiere pro and after effects, really serious problems that have 2 big projects in trouble (a documentary and a video clip) and I had to redo all the work pipeline to the consumer.
    The documentary for a spanish TV was made on CC 2014 and a video clip was made on CC. Both of them with a lot of after effects composition in the premiere pro timeline. Render freeze, a lot of playback issues, and many more problems... Until I decided to remove these links between premiere and after effects and render out all the after effects compositions one by one and insert as clips in premiere pro. 1 week working away with back and fourth.
    I've got a huge workstation:
    i7 4990
    32Gb ram
    GTX780 3gb
    256 gb system ssd
    2 Tb project storage
    *All my hardware and software are update.
    I know that a lot of folks are on the same huge problem and I want to ask everyone:
    How do you save this?
    What is your pipeline?
    Are there any solution?
    Best practice to use dinamic link in a huge project?
    Thanks,
    Ruben Gimenez.
    R&D iceblink.es
    www.rambot.es

    Thank You, Jim -
    Unfortunately that specifically did not work.
    Based on another comment sent to me, here is what did.
    In PProCC
    File > Adobe Dynamic Link > New After Effects Composition
    In AECC
    From that composition created from PPro, I imported the project (aep) initially created in AECC from another team member. Saved the file.
    Back in PProCC
    File > Adobe Dynamic Link > Import After Effects Composition
    Magic.

  • Sales Order realted Production Order Valuation Problem

    We have MTO scenario.
    We create a Sales Order and then with refernce to this Sales Order we create production Order through TC: CO08.
    We dont do sales Order costing.
    When we observe the plan price of the material in the production order, it is not getting valuated with the Standard price maintained in the material master.
    It is taking some other value.
    Why is this behaviour. We want to valuate the material at the std price from the material master.
    How to solve this issue.

    Unfortunately it is happening.
    I am agian trying to explain you the problem.
    Suppose I am making a sales order for material A.
    Through TC: CO08, I am making the production order with reference to this sales order.
    Now the material is having BOM Componenet say B.
    Now the problem is , when we create the production order, in the planed price,
    it is taking correct value for the Component B from the material master, but for the main material A, it is not taking the price that
    is maintained in the material master std price. The Costing variant used in Std One. No change in that.
    It is taking some different value. I dont know from where it is picking up.
    Just to reconfirm, is there anythign related to Requirement type and requirement class???
    Help me to solve this issue.
    regards

  • Link Sales Order and Purchase Order - MRP Pegging - Give Feedback

    Oracle Apps Version - 11.5.10.2
    Mfg - Discreate manufacturing module along with P2P and OTC..No Projects Module.
    Soft Pegging enabled on Items..
    Hi Guru,
    we have created a SQL to link SO and PO using MRP_Full_Pegging Table,what are issues you see with this logic..would it always give me correct mapping between SO and PO
    SELECT
    mgr.inventory_item_id Item_ID,
    mtl.segment1 Item,
    ohll.order_number SO_Number,
    --mr.disposition_id,
    mr.compile_designator MRP_Plan,
    --mipo.line_id,
    --poll.line_location_id,
    pohll.segment1 P0_Number,
    mtl.description Item_Description
    FROM
    mrp_gross_requirements mgr,
    MRP_SCHEDULE_DATES msd,
    mtl_sales_orders mso,
    oe_order_headers_all ohll,
    mrp_recommendations mr,
    mrp_item_purchase_orders mipo,
    po_line_locations_all poll,
    PO_HEADERS_ALL pohll,
    mtl_system_items_b mtl
    WHERE
    msd.mps_transaction_id = mgr.DISPOSITION_ID
    and msd.inventory_item_id = mgr.inventory_item_id
    and mtl.inventory_item_id = mgr.inventory_item_id
    and msd.source_sales_order_Id = mso.sales_order_id
    and mso.segment1=ohll.order_number
    and msd.organization_id = XXX -- pl use you inv org id
    and mr.disposition_id=mipo.transaction_id
    And mipo.line_id=poll.po_line_id
    and poll.po_header_id = pohll.po_header_id
    and mr.inventory_item_id = mtl.inventory_item_id
    and mr.compile_designator like '%XXX%' -- pl use MRP plan name
    and rownum <100 -- just to limit result set
    Order By ohll.order_number desc;
    Appreciate your feedback and inputs to make necessary corrections to make it accurate and complete.
    thank you.

    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

Maybe you are looking for

  • Looking for a particular font

    I'm looking for this font to use with final cut pro 6.0.1: http://img223.imageshack.us/img223/9837/fonthk4.png where can I download it?

  • Smartform as PDF On Button Click

    Hello Everyone, I need to display a smartform as PDF on click of a button. I have done the conversion using CONVERT_OTF. And then, CREATE OBJECT cached_response EXPORTING add_c_msg = 1. *Start display PDF       cached_response->set_header_field( name

  • Applet on client to help with session invalidation

    Dear All, I have a web application that when run by a user, per request, takes up approximately 40 MB of memory due to massive data structures being created, etc. Obviously, if the user leaves the site and goes elsewhere, I don't want that memory bei

  • Hook Up

    When I attach my ipad2 I get a pop up that says, This iPad cannot be used because the Apple Mobile Device service is not started.......  How do I start it?     

  • Converting Purchase requisition to Shedule agreement shecule lines

    Dear All gurus, can we convert already available purchase requisition to Shedule agreement shedule lines by any means of MRP run or so. Regards, Vimlesh