Application Development 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: 

alv

Former Member
0 Kudos

Hi all ,

How to add extra functioality botton in alv output.

1 ACCEPTED SOLUTION

anversha_s
Active Contributor
0 Kudos

hi alex.

in se38 - > take this program

BCALV_GRID_05

it will help u.

anver

10 REPLIES 10

Former Member
0 Kudos

u have to create PF Status ? and u have call this Status in the FM reuse_alv_grid_display.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = PROGNAME
I_CALLBACK_PF_STATUS_SET = 'MAIN'"tHIS IS THE NAME OF THE SUBROUTINE IN WHICH YOU HAVE TO SET THE PF-STATUS AND NOT THE NAME OF THE PF-STATUS
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IS_VARIANT = VARIANT
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
IT_SORT = SORT
IT_FILTER = FILTER
I_SAVE = 'A'
IT_EVENTS = EVENTS
IT_EVENT_EXIT = EVENT_EXIT
IS_PRINT = PRINT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.

form MAIN.
SET PF-STATUS 'MAIN'.
ENDFORM.

Regards

Prabhu

0 Kudos

BCALV_EDIT_01 will give you enough info in this regard

anversha_s
Active Contributor
0 Kudos

hi,

pls give ur mail id.

i will send u 1 program i did,.

it will help u alot.

rgrds

anver

0 Kudos

alexkg1@gmail.com

anversha_s
Active Contributor
0 Kudos

hi alex.

in se38 - > take this program

BCALV_GRID_05

it will help u.

anver

Former Member
0 Kudos

HI,

See demo program <b>BCALV_GRID_08</b>

<b>ALV LIST:</b>

call function 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = 'ZSDBOLST_REPORT'

i_callback_pf_status_set = 'STANDARD' <----


i_callback_user_command = 'USER_COMMAND'

i_structure_name = 'I_BOLACT'

i_grid_title = 'BOL Action Report'(031)

is_layout = gs_layout

it_fieldcat = gt_fieldcat[]

i_save = 'A'

is_variant = v_variant

TABLES

t_outtab = i_bolact

EXCEPTIONS

program_error = 1

others = 2.

  • Form Set_pf_status

  • Notes: Called by FM REUSE_ALV_GRID_DISPLAY

FORM set_pf_status USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'ZSTANDARD'.

ENDFORM. "Set_pf_status

<b>ALV GRID:</b>

call function 'REUSE_ALV_GRID_DISPLAY'

exporting i_callback_program = gc_repid

I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

i_grid_title = lc_grid_title

is_layout = lc_layout

it_fieldcat = gt_fieldcat

it_sort = sort

i_save = l_save

is_reprep_id = l_bbs_id

is_variant = l_variant

tables t_outtab = %g00

exceptions program_error = 1

others = 2.

Regards

Sudheer

Former Member
0 Kudos

hi

good

go through these links, which ll give you brief idea about your requirement,

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

thanks

mrutyun^

Former Member
0 Kudos

Hi,

For Grid, you can create screen for Container, in that screen you can create the buttons and add the function code, in the PAI event of that screen you can write the code to handle that buttons

see the thread for example program

http://wrenbo.jobui.com/blog/32779.html

Regards

Sudheer

Former Member
0 Kudos

this will help you how to copy exisitng ALV status to your zstatus and then how to call it in the ALV DISPLAY.

check this link

Regards

srikanth

former_member188685
Active Contributor
0 Kudos

Hi,

Check this..

Regards

vijay