1: a temporary variable used in the code, receiving the return value.
TEST-SEAM get_service_team_name_by_id. CALL METHOD cl_crms4_orgman_helper=>get_service_team_detail EXPORTING iv_service_team_id = cs_orgman_wrk-service_team_rm iv_check_authorizations = abap_false IMPORTING es_service_team_header = DATA(ls_serv_team_hdr_with_name_id). END-TEST-SEAM.
es_service_team_header the type to crms4s_service_team_header
2: to the temporary variable assignment in test-injection, the
TEST-INJECTION get_service_team_name_by_id. DATA ls_serv_team_hdr TYPE crms4s_service_team_header. ls_serv_team_hdr-respymgmtteamname = 'team_name2'. ls_serv_team_hdr_with_name_id = ls_serv_team_hdr. END-TEST-INJECTION.