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

ALV GRID

Former Member
0 Likes
755

Hi,

I have added the icons in te aplication toolbar of the ALVGRID.( have added the localfile,xl downloading icons)

While running the report program i am able to view those icons but its not functioning.

What i have to do in order to function those icons??

The thing i have made is in the following code

SET PF-STATUS 'MAIN' EXCLUDING excl_tab.

i have double clicked the MAIN and entered the neccessary icons.

After performing only the visibility of the icon occurs and the original functionality of it doesnt occurs.

Kindly help me in this..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

Just setting the PF-STATUS doesn't ensure the functionality.

You need to code for it in a form , say USER_COMMAND.

See sample:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = W_REPID

I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

P_SELFLD TYPE SLIS_SELFIELD.

case p_ucomm.

when '<FCODE>'. "Function Code for some button

Code here for download to excel etc.

use the fm GUI_DOWNLOAD

endcase.

ENDFORM.

Hi,

I have added the icons in te aplication toolbar of the ALVGRID.( have added the localfile,xl downloading icons)

While running the report program i am able to view those icons but its not functioning.

What i have to do in order to function those icons??

The thing i have made is in the following code

SET PF-STATUS 'MAIN' EXCLUDING excl_tab.

i have double clicked the MAIN and entered the neccessary icons.

After performing only the visibility of the icon occurs and the original functionality of it doesnt occurs.

Kindly help me in this..

5 REPLIES 5
Read only

Former Member
0 Likes
709

Hi,

Try to copy the standard GUI status 'STANDARD' from the program SAPLKKBL and attach your additional buttons..

The Standard SAP GUI will provide you downloading options..

Thanks

Naren

Read only

Former Member
0 Likes
709

Hi,

handle sy-ucomm for those icons in the form user-command.

Regards,

Sowjanya.

Message was edited by: sowjanya suggula

Read only

Former Member
0 Likes
710

Just setting the PF-STATUS doesn't ensure the functionality.

You need to code for it in a form , say USER_COMMAND.

See sample:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = W_REPID

I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

P_SELFLD TYPE SLIS_SELFIELD.

case p_ucomm.

when '<FCODE>'. "Function Code for some button

Code here for download to excel etc.

use the fm GUI_DOWNLOAD

endcase.

ENDFORM.

Read only

Former Member
0 Likes
709

Hi Satheesh,

After double clicking MAIN try giving standard FCODES if you dont want to handle it explicitly.

Regards,

Vidya.

Read only

0 Likes
709

Hi Vidya,

How can i add the function codes can u explain me..i am very new to this..Thanx in advance..