cancel
Showing results for 
Search instead for 
Did you mean: 

synchronization from item to project

Former Member
0 Kudos

Hi All,

i have uploaded few items using rpm_dx_item and the corresponding Projects alaso created successfully but the Project Name is coming as the item number and not the item Name. Something like this as shown below.

               Item     Project

number   1001    1001

Name       xyz      1001

to me it seems like some synchronization is missing because when an item is changed and saved the Project Name is corrected.

so my question is do we have any synchronization Report from item to Project which i can execute for all the uploaded items to correct this.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

judith_gabriel
Contributor
0 Kudos

Dear Lin,

there is no standardreport available to trigger the DFM synchronization in background
to update the project-name according to the item-name.

You can try to create your own program where you call the BAdI INM_OF_SYNC to
trigger the DFM synchronization.
Below you can find the class and method where the attribute-synchronization is
started and the BAdI INM_OF_SYNC is triggered.

CL_INM_DFM_OBJECT_INTEGRATION
HANDLE_ATTRIBUTES_CHG_REQUEST

* Do the synchronization based on the data and configuration determined so far
    TRY.
        CALL METHOD do_attributes_sync
          EXPORTING
            ir_object                   = lr_target_object
            iv_scenario_id              = lv_scenario_id
            is_source_context           = ls_object_context
            is_source_object_int_data   = <ls_data>
            is_source_object_int_struct = lv_internal_struct_out
            is_target_context           = ls_target_object_context
            iv_target_object_int_struct = lv_internal_struct_in
          IMPORTING
            et_messages                 = lt_messages.

CL_INM_OF_PROJECT
IF_INM_OF_OBJECT_SYNC~CHANGE_OBJECT_SYNC


* Enhancement spot / Badi INM_OF_SYNC: synchronization enhancement
  TRY.
      GET BADI sr_badi_inm_of_sync
        FILTERS
          object_type = mv_object_link_type.
      CALL BADI sr_badi_inm_of_sync->change_object_sync
        EXPORTING
          iv_int_key        = iv_int_key
          iv_strucname      = iv_strucname
          it_fields_changed = it_fields_changed
          is_source_context = is_source_context
          iv_scenario_id    = iv_scenario_id
        IMPORTING
          et_messages       = lt_messages
          ev_failed         = ev_failed
        CHANGING
          cs_attributes     = <ls_data>.

Best regards,
Judith