on 08-03-2004 10:30 AM
OK, I know we've talked about this already, however I am having either a "dumb moment" or something is not right.
I do the following
data: srit TYPE INT4_TABLE.
data: table_event TYPE REF TO cl_htmlb_event_tableview.
table_event = table->data.
srit = table_event->PREVSELECTEDROWINDEXTABLE.
read table srit with key table_line = table_event->ROW_INDEX
TRANSPORTING NO FIELDS.
However it only shows the values for every line after the first record, I never get the first record from the table??? Anyone else have this problem?
I have 5 records in the table and even when I select all 5 I only have 4 in the srit table
Hi Craig,
Try the following:
srit = table_event->GET_ROWS_SELECTED( includeCurrentSelectedRow = 'X' ).
Best wishes,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As usual, double click on method to see definition.
The method returns type SELECTEDROWS. Notice trailing S!
DATA: srit TYPE SELECTEDROW<b>S</b>.
FIELD-SYMBOLS: <srit> LIKE LINE OF srit.
srit = obj->GET_ROWS_SELECTED( INCLUDECURRENTSELECTEDROW = 'X' ).
LOOP AT srit ASSIGNING <srit>.
...here use <srit>...
ENDLOOP.
field-symbols <i> type i.
append initial line to srit assigning <i>.
<i> = table_event->ROW_INDEX.
Add that after
read table srit with key table_line = table_event->ROW_INDEXTRANSPORTING NO FIELDS.
And it takes care of the missing element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.