BAPI : BAPI_ROUTING_CREATE

Hi, I want to upload data operation and Inspection Char using BAPI : BAPI_ROUTING_CREATE.
Can anybody explain me with coding.
thanks
naresh

Dear gurus,
we must see in the atp available chek (MDPV)  only storage location but the system see all the stock present in the mrp .
Infact the stock is for example in the storage location :
storage location 1 = 100 pz
storage location 2 = 20 pz
Is possible see only the stock in the storage location 2 = 20 pz.
I insert in the details item BOM for the component the storage location (storage location2) but the avalaible check confirmed the quantity 120 , i vould like quantity 20 only.
There are the method or customizing impostation for my problem?
Thanks a lot for help.
Daniele Pistilli
PP TEAM

Similar Messages

  • Problem while creation of Routing using BAPI "BAPI_ROUTING_CREATE"

    Hi.
    I am trying to create routing using the BAPI "BAPI_ROUTING_CREATE", when I execute I get the group number and the group counter number in the Export parameters. But it is not saved in the database, when we look at CA03 using the group number system says routing not found.
    I am passing "Space" to Bapiflag and i am passing input to tables TASK, MATERIAL ALLOCATON and OPERATION as follows:-
    MATERIALTASKALLOCATION-MATERIAL
    MATERIALTASKALLOCATION-PLANT
    TASK-TASK_LIST_USAGE
    TASK-PLANT
    TASK-TASK_LIST_STATUS
    TASK-TASK_MEASURE_UNIT
    OPERATION-ACTIVITY
    OPERATION-CONTROL_KEY
    OPERATION-WORK_CNTR                    
    OPERATION-PLANT
    OPERATION-DESCRIPTION
    OPERATION-NUMERATOR
    OPERATION-DENOMENATOR
    OPERATION-BASE_QUANTITY
    OPERATION-STD_UNIT_01
    OPERATION-STD_VALUE_01
    OPERATION-STD_UNIT_02
    OPERATION-STD_VALUE_02
    OPERATION-STD_UNIT_03
    OPERATION-STD_VALUE_03
    OPERATION-STD_UNIT_04
    OPERATION-STD_VALUE_04
    OPERATION-STD_UNIT_05
    OPERATION-STD_VALUE_05
    OPERATION-STD_UNIT_06
    OPERATION-STD_VALUE_06
    Appreciate your replies.
    Regards.
    Anand Ghawade.

    Use BAPI_TRANSACTION_COMMIT after you call the BAPI_ROUTING_CREATE

  • Create a new routing with BAPI BAPI_ROUTING_CREATE via JCo

    I try to create a new routing with BAPI BAPI_ROUTING_CREATE via JCo.
    I filled all necessary parameters. I also realized a commit_work. I get in the RETURN parameter of the BAPI the Message "S 000 Routing N/50001641/01". But the routing isn't in the database. Other JCo programs I wrote (create material master or costumer order) are working very well.
    Have anyone an idea?
    Thanks Jörg
    Here's my coding:
    public void createArbeitsplan() {
              doLogin();
    //          connectionAttributes();
              Plan plan = new Plan();
              for (int i = 0; i < planList.size(); i++)
                   plan = (Plan) planList.get(i);
                   //Ein Function-Objekt erzeugen
                   String bapi = "BAPI_ROUTING_CREATE";
                   JCO.Function savePlan = null;          
                   try { savePlan = this.createFunction(bapi); }
                   catch(Exception ex) { ex.printStackTrace(); System.exit(1); }
                   if(savePlan == null) { System.err.println(bapi + " not found in SAP"); System.exit(1); }
                   //Import und Tabellen füllen
                   // Plankopf
                   JCO.Table headData = savePlan.getTableParameterList().getTable("TASK");
                   headData.appendRow();
                   headData.setValue(plan.kurztext,"DESCRIPTION");
                   headData.setValue("1","TASK_LIST_USAGE");
                   headData.setValue(werks,"PLANT");
                   headData.setValue("4","TASK_LIST_STATUS");
                   headData.setValue("ST","TASK_MEASURE_UNIT");
                   headData.setValue("001","RESP_PLANNER_GROUP");
                   headData.setValue("20070101","VALID_FROM");
                   headData.setValue("20991231","VALID_TO_DATE");
                   headData.setValue("1","LOT_SIZE_FROM");
                   headData.setValue("99999999","LOT_SIZE_TO");
                   // Materialzuordnung
                   JCO.Table materialAlloc = savePlan.getTableParameterList().getTable("MATERIALTASKALLOCATION");
                   materialAlloc.appendRow();
                   materialAlloc.setValue(plan.material,"MATERIAL");
                   materialAlloc.setValue(werks,"PLANT");
                   materialAlloc.setValue("20070101","VALID_FROM");
                   materialAlloc.setValue("20991231","VALID_TO_DATE");
                   materialAlloc.setValue("1","GROUP_COUNTER");
                   // Vorgänge
                   JCO.Table operationData = savePlan.getTableParameterList().getTable("OPERATION");
                   for (int j = 0; j < plan.getAnzahl(); j++) {
                        operationData.appendRow();
                        operationData.setValue(plan.getVorgang(j).vorgang,"ACTIVITY");
                        operationData.setValue(plan.getVorgang(j).steuschl,"CONTROL_KEY");
                        operationData.setValue(plan.getVorgang(j).arbplatz,"WORK_CNTR");
                        operationData.setValue("1111","WORK_CNTR");
                        operationData.setValue(plan.getVorgang(j).text,"DESCRIPTION");
                        operationData.setValue(plan.getVorgang(j).basismenge,"BASE_QUANTITY");
                        operationData.setValue(plan.getVorgang(j).vw1,"STD_VALUE_01");
                        operationData.setValue(plan.getVorgang(j).vw2,"STD_VALUE_02");
                        operationData.setValue(plan.getVorgang(j).vw3,"STD_VALUE_03");
                        operationData.setValue(plan.getVorgang(j).ze1,"STD_UNIT_01");
                        operationData.setValue(plan.getVorgang(j).ze2,"STD_UNIT_02");
                        operationData.setValue(plan.getVorgang(j).ze3,"STD_UNIT_03");
                        operationData.setValue("1","DENOMINATOR");
                        operationData.setValue("1","NOMINATOR");
                        operationData.setValue("20070101","VALID_FROM");
                        operationData.setValue("20991231","VALID_TO_DATE");
                        operationData.setValue("ST","OPERATION_MEASURE_UNIT");
                   // Testflag
                   JCO.Structure test = savePlan.getImportParameterList().getStructure("TESTRUN");
                   test.setValue(" ","BAPIFLAG");
                   //BAPI ausführen (incl. Commit)
                   mConnection.execute(savePlan);
                   JCO.Function commit = null;
                   try {commit = this.createFunction("BAPI_TRANSACTION_COMMIT"); }
                   catch (Exception ex) { ex.printStackTrace();System.exit(1); }
                   JCO.ParameterList input = commit.getImportParameterList();
                   input.setValue("X","WAIT");
                   mConnection.execute(commit);
                   //Messages vom SAP-System holen
                   JCO.Table jcoReturn = savePlan.getTableParameterList().getTable("RETURN");
                   for (int k = 0; k < jcoReturn.getNumRows(); k++)
                        jcoReturn.setRow(i);
    //                    System.out.println(jcoReturn.getField("MESSAGE").getValue());
                        System.out.println(jcoReturn.getField("TYPE").getValue());
                        System.out.println(jcoReturn.getField("NUMBER").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V1").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V2").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V3").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V4").getValue());
                   JCO.Structure output = commit.getExportParameterList().getStructure("RETURN");;
                   System.out.println(output.getString("MESSAGE"));
                   System.out.println(output.getString("TYPE"));
                   System.out.println(output.getString("NUMBER"));
                   System.out.println(output.getString("MESSAGE_V1"));
              closeConnectionToSAP();
              System.exit(1);

    Hi,
    perhaps you could use
    BAPI_HRMASTER_SAVE_REPL_MULT
    Regards
    Bernd

  • USE BAPI  BAPI_ROUTING_CREATE

    HI ,
    THIS IS FIRST TIME I AM USING BAPI FOR CREATING ROUTING .
    I NEED HELP REGARDING DATA DECLERATION THAT I NEED TO TRANSFER TO THE FUNCTION MODULE,
    A HELP IS NEEDED SO THAT I CAN START.PLEASE TELL ME HOW TO PROCEDE TO UPLOAD DATA USING BAPI.
    PLEASE HELP ME.

    HI
    vijay here
    ******DECLARATION*******
    DATA : path TYPE string.
    DATA : flag type c.
    data: count(2) TYPE n.
    DATA : intern TYPE TABLE OF alsmex_tabline,
           wa_intern TYPE alsmex_tabline.
    DATA :
    testrun      TYPE    bapiflag,
    profile      TYPE    PROFID_STD,  "bapi1012_control_data-profile,
    bomusage     TYPE    STLAN ,      "bapi1012_control_data-bom_usage,
    application  TYPE    CAPID.      " bapi1012_control_data-application.
    internal tables declaration.
    DATA :
            it_task                    TYPE TABLE OF    bapi1012_tsk_c,
            it_materialtaskallocation  TYPE TABLE OF    bapi1012_mtk_c,
            it_operation               TYPE TABLE OF    bapi1012_opr_c,
            it_COMPONENTALLOCATION     TYPE TABLE OF    BAPI1012_COM_C,
    *text                    TYPE TABLE OF    bapi1012_txt_c,
            return                     TYPE TABLE OF    bapiret2,
            it_return                  TYPE TABLE OF    bapiret2.
    Work area declaration.
    DATA :
            wa_items_task           TYPE bapi1012_tsk_c ,
            wa_item_materailtask    TYPE bapi1012_mtk_c,
            wa_item_operation       TYPE bapi1012_opr_c,
            wa_item_componentallocation  TYPE BAPI1012_COM_C,
           wa_item_text            TYPE bapi1012_txt_c,
            wa_return               TYPE return.
    DATA : v_group          TYPE bapi1012_tsk_c-task_list_group,
           v_groupcounter   TYPE bapi1012_tsk_c-group_counter.
    DATA : filename TYPE string.
    *************INTERNAL TABLE DECLARATION***************
    TYPES: BEGIN OF routing,
             valid_from1             TYPE datuv,              "TASK(HEADER)
             valid_todate1           TYPE datub,
             usage                   TYPE pln_verwe ,
             werkstask(6),
             status                  TYPE plnst,
             task_measure_unit(3)    TYPE c,
             lot_size_from(010),
             lot_size_to(020),
             matnr(010),                                      " MATERIAL ALLOCATION(INITIAL SCREEN)
             werks2(006),
             valid_from2             TYPE datuv,
             valid_todate2           TYPE datub,
             valid_from3             TYPE datuv,
             valid_todate3           TYPE datub,
             optno                   TYPE VORNR,
             controlkey(004),
             work_cntr(006),
             werks3(006),
            description(20),
             denominator,
             quant(20),
             setup           TYPE      vgwrt,
             machine         TYPE      vgwrt,
             labor           TYPE      vgwrt,
              reqsplit        TYPE      splittung,
              noofsplits      TYPE      dec03,
              unitmax         TYPE      vgwrteh,
              maxwaittime     TYPE      dzlmax,
              unitstd         TYPE      vgwrteh,
              stdqtime        TYPE      dzwnor,
              unitmin         TYPE      vgwrteh,
              minqtime        TYPE      dzwmin,
              unitstdmove     TYPE      vgwrteh,
              stdmovetime     TYPE      dztnor,
              unitminmove     TYPE      vgwrteh,
              minmovetime     TYPE      dztmin,
              palnnedel           TYPE dec03,                   " IF CONTROL KEY PP02
              netprice(20)        TYPE c,
              priceunit           TYPE pack3,
              COSTELEMENT        TYPE KSTAR,
              currency            TYPE waers,
              purchorg(4)         TYPE c,
              purchgrp(3)         TYPE c,
              matgrp(9)           TYPE c ,
              subcontracting(1)   TYPE c,
              valid_from4         TYPE datuv,                   " COMPONENT ALLOCATION
              valid_todate4       TYPE datub,
              optno1(5),
              itemno(5),
              TEXT                TYPE TDLINE,
    END OF routing.
    DATA: it_record TYPE STANDARD TABLE OF record1.
    DATA: record TYPE record1.
    PARAMETERS : fname TYPE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR fname .
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          program_name  = syst-repid
          dynpro_number = syst-dynnr
        CHANGING
          file_name     = fname
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    START OF SLECTION*************
    START-OF-SELECTION.
      filename = fname.
    UPLOADING DATA***************
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = filename
          filetype                = 'ASC'
          has_field_separator     = 'X'
          read_by_line            = 'X'
        TABLES
          data_tab                = it_record
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      SORT it_record BY  matnr.
      LOOP AT it_record INTO record.
      at new matnr.
            flag = 'X'.
      endat.
      if flag = 'X'.
      count = 1.
        bomusage           = '1'.
        application        = 'PP01'.
        REFRESH: task , materialtaskallocation , operation   ,   COMPONENTALLOCATION .
    *********HEADER DATA**********************
          wa_items_task-valid_from               = record-valid_from1.
          wa_items_task-valid_to_date            = record-valid_todate1.
          wa_items_task-task_list_usage          = record-usage.
          wa_items_task-plant                    = record-werkstask.
          wa_items_task-task_list_status         = record-status.
          wa_items_task-task_measure_unit        = record-task_measure_unit.
          wa_items_task-lot_size_from            = record-lot_size_from.
          wa_items_task-lot_size_to              = record-lot_size_to.
          APPEND wa_items_task TO task.
    *************INITIAL SCREEN DATA*************
          wa_item_materailtask-material      = record-matnr.
          wa_item_materailtask-plant         = record-werks2.
          wa_item_materailtask-valid_from               = record-valid_from2.
          wa_item_materailtask-valid_to_date           = record-valid_todate2.
          APPEND wa_item_materailtask TO materialtaskallocation.
      flag = ' '.
      endif.
      IF count = 20.
       count = 1.
      ENDIF.
    **************OPERATION DATA*******************
          wa_item_operation-valid_from               = record-valid_from3.
          wa_item_operation-valid_to_date            = record-valid_todate3.
          wa_item_operation-activity               = record-optno.
          wa_item_operation-control_key            = record-controlkey.
          wa_item_operation-work_cntr              = record-work_cntr.
          wa_item_operation-plant                  = record-werks3.
         wa_item_operation-description            = record-description.
          wa_item_operation-denominator            = record-denominator.
          wa_item_operation-base_quantity          = record-quant.
          wa_item_operation-std_value_01           = record-setup.
          wa_item_operation-std_value_02            = record-machine.
          wa_item_operation-std_value_03            = record-labor.
          wa_item_operation-ind_splitting_reqrd       = record-reqsplit .
          wa_item_operation-max_no_of_splits          = record-noofsplits.
          wa_item_operation-max_wait_time_unit        = record-unitmax.
          wa_item_operation-max_wait_time             = record-maxwaittime.
          wa_item_operation-standard_queue_time_unit  = record-unitstd.
          wa_item_operation-standard_queue_time       = record-stdqtime.
          wa_item_operation-min_queue_time_unit       = record-unitmin.
          wa_item_operation-min_queue_time            = record-minqtime.
          wa_item_operation-standard_move_time_unit   = record-unitstdmove.
          wa_item_operation-standard_move_time        = record-stdmovetime.
          wa_item_operation-min_move_time_unit        = record-unitminmove.
          wa_item_operation-min_move_time             = record-minmovetime.
    ************SUBCONTRACTING DATA********************
          wa_item_operation-plnd_delry                      = record-palnnedel.
          wa_item_operation-info_rec_net_price             = record-netprice.
          wa_item_operation-price_unit                      = record-priceunit.
          wa_item_operation-COST_ELEM                       = RECORD-COSTELEMENT.
          wa_item_operation-currency                        = record-currency.
          wa_item_operation-purch_org                       = record-purchorg.
          wa_item_operation-purch_group                     = record-purchgrp.
          wa_item_operation-matl_group                      = record-matgrp.
          wa_item_operation-ext_proc_with_subcontract_ind   = record-subcontracting.
         APPEND wa_item_operation TO operation.
    *****************COMPONENT ALLOCATION****************
          wa_item_componentallocation-valid_from      = record-valid_from4.
          wa_item_componentallocation-valid_to_date   = record-valid_todate4.
          wa_item_componentallocation-activity        = record-optno1.
          wa_item_componentallocation-item_no         = record-itemno.
          APPEND wa_item_componentallocation TO componentallocation.
    TEXT************************************
       wa_item_text-TEXT_LINE = RECORD-TEXT.
       APPEND wa_item_text TO TEXT.
          count = count + 1.
    AT END OF MATNR.
    ****************CALLING FUNCTION MODULE**************
      CALL FUNCTION 'BAPI_ROUTING_CREATE'
      EXPORTING
        bomusage                     = bomusage
        application                  = application
      IMPORTING
        group                        = group
        groupcounter                 = groupcounter
        TABLES
         task                        = task
         materialtaskallocation      = materialtaskallocation
        SEQUENCE                   =
         operation                   = operation
       SUBOPERATION                =
       REFERENCEOPERATION          =
       WORKCENTERREFERENCE         =
        componentallocation          =  componentallocation
       PRODUCTIONRESOURCE          =
       INSPCHARACTERISTIC          =
       TEXTALLOCATION              =
        text                        = text
         return                      = return.
    loop at return into wa_return.
    write: / 'message type:' ,wa_return.
    endloop.
    COMMIT WORK.
      WRITE:/ 'GROUP:', group.
      WRITE:/ 'GROUPCOUNTER:', groupcounter.
    ENDAT.
    ENDLOOP.
    this will help u
    @vijji

  • ERROR IN BAPI  BAPI_ROUTING_CREATE

    Result of check lines:
    E BA 001
    A CP 205 The task list type in structure MTK_CLASS_DATA_INTERFACE does not match the task MATERIALTASKALLOCATI
    THIS ERROR I AM GETTING PLEASE HELP ME

    See BAPI_ROUTING_CREATE / Material Component Allocation
    Kanagaraja L

  • RUNNING BAPI BAPI_ROUTING_CREATE

    I AM GETTING ERROR IN USING BAPI
    A CP 205 The task list type in structure MTK_CLASS_DATA_INTERFACE does not match the task MATERIALTASKALLOCATI  1
    HELP ME .

    I AM GETTING ERROR IN USING BAPI
    A CP 205 The task list type in structure MTK_CLASS_DATA_INTERFACE does not match the task MATERIALTASKALLOCATI  1
    HELP ME .

  • Create Routing Groups using BAPI_ROUTING_CREATE Limitation?

    Hi all,
    I am doing a conversion for the routing groups for PP. The routing groups include sequence, operation number, material assigned and component allocation.
    In this project, the BOM size of the material is super huge, thus to ease the conversion. I have used Function module to download the BOM structure and then allow user to maintain manually the operation and sequence. After that I will use BAPI BAPI_ROUTING_CREATE to do the conversion.
    And I manage to get all operation, sequences, material assigned and component allocated. However, I face a problem as the BOM size keep increasing and same material BOM might be assigned to different header BOM at the same time. Thus, key field such as level and path is important for the input.
    Note: Please check the order path in CA03, the technical name is STPOB-WEGXX1 with attribute type DEC length 4.
    In my case, the Order Path is more than 99... around few hundreds....  But the issue is the order path field used in the BAPI_ROUTING_CREATE: BAPI1012_COM_C-ORDER_PATH is only has attribute type NUMC length 2.
    Either I get a short dump by passing in the order path, or I might miss out the some component allocation using the BAPI. Anyone faces this before? Please advise.
    Thanks.
    Best regards,
    Vin

    Hi Vivek,
    I got this reply from SAP.
    ORDER_LVL and ORDER_PATH need not be filled, but PATH has to be
    filled with the KANTE values.
    The logic to calculate path value is the same as the kante value.
    (PATH)
    A (N) 0
    -> B (P) 1
    -> B1(N) 1
    -> B2(P) 2
    -> C (P) 3
    -> C1 (N) 3
    -> C2 (P) 4
    N- normal item P- phantom
    Note 305919 details this.
    However, it quite confuses me as I read through sapnote 305919 : It seems like what is been replied from SAP does not really correct.
    Symptom
    You want to create component allocations to phantom assemblies using batch or direct input. In order to uniquely identify the phantom assembly, you must enter the level and the path. This note describes how the SAP System assigns the level and the path.
    Thus, I will continue to check with SAP. I think this is the inconsistency of the database and the BAPI, correct me if I am wrong.
    Thanks a lot.
    Regards,
    Vin

  • BAPI Routing add/update

    I am looking for a BAPI to add and update the Routing.
    Thanks for the help.
    With Regards
    Sanjeet Rai

    Hello,
    I see that you suggest using BAPI BAPI_ROUTING_CREATE to create a Routing.  What about Changing a Routing?  I do not see a standard BAPI to do this.
    We are currently writing a custom program to update the Routing via batch input/call transaction, but it has proved to be problematic.
    Is there any other method (preferably an SAP Standard one) to update Routings?
    Thanks,
    Julianna

  • BAPI / FM to create ROUTE

    Hi ,
    Is there any FM/ BAPI to create a route.
    My client will give me the following details.
    1.     Seq number
    2.     Route Number
    3.     Stop Number
    4.     Customer number
    5.     Arrival time
    6.     Departure time
    Sample data:
    1     2    3       4             5      6
    8   183 814 M51565 0824 0901
    1   186 111 M57612 1540 1634
    2   186 233 M57513 1652 1731
    Using above information i need to create route. I tried BAPI 'BAPI_ROUTING_CREATE' ,but the above fields are not there in that BAPI.
    Please Help me.
    Thanks,
    Soumya

    Hi,
    The Function module BAPI_ROUTING_CREATE is for creating Routing  in PP module.  Routing is a Template for Plant Production.  I also worked with this function module to create Routing in PP. But the Inputs are Work center data, Sequences , Components like that.......

  • Bapi/Fn Module for changing Routing

    Hi All,
    Currently I am working on creation and change of Routing using BAPI's . I could find the routing create bapi BAPI_ROUTING_CREATE and it is working fine.
    Can some one help in identifying the BAPI/Function Module for modifying /changing the Routing. For changing details in routing currently we are using t code CA02.
    Thanks ,
    Vengal Rao.

    Hi Joerg,
    Thanks for the function module. A small issue I am facing. when executing it some data in it I am getting error message
       as follow: HIGH_MSGTY   -   E , ERROR_FROM     -   1, ERROR_TO       -      1, OBJ , D_IND         -  0000000001 .
    Please guide me how to identify this error message.
    Thanks,
    Vengal Rao.

  • How to use componenet allocation in BAPI_ROUTING_CREATE

    Hi Experts,
                    I am creating routing using bapi BAPI_ROUTING_CREATE. In that i am passing header,operation and componenet
    allocation level but its giving error as 'operation has to be assigned is not completely specified'. Kindly anyone help me regarding this..
    Thanks
    Ramesh Manoharan
    Edited by: ramesh.manoharan on Jan 30, 2010 4:10 PM

    hello if the problem is with operation...then pass the below data for header and operation it creates routing i have verified.....
    Populate BAPI_ROUTING_CREATE .....using following structures and fields
    BOMUSAGE                                       1
    TASK
    GROUP_COUNTER                                 1
    TASK_LIST_USAGE                               1
    TASK_LIST_STATUS                              4    
    TASK_MEASURE_UNIT                           EA
    LOT_SIZE_FROM                                    190
    LOT_SIZE_TO                                          300
    DESCRIPTION                                          TEST123
    OPERATION
    GROUP_COUNTER                                   1
    ACTIVITY                                               0010(operation number)
    CONTROL_KEY                                      PP01
    PLANT                                                    0001
    DESCRIPTION                                           TEST
    OPERATION_MEASURE_UNIT                  EA
    DENOMINATOR                                       1
    NOMINATOR                                            1
    BASE_QUANTITY                                    12
    after this dont forget to use BAPI_TRANSACTION_COMMIT ( go to se37 ..test-test sequences---enter BAPI_ROUTING_CREATE and BAPI_TRANSACTION_COMMIT)
    and execute ..i have tested this it works perfet..create routing with 1 opeartion 0010...
    for componenet allocation i am looking..but i have some access problems ......as u said u have error in opeartin that means what  ever data you are using for COMPONENETALLOCATION is correct.
    first create one routing with header and one operation only using data i have specified...if it works then for next routing u can add fields into componenent allocation and test.....remember for componenet allocation..BOM needs to be there for that material assigned.
    hope i am able to clear some of your confusion..cheers....
    Abhijeet

  • 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

  • Problem in BAPI_ROUTING_CREATE

    Hi Friends,
    I am trying to create ROUTING by BAPI_ROUTING_CREATE,but it's giving me some errors like,
    W CPCC_DT              009 The valid-from data has been set from today's date
    E CPWB                 210 Enter unit of measure
    E CPCL                 002 Create task list: Consistency check was not successful
    A CPCC_DT              210 For further processing, the routing entry is missing
    Can any one help me by providing sol for this or any other FM to create ROUTING.
    Points will be rewarded.
    Thanks in advance,
    PRB.

    Check with Links
    Re: Confusing of useing BAPI_ROUTING_CREATE
    Re: USE BAPI  BAPI_ROUTING_CREATE
    Try to create Routing manullay at CA01 and see the results
    Thanks
    Seshu

  • Routing Creation with multiple Wok Center -  BAPI_ROUTING_CREATE

    Hi Guru,
    I'm creating a Routing using a bapi BAPI_ROUTING_CREATE, currently i can only create routing with one work but it requires to have different work center for each operation. I've checked the my table for operation and sub operation and it contains the data for the two work centers, unfortunately when it gone through the bapi it only creates one work center for a given operation.
    Do I need to populate the table WORKCENTERREFERENCE?
    Please advise.
    Thanks and regards,
    jay

    Hi Jitendra,
    Instead of making the scenario complex, I suggest you to go for separate routing and BOM for the semi-finished and finished product.
    How do you differentiate the routing of both the finished and semi-finished in only one ?
    regards
    Ram Kumar

  • BAPI_ROUTING_CREATE Problem

    Hi Gurus,
    I'm using the BAPI  "BAPI_ROUTING_CREATE" for the creation of Routing.
    I'm trying to pass the Standard Value (STD_VALUE_01) to the Operation Strucutre.
    When i pass the Standard Value, the BAPI is giving the following error.
    "*Enter a unit for standard value Reqmts*"
    I think i'm missing some of the Parameters in the BAPI.
    Please suggest me the parameter which one i'm missing.
    I'm using the following parameters.
    IT_BAPI1012_OPR_C-ACTIVITY               = V1_VORNR.
          IT_BAPI1012_OPR_C-CONTROL_KEY            = IT_ITEM-STEUS.
          IT_BAPI1012_OPR_C-WORK_CNTR              = IT_ITEM-ARBPL.
          IT_BAPI1012_OPR_C-PLANT                  = IT_ITEM-WERKS.
          IT_BAPI1012_OPR_C-OPERATION_MEASURE_UNIT = IT_ITEM-PLNME.
          IT_BAPI1012_OPR_C-OPERATION_MEASURE_UNIT_ISO = 'KMT'.
          IT_BAPI1012_OPR_C-DESCRIPTION            = IT_ITEM-LTXA1.
          IT_BAPI1012_OPR_C-BASE_QUANTITY          = '1.000'.
          IT_BAPI1012_OPR_C-STD_VALUE_01           = IT_ITEM-STD_VALUE_01.
         IT_BAPI1012_OPR_C-STD_UNIT_01            = 'D'.
         IT_BAPI1012_OPR_C-STD_UNIT_01_ISO        = 'DAY'.
          IT_BAPI1012_OPR_C-DENOMINATOR            = 1.
          IT_BAPI1012_OPR_C-NOMINATOR              = 1.
          IT_BAPI1012_OPR_C-BASE_QUANTITY          = 1.
          APPEND IT_BAPI1012_OPR_C.
    we are not using any machine or operator etc, in this scenario we don't require those things.
    Thanks,
    Adi.

    Hi,
    whenever u pass a Quanity or Currency it is must to pass the coressponding unit. here in ur code i see u commented it. so, try to pass the STD_UNIT_01 to the structure and run.
    also, you should use a CONVERSION routine for STD_UNIT_01 like below before passing it..
    IT_BAPI1012_OPR_C-ACTIVITY = V1_VORNR.
    IT_BAPI1012_OPR_C-CONTROL_KEY = IT_ITEM-STEUS.
    IT_BAPI1012_OPR_C-WORK_CNTR = IT_ITEM-ARBPL.
    IT_BAPI1012_OPR_C-PLANT = IT_ITEM-WERKS.
    IT_BAPI1012_OPR_C-OPERATION_MEASURE_UNIT = IT_ITEM-PLNME.
    IT_BAPI1012_OPR_C-OPERATION_MEASURE_UNIT_ISO = 'KMT'.
    IT_BAPI1012_OPR_C-DESCRIPTION = IT_ITEM-LTXA1.
    IT_BAPI1012_OPR_C-BASE_QUANTITY = '1.000'.
    IT_BAPI1012_OPR_C-STD_VALUE_01 = IT_ITEM-STD_VALUE_01.
      CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
        EXPORTING
          input          = it_ka485-meins    --> (it_ka485-meins = DAY)
          language       = sy-langu
        IMPORTING
          output         = l_v_meins        
        EXCEPTIONS
          unit_not_found = 1
          OTHERS         = 2.
    lv_meins will have a value 'TAG' after from the above FM..
    IT_BAPI1012_OPR_C-STD_UNIT_01 = l_v_meins.
    IT_BAPI1012_OPR_C-STD_UNIT_01_ISO = 'DAY'.
    IT_BAPI1012_OPR_C-DENOMINATOR = 1.
    IT_BAPI1012_OPR_C-NOMINATOR = 1.
    IT_BAPI1012_OPR_C-BASE_QUANTITY = 1.
    APPEND IT_BAPI1012_OPR_C.
    Hope it helps!!
    Regards,
    Pavan

