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

Similar Messages

  • 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

  • Bom for component allocation in routing

    I have created Sales order Bom. When I create normal routing and go for component allocation then system asks for Bom creation.
    Why system is not considering  sales order bom in Normal routing for component allocation?

    Hi,
    Sales order BOM will not be valid for Production. Eventhough you have created the sale BOM, the system will consider only the Production BOM. So you need to create a Production order BOM also, when you want to create a routing or production order creation.
    Regards,
    V. Suresh

  • Batch determination for component  in co11n

    Hi Gurus
    This is my Scenarios
    Component A - Batch - 120 - Qty 2.00 MT
    Component A - Batch - 121 - Qty 4.00 MT
    Suppose if there is a requirement of 3.0 MT for component A in Production order , when i do Batch determination ( w/o dialog box ) the system proposed Batch 121.
    But since Batch 120 is produced before 121 , i need the system to propose Batch split as follows
    Batch - 120 - 2.00 MT
    Batch - 121 - 1.00 MT
    Is it possible without Dialog batch determination
    Regards,
    Prasanna

    Hi,
    Yes, u can split Batch  manually  without Batch determination.
    Goto Component Overview -> Select the Component ->Edit ->insert->batch split (CO02)
    Now u can enter Batch and qty manually.
    Pradeep
    Edited by: Pradeep Kumar on May 23, 2008 9:24 AM

  • 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 Component allocation-Routing of materail

    Dear all,
    Could you please let me know the BAPI which can be used to create the routing i.e. all parts available in BOM should be made available in some cell i.e to allocate the component at all level.
    Regards,
    Nithiyanandam

    Hi All,
    Any inputs plz...
    Regards,
    Nithiyanandam

  • Selection criteria from table PLMZ for component allocation

    Hello All,
    I need to produce a report for the componenet allocation, my issue is after knowing that i hve to fetch data from plmz, i m stuck,
    reason is when i select entries from plmz with criteria plnnr and plnty it gives me more entries then those found when i do a ca03, can anyone please guide, wat i m looking for is exact number of entries and then the material and bom info, please point me to the right direction,
    thnaks,
    Hitesh

    Hi Hitesh,
    As Mr.Prasobh u have to join MAPL-PLMZ-PLPO tabls with matarial, Plant combination where LOEKZ is not equal X
    For BOM ITEM , Name u have to add to More table STPO, MAKT. The flow is as follows,
    1.First u can start with MAPL.
    input Field: MATNR - your Header  Material
                     WERKS -  your BOM plant
    Outfield for Next Table. PLNTY,PLNNR,PLNAL,LOEKZ (Not equal X).
    2. TABLE: PLMZ
        Input Field:  PLNTY,PLNNR,PLNAL,LOEKZ,WERKS ( from previous tables)
        output Field :  STLTY,STLNR,STLKN, PLNFL.
    3. Table: PLPO
         Input Field:  PLNTY,PLNNR,PLNAL,LOEKZ,WERKS.
       output field :VORNR,MEINH,BMSCH,
    4.Table: STPO
        Input Field:STLTY,STLNR,STLKN  (From table PLMZ )
        output field: IDNRK,POSNR,POSTP.
    5.Table MAKT.
        Input Field: IDNRK
         output field : MAKTX.
    what i have given is a flow to fetch the data.  Try it with  abab`rs  to develop report.
    i hope the above tables give  most of fields which you need   in  ca03 (com all view).
    plz reward point all of them if u found usefull.
    regards
    r.pradeep

  • Component allocation to Euipment Task list

    Hello frinds,
    I have a query related to Plant Maintenence.
    We have a euipment task list with different counters . In each counter we have operations and components assigned to those operations.
    When order is created some of the operations are not getting copied and hence few components as well.
    Please tell me tables where i can find the allocation of compoenents to operations.
    Thanks
    Rohit

    Thanks Mahee,
    The table i was looking for is PLMZ (allocation of components to operations)
    I found that deletion indicator is set for certain operations in PLMZ and those components are not picked which are assigned to operations with deleltion indicator (LOKEZ-PLMZ).
    Can any one tell me how this deletion indicator is set for component allocation to operations and how do i remove this ?
    Thanks for help.
    Rohit

  • Routing-LSMW-Component Allocation to task list

    Hi Gurus,
    I'm creating LSMW to Routing using Standard-Batch Input method, have mapped the required structures.
    But I was unable to map the Component allocation to task list.
    Is it possible in the standard one else I need to go for some sort customisation.
    Can anybody throw some lite on this issue ?
    regards
    Ram Kumar

    Hi,
    You will find BIPMZ Batch input structure for component allocation to task list in the standard structure relations (no customizing required). Use the same for your need.
    Hope it clarifies your query.
    Regards,
    Vivek

  • Component allocation in planned order and production order

    Hi all,
    I want  table  or Function module for component allocation in production order and planned order.If component changes done in
    planned order or production order.
    In Table PLMZ and STPO I am getting component which are allocated in routing MASTER DATA.But if after generation of
    production order or planned order and I had changed one component in production order then it will not show in PLMZ and STPO
    table.
    Please reply.
    Regards,
    Vidyasagar

    Dear
    Please check the following table :
    AFKO         Order Header
    AFPO          Order Item Detail -Compoenets
    AFVC          Order Operations Detail
    AUFG         Allocation Table Sub-Item, Store Group
    AUFI           Allocation Table, Document Sub-item, Store
    AUFK          Order master data
    RESB
    FM: CO_BC_INSERT_CMP_OF_ORDERS . BAPI : BAPI_PRODORDCONF_GETDETAIL.
    Refer : Change components and Routing of production order
    Edited by: Jiaul Haque on Dec 13, 2010 7:54 PM

  • Component Allocation Mass Change

    Is it possible to mass change, say the backflush indicator, in CEWB for component allocations? If not, any other suggestions?
    Regards,
    Luiz

    Ashok,
    Since this deals with routing for configurable material with average of 1500 to 1700 component allocations, I thought CEWB would be the tool to use.  But I find no mass change capabilities in the Component Allocation view.  Do not know of any other mass change transactions for routings dealing with component allocation.
    Regards,
    Luiz

  • 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

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

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

Maybe you are looking for