我有下面的代码可以做我想做的事情,但是我想添加其他代码,以便表hrp5021中字段exit_prnt_layout和exit_web_layout的任何空白记录都用文本STANDARD填充。我知道如何从表中提取数据,但我很难理解如何添加此功能。我对abap很陌生,感谢您的帮助。
TABLES: hrp5021.
DATA: hrp5021_wa TYPE hrp5021.
PARAMETERS: objid LIKE hrp5021-objid.
END-OF-SELECTION.
SELECT SINGLE * FROM hrp5021 INTO hrp5021_wa
WHERE plvar = '01'
AND otype = 'VA'
AND objid = objid
AND istat = '4'
AND exit_prnt_layout = 'STANDARD'.
IF sy-subrc = 0.
hrp5021_wa-exit_prnt_layout = 'SMARTFORM'.
UPDATE hrp5021 FROM hrp5021_wa.
WRITE:/ 'VA', objid, 'was changed to Smartform'.
ELSE.
WRITE:/ 'No entry for conversion found'.
ENDIF.