Component allocation in the Routing "BAPI_ROUTING_CREATE"

Hi,
I am using the BAPI "BAPI_ROUTING_CREATE" to create a Routing. It works fine creating the operations, Component allocations and updating the Header data Information.
The Problem i am facing is with the allocation of components with Phantom assembly. Can any one help me in passing the Parameters to the BAPI to allocate the components with the Phantom assembly.
Thanks
Shekar

Hello Nagasekhar,
I am not able to create operations even.
can you please help me out.
i create routings from the data available in file uploaded from system.
i am able to create the routing.
if i give group number only on the first screen of CA03 its showing the task.
But when i give material and plant its saying the Task doesnot exist.
And when i see the operations then it shows nothing.
can you send me your code to [email protected]
Please help me in this regard.
thankyou.
Message was edited by:
        Ravikumar P

Similar Messages

  • Problem in  BOM or component allocation for the Non- codified Item in a PO.

    Hi All,
    Please advise how to explode a BOM or Assign component in a Purchase order with Item category (L) for a Operation oriented material for which no material code is created from a production order .
    Actually in my scenario, no raw material component will send to the Sub -Contract Vendor. Only Assembled operation material lets say operation 20 from a routing ( which is not having material code ) from an In - house production from a shopfloor has to be sent to the vendor to create a operation 30 material , which is also not having a material code." How to explode a BOM or component allocation for the Non- codified Item in a PO".
    Kindly give me the IMG settings for the above scenario.
    regards,
    YK

    Hi Prasobh,
    Tnx for your suggestion. But, the client external processing routing is not constant activity . Based on the Operation bottlenecks client is sending the operation as external Processing. For Eg., If on first order operation 20 be external , Then in second order operation 20 need not be external. operation 30 may go out for external processing. Client does not want a material code for each operation.
    Give your valuable suggestion.
    regards,
    YK

  • Component Allocation in Group Routing

    Hello,
    I am working on a group routing.
    After add the group members in "Material Assignment" in CA02,
    i do the "Component Allocation" one by one for each material number.
    Is there any method to do it in a group manners or any better method to work on this?
    Thank you.
    Collinn

    Dear Collinn,
    It seems you are having one group routing(same group no and group counter no) for a list of materials.
    In this case if the BOM is common for all these list of materials,then making the component allocation to the individual operation
    makes sense.But practically the chances for such case is less.
    Moreover I would suggest you to make the component allocation manually in the routing. The reason why I doubt is you have to
    build the logic if you are going to do the same in the BDC,so the challenge here will be identifying the component no ,along with the
    item no and asigning properly to the operation.So this input has to be accurate i the input file which you will be giving for upload.
    Correct me If I'm wrong.
    Regards
    S Mangalraj

  • Component allocation missing in Routing,

    Hi SAP Gurus
    The component allocation  for a finished material is missing in
    Routing. this is particular  with usage production BOM's. I have to manually fix it . What can be the error . Pls advise.
    regards
    Karthik

    Hi,
    It seems that the BOM Components are assigned to the first operation of the Routing, but it is not the case.
    If you go and see the component assignment to the Fist operation system says no components are assigned.
    At the Time of Production Order creation only the BOM components will be assigned to the first operation.
    If you assign a Component specifically to any operation, if you go into the Component assignment, then the to which Operation the component is assgned will be seen.
    You need to assing components manually to operation..
    Regards,
    Siva

  • Component Allocation in Rate Routing

    Hai,
    Similar to CS15 - component where used list, is there any standard transaction wherein it is possible to find out for a component in which all Rate Routing it is being used.
    Can someone throw some light on this subject.
    Regards,
    R. Vijayakumar

    Dear Vijayakumar,
    There is no standard report available for this, and what you can do is,after executing CS15 for a
    component,you will get the Where Used List (Sub-assemblies and the Assemblies).
    Download or copy this report into an excle sheet and then pass on these values to CA51 for the task list
    type R - Rate Routing.Now say suppose if you input 10 materials and if you are getting only the results
    for 8,then you can conclude that the component is been is used in so many rate routing.
    Check and revert back.
    Regards
    Mangalraj.S

  • Error in component allocation in BAPI_ROUTING_CREATE to creae routing

    Hi
    I'm using BAPI_ROUTING_CREATE to create BAPI with component allocation.  But my problem is I'm able to create operations but not able to create component allocation. The BAPI is giving me success message, but not creating component allocation.
    In the table BAPI1012_COM_C, I'm populating the following fields:
    GROUP_COUNTER
    VALID_FROM
    VALID_TO_DATE
    ACTIVITY
    BOM_TYPE
    BOM_NO  
    ALTERNATIVE_BOM
    ITEM_NO                  -> value is POSNR field of STPO table
    BOM_TYPE_ROOT  -> value is same as BOM_TYPE
    BOM_NO_ROOT -> value is same as BOM_NO
    ALTERNATIVE_BOM_ROOT  -> value is same as ALTERNATIVE_BOM
    Routing is being created successfully without component allocation.

    See BAPI_ROUTING_CREATE / Material Component Allocation
    Kanagaraja L

  • BAPI For CA02 - Assign Component allocation for routing

    Hello Gurus,
    I m searching for the bapi for the component allocation in routing.
    Since  routing is already created my work is to assign component allocation to the operation.
    i tried with the BAPI_ROUTING_CREATE  and /SAPMP/BAPI_ROUTING_PROCESS
    BAPI_ROUTING_CREATE can be used only to create new routing.
    But the /SAPMP/BAPI_ROUTING_PROCESS is going to short dump.
    So any alternate please suggest.
    Please provide sample code to assign component allocation.

    Please have a look at following thread:
    http://scn.sap.com/thread/2084329
    Also,check tcode :CWBQM
    Regards

  • Component allocation in production order not match that in routing

    Hi
    My problem is that the operation allocated to a component in production order does not match that assigned in routing.  For example, component A in the routing (CA03, tab CompAlloc) is allocated to operation 0050, but when we convert a planned order to a production order, component A got allocated to a different operation, say 0020.  I have no idea how that happened.  Can anyone help?
    Thanks,
    Lin-Lin Li

    Lin,
    One possibility might be, you might be having multiple BOMs for that FG.
    The alternative which is assigned in the routing might be different from the alternative read in the order.
    Check & revert.
    Hope this helps you.
    SmanS

  • Get routing component allocation

    Hi,
    In a routing when clicking on button "ComAlloc" we can see list of component allocations.
    In a program I need to get this list, I need the links component/operation.
    Is there a function module to get component allocations for a routing ?
    Thank you.
    Julien SCHNEERBERGER.

    i do not think them there is any standard function module which can do so.
    try hitting database tabel : PLMZ in combuination with PLPO and PLAS.

  • Function module/BDC/BAPI for Component allocation operation wise

    Dear Experts,
    I need your help on Component allocation in Routing (CA02) per opertion wise.
    Currently we are assigning the Component individually per operation manually
    The problem is if a BOM is having 500 Components/Materials and there are 10 operations then we need to assign these 500 components to that particular operation manually which is tedious job & killing a lot of time.
    I need your help if any Function module or BAPI or BDC is there to allocate these components per operation wise.
    Or any other process which can done easily on this component allocation operation wise
    rgds
    gsc

    Hello GSC, (and of course anyone able to help me)
    taking account of the date of the message (2008) i think you have finally encountered a solution to your issue ?
    Well, now i have got the same problem than you before.
    My requirement is to modify the component allocation in a routing by using change document.
    I found the bapi /SAPMP/BAPI_ROUTING_PROCESS. I have spend few days to make it work without success.
    Iam still facing error message. Futhermore i have read trough a SAP note that this BAPI could not work properly in some case.
    Considering that Iam trying to study other solutions (BDC ?).
    Please, i would appreciate if you give me some advice on this problem.
    Thank you very much.
    Best regards,
    C.S

  • Component Allocation in Routings

    Hello all:
    what is the essence of component allocation in the Routings(CA01), especially if we have
    more than single operation for the given material
    If component allocation is not maintained, how it affects the production cycle
    Thanks in Advance!!

    Hi Eshwer
    It all depends on the business requirement/scenario
    Suppose if there is a phantom assembly in your BOM and they will be used only in the second operation then you can inform the same to the system by means of allocation to the operation
    By means of allocation automatically all the components of the Phantom assembly also gets allocated to the second operation
    it helps the back flushing process too
    It doesn't affect the production cycle but rather it helps adding more information and makes production process much easier
    Even if you don't maintain this System will automatically assign all the components to the first operation(aas you might be already aware)
    SAP has provided this feature as a standard functionality,for some it wont be of use,so you dont need to use if it doesnt make sense to your requirement
    Please check the below link for more details
    http://help.sap.com/saphelp_46C/helpdata/EN/7e/d42611455911d189400000e8323c4f/frameset.htm
    Thanks
    SVP

  • Create Routing BAPI_ROUTING_CREATE Component Allocation

    Hi,
    I am creating  routings by using BAPI_ROUTING_CREATE Function Module.
    But I am unable to update Component allocation data using this BAPI.
    What all the variables do i need to pass for updating Component allocation
    Can I have any Inputs Regarding Component Allocation for this BAPI.
    Thanks in Advance
    Best Regards
    Rasheed

    Hi,
    Check
    Re: BAPI_ROUTING_CREATE and components allocation.

  • Very URGENT : BAPI_ROUTING_CREATE Component Allocation

    Hi All,
    I want to create a routing using BAPI. I tried using BAPI_ROUTING_CREATE, it is creating operations without any problem.
    But when I want to assign an Operation/Activity to a Component through New Assignment in Component Allocation through BAPI, it is not assigning.
    Please let me know what fields should be passed to the Component Allocation Table in the BAPI.
    Please help me as it is very URGENT.
    Reward Points for useful answers
    Thanks,
    Harish

    Hi,
    The componenet allocation will take automatically if you have the BOM created for the Material for which you are creating the Routing.
    It will not add the new components.
    i too tried but lot of problems with this BAPI.
    I prefered recording.
    Reward points if it is helpful.

  • BAPI_ROUTING_CREATE / Material Component Allocation

    I'm using BAPI_ROUTING_CREATE in my own BAPI to create routings. The routing is being created when I turn off the component allocation table and all is fine. When I turn on that part, I get an error that states: A CMCL 105 Sequence or Operation are not contained in worklist or are invalid.
    In the BAPI1012_COM_C structure I'm sending:
    Activity(operation) of '9000',
    Backflush = 'X',
    Sequence_NO = '0',
    Valid From Date and
    OPERATION_ID of 'VORG9000' per the documentation.
    I tried a sequence number of '1' and that didn't help so I'm led to believe it's something wrong with my OPERATION_ID.
    Anyone have some ideas as what could be wrong given the information provided?
    Thanks,
    Tim Stadler
    Menasha Corporation

    Here is what I'm sending now and it works fine. I think it should be obvious which are my internal work fields and tables.
            w_bapi1012_com_c-activity = '9000'.
            w_bapi1012_com_c-backflush = ' '.
            w_bapi1012_com_c-sequence_no = '000000'.
            w_bapi1012_com_c-valid_from = p_datuv. " sy-datum.
            w_bapi1012_com_c-valid_to_date = '99991231'.
            w_bapi1012_com_c-operation_id = ' '. "'VORG9000'.
            w_bapi1012_com_c-bom_no = w_mast-stlnr.
            w_bapi1012_com_c-alternative_bom = '01'.
            w_bapi1012_com_c-plant = t_output-zqdwerks.
            w_bapi1012_com_c-material = w-matnr.
            w_bapi1012_com_c-bom_type = 'M'.
            w_bapi1012_com_c-item_no = t_zero2-zrobmline.
            w_bapi1012_com_c-item_id = '00000001'.
            w_bapi1012_com_c-bom_type_root = 'M'.
            w_bapi1012_com_c-bom_no_root = w_mast-stlnr.
            w_bapi1012_com_c-alternative_bom_root = '01'.
            append w_bapi1012_com_c to t_bapi1012_com_c.
    Thanks,
    Tim

  • BAPI_ROUTING_CREATE problems with component  allocation of phantom BOMs

    I try to create a routing via the BAPI_ROUTING_CREATE and all works fine until I try to do component allocations for phantom BOM lines in the next level.
    In my simple BOM I have the following structure:
    00004465 (ROOT BOM)
    +
    +---Phantom_BOM_B (BOM 00004466)
        +
        +---Material_X
    +---Material_Y
    I only can allocation Material Y and BOM_B but I am not able to allocate the material X instead of the BOM_B, in that case I always get the message "The component to be assigned has not been completely specified".
    My COMPONENTALLOCATION Table Code:
    T_COM-SEQUENCE_NO = '000000'.
    T_COM-OPERATION_ID = '0010'.
    T_COM-BOM_TYPE = 'M'.
    T_COM-BOM_NO = '00004466'.
    T_COM-ALTERNATIVE_BOM = '01'.
    T_COM-ITEM_ID = '00000001'.
    T_COM-ITEM_NO = '0010'.
    T_COM-BACKFLUSH = 'X'.
    T_COM-PLANT = '1000'.
    T_COM-MATERIAL = ''.
    T_COM-BOM_TYPE_ROOT = 'M'.
    T_COM-BOM_NO_ROOT = '00004465'.
    T_COM-ALTERNATIVE_BOM_ROOT = '01'.
    *T_COM-PATH = '000001'.
    I hope some can help me to find me, a solution to solve my problem.
    Thanks
    Jörg

    Dear ,
    Phantom BOM means which you want to plan interm of Operation Hrs and Issue Componenets but not intereted to Physically Store  rather re-ssiue it to Main FG .
    Now ,from your requirement it s clear that BOM : 00004465(ROOT BOM) is for your FG (Let Say A) BOM :  00004466 is  a SFG (Let say B) as Root BOM component  , which is In House produced .
    Bascically , If you do not want to *Store B( Phantom BOM) *  but want plan the depedent of B ( X, Y , Z  etc )  along with A's dependent and also cost of B ( Phantom BOM )   , then the routing hrs /component along will be issued directly  to  A( Root BOM)  ,
    So you do not need to create Routing for Phatom BOM and also no componenet alocation required . Better ,  you can add that routing operation hrs to main routing of the FG .
    Hope this is clear
    regards
    JH