Maybe you are looking for

  • Java.lang.NumberFormatException: For input string: "500.01 Not to Exceed"

    While running a BI Publisher 11g report i am getting this error oracle.xdo.XDOException: java.lang.NumberFormatException: For input string: "500.01 Not to Exceed" Any idea what could it be? To me it looks like that its related to some datatype mismat

  • How to send Run time errors alerts to email ?

    Dear Friends, I am using SAP CRM ABAP 6.0. I am checking run time errors in ST22 transaction. Usually, i check in morning or evening, based on my free time. I feel, dificully in this. so, i need to configure in somewhere for send this runtime error a

  • How to use a cofigured JDBC iView?

    Hello, I ghave configured an iView which implements a JDBC connection to my SQLServer, let's call it "myJDBC". Can someone please show me a simple code example (including relevant descriptors)of another iView which uses the JDBC iView in order to Que

  • Access Your Files Anywhere | Photoshop CS6 Feature Tour | Adobe TV

    Use automatic cloud storage and syncing to reliably access your files anywhere, on any device, and easily share them with colleagues. View files from Adobe InDesign, Photoshop, and other applications; turn layers on and off; and so much more. http://

  • Packager for iPhone update for Flash CS5?

    I see the packager is updated...will the packager in Flash CS5 also be updated through the Application Manager? http://labs.adobe.com/technologies/packagerforiphone/