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

grid problem

Former Member
0 Likes
1,290

Hi,

I am trying to create user defined options in alv grid. I made three buttons but still one button is not displaying in alv toolbar.

Other two buttons are displaying.

Anybody will suggest me what I have to do??

12 REPLIES 12
Read only

Former Member
0 Likes
1,266

Make sure that the program is activated after adding the third button.

Read only

Former Member
0 Likes
1,266

Activate GUI STATUS and ur program once again.

Read only

0 Likes
1,266

Hi Friends,

My program is activated. But still the third button is not displaying.

Read only

anversha_s
Active Contributor
0 Likes
1,266

Hi,

pls dont give any standard name.

try with if ur given DELETE - give DEL.

like that. try!! and pls let us know.

Regards

anver

Read only

0 Likes
1,266

Hi,

I am trying to create the back button in alv grid.

So in set pf-status i gave back.

Is it right?

let me know pls.

Read only

0 Likes
1,266

hi,

hope this thing u folled.

call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = gd_repid
            i_callback_top_of_page   = 'TOP-OF-PAGE'  
            i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM 
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
            i_save                  = 'X'
       tables
            t_outtab                = it_ekko
       exceptions
            program_error           = 1
            others                  = 2.

*------------------------------------------------------------------*
*       FORM SET_PF_STATUS                                         *
*------------------------------------------------------------------*
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ZNEWSTATUS'. 
                  "Copy of 'STANDARD' pf_status from fgroup SALV
ENDFORM.

************copy pf status************

1)goto se80
2)open function group SALV

3) In that STANDARD gui-status will be there.
4)right click on that and ther is option of copy
5)just copy it and save it with ur name 'status_name'.
6) now in ur program SET PF-STATUS '(status_name)'.
7)don't forget to active it again

Rgds

Anver

Read only

0 Likes
1,266

Hi Amit,

In ALV Reports, you should not use SET PF-STATUS in the program code.

You have to pass the PF-Status to the ALV function module.

Check the standard program BALVSD11 to know how to pass the PF-STATUS to the ALV report.

<b>DATA G_STATUS TYPE SLIS_FORMNAME VALUE 'STANDARD_02'.</b>

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = G_REPID

<b> I_CALLBACK_PF_STATUS_SET = G_STATUS</b>

I_CALLBACK_USER_COMMAND = G_USER_COMMAND

I_SAVE = G_SAVE

IS_VARIANT = G_VARIANT

IT_FIELDCAT = GT_FIELDCAT[]

TABLES

T_OUTTAB = GT_OUTTAB.

Thanks

Ramakrishna

Read only

0 Likes
1,266

delete ones the ctreated 3rd button .

and try to make it again.save and activate ...check.

Read only

Former Member
0 Likes
1,266

Hi,

Actually I am dealing with alv grid control.

I'm implementing my own user defined status.

I have copied the standard status & modified for back , exit.

in the user command I have coded for back & exit.

after activating in output the back button is not displaying & exit button is not properly working.

I need like functionality like when i press exit button it will out of the program.

So in user command i wrote

When 'Exit'.

leave to screen 0.

but still it is not working.

Could u tell me also why back button is not displaying in output??

Read only

0 Likes
1,266

try using the debugger and check the ok_code.

Also use capital letters for fcodes in PAI

i.e WHEN <b>'EXIT'.</b>

leave to screen 0.

U can also try this method...

in the GUI status double click on EXIT on the standard toolbar,

<b>mark the function type as E</b>,

write a seperate module in PAI using the addition <b>ON EXIT-COMMAND</b>

for eg:

MODULE exit_processing ON EXIT-COMMAND.

write the leave to screen 0 inside this module...

think this should do the job...and make sure d status and the module are activated...

pls mark points if helpful

Regards,

Vs

Read only

0 Likes
1,266

hi,

can u change the names.

exit - EX

back to BAC

rgds

anver

Read only

Former Member
0 Likes
1,266

Hi friends,

Thanks for ur help.

I have solved the problem.