<?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: Example code for BAPI_NETWORK_MAINTAIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848426#M1133928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to user BAPI_NETWORK_MAINTAIN function module to create create a nework. However I cannot get past these errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statuses could not be created while creating network "MS41-T000002" (Message ID CN #194)&lt;/P&gt;&lt;P&gt;WBS elem. cntrl. area "FP00" is not same as network cntrl. area (Message ID CN #068)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create the Network and activities through CN21 transaction using the same data that I am passing to BAPI_NETWORK_MAINTAIN function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tushar Shelar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Oct 2010 22:24:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-15T22:24:28Z</dc:date>
    <item>
      <title>Example code for BAPI_NETWORK_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848421#M1133923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a network, network activity and its components using BAPI (BAPI_NETWORK_MAINTAIN).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me out to find the mandatory tables and its parameters.&lt;/P&gt;&lt;P&gt;if possible with example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One More question, when i am creating a network, Which network number do i need to pass as objectkey in IMETHOD table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same number i need to pass in INETWORK table also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to use some existing number or the number will be assigned by system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the BAPI ends with error, i can see error messages in message table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if BAPI is success, does it give any messages like success message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 05:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848421#M1133923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T05:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for BAPI_NETWORK_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848422#M1133924</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 the documentation of the BAPI in SE37. After you enter the BAPI in display mode.. Click on "Function Module Documentation" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation contains complete sample code and how to pass the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 05:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848422#M1133924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T05:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for BAPI_NETWORK_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848423#M1133925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,,&lt;/P&gt;&lt;P&gt;See the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="12" type="ul"&gt;&lt;P&gt;create network ***********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; if not network is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE '000001' TO itnetmethod-refnumber.&lt;/P&gt;&lt;P&gt;    MOVE 'NETWORK' TO itnetmethod-objecttype.&lt;/P&gt;&lt;P&gt;    MOVE 'CREATE' TO itnetmethod-method.&lt;/P&gt;&lt;P&gt;    MOVE  network TO itnetmethod-objectkey.&lt;/P&gt;&lt;P&gt;    APPEND itnetmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE '000000' TO itnetmethod-refnumber.&lt;/P&gt;&lt;P&gt;    MOVE ' ' TO itnetmethod-objecttype.&lt;/P&gt;&lt;P&gt;    MOVE 'SAVE' TO itnetmethod-method.&lt;/P&gt;&lt;P&gt;    MOVE  ' ' TO itnetmethod-objectkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND itnetmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE network TO itnetwork-network.&lt;/P&gt;&lt;P&gt;    MOVE network_type TO itnetwork-network_type.&lt;/P&gt;&lt;P&gt;    MOVE vplant TO itnetwork-plant.&lt;/P&gt;&lt;P&gt;    MOVE 'NEW NETWORK' TO itnetwork-short_text.&lt;/P&gt;&lt;P&gt;    MOVE wbs_element TO itnetwork-wbs_element.&lt;/P&gt;&lt;P&gt;    MOVE '001' TO itnetwork-mrp_controller.&lt;/P&gt;&lt;P&gt;    MOVE project_definition TO itnetwork-project_definition.&lt;/P&gt;&lt;P&gt;    MOVE profile TO itnetwork-profile.&lt;/P&gt;&lt;P&gt;    APPEND itnetwork.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REFRESH itemsg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'&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;        RETURN                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;              i_method_project            = itnetmethod&lt;/P&gt;&lt;P&gt;              i_network                   =  itnetwork&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_NETWORK_UPDATE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_ACTIVITY                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_ACTIVITY_UPDATE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_RELATION                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_RELATION_UPDATE           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           e_message_table             = itemsg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_ACTIVITY_ELEMENT          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_ACTIVITY_ELEMENT_UPDATE   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_ACTIVITY_MILESTONE        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_ACTIVITY_MILESTONE_UPDATE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT itemsg.&lt;/P&gt;&lt;P&gt;      MOVE : itemsg-method to network_create_error-method,&lt;/P&gt;&lt;P&gt;             itemsg-object_type to network_create_error-OBJECT_TYPE,&lt;/P&gt;&lt;P&gt;             itemsg-internal_object_id to&lt;/P&gt;&lt;P&gt;             network_create_error-INTERNAL_OBJECT_ID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             itemsg-external_object_id to&lt;/P&gt;&lt;P&gt;             network_create_error-EXTERNAL_OBJECT_ID,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             itemsg-message_id to network_create_error-MESSAGE_ID,&lt;/P&gt;&lt;P&gt;             itemsg-message_number to&lt;/P&gt;&lt;P&gt;             network_create_error-MESSAGE_NUMBER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             itemsg-message_type to network_create_error-MESSAGE_TYPE,&lt;/P&gt;&lt;P&gt;             itemsg-message_text to network_create_error-MESSAGE_TEXT.&lt;/P&gt;&lt;P&gt;       append network_create_error.&lt;/P&gt;&lt;P&gt;       clear itemsg.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COMMIT WORK .&lt;/P&gt;&lt;P&gt;      WAIT UP TO 1 SECONDS.&lt;/P&gt;&lt;P&gt;  endif.  "if not network is initial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 05:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848423#M1133925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T05:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for BAPI_NETWORK_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848424#M1133926</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i_method_project-objecttype = 'NETWORKACTIVITY' . 
i_method_project-method = 'UPDATE'. 
i_method_project-objectkey = v-objkey. 
i_method_project-refnumber = '000001' . 
APPEND i_method_project. 
i_method_project-objecttype = ' ' . 
i_method_project-method = 'SAVE'. 
i_method_project-objectkey = ' '. 
i_method_project-refnumber = ' ' . 
APPEND i_method_project. 
i_activity-network = v-objkey. 
i_activity-activity = i-vornr. 
i_activity-work_activity = i-ismnw . 
APPEND i_activity. 
i_activity_update-network = v-objkey. 
i_activity_update-activity = i-vornr. 
i_activity_update-work_activity = 'X'. 
APPEND i_activity_update. 
i_network-network = v-objkey. 
APPEND i_network. 

* Network activity updating 
CALL FUNCTION 'BAPI_NETWORK_MAINTAIN' 
IMPORTING 
return = bapireturn1 
TABLES 
i_method_project = i_method_project 
i_network = i_network 
i_activity = i_activity 
e_message = e_message.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 05:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848424#M1133926</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-11-19T05:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for BAPI_NETWORK_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848425#M1133927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use 'SAVE' mehtod in creation of network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this method 'SAVE' in IMETHOD table parameters is mandatory for creation of network using BAPI BAPI_NETWORK_MAINTAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the BAPI is success, What will be the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thannks,&lt;/P&gt;&lt;P&gt;Swapna P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 06:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848425#M1133927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Example code for BAPI_NETWORK_MAINTAIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848426#M1133928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to user BAPI_NETWORK_MAINTAIN function module to create create a nework. However I cannot get past these errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statuses could not be created while creating network "MS41-T000002" (Message ID CN #194)&lt;/P&gt;&lt;P&gt;WBS elem. cntrl. area "FP00" is not same as network cntrl. area (Message ID CN #068)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create the Network and activities through CN21 transaction using the same data that I am passing to BAPI_NETWORK_MAINTAIN function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tushar Shelar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 22:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/example-code-for-bapi-network-maintain/m-p/4848426#M1133928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-15T22:24:28Z</dc:date>
    </item>
  </channel>
</rss>

