Question:
Hi All,
Our requirement is like below.
In the selection screen, when user prompts for values, an ALV would be displayed. Users could select several rows (containing Plant values) and then proceed to another screen which is a Customized Transaction. Those plant values should come to that customized transaction. Could any one give me an idea on how to do this? Thank you all.
Kind Regards,
Srini.
Answer:
You can use ALV grid and its method get_selected_rows. I think also ALV through function modules (non-OO) can be used as well. Look at the examples in dev.class SLIS in se80.
_________________
ilya
More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com
Answer:
Thank you Ilya,
I'm trying with standard FM. I got following problem...
when I declared following code.....in my ALV, the Check Box is 'disabled' by default. could any one plz throw some light?
DATA: BEGIN OF WA_OUTPUT,
BOX TYPE C,
MATNUM TYPE MAKT-MATNR,
MATTEXT TYPE MAKT-MAKTX,
SELECTED,
END OF WA_OUTPUT.
CLEAR i_fieldcat_alv.
i_fieldcat_alv-FIELDNAME = 'BOX'.
i_fieldcat_alv-TABNAME = 'IT_OUTPUT'.
i_fieldcat_alv-SELTEXT_S = 'Select'.
i_fieldcat_alv-OUTPUTLEN = 8.
i_fieldcat_alv-CHECKBOX = 'X'.
i_fieldcat_alv-HOTSPOT = 'X'.
append i_fieldcat_alv to fieldcat.
Thank you.
Srini.
Answer:
Maybe it is a conflict with hotspot flag, no idea. I thought you want to select not through checkboxes but with those "select row" buttons on the left. Checkboxes officially have to be used only with OO version of ALV (but FMs should work anyway).
_________________
ilya
More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com