Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

numc field and initial checking

Former Member
0 Likes
1,776

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,315

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

5 REPLIES 5
Read only

former_member242255
Active Contributor
0 Likes
1,315

you can check for initial.

Read only

former_member209217
Active Contributor
0 Likes
1,315

Hi,

INITIAL is going to work for all DATA TYPES.The check depends on data type ur using.

So ,go Ahead.

Regards,

Lakshman.

Read only

Former Member
0 Likes
1,315

Hi,

Yes you can do the iniitial check for numeric fields also.

if field is inital.

...

else.

endif.

Regards,

Vijay

Read only

Former Member
0 Likes
1,316

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

Read only

Former Member
0 Likes
1,315

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