标签:res rms name with sea test port get abap
1: 在代码中使用临时变量,接收返回值。
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的type为 crms4s_service_team_header
2: 在test-injection中给该临时变量赋值,
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.
标签:res rms name with sea test port get abap
原文地址:https://www.cnblogs.com/liyafei/p/11697459.html