‎2008 May 13 9:55 AM
hi,
I m find a strange issue ,
i have declared an internal table i_final, in that one field(comnt) is there with length 40
i m reading an input file and i m passing data to comnt field which is blank.
the value of this comnt is blank and this i m moving to g_comnt(this is also 40 character size)
when i m checking the g_comnt field is intitial it is failing. and also the STRLEN is showing as 40.
code is like this ,
i_final-comnt = w_inputfile_comnt.
g_comnt = i_final-comnt .
if g_comnt is intial.
write 'working'.
endif.
This condition is not working
Please advise ASAP
Thanks,
Suresh
‎2008 May 13 10:04 AM
Hi,
Try using
check the data type of g_comnt.
if g_comnt[] is intial.
write 'working'.
endif.
Reward points if helpful
‎2008 May 13 10:07 AM
just make the break point in internal table value definatly it have some value ...
‎2008 May 13 10:09 AM
When you are reading from a flat file the spaces will be loading into the variable. These spaces are not same as the spaces in SAP. So they are considered as some value and value is assigned to your variable.
So your cindition is failing.
awrd points if useful
Bhupal
‎2008 May 13 10:26 AM
bhupal,
can u tell me how i can over come this problem..
Thanks,
Suresh