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

Similar Messages

  • Level & path determination for Component allocation in BAPI_ROUTING_CREATE

    Hi,
    I am facing a problem in determining the level and path which needs to be fed in the BAPI structure of Component allocation in BAPI_ROUTING_CREATE for phantom assemblies and its components.
    ls_compall TYPE bapi1012_com_c.
    ls_compall-order_lvl       = ls_bomexp-stufe.
    ls_compall-order_path      = ls_bomexp-wegxx.
    Is there any FM or any logic to find out the same.
    Thanks,
    Vasudha L

    Hi,
    I am facing a problem in determining the level and path which needs to be fed in the BAPI structure of Component allocation in BAPI_ROUTING_CREATE for phantom assemblies and its components.
    ls_compall TYPE bapi1012_com_c.
    ls_compall-order_lvl       = ls_bomexp-stufe.
    ls_compall-order_path      = ls_bomexp-wegxx.
    Is there any FM or any logic to find out the same.
    Thanks,
    Vasudha L

  • Component allocation of material components in routing

    Dear Sap Gurus,
    I am having a finished product in which it contains rawmaterials for making but it in my routing i am having operations of 10, 20,30,40,50,60 ( 10-shearing, 20-bending, 30-welding, 40-grinding, 50-bending, 60-grinding )
    but in my routing doing compoent allocation i am using materials from bom which contains components of 10,20,30 for routing operation of 10 and the output of 10 is the input of 20 routing operation so how can i give component allocation  in routing whether i should give for routing operation of 10 the bom components so that it can take for routing operation of 20,30,40,50.
    whether my procedure is correct or any body can help me how to proceed the above problem.
    regards,
    muralidhar.t

    Murlidhar,
    First of all tell me one thing, are you going to identify the inprocess material with a separate material or not?
    If you are going to do it, then your query can be answered.
    If component ABC is allocated to operation no. 0010, it gets changed to PQR, then you need to first create the code for PQR. Then do GR as a byproduct with movement type 531 & again do the GI with movement type 261 against that order itself.
    It's a quite tedious process & normally no one goes for this.
    It's better you deal to the initial component & the final product only. If you opt out for in process material codification then in future where there are several stages of the process, you find it difficult & next to impossible.
    Go for that if it is having major impact on the process (normally it never be).
    Hope this helps you.
    SmanS
    Edited by: SAP PP Consultant on Mar 30, 2009 12:59 PM

  • 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

  • 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.

  • 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

  • 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.

  • 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

  • Component allocation changes in routers

    Does anyone know if components allocations in a router can change without making the change in the router. My users are stating that they have a printout in October with the component allocations being one way and then in December they changed. However, they are stating they never made the change in the router. So how is this possible. Because there is no change log in the component allocation section of the router Im having a difficult time proving to them its not the system and its a user error. Any suggestions?

    Hi,
    If the routing is changed in the production order (by T-Code CO02), it wont show in the CA61 or CA60.
    Also the initial data of routing will not be changed. May be because of this only you are not getting anything in the log.
    Regards,
    Rohit.

  • 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

  • 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

  • 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

  • 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

  • Job Mgmt : error "This component cannot be used" when sending job request

    Hi,
    When i try to create a job request (basic job request link from the Job Management Workcenter), I am having an error : "This component cannot be used".
    It seems the component is the number read from the ibase corresponding to the client and the sid. There seems to be ne problem on this side.
    But everything is correctly setup regarding Ibases and components.
    What's more when trying to create a ZLFJ (duplicated from SLFJ) in CRMD_ORDER, there is no problem.
    Any suggestion where it could come from ?

    Hello Hervé ,
    could you please provide me with some more information?
    When exactly do you get the message? When trying to submit the job request? Or when clicking on the link "Create Job Request" in the workcenter?
    If you get the message when submitting, please provide more information on the entered System (IBase). Maybe a screenshot could help.
    Best regards,
    Jonny

  • Error in Component Monitoring(Runtime Workbench)

    Hi,
    I am getting an error in component monitoring section of runtime workbench. I got a note(851711), where it says 'CompilingException' error can be corrected by applying SP14. But I am still getting same error after applying SP14 and redeploying XI ADAPTER FRAMEWORK CORE 3.0 (SAPXIAFC.sca), XI TOOLS 3.0 (SAPXITOOL.sca) and XI ADAPTER FRAMEWORK 3.0 (SAPXIAF.sca). Please advice how to correct this error.
    Error Message:
    com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:27: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) import com.sapportals.htmlb.enum.TableCellStyle;                            ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:947: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier)     compTable.setColumnType(com.sapportals.htmlb.enum.TableColumnType.IMAGELINK,  1);                                                                  ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:948: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) compTable.getColumn(1).setCellHAlignment(-1, com.sapportals.htmlb.enum.CellHAlign.CENTER);                                                                                ^ 3 errors .
    Thanks,
    Ask.

    Hi,
    it can be for some system configured on http destination or the sld system configured for this server.
    take a look at tx sxmb_adm for the http destination to discover witch destination is been used. then, on sm59, find the server that is been called for this http destination and check on that server if this user is ok there.
    to check sld, go to tx sld_apicust discover witch is the sld system configured for this server. After log on to sld system and check the user.
    Maybe the user is ok on the destination system, so, check the password on sm59 (if the problem is with an http dest) or sld_apicust (if the problem is the connection to sld).
    regards.
    roberti

Maybe you are looking for

  • TS2634 What if your iPod touch is reading that the date is in the 1800s and will no longer update the web and music that is "recent"?

    My iTouch is reading that the date is in the 1800s and will no longer update my "recently purchased" songs or update websites.

  • New iTunes Library: How do I not lose my contacts?

    I got a new MacBook recently, and I was wondering if there is a way to sync my iPhone to this new library without losing my contacts. If I manually sync and don't check Sync Contacts, then it won't back up the contacts that I already have, will it?

  • Putting Time Delays in DW

    This is probably a simple problem with a simple solution but it really is bugging me how to do it. I'm new to DW and i'm making a template for my site. It has nav bars, some button behaviours and hidden layers. On each of my nav bar buttons i have Mo

  • Problems displaying swedish characters !

              Hi !           I have a very strange problem, which I have been struggling with for a while now.           I have a JSP page which calls Java classes to generate a HTML table. I define the           basic structure of the table in the JSP f

  • Data form q.

    Hi, in a data form the entity drop down menu shows the selected entites in parent-child order. The parents are in blue and the children in black. But there is no difference between a grand parent and a parent, not even any indention. Is there any way