cancel
Showing results for 
Search instead for 
Did you mean: 

how to read schedule data

Former Member
0 Kudos

hi Experts,

    today i use service manager to read schedule bo,this schedule bo is a sub business object under the standard bo /SCMTMS/FO_SCHDULE, but when i call get service manger, it dump, and it display it's a unknown BO key,  the bo key get by consist class , so i think the bo key is right,

   so i think maybe the schedule data is different bt others,   could any help me

Accepted Solutions (0)

Answers (1)

Answers (1)

Clark_Huang
Advisor
Advisor
0 Kudos

Hi Shao,

The schedule bo is the same as others.

This is a standard example as below.

  mo_service_manager->retrieve_by_association(

    EXPORTING

      iv_node_key             = /scmtms/if_fo_schedule_c=>sc_node-root

      it_key                  = lt_sched_root_key

      iv_association          = /scmtms/if_fo_schedule_c=>sc_association-root-departure

      iv_fill_data            = abap_true

    IMPORTING

      eo_message              = lo_message

      et_data                 = lt_sched_dep

      et_target_key           = lt_sched_dep_key ).

You can refer to the standard method "/SCMTMS/CL_SCH_ADAPTER-READ_SCHEDULES".

Best Regards

Clark Huang