‎2013 Feb 11 10:15 PM
Hello Gurus !! Does anyone know of a way around the length of 79 restriction on SELECTION-SCREEN COMMENTS ? I have a sentence that I would like to be all be on one line that is about 110 characters, but the 79 restriction won't allow me to do it. Thanks for any help.
Mike
‎2013 Feb 13 4:20 PM
There's one other way, but I'm not sure it meets your requirement.
It's not really a comment and it will not show the whole of your sentence at once, but you can scroll thru it and it will be displayed competely on mouse hover.
So this is what you have to do.
...
SELECTION-SCREEN begin of LINE.
parameters: p_long type c length 135.
SELECTION-SCREEN end of LINE.
... your code here ...
INITIALIZATION.
p_long = {your sentence}
LOOP AT screen.
IF screen-name = 'P_LONG'.
screen-input = 0.
screen-output = 1.
screen-display_3d = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
‎2013 Feb 11 10:48 PM
‎2013 Feb 13 2:31 PM
Hi Tuncay.....The strict requirement is all of the sentence on one line and not multiple lines. Do you still know of a way besides multiple lines ?
Thanks,
Mike
‎2013 Feb 13 2:38 PM
‎2013 Feb 13 2:46 PM
‎2013 Feb 13 6:58 PM
Hi Raymond.....Thanks for your reply.....Yes, I tried this, but it leaves a 10 char gap between the 2 groups......I tried various scenarios regarding this technique.....Can't get rid of the gap.....
Thanks,
Mike
‎2013 Feb 13 3:28 PM
Hi Michael ,
You can use this below code snippet ....
But only issue it is taking some spaces in between two texts as you can see in the above screen shot.
Hope this will help ....
Regards,
AKS
‎2013 Feb 13 7:04 PM
Hi Amit....Thanks for your reply.....I tried this approach with 2 TEXT symbols, but would always get the 10 char gap regardless...
Thanks,
Mike
‎2013 Feb 13 3:44 PM
Hi Michael,
the only way i see around this, would be to make it a dialogue transaction and create your own selection screen. Then you can define your comment-field as long as the screen can take.
That would mean of course, you'ld have to build up the selection logic and all elements (including the extensions of select-options) on your own.
Regards
Jörg
‎2013 Feb 13 4:20 PM
There's one other way, but I'm not sure it meets your requirement.
It's not really a comment and it will not show the whole of your sentence at once, but you can scroll thru it and it will be displayed competely on mouse hover.
So this is what you have to do.
...
SELECTION-SCREEN begin of LINE.
parameters: p_long type c length 135.
SELECTION-SCREEN end of LINE.
... your code here ...
INITIALIZATION.
p_long = {your sentence}
LOOP AT screen.
IF screen-name = 'P_LONG'.
screen-input = 0.
screen-output = 1.
screen-display_3d = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
‎2013 Feb 13 7:08 PM
Hi Jorg....Thanks for your reply......I'll try this out.....The actual requirement is for a sentence to display that is larger than 79 char. The sentence is part of a legend for the selection screen. The user does not want this sentence to wrap to multiple lines, but the "Hover Over" technique might be acceptable. I'll try it and report back !!
Thanks,
Mike
‎2013 Feb 13 8:04 PM
Hi Jorg......The "Hover Over" code works great, but the user decided to go with truncating the sentence at 79.....
Thanks for your help !!
MIke