cancel
Showing results for 
Search instead for 
Did you mean: 

Lable and Input field on different lines in Select Options

jitendra_it
Active Contributor
0 Kudos

Hello Folks,

My requirement is to show label and Input field on different lines in Select Options.

By default it creates on same line as we can see in attach snapshot. I want input field to be below label Country.

Please suggest.

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Jitendra,

I don't think we have an options to bring the input field below the label text either of the below methods

ADD_SELECTION_FIELD OR D_PARAMETER_FIELD

You can achieve your requirement as below ( Workaround Solution )


  • Add a text by using method ADD_TEXT_LINE( ) i.e. pass only the label text here.. ex: country
  • Now, add an input field by using either ADD_SELECTION_FIELD OR D_PARAMETER_FIELD but pass the parameter I_DESCRIPTION = SPACE & I_IS_AUTO_DESCRIPTION = ABAP_FALSE

Now you should have input field below the label "Country".

Hope this helps you.

Regards,

Rama

jitendra_it
Active Contributor
0 Kudos

Thanks Rama for your inputs.

Even I pass I_DESCRIPTION = SPACE , it showing description for that field.

so output is   <Text using ADD_TEXT_LINE()>

                     <label> : <input field> 

so it showing two descriptions for field one at above input field and one at same level.

ramakrishnappa
Active Contributor
0 Kudos

I think you have not passed this I_IS_AUTO_DESCRIPTION = ABAP_FALSE parameter .

jitendra_it
Active Contributor
0 Kudos

I had passed I_IS_AUTO_DESCRIPTION = ABAP_FALSE parameter but still text appears

ramakrishnappa
Active Contributor
0 Kudos

Hi Jitendra,

It should not come.

Please share the snap shots of both out put and respective code.

Regards,

Rama

jitendra_it
Active Contributor
0 Kudos

Please Check the Snap shot.

ramakrishnappa
Active Contributor
0 Kudos

Hi Jitendra,

The system is auto populating the label text for the input field if we pass I_DESCRIPTION = SPACE and i_is_auto_description parameter has no significance.

Please pass some text to i_descripton as below

I_DESCRIPTION = '.' ( here I am passing just dot(.) )

Now, instead of label Country.. we wil be having just a dot.

Regards,

Rama