Application Development and Automation 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: 
Read only

Displaying a popup

Former Member
0 Likes
961

HI

I have a selection screen which has the button 'No of entries' at the application toolbar. when user clicks on it on the basis of selection in screen the data is fetched. now i want to show the the number of entries as a popup which will only have close button in it. Is there any FM to acheive this.

Thanks.

HI

I have a selection screen which has the button 'No of entries' at the application toolbar. when user clicks on it on the basis of selection in screen the data is fetched. now i want to show the the number of entries as a popup which will only have close button in it. Is there any FM to acheive this.

Thanks.

5 REPLIES 5
Read only

Former Member
0 Likes
727

Hi ,

Create a screen as modal dialog box and and populate the data .

or use function module POPUP_TO_SHOW_DB_DATA_IN_TABLE .

Please reward if useful.

Read only

0 Likes
727

Hi Praveen

You can use REUSE_ALV_POPUP_TO_SELECT. Here you can also restrict the undesired buttons from appearing in the toolbar by passing exclude table.

Read only

Former Member
0 Likes
727

Hi,

try to use FM POPUP_TO_DISPLAY_TEXT. I think that icon shown into box will be a good feature for you

Regards,

Pavel

Read only

Former Member
0 Likes
727

you search for POPUP_* in se37 you will get various fms, choose which you requierd....

Read only

Former Member
0 Likes
727

u avn use the following fm

REUSE_ALV_POPUP_TO_SELECT

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

  • I_TITLE =

i_selection = 'X'

  • I_ALLOW_NO_SELECTION =

  • I_ZEBRA = ' '

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • I_CHECKBOX_FIELDNAME =

  • I_LINEMARK_FIELDNAME =

  • I_SCROLL_TO_SEL_LINE = 'X'

i_tabname = 'it_data'

  • I_STRUCTURE_NAME = 'ty_data'

it_fieldcat = ad_fdcat

  • IT_EXCLUDING =

i_callback_program = ad_repid

  • I_CALLBACK_USER_COMMAND =

  • IS_PRIVATE =

IMPORTING

<u><i><b> es_selfield = it_selfield</b></i></u>

  • E_EXIT =

TABLES

t_outtab = it_data

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

*IFLAG = 0 .

ENDIF.

<u><i><b>just pass the internal table with data to this fm and also the catalog name which u will build . catalogue contains the fields and thier order to be displayed in pop up</b></i></u>

code for catalogue is

declaring field catalog

DATA: ad_fdcat TYPE slis_fieldcat_alv.

  • defining its colums

ad_fdcat-col_pos = 1.

ad_fdcat-fieldname = 'NETPR'.

ad_fdcat-tabname = 'it_data'.

*AD_FDCAT-EMPHASIZE = 'C311'.

ad_fdcat-seltext_l = 'PRICE'.

ad_fdcat-hotspot = 'X'.

APPEND ad_fdcat TO p_ad_fdcat.

ad_fdcat-col_pos = 2.

ad_fdcat-fieldname = 'WAERS'.

ad_fdcat-tabname = 'it_data'.

ad_fdcat-emphasize = 'C511'.

ad_fdcat-seltext_l = 'CURRENCY'.

ad_fdcat-hotspot = 'X'.

APPEND ad_fdcat TO p_ad_fdcat.

ad_fdcat-col_pos = 3.

ad_fdcat-fieldname = 'MEINS'.

ad_fdcat-tabname = 'it_data'.

ad_fdcat-emphasize = 'C311'.

ad_fdcat-seltext_l = 'UNIT'.

ad_fdcat-hotspot = 'X'.

APPEND ad_fdcat TO p_ad_fdcat.

<u><i><b>important</b></i></u>

<u><i><b>it_selfield field will contain the index of the selected entry.

now by looping at ur internal table u can select this index and display in ur fields</b></i></u>

loop at itab index it_selfield

do somethn

endloop.

regards

navjot

reward accordingly