2008 Jun 12 10:36 AM
Hi,
I need to display a Pop-Up Screen upon clicking a button in my ALV Report page.
Can any body help me.
Regards,
Srinivas
Hi,
I need to display a Pop-Up Screen upon clicking a button in my ALV Report page.
Can any body help me.
Regards,
Srinivas
2008 Jun 12 10:38 AM
Hi Srinivasa,
Use this function module,
REUSE_ALV_POPUP_TO_SELECT
the code follows below is helpful to u
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TITLE = 'VBAP TABLE DETAILS'
I_SELECTION = 'X'
I_ALLOW_NO_SELECTION =
I_ZEBRA = 'X'
I_SCREEN_START_COLUMN = 15
I_SCREEN_START_LINE = 30
I_SCREEN_END_COLUMN = 120
I_SCREEN_END_LINE = 60 * I_CHECKBOX_FIELDNAME =
I_LINEMARK_FIELDNAME =
I_SCROLL_TO_SEL_LINE = 'X'
I_TABNAME = 'IT_VBAP'
I_STRUCTURE_NAME =
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_USER_COMMAND =
IS_PRIVATE =
IMPORTING
ES_SELFIELD =
E_EXIT =
TABLES
T_OUTTAB = IT_VBAP
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.
<REMOVED BY MODERATOR>
ganesh.
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:49 PM
2008 Jun 12 10:46 AM
2008 Jun 12 10:55 AM
Hi
to display the popup after clicking on push button of alv report
you use this method.
when 'disp'.
call screen <screen no> starting at 10 10 ending at 70 15.
here disp is pushbutton text name..
you design the screen in screen painter(se51) with your requirements...
Edited by: Chaithanya A on Jun 12, 2008 11:57 AM
2008 Jun 12 10:55 AM
Hiii
If u are in a ALV report screeen and now clicking the button..
now in the user-command of the button
case sy-ucomm.
when 'CLICK'.
call funtion REUSE_ALV_POPUP_TO_SELECT.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = popuphdr
I_SELECTION = 'X'
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 = '1'
it_fieldcat = gt_fieldcat2[]
IT_EXCLUDING =
I_CALLBACK_PROGRAM =
I_CALLBACK_USER_COMMAND =
IMPORTING
es_selfield = gs_selfield
e_exit = g_exit
TABLES
t_outtab = user_input_table
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDIF.
endcase.
2008 Jun 12 10:55 AM
hi,
is your req like Displaying a popup when you click on a custom button on the ALV output?? If that is the req. you can pass the i_callback_user_command some form name and write
the Form/ Endform for the same using the docu , in the FM.. and write the code there.
Hope this is useful to you
Raj
2009 May 25 4:29 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |