cancel
Showing results for 
Search instead for 
Did you mean: 

Text next to check box of select options

Former Member
0 Kudos

Hi Experts,

I have added a check box in my selection screen.


    WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
    I_ID          = 'SEL_HIST_LINES'
    IT_RESULT     = LR_RANGE_TABLE
    I_AS_CHECKBOX = ABAP_TRUE
    I_READ_ONLY   = L_READ_ONLY
    I_DESCRIPTION = L_SHL 

Now i want to give a text next to the check box. How can i do that?

i tried using ADD_TEXT_LINE method but text is being added in the next line, but i want it next to check box similar to what we do in module pool check box.

Any clue is greately appreciated.

Thanks,

Ajay

Accepted Solutions (0)

Answers (3)

Answers (3)

shafiqahmed_khan
Explorer
0 Kudos

Hi, check the layout type ur using. When the text is created and displayed in the next line, then i feel that u need to check your layout type used.

regards,

Shafiq.

Former Member
0 Kudos

.

Former Member
0 Kudos

Do you want to give the Checkbox a title/label e.g Male/Female something like that . If so you can use parameter I_DESCRIPTION of method add_selection_field.

Former Member
0 Kudos

Hi Radhika,

I have a label for that check box, already used I_DESCRIPTION. but i want a text after the check box.

Eg: Select Open Issues [] ( Issues with status NEW and OLD )

So i want to have the text " ( Issues with status NEW and OLD )" after the check box []

How to achieve that?

Rgds,

Ajay

Former Member
0 Kudos

Hi Ajay,

Text always comes in your left of the check box in the select options. U can use Check box UI Element to bring the text to the right.

Ranganathan.

Former Member
0 Kudos

Hi Thiru,

I want this to be part of selection screen view container and can not have it as check box UI element.

Thanks,

Ajay

Former Member
0 Kudos

Hi Ajay,

may be you can try like this,

Select Open Issues( Issues with status NEW and OLD ) []

you can pass this text to i_descriptio then,