<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Routing Upload Program(CA01) with BAPI_ROUTING_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142803#M1192029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Selva M  ,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; In this code, whatever the operations I am passing are getting created into the standard sequence'0'.&lt;/P&gt;&lt;P&gt; But my problem is, I want create the sequences '1', '2' with the different operations allong with   dependencies.&lt;/P&gt;&lt;P&gt; Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 11:52:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-23T11:52:40Z</dc:date>
    <item>
      <title>Routing Upload Program(CA01) with BAPI_ROUTING_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142799#M1192025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please give me any sample code for Routing upload.&lt;/P&gt;&lt;P&gt; I am trying to upload the routing through the BAPI_ROUTING_CREATE, But I am not able to upload the  sequences and dependencies.&lt;/P&gt;&lt;P&gt; Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 09:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142799#M1192025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T09:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Upload Program(CA01) with BAPI_ROUTING_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142800#M1192026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following description might help u out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Description&lt;/P&gt;&lt;P&gt;Creation of a routing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module&lt;/P&gt;&lt;P&gt;BAPI_ROUTING_CREATE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;This method serves to create routings with all their subordinated objects. Here, you can generate a key date view as well as the complete history of a routing. The latter is particularly useful for data transfers from non-SAP systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;You want to create a routing with its sequences, operations and inspection characteristics on the key date 01.01.2000. You generate an entry for each object in the following table by always entering the date 01.01.2000 in the attribute VALID_FROM: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TASK &lt;/P&gt;&lt;P&gt;Enter the relevant task list header data here. The attributes TASK_LIST_GROUP and GROUP_COUNTER only have to be supplied if you work with external number assignment. For internal number assignment the task list group and the group counter are determined automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEQUENCE &lt;/P&gt;&lt;P&gt;Here, only entries for alternative or parallel sequences are allowed. The standard sequence of a routing is always generated automatically and therefore does not have to be entered. Here also, the attributes TASK_LIST_GROUP and GROUP_COUNTER need only be supplied in the case of external number assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPERATION &lt;/P&gt;&lt;P&gt;You generate an entry for each operation in this table. To identify the operations, you have to enter an external operation identifier in the field OPERATION_ID. This identifier has to contain at least one character that is not a number (such as VORG0010). This external identifier is used by the definition of the alternative or parallel sequences to identify the corresponding branch or return operation. You only have to supply the TASK_LIST_GROUP and GROUP_COUNTER in the case of external number assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSPCHARACTERISTIC &lt;/P&gt;&lt;P&gt;You generate an entry for each inspection characteristic in this table. To identify the inspection characteristics you have to enter an inspection characteristic number in the field INSPCHAR. You can create inspection characteristics with or without reference to a master inspection characteristic. In the field CHA_MASTER_IMPORT_MODUS (Modus for the reference to the master inspection characteristic) enter the reference to the master inspection characteristic: 'L' for reference. In this case, the master inspection characteristic has to be completely maintained. In the parameter INSPCHARACTERISTIC you only have to supply those fields that could not be copied from the master inspection characteristic; 'C' for copy the data from the master inspection characteristic into the inspection characteristic, 'N' for create a lockable and unlockable reference to the master inspection characteristic without a data transfer from the master inspection characteristic. In this case manually fill out all fields in the parameter INSPCHARACTERISTIC. You can either transfer the inspection characteristic control indicator directly from the master inspection characteristic, enter it individually or in the field PRESET_CTRL_INDS_KEY you enter a key for the control indicator if you have stored this key in Customizing. If you have individually entered a control indicator, note the following special features: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCOPE_IND: Inspection scope. This indicator can have different &lt;/P&gt;&lt;P&gt;characteristics: You set " " for: Free inspection scope You set "&amp;lt;"&amp;gt;" for: Larger inspection scope permitted You set "=" for: Defined inspection scope &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT_RECORDING_TYPE: Record entry type. This indicator can have different characteristics: &lt;/P&gt;&lt;P&gt;You set "-" for: No record entry You set "*" for: Classified record entry You set "+" for: Single record entry You set " " for: Summarized record entry &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOCU_REQU: Documentation required for check results. This indicator can &lt;/P&gt;&lt;P&gt;have different characteristics: You set " " for: No documention required You set "." for: Documentation for rejection You set "" for: Document all check results You set "" for: Document all check results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIRMATION_CATEGORY Characteristic category &lt;/P&gt;&lt;P&gt;You set " " for: Optional characteristic You set "+" for: Limited to the acceptance of the previous mandatory characteristic You set "-" for: Limited to the rejection of the previous mandatory characteristic &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You set "X" for: Mandatory characteristic &lt;/P&gt;&lt;P&gt;PRINT_IND: Print control This indicator can have different characteristics: You set " " for: Print You set "x" for: Do not print You set "*" for: Do not print at skip If you want to assign an inspection equipment to the inspection characteristic in the field ITEM_NO_OF_PRODUCTION_RESOURCE, note that this has to be assigned to the operation in the PARAMETER PRODUCTIONRESOURCE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 11:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142800#M1192026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T11:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Upload Program(CA01) with BAPI_ROUTING_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142801#M1192027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_task             TYPE TABLE OF bapi1012_tsk_c,&lt;/P&gt;&lt;P&gt;     wa_task             TYPE bapi1012_tsk_c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     it_materialtaskallocation TYPE TABLE OF bapi1012_mtk_c,&lt;/P&gt;&lt;P&gt;     wa_materialtaskallocation TYPE bapi1012_mtk_c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     it_operation        TYPE TABLE OF bapi1012_opr_c,&lt;/P&gt;&lt;P&gt;     wa_operation        TYPE bapi1012_opr_c,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     it_return           TYPE TABLE OF bapiret2,&lt;/P&gt;&lt;P&gt;     wa_return           TYPE  bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_header .&lt;/P&gt;&lt;P&gt;  CLEAR : wa_materialtaskallocation.&lt;/P&gt;&lt;P&gt;  REFRESH : it_materialtaskallocation.&lt;/P&gt;&lt;P&gt;  wa_materialtaskallocation-material         = wa_mat_plant-matnr.&lt;/P&gt;&lt;P&gt;  wa_materialtaskallocation-plant            = wa_mat_plant-werks.&lt;/P&gt;&lt;P&gt;  wa_materialtaskallocation-group_counter    = c_01.&lt;/P&gt;&lt;P&gt;  wa_materialtaskallocation-valid_from       = v_eff.&lt;/P&gt;&lt;P&gt;  APPEND wa_materialtaskallocation TO it_materialtaskallocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : wa_task.&lt;/P&gt;&lt;P&gt;  REFRESH: it_task.&lt;/P&gt;&lt;P&gt;  wa_task-valid_from                         = v_eff.&lt;/P&gt;&lt;P&gt;  wa_task-valid_to_date                      = c_valid_todate.&lt;/P&gt;&lt;P&gt;  wa_task-task_list_usage                    = c_1.&lt;/P&gt;&lt;P&gt;  wa_task-plant                              = wa_mat_plant-werks.&lt;/P&gt;&lt;P&gt;  wa_task-task_list_status                   = c_status.&lt;/P&gt;&lt;P&gt;  wa_task-task_measure_unit                  = c_ea.&lt;/P&gt;&lt;P&gt;  wa_task-lot_size_from                      = c_lot_size.&lt;/P&gt;&lt;P&gt;  wa_task-lot_size_to                        = c_tosize.&lt;/P&gt;&lt;P&gt;  wa_task-description                        = v_mat_desc.&lt;/P&gt;&lt;P&gt;  APPEND wa_task TO it_task.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_lot_start .&lt;/P&gt;&lt;P&gt;  CLEAR: wa_operation.&lt;/P&gt;&lt;P&gt;  REFRESH: it_operation.&lt;/P&gt;&lt;P&gt;  wa_operation-valid_from                    = v_eff.&lt;/P&gt;&lt;P&gt;  wa_operation-valid_to_date                 = c_valid_todate.&lt;/P&gt;&lt;P&gt;  wa_operation-activity                      = c_0001.&lt;/P&gt;&lt;P&gt;  wa_operation-control_key                   = c_zp02.&lt;/P&gt;&lt;P&gt;  wa_operation-work_cntr                     = c_lotstart.&lt;/P&gt;&lt;P&gt;  wa_operation-plant                         = wa_mat_plant-werks.&lt;/P&gt;&lt;P&gt;  wa_operation-description                   = c_lot_start.&lt;/P&gt;&lt;P&gt;  wa_operation-operation_measure_unit        = c_ea.&lt;/P&gt;&lt;P&gt;  wa_operation-denominator                   = c_1.&lt;/P&gt;&lt;P&gt;  wa_operation-nominator                     = c_1.&lt;/P&gt;&lt;P&gt;  wa_operation-std_value_01                  = c_std_value.&lt;/P&gt;&lt;P&gt;  wa_operation-base_quantity                 = c_1.&lt;/P&gt;&lt;P&gt;  wa_operation-cost_relevant                 = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_operation TO it_operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_lot_start&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_lot_complete .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: wa_operation.&lt;/P&gt;&lt;P&gt;  wa_operation-valid_from                   = v_eff.&lt;/P&gt;&lt;P&gt;  wa_operation-valid_to_date                = c_valid_todate.&lt;/P&gt;&lt;P&gt;  wa_operation-activity                     = c_9999.&lt;/P&gt;&lt;P&gt;  wa_operation-control_key                  = c_zp01.&lt;/P&gt;&lt;P&gt;  wa_operation-work_cntr                    = c_lotcmplt.&lt;/P&gt;&lt;P&gt;  wa_operation-plant                        = wa_mat_plant-werks.&lt;/P&gt;&lt;P&gt;  wa_operation-description                  = c_lot_complete.&lt;/P&gt;&lt;P&gt;  wa_operation-operation_measure_unit       = c_ea.&lt;/P&gt;&lt;P&gt;  wa_operation-base_quantity                = c_1.&lt;/P&gt;&lt;P&gt;  wa_operation-denominator                  = c_1.&lt;/P&gt;&lt;P&gt;  wa_operation-std_value_01                 = c_std_value.&lt;/P&gt;&lt;P&gt;  wa_operation-nominator                    = c_1.&lt;/P&gt;&lt;P&gt;  wa_operation-scrap_factor                 = v_scrap.&lt;/P&gt;&lt;P&gt;  wa_operation-cost_relevant                 = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_operation TO it_operation.&lt;/P&gt;&lt;P&gt;  CLEAR: v_scrap.                                           "CCT53428&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_lot_complete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_create_routing .&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ROUTING_CREATE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     group                  = v_group&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     groupcounter           = v_group_counter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       task                   = it_task&lt;/P&gt;&lt;P&gt;       materialtaskallocation = it_materialtaskallocation&lt;/P&gt;&lt;P&gt;       operation              = it_operation&lt;/P&gt;&lt;P&gt;       return                 = it_return.&lt;/P&gt;&lt;P&gt;  IF it_return IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    READ TABLE it_return INTO wa_return WITH KEY type = c_error.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      wa_emsg-msg_type = c_error.&lt;/P&gt;&lt;P&gt;      wa_emsg-plant = wa_mat_plant-werks.&lt;/P&gt;&lt;P&gt;      wa_emsg-material = wa_mat_plant-matnr.&lt;/P&gt;&lt;P&gt;      wa_emsg-eff_date = v_eff.&lt;/P&gt;&lt;P&gt;      wa_emsg-fg_critical = c_x.&lt;/P&gt;&lt;P&gt;      wa_emsg-description = text-112.&lt;/P&gt;&lt;P&gt;      APPEND wa_emsg TO it_emsg.&lt;/P&gt;&lt;P&gt;      PERFORM f_errfile.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    LOOP AT it_return INTO wa_return WHERE type = c_error.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          id  = wa_return-id&lt;/P&gt;&lt;P&gt;          no  = wa_return-number&lt;/P&gt;&lt;P&gt;          v1  = wa_return-message_v1&lt;/P&gt;&lt;P&gt;          v2  = wa_return-message_v2&lt;/P&gt;&lt;P&gt;          v3  = wa_return-message_v3&lt;/P&gt;&lt;P&gt;          v4  = wa_return-message_v4&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          msg = v_msgid.&lt;/P&gt;&lt;P&gt;      CLEAR: wa_emsg.&lt;/P&gt;&lt;P&gt;      fg_bapi_fail = c_x.&lt;/P&gt;&lt;P&gt;      wa_emsg-msg_type = c_error.&lt;/P&gt;&lt;P&gt;      wa_emsg-plant = wa_mat_plant-werks.&lt;/P&gt;&lt;P&gt;      wa_emsg-material = wa_mat_plant-matnr.&lt;/P&gt;&lt;P&gt;      wa_emsg-eff_date = v_eff.&lt;/P&gt;&lt;P&gt;      wa_emsg-fg_critical = c_x.&lt;/P&gt;&lt;P&gt;      wa_emsg-description = v_msgid.&lt;/P&gt;&lt;P&gt;      APPEND wa_emsg TO it_emsg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 11:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142801#M1192027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T11:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Upload Program(CA01) with BAPI_ROUTING_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142802#M1192028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chenna kesava R.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;I have gone through these steps but my issue is that, I want to upload the external sequenced with the operrations and dependencies.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;When I am passing the operations only to bapi that time standard sequence '0' is getting created with all operations but when I am passing alternative sequence '1', '2'  with specific to the operations belongs to sequence respectively to BAPI then it is saying that 'This sequnce is not found'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 11:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142802#M1192028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Upload Program(CA01) with BAPI_ROUTING_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142803#M1192029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Selva M  ,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Thanks for the reply.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; In this code, whatever the operations I am passing are getting created into the standard sequence'0'.&lt;/P&gt;&lt;P&gt; But my problem is, I want create the sequences '1', '2' with the different operations allong with   dependencies.&lt;/P&gt;&lt;P&gt; Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 11:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routing-upload-program-ca01-with-bapi-routing-create/m-p/5142803#M1192029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T11:52:40Z</dc:date>
    </item>
  </channel>
</rss>

