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: 

select-options

Former Member
0 Kudos

hi friends,

i need some help regarding select-options.

i have one select-option like S_MSTAV FOR MARAV-MSTAV.

for this, i have written the selection-text as X-distibution chain status.

where as in sel-screen it is displayed as X-distibution chain statu .

i.e, last letter is cut off .

Plz advice me how i can avoid this cutting off.

Thanks,

Praveen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Praveen,

I have tried this select-option is a test program and it is displaying full line without cutting off any letter on the selection screen. Is your selection field inside a block or line. Can you copy paste your exact selection screen definition.

Regards,

Komal.

17 REPLIES 17

p291102
Active Contributor
0 Kudos

HI,

Ur select options text is coming for me. Pls check there that DICTIONARY REF - check is disable or not.

Thanks,

Sankar M

Former Member
0 Kudos

Hi,

One way for this is that in the Selection Texts Tab where you are giving the text, instead of giving the text you can simply click on Dictionary Field Checkbox. This will give the same text as is specified for the Data element in the dictionary.

Other way is as follows :

tables : mara.

selection-screen begin of line.

selection-screen comment 1(26) text-001.

select-options : S_MSTAV FOR MARA-MSTAV.

selection-screen end of line.

give the text is the text element text-001.

This shud help u.

Regards,

Himanshu

Message was edited by:

Himanshu Aggarwal

Former Member
0 Kudos

Hi,

change the mlen of ythe text element u r using first then it will come.

other wise use this code.

at selection-screen output.

%_<name of sel-options>_%_APP_%-TEXT = 'your text for sel-options'.

regards,

bharat.

aris_hidalgo
Contributor
0 Kudos

Hi,

I am not sure why your text is incomplete. I have tried it here in my system and it is working fine. Check again whther you forgot to put the 's' in status. Hope this helps...

P.S. Please award points if found useful.

Former Member
0 Kudos

HI ,

Its coming for me , w/o any probs .

You try to do the same in sample program and check what additional things u missing in ur main program .

Thanks .

Former Member
0 Kudos

Hi Praveen,

I have tried this select-option is a test program and it is displaying full line without cutting off any letter on the selection screen. Is your selection field inside a block or line. Can you copy paste your exact selection screen definition.

Regards,

Komal.

0 Kudos

hi,

i have tried every option, but its still not working.

Thanks,

Praveen

0 Kudos

Hi Praveen,

Cud u plz mention the steps that u are performing so that we can get a better idea of why u r facing this problem.

In the approach I mentioned, u shud not specify any text in the select-options tab in any of the case: be it Dictionary Field checkbox selected or be it using Selection-screen comment.

Regards,

Himanshu.

0 Kudos

S_MSTAV FOR MARAV-MSTAV ,

this is my select-option and i'm not using any code like

selection-screen comment or neither i did activate the dictionary ref. checkbox.

i have tried all the options and unfortunately its not working still.

Could you all please suggest me something else.

Thanks to all of you for your precious time.

Praveen

0 Kudos

Hi praveen,

write like this.

at selection-screen output.

%_S_MSTAV_%_APP_%-TEXT = 'ur text'.

regards,

bharat.

0 Kudos

Hi..,

i hope u did in this way..

select-options S_MSTAV FOR MARAV-MSTAV .

activate the program.

and then GOTO --> Text elements --> Selection texts --> In this u will get ur select option name... and in the input field give the name ... as X-distribution chain status ... Once delete the previous one and enter the text again..

it will work properly...

regards,

sai ramesh

0 Kudos

Hi Bharat,

I'm really surprised.

Even this is not working.

Thanks,

Praveen

Former Member
0 Kudos

hello reddy...I can guess what is ur problem. Once u enter the text, it will gray out the visible length. I guess it has frozen a smaller length for u. All u can do is just these things...

1) change the select option name to S_MSTAV1 or something and activate the program

2) Got the selection text part and enter the text in there

3) Delete the old line for S_MSTAV

4) Activate it and come to the program

5) Now again change the select-option to S_MSTAV. and activate the prg

6) Go to the selection text window and now enter the correct text in full

7) and delete the S_MSTAV1 text.

😎 activate it and it will work...

Reward points if useful,,,,

Cheers,

Sam

Former Member
0 Kudos

hi

good

check the length of the text that you have mentioned in the text element for the select options,change the length there a,it ll work fine.

Thanks

mrutyun^

Former Member
0 Kudos

hi,

Declare selct option as S_XXXX

Go to Text elements option in SE38.

enter the data, it will not reduce the char length.

Try once this.

Former Member
0 Kudos

try this

tables : mara.

selection-screen begin of line.

SELECTION-SCREEN COMMENT 1(35) TEXT-001 FOR FIELD s_opt.

select-options : s_opt for mara-matnr.

selection-screen end of line.

dbl click on text-001 and give your heading X-distibution chain status and activate it.

regards

shiba dutta

Former Member
0 Kudos

Hi Friends,

i have tried the last solution i.e.,

SELECTION-SCREEN BEGIN OF LINE .

SELECTION-SCREEN COMMENT 1(27)

TEXT-017 FOR FIELD S_MSTAV .

SELECT-OPTIONS : S_MSTAV FOR MARAV-MSTAV .

SELECTION-SCREEN END OF LINE .

of course it is working..but the alignment is getting effected like it has moved a bit forward.

No probz.. this would be fine.

I can talk to the functional people and convince them.

any how ..thanks for your help.

Regards

Praveen