07-13-2010 8:57 AM
Dear All,
I have an ALV,in which only one record will get diplayed which has to be processed.
i have to use a BDC for the same.
How will the record selection be captured.Is it Possible to run a BDC on an ALV
Regards,
Varun
07-13-2010 10:22 AM
Hi Varun,
You can select the row, for running the BDC with the same record, in various ways:
1. You can use a double click event on the row. On this event, you can write the code for the BDC. The record would be already present in your work area or internal table
2. In case you still wish to select the row and then proceed, then you can use get_selected_rows method.
E.g. CALL METHOD grid1->get_selected_rows
IMPORTING
ET_ROW_NO = lt_Selected_Rows.
This will give you the selected row number based on which you can fetch the record from table and use it for the BDC.
Let me know if this was helpful.
Regards,
Aparna Alashe.
07-13-2010 11:06 AM