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

Pop-Up Screen display upon button click

Former Member
0 Likes
3,645

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

6 REPLIES 6
Read only

Former Member
0 Likes
2,038

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

Read only

Former Member
0 Likes
2,038

hi

use this link

http://sap.ittoolbox.com/code/archives.asp?i=10&d=3430&a=s

Cheers

Snehi Chouhan

Read only

Former Member
0 Likes
2,038

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

Read only

Former Member
0 Likes
2,038

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.

Read only

Former Member
0 Likes
2,038

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

Read only

Former Member
0 Likes
2,038

resolved