2007 Mar 31 4:32 PM
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.
2007 Apr 01 5:40 PM
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.
2007 Apr 01 8:42 PM
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.
2007 Apr 01 10:34 PM
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
2007 Apr 02 7:15 AM
you search for POPUP_* in se37 you will get various fms, choose which you requierd....
2007 Apr 02 7:20 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |