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

Making a selection field mandatory!

Former Member
0 Likes
2,443

Hi all,

I have created a custom table.I need to make few fields as mandatory in the selection screen to dispaly the table contents.If we dont specify the values in one of those mandatory fields,then the data shouldn't get displayed.

Can anyone help on this requirement??!!!

Good info will rewarded.

Thanks in advance,

Jyothi D.

Edited by: jyothi dosapati on Feb 4, 2008 3:38 PM

Hi all,

I have created a custom table.I need to make few fields as mandatory in the selection screen to dispaly the table contents.If we dont specify the values in one of those mandatory fields,then the data shouldn't get displayed.

Can anyone help on this requirement??!!!

Good info will rewarded.

Thanks in advance,

Jyothi D.

Edited by: jyothi dosapati on Feb 4, 2008 3:38 PM

14 REPLIES 14
Read only

Former Member
0 Likes
1,930

Hi,

Declare Select-option like this

SELECT-OPTIONS : s_rpmax for zupi5t-rpmax obligatory.

Regards,

Satish

Read only

0 Likes
1,930

I am asking about the data dictionary selection screen ,the screen which we get before displaying the table contents.

Read only

0 Likes
1,930

Hello Jyothi,

This is not possible.

What u can do this u can attach the domain with certain set of values. So when the table is filled this will became mandatory.

That is the only possiblity.

Regards,

Vasanth

Read only

Former Member
0 Likes
1,930

Hello,

If it is a aprameter field then:


PARAMETER SP_SPRAS LIKE SY-LANGU OBLIGATORY.
SELECT-OPTIONS: SO_MTART FOR MARA-MTART OBLIGATORY..

Cheers,

Vasanth

Read only

Former Member
0 Likes
1,930

Hi,

Chk the 2 answers given by Manuel in the below thread

Read only

0 Likes
1,930

You can use Obligatory inorder to make a select field mandatory

Read only

Former Member
0 Likes
1,930

hi all , do use parameters to create a selection screen where it is mandatory to enter a value or else it will not process further.

eg: PARAMETERS: field_name TYPE table_name-field_name.

Read only

vishal_sharda2
Participant
0 Likes
1,930

Hi Jyothi,

Greetings!

U can do this using OBLIGATIRY clause in the parameters/select-options.

Parameters: p_matnr like mara-matnr obligatory.

OR

Select-options: s_matnr for mara-matnr obligatory.

Regards,

Vishal.

Read only

Former Member
0 Likes
1,930

make the select-option field as mandatory.

Read only

0 Likes
1,930

Hi ,

Using Chain and End Chain statements .

Read only

Former Member
0 Likes
1,930

Hi Jyothi,

As Explained by Vasanth, u can use the domain concept to make the fied as mandatory with the values present in the domain.

Or else you can use the foreign key relation to make the field as mandatory.

Regards,

Rehana Sultana.

Read only

Former Member
0 Likes
1,930

Hi,

Try to find some enhancement(BADI/user exit) for se16/se16n.

Read only

Former Member
0 Likes
1,930

Deleted...error; someone brahmam21 answered an old thread.

Edited by: BreakPoint on Apr 20, 2011 5:12 PM

Read only

pawan_rai
Participant
0 Likes
1,930

Hi Jyothi,

You need to use keyword obligatory in your select-options to make field mandatory...

regards,

Pawan