02-10-2016 1:48 PM
Hi,
I am trying to customize a Table maintenance generator for a Z table. I want to do some operation on selected rows when user presses a custom button (Added using PF Status ).
I am facing issue in identifying the selected rows in my custom include module (User command). I get tables like extract & total , but none of them identifies selected entries.
Please help.
Regards,
Rohit
02-10-2016 2:08 PM
Hi.
You should loop in your extract table and check field VIM_MARKED.
Your table control (generated by view maintenance) has this field to keep trace of row selection.
Check this image, last field.
Hope to help.
Bye
02-11-2016 8:03 AM
Hi,
The internal table extract has only one field LINE which has the entire data ( custom table + VIMTBFLAGS ) . So I cannot loop over extract where vim_marked = 'X'.
Mark (CHAR 1) being the last field of VIMTBFLAGS and therefore last character in extract.
Then may be by extracting the last character extract+<Length-1>(1) ... I can get the marked field value i.e. M.
I am looking for some better way of doing this.
Regards,
Rohit
02-11-2016 9:50 AM
Read the documentation links I provided, create a type with the correct structure, define a field-symbols with this type and use an ASSIGN statement with CASTING option.
Regards,
Raymond
02-10-2016 3:05 PM
There might be marked field available in some table if its value is 'X' ,it identifies the row is selected
02-10-2016 3:15 PM
Records of both internal tables contains the table or view fields, text table fields if required and fields of structure VIMTBFLAGS, so field VIM_MARK aka <marked> in the event forms.
Hint: Google online help to find documents like Internal Table TOTAL or Internal Table EXTRACT
Regards,
Raymond