‎2009 Aug 06 7:02 AM
numeric field as default state , do we still use the logic to check the field for inital?
field type numc.
if field is inital.
...
else.
endif.
please tell whether it is recommended to check the numc field or not . if not then how can i check wheter the data exists n this field.
‎2009 Aug 06 7:57 AM
hi govaabaper,
try out the below code
report zars no standard page heading
line-size 170
line-count 65(4).
data : zdate like sy-datum.
data : zdatechar(10) type c.
move space to zdate.
write zdate using edit mask '__ __ ____' to zdatechar.
write zdatechar.
Regards
Saurabh Goel
‎2009 Aug 06 7:07 AM
‎2009 Aug 06 7:09 AM
Hi,
INITIAL is going to work for all DATA TYPES.The check depends on data type ur using.
So ,go Ahead.
Regards,
Lakshman.
‎2009 Aug 06 7:13 AM
Hi,
Yes you can do the iniitial check for numeric fields also.
if field is inital.
...
else.
endif.
Regards,
Vijay
‎2009 Aug 06 7:57 AM
hi govaabaper,
try out the below code
report zars no standard page heading
line-size 170
line-count 65(4).
data : zdate like sy-datum.
data : zdatechar(10) type c.
move space to zdate.
write zdate using edit mask '__ __ ____' to zdatechar.
write zdatechar.
Regards
Saurabh Goel
‎2009 Aug 06 10:10 AM
Hi,
you can always check any field for initial.... there is no conditions for checking not initial or initial it totally depends on ur requirement and ur logic...
Thanks
Ashu