SAP abap 取单条SQL 结果
ABAP 在SQ02中写代码时,查询单条语句的结果写到变量中要用(@1,@2 .....)
DATA zsfhm(10) TYPE c. CLEAR :zsf,zsfhm,zcs. SELECT SINGLE regio,ort01 INTO (@zsfhm,@zcs) FROM kna1 WHERE kunnr = @vbak-kunnr . **zsf = zsfhm. SELECT SINGLE bezei INTO @zsf FROM t005u WHERE land1 = 'CN' AND spras = '1' and bland = @ZsfHM .
活到老,学到老。