2008 Nov 03 1:23 PM
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?
2008 Nov 03 1:30 PM
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 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?
2008 Nov 03 1:30 PM
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
2008 Nov 03 1:56 PM
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>.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |