Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV record capturing when BDC is used.

Former Member
0 Kudos

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

2 REPLIES 2

0 Kudos

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.

Former Member
0 Kudos

Good day,

You have to use a method called get_selected_rows, once you get the selected rowid and its contents

you can pass that to bdc according to the requrement.

For more reference of get_selected_rows please check this.

link[get_selected_rows|]

Regards and Best wishes.