‎2006 Nov 23 5:12 AM
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??
‎2006 Nov 23 5:14 AM
Make sure that the program is activated after adding the third button.
‎2006 Nov 23 5:17 AM
‎2006 Nov 23 5:19 AM
Hi Friends,
My program is activated. But still the third button is not displaying.
‎2006 Nov 23 5:30 AM
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
‎2006 Nov 23 5:37 AM
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.
‎2006 Nov 23 5:47 AM
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 againRgds
Anver
‎2006 Nov 23 5:50 AM
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
‎2006 Nov 23 5:58 AM
delete ones the ctreated 3rd button .
and try to make it again.save and activate ...check.
‎2006 Nov 23 6:19 AM
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??
‎2006 Nov 23 7:40 AM
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
‎2006 Nov 23 7:48 AM
‎2006 Nov 23 7:58 AM