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

data check using field-set

Former Member
0 Likes
441

Hi folks,

I am doing a data check using the field-set for one of the fields using the ITS components. How can i do that?

I used this code...

data: begin of media_f4 occurs 0,

rcins like t750c-rcins,

iname like t750c-iname.

data: end of media_f4.

if ( field-set 'MEDIA_F4_RCINS' eq space AND field-set

'MEDIA_F4_INAME' eq space ).

OR

if media_f4 is initial.

SW_DATA_MISSING = YES.

TEXT_1000_1 = TEXT-VAC.

endif.

It did not work. Also I checked just using MEDIA_F4 it did not work. Any thoughts or leads would be really helpful...

Thanks,

Vinu

2 REPLIES 2
Read only

Former Member
0 Likes
407

Hi,

Change the stmt like:

if media_f4[] is initial.

SW_DATA_MISSING = YES.

TEXT_1000_1 = TEXT-VAC.

endif.

Regards

Subramanian

Read only

0 Likes
407

The field is an selection -option where the first value is blank and the purpose of this is to make it mandatory, when I use just 'media_f4' it is an internal table, and the field is defined as field set in the form field-set 'MEDIA_F4_RCINS' .

Suppose I use this field for the data check in this format, it is resulting ina syntax error.

Thanks for the reply,

Vinu