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

Select-option_multi filll

naveen_inuganti2
Active Contributor
0 Likes
780

Hi.... All...

iam having field F1 in my selection-screen...

Now how can i pass 10 different values to that F1...

These are not serial entries... i mean...

if i write...

F1-low = 1.

F1-high = 10.

F1-sign = 'I'.

append F1.

... it will not fill with 2 to 9

Actually i want 3, 7, 8 and 11 like that....

please let me know how it is...

Thanks,

Naveen.I

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

F1-low = 1.

F1-option = 'EQ'.

F1-sign = 'I'.

append F1.

F1-low = 3.

F1-option = 'EQ'.

F1-sign = 'I'.

append F1.

F1-low = 9.

F1-option = 'EQ'.

F1-sign = 'I'.

append F1.

.

.

.

regards,

John.

6 REPLIES 6
Read only

Former Member
0 Likes
751

hi,

Use SELECT-OPTION.

After that u will find TAB next to field where u can put

multiple entries.

Regards,

Swarup

Edited by: swarup basagare on Jun 27, 2008 10:59 AM

Read only

Former Member
0 Likes
751

HI,

If you use select-option then internal table with that name will create automatically with fields low, high, sign and option. So in initialization event you can assign multiple values like this.

INITIALIZATION.

F1-low = 1.

F1-high = 10.

F1-sign = 'I'.

append F1.

F1-low = 2.

F1-high = 10.

F1-sign = 'I'.

append F1.

Reward if useful.

Regards,

Swetha.

Read only

Former Member
0 Likes
752

F1-low = 1.

F1-option = 'EQ'.

F1-sign = 'I'.

append F1.

F1-low = 3.

F1-option = 'EQ'.

F1-sign = 'I'.

append F1.

F1-low = 9.

F1-option = 'EQ'.

F1-sign = 'I'.

append F1.

.

.

.

regards,

John.

Read only

0 Likes
751

Hi.. John....

Here why u mentioned... sign I again...??

Thanks,

Naveen.I

Read only

0 Likes
751

Hi Naveen,

Because F1 is a table and you building up records in this table. Strictly it is not necessary to repeat values which remain the same ("I" and "EQ") because F1 also acts as the header line of the table.

From a programming point of view it would be more correct to write:


DATA:
  zls_record LIKE LINE OF F1.

CLEAR:
  zls_record.

zls_record-option = 'EQ'.
zls_record-sign    = 'I'.
zls_record-low     = 1.
APPEND zls_record TO F1.


CLEAR:
  zls_record.

zls_record-option = 'EQ'.
zls_record-sign    = 'I'.
zls_record-low     = 3.
APPEND zls_record TO F1.

...etc.

Regards,

John.

Read only

Former Member
0 Likes
751

Hello

If you want with 1 to 10, you must:

F1-sign = 'I'.

F1-option = "BT'.

F1-low = 1.

F1-high = 10.

append F1.

If you want 1, 3, 7, 8, 10, 11, you must:

F1-sign = 'I'.

F1-option = 'EQ'.

F1-low = 1. append F1.

F1-low = 3. append F1.

F1-low = 7. append F1.

etc.