HRIQ_UPDATE_INFTY 返回 sy-subrc=0。但它实际上并没有对其进行任何更改。部分源代码:
DATA:
lt_single_1001 TYPE STANDARD TABLE OF p1001 WITH HEADER LINE,
lt_1001 TYPE STANDARD TABLE OF hrp1001 WITH HEADER LINE.
SELECT * FROM hrp1001 INTO TABLE lt_1001 WHERE
objid = <studies>-cs_objid AND sobid = lv_major_id.
move-corresponding lt_1001 to lt_single_1001.
CALL FUNCTION 'HRIQ_UPDATE_INFTY'
EXPORTING
vtask = 'D'
TABLES
innnn = lt_single_1001
EXCEPTIONS
error_during_update = 1
no_authorization = 2
relation_not_reversible = 3
corr_exit = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno.
ELSE.
NEW-LINE NO-SCROLLING.
WRITE: 'Update: '.
WRITE: lt_1001-objid. "TODO: write proper information
write: lt_single_1001-begda.
write: lv_begda.
write: lt_single_1001-endda.
write: lv_endda.
ENDIF.