cProjects でプロジェクトを作成するときBADI BADI DPR_FIN_GECCO_ATTR
、SAP PS で作成された外部 WBS ID を操作するために使用しています。
SAP は、フェーズ レベルで渡された ID を受け入れますが、タスク レベルでは、SAP は WBS ID の末尾に文字列 "/TTO" を追加します。なぜこれが起こるのか、どうすればそれを取り除くことができるのか。「/TTO」は PS の構造に違反またはマスキングしていますか?
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: <project_ext> type dpr_ts_project_ext,
<project_int> type dpr_ts_project_int,
<phase_ext> type dpr_ts_phase_ext,
<phase_int> type dpr_ts_phase_int,
<task_ext> type dpr_ts_task_ext,
<task_int> type dpr_ts_task_int,
<attributes> type dpr_ts_iaom_object_attribute.
case ir_common->get_object_type( ).
when cl_dpr_co=>sc_ot_project.
"not doing anything with this data yet
assign ir_project_ext->* to <project_ext>.
assign ir_project_int->* to <project_int>.
when cl_dpr_co=>sc_ot_phase.
assign ir_attributes_ext->* to <phase_ext>.
assign ir_attributes_int->* to <phase_int>.
read table ct_attributes assigning <attributes>
with key data_element = lc_phase_id_ps.
if sy-subrc = 0.
<attributes>-value = <phase_ext>-phase_id. "something like Z/001-001
endif.
when cl_dpr_co=>sc_ot_task.
assign ir_attributes_ext->* to <task_ext>.
assign ir_attributes_int->* to <task_int>.
read table ct_attributes assigning <attributes>
with key data_element = lc_task_id_co.
if sy-subrc = 0.
<attributes>-value = <task_ext>-search_field. "something like Z/001-001-001
"sometime after this badi call it is changed to Z/001-001-001/TTO
endif.
endcase.