<?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 BAPI_ROUTING_CREATE - create operation and phases in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685974#M1450311</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;Using this BAPI_ROUTING_CREATE - can we create operation and phases ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 01:58:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-22T01:58:56Z</dc:date>
    <item>
      <title>BAPI_ROUTING_CREATE - create operation and phases</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685974#M1450311</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;Using this BAPI_ROUTING_CREATE - can we create operation and phases ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 01:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685974#M1450311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T01:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ROUTING_CREATE - create operation and phases</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685975#M1450312</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;have you checked that BAPI in SE37 before posting your question? Among others the BAPI BAPI_ROUTING_CREATE has two tables: SEQUENCE and OPERATION. I guess that just this info should answer your question. For some reason the table SEQUENCE is missing in documentation but there is an example of filling OPERATION table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 03:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685975#M1450312</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-03-22T03:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ROUTING_CREATE - create operation and phases</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685976#M1450313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;     here is the sample code.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: BEGIN OF bapi_task OCCURS 0. 
INCLUDE STRUCTURE bapi1012_tsk_c. 
DATA: END OF bapi_task. 
DATA: BEGIN OF bapi_materialtaskallocation OCCURS 0. 
INCLUDE STRUCTURE bapi1012_mtk_c. 
DATA: END OF bapi_materialtaskallocation. 
DATA: BEGIN OF bapi_operation OCCURS 0. 
INCLUDE STRUCTURE bapi1012_opr_c. 
DATA: END OF bapi_operation. 
DATA: BEGIN OF bapi_sub_operation OCCURS 0. 
INCLUDE STRUCTURE bapi1012_sub_opr_c. 
DATA: END OF bapi_sub_operation. 
DATA: BEGIN OF bapi_inspcharacteristic OCCURS 0. 
INCLUDE STRUCTURE bapi1012_cha_c. 
DATA: END OF bapi_inspcharacteristic. 
DATA: BEGIN OF bapi_return OCCURS 10. 
INCLUDE STRUCTURE bapiret2. 
DATA: END OF bapi_return. 
bapi_task-valid_from = sy-datum. 
bapi_task-task_list_usage = '1'. 
bapi_task-plant = '0001'. 
bapi_task-task_list_status = '4'. 
bapi_task-task_measure_unit = 'KG'. 
* bapi_task-TASK_LIST_GROUP = '50000010'. 
* bapi_task-GROUP_COUNTER = '1'. 
APPEND bapi_task. CLEAR bapi_task. 
bapi_materialtaskallocation-material = 'AB001999'. 
bapi_materialtaskallocation-plant = '0001'. 
bapi_materialtaskallocation-valid_from = sy-datum. 
* bapi_materialtaskallocation-TASK_LIST_GROUP = '50000010'. 
* bapi_materialtaskallocation-GROUP_COUNTER = '1'. 
APPEND bapi_materialtaskallocation. 
CLEAR bapi_materialtaskallocation. 
bapi_operation-valid_from = sy-datum. 
bapi_operation-activity = '0010'. 
bapi_operation-control_key = 'PP01'. 
bapi_operation-plant = '0001'. 
bapi_operation-description = 'TESTING12'. 
bapi_operation-denominator = '1'. 
bapi_operation-nominator = '1'. 
bapi_operation-base_quantity = '1'. 
* bapi_operation-TASK_LIST_GROUP = '50000010'. 
* bapi_operation-GROUP_COUNTER = '1'. 
APPEND bapi_operation. 
CLEAR bapi_operation. 
bapi_sub_operation-valid_from = sy-datum. 
bapi_sub_operation-sub_activity = '0011'. 
bapi_sub_operation-activity = '0010'. 
bapi_sub_operation-control_key = 'PP01'. 
bapi_sub_operation-plant = '0001'. 
bapi_sub_operation-description = 'Mixing'. 
bapi_sub_operation-denominator = '1'. 
bapi_sub_operation-nominator = '1'. 
bapi_sub_operation-base_quantity = '1'. 
* * bapi_sub_operation-TASK_LIST_GROUP = '50000010'.
 * bapi_sub_operation-GROUP_COUNTER = '1'. 
APPEND bapi_sub_operation. 
CLEAR bapi_sub_operation. 
bapi_inspcharacteristic-activity = '0010'.
 bapi_inspcharacteristic-valid_from = sy-datum.
 bapi_inspcharacteristic-quantitative_ind = 'X'.
 bapi_inspcharacteristic-char_descr = 'Hardness'.
 bapi_inspcharacteristic-up_tol_lmt_ind = 'X'. 
bapi_inspcharacteristic-lw_tol_lmt_ind = 'X'.
 bapi_inspcharacteristic-target_val_check_ind = 'X'. 
bapi_inspcharacteristic-dec_places = '2'. 
bapi_inspcharacteristic-meas_unit = 'KGV'. 
bapi_inspcharacteristic-target_val = '10'. 
bapi_inspcharacteristic-up_tol_lmt = '12'. 
bapi_inspcharacteristic-lw_tol_lmt = '8'. 
* bapi_inspcharacteristic-CHARACTERISTIC_NAME = 'Hardness1111'. 
append bapi_inspcharacteristic. 
CLEAR bapi_inspcharacteristic. 
*BAPI_GROUP = '50000010'. 
*bapi_groupcounter = '1'. . 
*CALL FUNCTION '/SAPMP/BAPI_ROUTING_PROCESS'
 CALL FUNCTION 'BAPI_ROUTING_CREATE' 
* exporting * CHANGEMODE = 'X' 
IMPORTING 
group = bapi_group 
groupcounter = bapi_groupcounter 
TABLES 
task = bapi_task 
materialtaskallocation = bapi_materialtaskallocation 
operation = bapi_operation 
suboperation = bapi_sub_operation 
* inspcharacteristic = bapi_inspcharacteristic 
return = bapi_return. 
LOOP AT bapi_return. 
IF bapi_return[] IS INITIAL.
 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
EXPORTING 
wait = 'X'. 

ELSE. 
IF bapi_return-type EQ 'E'. 
WRITE:/'Error in Function', 
bapi_return-message. 
ROLLBACK WORK. 
ELSE. 
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
EXPORTING wait = 'X'. 
WRITE:/ bapi_return-message. 
ENDIF. 
ENDIF. 
ENDLOOP.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 04:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685976#M1450313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T04:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ROUTING_CREATE - create operation and phases</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685977#M1450314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still errors i think due to "*&lt;STRONG&gt;Control Recipe Destination&lt;/STRONG&gt;* " field is mandatory for phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not able to find the corresponding field in the BAPI structure "BAPI1012_SUB_OPR_C" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert if any one tries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 07:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685977#M1450314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T07:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ROUTING_CREATE - create operation and phases</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685978#M1450315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx.. Sam Bond..&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 11:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-routing-create-create-operation-and-phases/m-p/6685978#M1450315</guid>
      <dc:creator>praveen_moolera2</dc:creator>
      <dc:date>2016-09-20T11:20:03Z</dc:date>
    </item>
  </channel>
</rss>