Maybe you are looking for

  • Collapsible Panels with one default open

    I'm using the collapsible panels widget, I was wondering if there was a way to have one panel open while the others are closed by default. I know it's possible with the spry accordion, but is it possible for the collapsible panels as well? Thanks!

  • Syncing after restoring

    I went to the Apple store today because my iPod was not working correctly. They restored it while I was there. I came home and tried to sync it so that I can put the songs back onto my iPod but it is not working. My iTunes recognizes my iPod and the

  • Adding Artwork Corrupts Songs

    This doesn't happen every time, but it seems to happen more frequently than not: Sometimes when I burn a CD to iTunes and add album artwork, a previously fine track will no longer play correctly. The song will be fine, then I'll add artwork, and when

  • Exporting Illustrator CC files into Photoshop

    I can't seem to export my Illustrator CC files into Photoshop and keep the edges of things sharp and yet still preserve layers. I'm doing the same thing I did with my old CS4: FILE > EXPORT, then specifying CMKY and "write layers" and no anti-alias.

  • Documentviewer new toolbar button HorizontalAlignment="Right" has no effect?

    Hi all, I added a button to the documentviewer toolbar after extracting a copy of the template in Blend. I added a button (closeButton) with an "X" as its content. It works but I want the button to be at the right side of the toolbar. I tried the hor