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: 

Popup a List of texts

e_maino
Explorer
0 Kudos
1,020

hi people,

I need a function module to display a list of text elements.

The best I found (at the moment) is DD_POPUP_WITH_LIST....but I was looking for something different too....

Does anyone know others? Otherwise, it's the same...

1 ACCEPTED SOLUTION

Former Member
0 Kudos
282

POPUP_WITH_TABLE_DISPLAY

POPUP_TO_SHOW_DB_DATA_IN_TABLE

POPUP_WITH_TABLE_DISPLAY_OK

POPUP_WITH_TABLE

4 REPLIES 4

Former Member
0 Kudos
282

hi use this..

POPUP_TO_DISPLAY_TEXT

POPUP_WITH_2_BUTTONS_TO_CHOOSE , POPUP_FOR_INTERACTION

Former Member
0 Kudos
283

POPUP_WITH_TABLE_DISPLAY

POPUP_TO_SHOW_DB_DATA_IN_TABLE

POPUP_WITH_TABLE_DISPLAY_OK

POPUP_WITH_TABLE

Former Member
0 Kudos
282

U can use the FM 'MD_POPUP_SHOW_INTERNAL_TABLE'

&----


*& Report Z_TEST1

*&

&----


*&

*&

&----


REPORT z_test1.

TABLES T001W.

DATA: BEGIN OF ITAB OCCURS 0,

WERKS LIKE T001W-WERKS,

NAME1 LIKE T001W-NAME1,

END OF ITAB.

DATA: BEGIN OF ICOLS OCCURS 0.

INCLUDE STRUCTURE HELP_VALUE.

DATA: END OF ICOLS.

DATA V_INDX LIKE SY-INDEX.

ICOLS-TABNAME = 'T001W'.

ICOLS-FIELDNAME = 'WERKS'.

ICOLS-SELECTFLAG = 'X'.

APPEND ICOLS.

ICOLS-TABNAME = 'T001W'.

ICOLS-FIELDNAME = 'NAME1'.

APPEND ICOLS.

SELECT-OPTIONS: S_WERKS FOR T001W-WERKS.

SELECT * FROM T001W WHERE WERKS IN S_WERKS.

ITAB-WERKS = T001W-WERKS.

ITAB-NAME1 = T001W-NAME1.

APPEND ITAB.

ENDSELECT.

SORT ITAB BY WERKS.

CALL FUNCTION 'MD_POPUP_SHOW_INTERNAL_TABLE'

EXPORTING

TITLE = 'SELECT A VALUE'

IMPORTING

INDEX = V_INDX

TABLES

VALUES = ITAB

COLUMNS = ICOLS

EXCEPTIONS

LEAVE = 1

OTHERS = 2.

IF SY-SUBRC EQ 0.

READ TABLE ITAB INDEX V_INDX.

WRITE:/ ITAB-WERKS, ITAB-NAME1.

ENDIF.

Regards,

Joy.

e_maino
Explorer
0 Kudos
282

thanks to everyone....i'm working with CRM so, some f.m. don't work....

anyway, I need to show more than a fixed number of elements....

so I think I'll use POPUP_WITH_TABLE.