Question

In select statement i gave right conditions but not getting data back.

When i try from se16n with these conditions it turns me one row but when i try in a program with select statement it turns me empty internal table. Here is the sample code.

gt_tcurr is an internal table that contains kurst fcurr tcurr gdatu ukurs components.

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

as i said; with these conditions se16n->tcurr table turns me one row, but select statement turns me an empty row. Does anyone has any idea?

Was it helpful?

Solution

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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top