03-25-2008 7:35 PM
Hi,
In my Module Pool program am creating a text field in my screen. Its length is 40 Char.
Here I want my visual length of that text field as 10 Char but I must be able to enter till 40 Characters. Example: In SE38, the visible length to enter Program name is 30 but we can enter more than 30 Characters in that space as the letters will be scrolling. In the same way my letters must also scroll till I enter 40th Character.
In the Screen Painter attributes the Visual length (Vis.Length) is gray out, but if we change the Defined Length (Def.Lengt) the changes are reflected on the Visual Length. In this case I can enter the characters till the visible length only.
Is there any other way to handle this?
Regards,
Adithya M
03-25-2008 8:06 PM
Hi,
You must check the "Scrollable" checkbox option in your field's attributes. Doing this will enable you to enter a larger value in the Vis.Length property than you have in the Def.Length property. Scolling will then be enabled.
Regards,
Jamie
03-25-2008 8:06 PM
Hi,
You must check the "Scrollable" checkbox option in your field's attributes. Doing this will enable you to enter a larger value in the Vis.Length property than you have in the Def.Length property. Scolling will then be enabled.
Regards,
Jamie
03-25-2008 8:27 PM
Jamie,
Where can I find the checkbox "Scrollable"?
I think "Scrollable" check box is used for Table Controls, mine is a single text field. Can I find "Scrollable" check box in this Screen Painter attributes, if so can you please let me know where it is...
Adithya M
03-25-2008 8:40 PM
Hi,
For your case, the "Scrollable" attribute can be set for a single text I/O field. If the field is actually a text field instead of Input/Output field, then the scrollable attribute will not appear. If you want to simulate a scrollable text on a dynpro you need to use an I/O type field with "Output only" turned on and "2D display" turned on. You then need to default the text value that you want to appear in the I/O field during the screen's PBO.
If you are viewing your screen layout in the graphical screen painter, then double-click your single text field to get the field attributes popup. The "Scrollable" checkbox attribute will appear near the top, just above the "Def.Length" attribute.
If you are looking at the field's attributes from the Element List, click your field once (to place the cursor on your Input field name) and then choose the Attributes function from the toolbar or menu path Edit -> Attributes. The "Scrollable" checkbox attribute will appear on the left near the top, just above the "Line" attribute.
Regards,
Jamie
Edited by: James Gaddis on Mar 25, 2008 4:40 PM
11-12-2015 12:08 AM
Hi Jamie,
I had similar issue & your solution to set scrollable flag did the magic for me! Thanks a bunch.
BR,
Aspire
03-25-2008 8:12 PM
you can try something like this.
parameters: p_cpreas(20) visible length 10.