I suppose itu2019s a stupid problem, but I canu2019t guess the solution.
Iu2019m debugging this four instructions:
SELECT SINGLE msehi FROM t006b INTO f_msehi
WHERE spras = 'DE' AND mseh3 = t_stb-mmein.
IF sy-subrc <> 0.
f_msehi = t_stb-mmein.
ENDIF.
If I set the breakpoint on the u201CIFu201D instruction (or over there, however by select excuted) I can see the following values:
Sy-subrc = 0
t_stb-mmein = u2018STu2019
f_msehi = u2018STu2019
But if I look at the table t006b I can find the following record:
MANDT 900
SPRAS DE
MSEH3 ST
MSEHI PZ
Why do I find f_msehi set to u2018STu2019 instead of u2018PZu2019?
I tried to declare f_msehi both u201Cf_msehi LIKE t006b-msehiu201D and u201Cf_msehi(3)u201D, they give the same effect.
Thanks for any helps.