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

Former Member
0 Likes
809

Hi all ,

How to add extra functioality botton in alv output.

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
775

hi alex.

in se38 - > take this program

BCALV_GRID_05

it will help u.

anver

10 REPLIES 10
Read only

Former Member
0 Likes
775

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

Read only

0 Likes
775

BCALV_EDIT_01 will give you enough info in this regard

Read only

anversha_s
Active Contributor
0 Likes
775

hi,

pls give ur mail id.

i will send u 1 program i did,.

it will help u alot.

rgrds

anver

Read only

0 Likes
775

alexkg1@gmail.com

Read only

anversha_s
Active Contributor
0 Likes
776

hi alex.

in se38 - > take this program

BCALV_GRID_05

it will help u.

anver

Read only

Former Member
0 Likes
775

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

Read only

Former Member
0 Likes
775

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^

Read only

Former Member
0 Likes
775

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

Read only

Former Member
0 Likes
775

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

Read only

Former Member
0 Likes
775

Hi,

Check this..

Regards

vijay