Application Development 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: 

Obligatory mark for select options

former_member670836
Participant
0 Kudos

Hi experts,

I have a requirement where both low and high field of select -option should be mandatory.

Code i have written is :s_period for cgpl_project-createdon.

But only the low field is made obligatory.How to make high field as oblogatory too....

but if we write abap code manually it will work..

if s_period is intial..

error mesg like " date is mandatory''

but user want that obligatory mark only..how can i acheive this....

can any body plz help me..

Regards,

Praveena..

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use s_option-low and s_option-high while validating.

0 Kudos

Hi,

Write your code in the vent AT Selection Screen Output.

Do loop at your screen and if Screen-field_name = your field then make this field_name-low and field_name-high mandatory.

Hope it will help you.

U can check the table screen to get the diffrent fileds

Regards

Sachin

0 Kudos

Hi...

Thanks for replying...

i don't want any validations...

i just want obligatory mark for both low and high fields...

can you plzzz help me..

Former Member
0 Kudos

Hi,

Write the below code in Initialization event...

Initialization.

loop at screen.

if screen-name = 'S_BELNR-HIGH'.

screen-required = 1.

modify screen.

endif.

endloop.

Regards,

Srini.

0 Kudos

Hi srini...

Thanks a lot...

Now i can see the mark...

Regards,

Praveena..