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

Checking field contents

Former Member
0 Likes
516

Hi experts,

how can I check more fields in one. I want to check whether they initial or not. I know I can use if statement. But is there any other way?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
495

Hi,

I think IF is the easiest way to check a field, u can even do it using CASE but it is not recommended. May i know why you don't prefer IF?

Regards

Karthik D

Hi,

I think IF is the easiest way to check a field, u can even do it using CASE but it is not recommended. May i know why you don't prefer IF?

Regards

Karthik D

2 REPLIES 2
Read only

Former Member
0 Likes
496

Hi,

I think IF is the easiest way to check a field, u can even do it using CASE but it is not recommended. May i know why you don't prefer IF?

Regards

Karthik D

Read only

former_member156446
Active Contributor
0 Likes
495

you can check using ASSIGN COMPONENTS and using field symbols.. it can be a 3 to 4 line code.

ASSIGN COMPONENT sy-index OF STRUCTURE <fs_record> TO <fs_comp>.