在选择语句中,我给出了正确的条件,但没有取回数据。
当我在这些条件下从 se16n 尝试时,它会让我变成一行,但当我尝试使用 select 语句的程序时,它会让我变成空的内部表。下面是示例代码。
gt_tcurr 是一个包含 kurst fcurr tcurr gdatu ukurs 组件的内部表。
SELECT kurst fcurr tcurr gdatu ukurs
INTO TABLE gt_tcurr
FROM tcurr
WHERE kurst = p_kurst " as M
AND gdatu = p_budat " as 21.09.2011
AND fcurr = p_waers " as EUR
AND tcurr = lv_waers. " as TRY
正如我所说;在这些条件下,Se16n->TCUR 表将我变成一行,但选择语句将我变成一行空行。有人知道吗?
CONVERT DATE p_budat INTO INVERTED-DATE gv_date." solution :)
SELECT ukurs
INTO gs_tcurr-ukurs
FROM tcurr
WHERE kurst = p_kurst
AND gdatu = gv_date
AND fcurr = p_waers
AND tcurr = lv_waers.