06-27-2008 9:54 AM
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
06-27-2008 9:59 AM
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.
06-27-2008 9:58 AM
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
06-27-2008 9:58 AM
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.
06-27-2008 9:59 AM
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.
06-27-2008 10:02 AM
Hi.. John....
Here why u mentioned... sign I again...??
Thanks,
Naveen.I
06-27-2008 10:09 AM
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.
06-27-2008 10:13 AM
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.