Application Development and Automation 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: 
Read only

Re:Scrolling for input/output field

Former Member
0 Likes
2,715

Hi,

for the input/output field i need to give scrolling because in my dialog programing i have a email field

Emailto -


input/output field -


if i type emails it should scroll and accept, Can any one tell me the logic

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,892

Hi,

If the field size is more than the visible length then I think scroll bar come automatically.

Regards,

Atish

Hi,

for the input/output field i need to give scrolling because in my dialog programing i have a email field

Emailto -


input/output field -


if i type emails it should scroll and accept, Can any one tell me the logic

9 REPLIES 9
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,892

Hi,

If you field lenth is say 40 and if your display length of the field that you have is 20 the text that you type in will automatically appears in the text box along with scrolling.

Regards,

Sesh

Read only

Former Member
0 Likes
1,892

If you going to input multiple email addresses in the field, I would suggest you use a table control to achieve the same, since a text field has a maximum length of 255.

To make a field scrollable, you need to tick the property 'Scrollable' for the field in the Screen properties, and specify the max. length. The display length gives the width of the field that the user will see on the screen.

Hope this helps.

Sudha

Read only

0 Likes
1,892

HI,

i have ticked the option as scrollable, but i should type that email address in input/output field and if i press enter it should get inserted in the database table, from database table i need to display on the table control, if i give many mail address to this input/output field it is showing ong text, can any one say me the logic

Read only

0 Likes
1,892

Hi sravanthigopal ,

If you want to enter multiple value ,you can use table control.There you can have multiple email-id.Or else you can enter the E-mail adddres in i/o field and display it in table control by appending screen field value into one internal table.

Eg.

PROCESS BEFORE OUTPUT.

LOOP AT it_email INTO x_email

WITH CONTROL tc

CURSOR tc-current_line.

MODULE tc_get_lines.

ENDLOOP.

PROCESS AFTER INPUT.

<b>Module W_Email_id ON-REQUEST.</b>

Loop at it_email .

Endloop.

Module w_email_id.

read table it_email into x_email with key id = w_email_id.

if sy-subrc ne 0.

x_emai-id = w_email_id.

append x_email to it_email.

clear x_email.

Endif.

Endmodule.

Message was edited by:

Vigneswaran S

Message was edited by:

Vigneswaran S

Read only

Former Member
0 Likes
1,893

Hi,

If the field size is more than the visible length then I think scroll bar come automatically.

Regards,

Atish

Read only

former_member219399
Active Participant
0 Likes
1,892

Hi,

If u want multiple mail ids, enter them in the I/O box seperated by ','.

in PAI, truncate the string at ','. then move these fields into the DDIC table.

with regards,

Vamsi

Read only

0 Likes
1,892

Hi,

How to truncate in PAI

Read only

0 Likes
1,892

use the command split.

SPLIT txt_fiels AT ',' INTO field1 field2 etc.

with regards,

Vamsi

reward the points if useful.

Read only

Former Member
0 Likes
1,892

hi sravanthi,

     for that go to screen layout(i.e. screen painter) double click on field which u want u will get screen attributes in that one check box is there SCROLLABLE check that check box and give defined lenth for that.

with regards,

sabiha.