CALL FUNCTION 'RH_PNNNN_MAINTAIN'
EXPORTING
act_fcode = 'DEL' "操作类型,AEND修改,DEL删除,INSE,插入
act_plvar = '01'
act_otype = 'O' "对象类型
act_objid = '10008240' "对象ID
act_infty = '1001' "信息类型
act_istat = '1'
act_begda = '2022-01-01'
act_endda = '9999-12-31'
act_pnnnn = pcs_record
act_infotypekey = lv_infotype
suppress_dialog = '2'
act_vtask = 'D'
IMPORTING
act_pnnnn_out = pcs_record
act_mess_info = ls_hrrhad_msg
EXCEPTIONS
infty_not_valid = 1
no_plvar = 2
object_not_defined = 3
otype_not_valid = 4
no_authority = 5
action_rejected = 6
no_gdate = 7
fcode_not_supported = 8
OTHERS = 9.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
有一张组织关系表HRP1001,se16n查询此表,根据 01 1001 O 1 2022-01-01 10008240等信息能查询到表中记录,但是代码中调用此方法,无法删除该条记录,代码报错 122 提示:所选定的周期中不存在数据 ,执行报错,无法删除