如题所述
第1个回答 2011-05-23
如果是一个内表的话, IT_TAB, 那么假设这个字段是 ZIDUAN.
sort IT_TAB by ZIDUAN.
read IT_TAB with key ZIDUAN = 'bianliang' binary research.
if sy-subrc = 0.
则存在。
endif。追问
sort IT_TAB by ZIDUAN.
read IT_TAB with key ZIDUAN = 'bianliang' binary research.
if sy-subrc = 0.
则存在。
endif。追问
还是不行。 READ i_delinfo WITH KEY GH = cinfo-GH binary research.
IF SY-SUBRC 0.
DELETE FROM zinfotab WHERE gh = cinfo-gh.
ENDIF.
第2个回答 2011-06-09
DELETE FROM zinfotab WHERE gh IN i_gh.你可以直接删除你想删除的.本回答被提问者采纳
第3个回答 2011-05-31
看你的代码是不是想把GH=cinfo-gh的记录删掉?如果是那样,直接
loop at i_delinfo where GH = cinfo-GH .
DELETE GH = cinfo-GH .
endloop.
不就完了?
loop at i_delinfo where GH = cinfo-GH .
DELETE GH = cinfo-GH .
endloop.
不就完了?