Report Ztest .
DATA:
ls_bapi_cn TYPE bapi_re_contract_dat,
ld_compcode TYPE bapi_re_contract_key-comp_code,
ld_contractnumber TYPE bapi_re_contract_key-contract_number,
lt_bapi_error TYPE bapirettab,
* set text of CN
ls_bapi_cn-contract_text = 'Test Contract'.
CALL FUNCTION 'BAPI_RE_CN_CREATE'
EXPORTING
comp_code_ext = '1111'
contract_type = 'Z111'
contract_number_ext = '1'
contract = ls_bapi_cn
test_run = 'X'
IMPORTING
compcode = ld_comp_code
contractnumber = ld_contractnumber
TABLES
return = lt_bapi_error.
DATA:
ls_bapi_cn TYPE bapi_re_contract_dat,
ld_compcode TYPE bapi_re_contract_key-comp_code,
ld_contractnumber TYPE bapi_re_contract_key-contract_number,
lt_bapi_error TYPE bapirettab,
* set text of CN
ls_bapi_cn-contract_text = 'Test Contract'.
CALL FUNCTION 'BAPI_RE_CN_CREATE'
EXPORTING
comp_code_ext = '1111'
contract_type = 'Z111'
contract_number_ext = '1'
contract = ls_bapi_cn
test_run = 'X'
IMPORTING
compcode = ld_comp_code
contractnumber = ld_contractnumber
TABLES
return = lt_bapi_error.