<?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: upload project hierarachy master data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634154#M282848</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;This is a program we created for uploading networks. You can use it as a base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_dlps002_network_act_load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF gty_bus2002,&lt;/P&gt;&lt;P&gt;        i_number TYPE bapi_network_list-network.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bapi_bus2002_act_new.&lt;/P&gt;&lt;P&gt;TYPES: END OF gty_bus2002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gtab_bus2002 TYPE TABLE OF gty_bus2002 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      gtab_bus2002_new TYPE TABLE OF bapi_bus2002_act_new WITH HEADER&lt;/P&gt;&lt;P&gt;LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gtab_bapiret2   TYPE TABLE OF bapiret2 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      gw_exit_flag(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: p_lcl_fn TYPE  rlgrap-filename.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_1 RADIOBUTTON GROUP sel2,   "YYYYMMDD&lt;/P&gt;&lt;P&gt;            p_2 RADIOBUTTON GROUP sel2,   "YYYYDDMM&lt;/P&gt;&lt;P&gt;            p_3 RADIOBUTTON GROUP sel2,   "DD.MM.YYYY&lt;/P&gt;&lt;P&gt;            p_4 RADIOBUTTON GROUP sel2,   "MM/DD/YYYY&lt;/P&gt;&lt;P&gt;            p_5 RADIOBUTTON GROUP sel2,   "MM-DD-YYYY&lt;/P&gt;&lt;P&gt;            p_6 RADIOBUTTON GROUP sel2,   "YYYY.MM.DD&lt;/P&gt;&lt;P&gt;            p_7 RADIOBUTTON GROUP sel2,   "YYYY/MM/DD&lt;/P&gt;&lt;P&gt;            p_8 RADIOBUTTON GROUP sel2.   "YYYY-MM-DD&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- AT SELECTION-SCREEN -&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lcl_fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      def_filename           = p_lcl_fn&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DEF_PATH               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      mask                   = ',&lt;STRONG&gt;.&lt;/STRONG&gt;  ,&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MODE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TITLE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filename               = p_lcl_fn&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    RC                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inv_winsys             = 0&lt;/P&gt;&lt;P&gt;      no_batch               = 0&lt;/P&gt;&lt;P&gt;      selection_cancel       = 0&lt;/P&gt;&lt;P&gt;      selection_error        = 0&lt;/P&gt;&lt;P&gt;      OTHERS                 = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*START OF SELECTION&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM upload_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK NOT gtab_bus2002[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gtab_bus2002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR gtab_bus2002_new. REFRESH gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING gtab_bus2002 TO gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;    APPEND gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AT END OF i_number.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR gw_exit_flag.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_PS_INITIALIZATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_PS_INITIALIZATION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_BUS2002_CREATE_MULTI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_BUS2002_ACT_CREATE_MULTI'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_number    = gtab_bus2002-i_number&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              it_activity = gtab_bus2002_new&lt;/P&gt;&lt;P&gt;              et_return   = gtab_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;    CLEAR gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM write_message USING 'ZBAPI_BUS2002_CREATE_MULTI'.&lt;/P&gt;&lt;P&gt;    CHECK gw_exit_flag NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_PS_PRECOMMIT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_PS_PRECOMMIT'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              et_return = gtab_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM write_message USING 'BAPI_PS_PRECOMMIT'.&lt;/P&gt;&lt;P&gt;    CHECK gw_exit_flag NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              return = gtab_bapiret2.&lt;/P&gt;&lt;P&gt;    PERFORM write_message USING 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;    WAIT UP TO 2 SECONDS  .&lt;/P&gt;&lt;P&gt;    CHECK gw_exit_flag NE 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDAT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM WRITE_MESSGAGES                                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 write_message USING header.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Messages from',  header.&lt;/P&gt;&lt;P&gt;  LOOP AT gtab_bapiret2.&lt;/P&gt;&lt;P&gt;    WRITE: / gtab_bapiret2-type,&lt;/P&gt;&lt;P&gt;          4 gtab_bapiret2-message.&lt;/P&gt;&lt;P&gt;    IF gtab_bapiret2-type = 'E'.&lt;/P&gt;&lt;P&gt;      gw_exit_flag = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH gtab_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&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;*&amp;amp;      Form  upload_file&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;FORM upload_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read from local file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename                = p_lcl_fn&lt;/P&gt;&lt;P&gt;            filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab                = gtab_bus2002&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            conversion_error        = 1&lt;/P&gt;&lt;P&gt;            file_open_error         = 2&lt;/P&gt;&lt;P&gt;            file_read_error         = 3&lt;/P&gt;&lt;P&gt;            invalid_type            = 4&lt;/P&gt;&lt;P&gt;            no_batch                = 5&lt;/P&gt;&lt;P&gt;            unknown_error           = 6&lt;/P&gt;&lt;P&gt;            invalid_table_width     = 7&lt;/P&gt;&lt;P&gt;            gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;            customer_error          = 9&lt;/P&gt;&lt;P&gt;            OTHERS                  = 10.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " upload_file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 14:15:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-12T14:15:23Z</dc:date>
    <item>
      <title>upload project hierarachy master data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634150#M282844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi can any one provide me a sample code for uploading Project definition, WBS element, Networks and network activities using BAPI_PROJECT_MAINTAIN.UR help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634150#M282844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: upload project hierarachy master data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634151#M282845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM;BAPI_PROJECT_MAINTAIN is a very well documented one.Go to se37 and give the name of the fm.&lt;/P&gt;&lt;P&gt;Say display and click on the Function Module Documentation.&lt;/P&gt;&lt;P&gt;It is very exhaustive.&lt;/P&gt;&lt;P&gt;In case you don't find it,&lt;/P&gt;&lt;P&gt;here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FU BAPI_PROJECT_MAINTAIN&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Edit project including networks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;With the Maintain BAPI of the WorkBreakdownStruct business object you can edit the objects of a project definition. You can also use all the functions of the Maintain BAPI of the Network business object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see Network.Maintain. With WorkBreakdownStruct.Maintain it is possible to edit the project definition, its WBS elements and their hierarchical relationships. The BAPI encapsulates a complete transaction in itself. As a result, several operations on project elements can be processed by only one call. The R/3 Project System determines in which order the operations are to be executed on the objects. The caller can choose the operations in any order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, processing is very speedy and effective. However, this transaction concept does not include the use and combination of other SAP BAPIs in the same LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;The WorkBreakdownStruct business object is a facade of the project definition for WBS elements and their hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To edit a project object, enter a command for an object type. In addition, enter the object key and a reference to its attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table of the IMethodProject parameter enter the object type, the command and the object key. As a reference enter the index of the object data table of the relevant object type. In the object data table enter the information about the object. If necessary, use an update structure for the object. When entering the object type and method in the IMethodProject table remember that the entries are case-sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To finish the transaction and store the data in the R/3 database, enter the Save command. If you only want to test whether the changes can be carried out, do not use the save command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you cannot change the keys of objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return parameter Return indicates whether errors occurred during processing. After the call you find the error messages created during processing in the EmessageTable table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commands of the Object Types&lt;/P&gt;&lt;P&gt;For the description of the object types Network, NetworkActivity, NetworkActivityElement, ActivityMilestone, and NetworkRelation, see Network.Maintain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object type: Project definition&lt;/P&gt;&lt;P&gt;The Maintain BAPI must always refer to one project definition. Therefore, always enter the structure of a project definition in the IProjectDefinition parameter. Use the project definition as a key. The reference to the data part is always 1. Always enter the project definition in upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command: Create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the project definition and the project profile. The project profile must exist in the R/3 Project System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Create a Project Definition in the R/3 Project System&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = ProjectDefinition&lt;/P&gt;&lt;P&gt;METHOD = Create&lt;/P&gt;&lt;P&gt;OBJECTKEY = PD-TRAINING&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;DESCRIPTION = Training project&lt;/P&gt;&lt;P&gt;PROJECT_PROFILE = PPRO001&lt;/P&gt;&lt;P&gt;Command: Update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to change a project definition that already exists in the R/3 Project System. If you enter an update structure you can change individual fields without having to specify the other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Changing the description of a project definition (Only the description is changed.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = ProjectDefinition&lt;/P&gt;&lt;P&gt;METHOD = Update&lt;/P&gt;&lt;P&gt;OBJECTKEY = PD-TRAINING&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;DESCRIPTION = Training project&lt;/P&gt;&lt;P&gt;IProjectDefinitionUp&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION =&lt;/P&gt;&lt;P&gt;DESCRIPTION = X&lt;/P&gt;&lt;P&gt;Command: Lock (from R/3 Release 4.6A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to lock a project definition. The "Master data locked" system status is set for the project definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS&amp;gt;Example - Locking the project definition PD-TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = ProjectDefinition&lt;/P&gt;&lt;P&gt;METHOD = Lock&lt;/P&gt;&lt;P&gt;OBJECTKEY = PD-TRAINING&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;Command: Unlock (from R/3 Release 4.6A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to unlock the project definition. The "Master data locked" system status is removed from the project definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Unlocking the project defintion PD-TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = ProjectDefinition&lt;/P&gt;&lt;P&gt;METHOD = Unlock&lt;/P&gt;&lt;P&gt;OBJECTKEY = PD-TRAINING&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;Command: Release (from R/3 Release 4.5A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Releasing a project.  The system status "released" is set for the project definition and all WBS elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Releasing the project definition PD-TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = ProjectDefinition&lt;/P&gt;&lt;P&gt;METHOD = Release&lt;/P&gt;&lt;P&gt;OBJECTKEY = PD-TRAINING&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;Object type: WBS element&lt;/P&gt;&lt;P&gt;You can edit all WBS elements of a project definition. The name and key of the WBS element are identical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the WBS element in uppercase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command: Create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Creating a WBS element for the project definition. Creating three WBS elements TRAINING, TRAINING.1 and TRAINING.2 for project definition PD-TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS-Element&lt;/P&gt;&lt;P&gt;METHOD = Create&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS-Element&lt;/P&gt;&lt;P&gt;METHOD = Create&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.1&lt;/P&gt;&lt;P&gt;REFNUMBER = 000002&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD = Create&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.2&lt;/P&gt;&lt;P&gt;REFNUMBER = 000003&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;IWbsElementTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;DESCRIPTION = Whole project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index = 2&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.1&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;DESCRIPTION = Preparation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index = 3&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.2&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;DESCRIPTION = Execution&lt;/P&gt;&lt;P&gt;Command: Update&lt;/P&gt;&lt;P&gt;Use this command to change a WBS element that already exists in the R/3 Project System. If you enter an update structure, you can change individual fields without having to specify the other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Changing the description of the WBS element TRAINING.1 for the project definition PD TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS element&lt;/P&gt;&lt;P&gt;METHOD = Update&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.1&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;IWbsElementTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.1&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;DESCRIPTION = Preparation and documentation&lt;/P&gt;&lt;P&gt;IWbsElementTableUpdate&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT =&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION =&lt;/P&gt;&lt;P&gt;DESCRIPTION = X&lt;/P&gt;&lt;P&gt;Command: Delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to delete a WBS element that already exists in the R/3 Project System. The WBS element receives the "Deletion flag" system status and is not deleted physically. You cannot create a new WBS element with the same key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Deleting the WBS element TRAINING.2 for the project PD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS element&lt;/P&gt;&lt;P&gt;METHOD = Delete&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.2&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;IWbsElementTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.2&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;Command: Lock (from R/3 Release 4.6A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to lock a WBS element. The "Master data lock" system status is set for the WBS element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Locking the WBS element TRAINING.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS-Element&lt;/P&gt;&lt;P&gt;METHOD = Lock&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.1&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;IWbsElementTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.1&lt;/P&gt;&lt;P&gt;Command: Unlock (from R/3 Release 4.6A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to unlock a WBS element. The "Master data lock" system status is removed from a WBS element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Unlocking the WBS element TRAINING.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProjectIMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS-Element&lt;/P&gt;&lt;P&gt;METHOD = Unlock&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.1&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;IWbsElementTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.1&lt;/P&gt;&lt;P&gt;Command: Release (ab R/3 Release 4.5A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Releasing a WBS element.  The system status "Released" is set for the WBS element and all lower-level WBS elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Releasing the WBS element TRAINING.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS-Element&lt;/P&gt;&lt;P&gt;METHOD = Release&lt;/P&gt;&lt;P&gt;OBJECTKEY = TRAINING.1&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWbsElementTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.1&lt;/P&gt;&lt;P&gt;Object type: WBS milestone (from R/3 Release 4.6A)&lt;/P&gt;&lt;P&gt;The key for the object WBS milestone is the milestone number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command: Create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to create a new WBS milestone for a network. It is not necessary to enter a number for the milestone. The system gives the milestone a number when it is created. The system returns the milestone in the message table as an information message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If however, an external number is entered in the method table, both the external and the new milestone number are returned in an information a message in the message table. A WBS element always has to be entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Creating a new WBS milestone for a WBS element TRAINING.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS milestone&lt;/P&gt;&lt;P&gt;METHOD = Create&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWbsMilestoneTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;MILESTONE_NUMBER =&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.2&lt;/P&gt;&lt;P&gt;Command: Update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to change a WBS element that already exists in the Project System.  It is always necessary to enter the project definition, if you do not explicitly change the project definition. Use the update structure as for WBS elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Changing an existing WBS milestone with the number 000000002098 assigned to WBS element TRAINING.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS milestone&lt;/P&gt;&lt;P&gt;METHOD = Update&lt;/P&gt;&lt;P&gt;OBJECTKEY = 000000002098&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;IWbsMilestoneTable&lt;/P&gt;&lt;P&gt;Index = 1&lt;/P&gt;&lt;P&gt;MILESTONE_NUMBER = 000000002098&lt;/P&gt;&lt;P&gt;DESCRIPTION = Milestone description changed&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWbsMilestoneTableUp&lt;/P&gt;&lt;P&gt;MILESTONE_NUMBER =&lt;/P&gt;&lt;P&gt;DESCRIPTION = X&lt;/P&gt;&lt;P&gt;WBS_ELEMENT =&lt;/P&gt;&lt;P&gt;Command: Delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to delete a WBS milestone that already exists in the R/3 Project System. The milestone is deleted physically. It is always necessary to enter the project definition, if you do not explicitly change the project definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Deleting a WBS element with the number 000000002098 assigned to WBS element TRAINING.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS milestone&lt;/P&gt;&lt;P&gt;METHOD = Delete&lt;/P&gt;&lt;P&gt;OBJECTKEY = 000000002098&lt;/P&gt;&lt;P&gt;REFNUMBER = 000001&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWbsMilestoneTable&lt;/P&gt;&lt;P&gt;MILESTONE_NUMBER = 000000002098&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.2&lt;/P&gt;&lt;P&gt;Object type: WBS hierarchy&lt;/P&gt;&lt;P&gt;The WBS hierarchy object type defines the hierarchy of the WBS elements. A project definition always has exactly one hierarchy. If the position of a WBS element changes, the whole hierarchy has to be rebuilt. Therefore, the WBS hierarchy object type has only one command: Create. Every WBS element receives exactly one entry in the table parameter IWbsHierarchieTable with which it defines its position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command: Create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this command to create or change a WBS element hierarchy for a project definition. Enter the WBS hierarchy object type and the Create command in the table of the IMethodProject parameter. The command refers to all entries in the table of the IWbsHierarchieTable parameter that contains the data for the data for the hierarchy. Each entry in the IWbsHierarchieTable refers to a WBS element that describes its position relative to the other WBS elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example - Positioning WBS elements TRAINING , TRAINING.1 and TRAINING.2 . (WBS elements TRAINING.1 and TRAINING.2 are subordinate to WBS element TRAINING. WBS element TRAINING1 is positioned on the left of TRAINING.2.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMethodProject&lt;/P&gt;&lt;P&gt;OBJECTTYPE = WBS Hierarchy&lt;/P&gt;&lt;P&gt;METHOD = Create&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTTYPE =&lt;/P&gt;&lt;P&gt;METHOD = Save&lt;/P&gt;&lt;P&gt;OBJECTKEY =&lt;/P&gt;&lt;P&gt;REFNUMBER = I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProjectDefinition&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IWbsHierarchieTable&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;UP =&lt;/P&gt;&lt;P&gt;DOWN = TRAINING.1&lt;/P&gt;&lt;P&gt;LEFT =&lt;/P&gt;&lt;P&gt;RIGHT =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.1&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;UP = TRAINING&lt;/P&gt;&lt;P&gt;DOWN =&lt;/P&gt;&lt;P&gt;LEFT =&lt;/P&gt;&lt;P&gt;RIGHT = TRAINING.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WBS_ELEMENT = TRAINING.2&lt;/P&gt;&lt;P&gt;PROJECT_DEFINITION = PD-TRAINING&lt;/P&gt;&lt;P&gt;UP = TRAINING&lt;/P&gt;&lt;P&gt;DOWN =&lt;/P&gt;&lt;P&gt;LEFT = TRAINING.1&lt;/P&gt;&lt;P&gt;RIGHT =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;For more information, see the SAP Library under PS Project System -&amp;gt; Structures -&amp;gt; EPS Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;I_PROJECT_DEFINITION&lt;/P&gt;&lt;P&gt;I_PROJECT_DEFINITION_UPD&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;I_METHOD_PROJECT&lt;/P&gt;&lt;P&gt;I_WBS_ELEMENT_TABLE_UPDATE&lt;/P&gt;&lt;P&gt;I_WBS_ELEMENT_TABLE&lt;/P&gt;&lt;P&gt;I_WBS_MILESTONE_TABLE&lt;/P&gt;&lt;P&gt;I_WBS_MILESTONE_TABLE_UPDATE&lt;/P&gt;&lt;P&gt;I_WBS_HIERARCHIE_TABLE&lt;/P&gt;&lt;P&gt;I_NETWORK&lt;/P&gt;&lt;P&gt;I_NETWORK_UPDATE&lt;/P&gt;&lt;P&gt;I_ACTIVITY&lt;/P&gt;&lt;P&gt;I_ACTIVITY_UPDATE&lt;/P&gt;&lt;P&gt;I_RELATION&lt;/P&gt;&lt;P&gt;I_RELATION_UPDATE&lt;/P&gt;&lt;P&gt;E_MESSAGE_TABLE&lt;/P&gt;&lt;P&gt;I_ACTIVITY_ELEMENT&lt;/P&gt;&lt;P&gt;I_ACTIVITY_ELEMENT_UPDATE&lt;/P&gt;&lt;P&gt;I_ACTIVITY_MILESTONE&lt;/P&gt;&lt;P&gt;I_ACTIVITY_MILESTONE_UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;2054&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634151#M282845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: upload project hierarachy master data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634152#M282846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want a sample code for that. i want to create project definition, wbs, wbs hierarchy,network, nwetwork activities at one run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Aditya Balijepalli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634152#M282846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: upload project hierarachy master data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634153#M282847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this thread:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="591069"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634153#M282847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: upload project hierarachy master data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634154#M282848</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;This is a program we created for uploading networks. You can use it as a base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_dlps002_network_act_load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF gty_bus2002,&lt;/P&gt;&lt;P&gt;        i_number TYPE bapi_network_list-network.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bapi_bus2002_act_new.&lt;/P&gt;&lt;P&gt;TYPES: END OF gty_bus2002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gtab_bus2002 TYPE TABLE OF gty_bus2002 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      gtab_bus2002_new TYPE TABLE OF bapi_bus2002_act_new WITH HEADER&lt;/P&gt;&lt;P&gt;LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gtab_bapiret2   TYPE TABLE OF bapiret2 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      gw_exit_flag(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: p_lcl_fn TYPE  rlgrap-filename.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_1 RADIOBUTTON GROUP sel2,   "YYYYMMDD&lt;/P&gt;&lt;P&gt;            p_2 RADIOBUTTON GROUP sel2,   "YYYYDDMM&lt;/P&gt;&lt;P&gt;            p_3 RADIOBUTTON GROUP sel2,   "DD.MM.YYYY&lt;/P&gt;&lt;P&gt;            p_4 RADIOBUTTON GROUP sel2,   "MM/DD/YYYY&lt;/P&gt;&lt;P&gt;            p_5 RADIOBUTTON GROUP sel2,   "MM-DD-YYYY&lt;/P&gt;&lt;P&gt;            p_6 RADIOBUTTON GROUP sel2,   "YYYY.MM.DD&lt;/P&gt;&lt;P&gt;            p_7 RADIOBUTTON GROUP sel2,   "YYYY/MM/DD&lt;/P&gt;&lt;P&gt;            p_8 RADIOBUTTON GROUP sel2.   "YYYY-MM-DD&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- AT SELECTION-SCREEN -&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lcl_fn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      def_filename           = p_lcl_fn&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DEF_PATH               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      mask                   = ',&lt;STRONG&gt;.&lt;/STRONG&gt;  ,&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MODE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TITLE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filename               = p_lcl_fn&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    RC                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      inv_winsys             = 0&lt;/P&gt;&lt;P&gt;      no_batch               = 0&lt;/P&gt;&lt;P&gt;      selection_cancel       = 0&lt;/P&gt;&lt;P&gt;      selection_error        = 0&lt;/P&gt;&lt;P&gt;      OTHERS                 = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*START OF SELECTION&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM upload_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK NOT gtab_bus2002[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gtab_bus2002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR gtab_bus2002_new. REFRESH gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING gtab_bus2002 TO gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;    APPEND gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AT END OF i_number.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR gw_exit_flag.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_PS_INITIALIZATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_PS_INITIALIZATION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_BUS2002_CREATE_MULTI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_BUS2002_ACT_CREATE_MULTI'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_number    = gtab_bus2002-i_number&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              it_activity = gtab_bus2002_new&lt;/P&gt;&lt;P&gt;              et_return   = gtab_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;    CLEAR gtab_bus2002_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM write_message USING 'ZBAPI_BUS2002_CREATE_MULTI'.&lt;/P&gt;&lt;P&gt;    CHECK gw_exit_flag NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_PS_PRECOMMIT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_PS_PRECOMMIT'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              et_return = gtab_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM write_message USING 'BAPI_PS_PRECOMMIT'.&lt;/P&gt;&lt;P&gt;    CHECK gw_exit_flag NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              return = gtab_bapiret2.&lt;/P&gt;&lt;P&gt;    PERFORM write_message USING 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;    WAIT UP TO 2 SECONDS  .&lt;/P&gt;&lt;P&gt;    CHECK gw_exit_flag NE 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDAT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM WRITE_MESSGAGES                                          *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 write_message USING header.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Messages from',  header.&lt;/P&gt;&lt;P&gt;  LOOP AT gtab_bapiret2.&lt;/P&gt;&lt;P&gt;    WRITE: / gtab_bapiret2-type,&lt;/P&gt;&lt;P&gt;          4 gtab_bapiret2-message.&lt;/P&gt;&lt;P&gt;    IF gtab_bapiret2-type = 'E'.&lt;/P&gt;&lt;P&gt;      gw_exit_flag = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH gtab_bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&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;*&amp;amp;      Form  upload_file&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;FORM upload_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read from local file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename                = p_lcl_fn&lt;/P&gt;&lt;P&gt;            filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab                = gtab_bus2002&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            conversion_error        = 1&lt;/P&gt;&lt;P&gt;            file_open_error         = 2&lt;/P&gt;&lt;P&gt;            file_read_error         = 3&lt;/P&gt;&lt;P&gt;            invalid_type            = 4&lt;/P&gt;&lt;P&gt;            no_batch                = 5&lt;/P&gt;&lt;P&gt;            unknown_error           = 6&lt;/P&gt;&lt;P&gt;            invalid_table_width     = 7&lt;/P&gt;&lt;P&gt;            gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;            customer_error          = 9&lt;/P&gt;&lt;P&gt;            OTHERS                  = 10.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Error message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " upload_file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 14:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-project-hierarachy-master-data/m-p/1634154#M282848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T14:15:23Z</dc:date>
    </item>
  </channel>
</rss>

