title: SAP cProjects replication: Set task-level WBS
body: <p>When creating a project in cProjects I am using <code>BADI BADI DPR_FIN_GECCO_ATTR</code> to manipulate the external WBS ID that is created in SAP PS.</p>
  
  <p>SAP accepts the ID that I pass for the Phase level, but for the Task level SAP appends a string "/TTO" to the end of my WBS ID.  Any idea why this happens and how I can get rid of it.  The "/TTO" violates or masking structure in PS?</p>
  
  <pre><code>constants: lc_phase_id_ps type char30 value 'DPR_TV_PROJECT_ELEMENT_ID_PS',
             lc_task_id_co  type char30 value 'DPR_TV_PROJECT_ELEMENT_ID_CO'.
  
  field-symbols: &lt;project_ext&gt; type dpr_ts_project_ext,
                 &lt;project_int&gt; type dpr_ts_project_int,
                 &lt;phase_ext&gt;   type dpr_ts_phase_ext,
                 &lt;phase_int&gt;   type dpr_ts_phase_int,
                 &lt;task_ext&gt;    type dpr_ts_task_ext,
                 &lt;task_int&gt;    type dpr_ts_task_int,
                 &lt;attributes&gt;  type dpr_ts_iaom_object_attribute.
  
  case ir_common-&gt;get_object_type( ).
    when cl_dpr_co=&gt;sc_ot_project.
      "not doing anything with this data yet
      assign ir_project_ext-&gt;* to &lt;project_ext&gt;.
      assign ir_project_int-&gt;* to &lt;project_int&gt;.  
  
    when cl_dpr_co=&gt;sc_ot_phase.
      assign ir_attributes_ext-&gt;* to &lt;phase_ext&gt;.
      assign ir_attributes_int-&gt;* to &lt;phase_int&gt;.
      read table ct_attributes assigning &lt;attributes&gt;
        with key data_element = lc_phase_id_ps.
      if sy-subrc = 0.
        &lt;attributes&gt;-value = &lt;phase_ext&gt;-phase_id.  "something like Z/001-001
      endif.
  
    when cl_dpr_co=&gt;sc_ot_task.
      assign ir_attributes_ext-&gt;* to &lt;task_ext&gt;.
      assign ir_attributes_int-&gt;* to &lt;task_int&gt;.
      read table ct_attributes assigning &lt;attributes&gt;
        with key data_element = lc_task_id_co.
      if sy-subrc = 0.
        &lt;attributes&gt;-value = &lt;task_ext&gt;-search_field.  "something like Z/001-001-001
        "sometime after this badi call it is changed to Z/001-001-001/TTO
      endif.
  endcase.
  </code></pre>