Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Selecting single line in the function module "REUSE_ALV_POPUP_TO_SELECT"

Hi,

I am using the function module REUSE_ALV_POPUP_TO_SELECT to display the data for selection.Using this any no. of data records can be selected.

However i want that only one line should be selected.

How can i do this?

thanks,

vartika

Tags:
Former Member
replied

Hi Vartika,

I think you can use another FM for your requirement. But if you wish to use the FM, you can do as below.

DATA l_line TYPE i VALUE 2.

WHILE l_line <> 1.

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'.

EXPORTING

E_EXIT = l_exit

TABLES

T_OUTTAB = t_out.

IF l_exit IS INITIAL.

l_line = LINES( t_out[] ). "Check the number of records selected

ELSE.

l_line = 1. "If user cancel the selection

ENDIF.

ENDWHILE.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question