调用的函数:SET_LVORM_MATERIAL
DATA: ls_material_record TYPE rm03g.
ls_material_record-matnr = pw_pqc001-matnr.
ls_material_record-lvoma = ' '.
CALL FUNCTION 'SET_LVORM_MATERIAL'
EXPORTING
material_record = ls_material_record
write_change_documents = abap_true
uname = sy-uname
EXCEPTIONS
kein_buchungskreis = 1
inkons_custom = 2
kein_bewertungskreis = 3
keine_lagernummer = 4
kein_lagerort = 5
kein_lagertyp = 6
keine_vkorg = 7
kein_vertriebsweg = 8
kein_werk = 9
no_material = 10
OTHERS = 11.
IF sy-subrc <> 0.
* Implement suitable error handling here
ls_bapiret2-type = 'E'.
ls_bapiret2-message = '取消物料删除标记失败'.
APPEND ls_bapiret2 TO pt_ret.
ENDIF.