Test test injection injection

1: when the configuration of a data element in the table, the table assigned to the following method. Instead of using the property name (because there is no).

  types:
    ty_gt_attribute_values TYPE STANDARD TABLE OF atm_de_attribute_value WITH DEFAULT KEY .

 lt_attribute_values           TYPE ty_gt_attribute_values,

    TEST-INJECTION read_attribute_values.
      lt_attribute_values VALUE #'US' .
    END-TEST-INJECTION.

2: When the inner table including table type attribute, attribute name needs to be specified.

    TEST-INJECTION get_team_header_details.
      lt_team_header_details VALUE #(
      ( teamid '50008272' teamname 'US TEAM' teamtype 'SRV_FS' teamstatus '01' .
    END-TEST-INJECTION.

 

Guess you like

Origin www.cnblogs.com/liyafei/p/11352284.html