2008 Nov 21 8:19 AM
Hi,
I have a problem in using the PF STATUS,
i am using a pf statusin at selection-screen output and when i execute a program i can see the buttons
in the selection screen,after that when i enter the values in the selction screen and i press a button it will show a output in ALV based on the selection values,and here i want to add some buttons to neviagae to other screen,i uesed seperate pf-status for ALV Aand selection screen but for me it is showing the same buttons selection screen buttons in the ALV output also.so help me to solve this issue.
Thanks,
Deesanth
2008 Nov 21 8:34 AM
hi,
for alv grids, this is the code
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_callback_pf_status_set = form routine for pf status
i_callback_user_command = form routine for user command
FORM (routine name ) USING rt_extab TYPE slis_t_extab.
SET PF-STATUS pf status name.
ENDFORM.
make sure that you are creating the pf status by using the tcode se41 for that program
regards
Srinivas M.
2008 Nov 21 8:25 AM
Hi,
For your alv output pf-status are you populating the pf-status in grid???
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
* EXPORTING
** I_INTERFACE_CHECK = ' '
** I_BYPASSING_BUFFER =
** I_BUFFER_ACTIVE = ' '
* i_callback_program = 'SY-REPID'
I_CALLBACK_PF_STATUS_SET = 'TEST ' " have you used it?
Regards
Debarshi
2008 Nov 21 8:30 AM
Hi,
Yes i am populating in alv function module, but it show the buttons is different where i used in the at selction screen out.
Thanks,
Deesanth
2008 Nov 21 8:28 AM
Hi,
If you are using the ALV function module then u need to pass the subroutine name to I_CALLBACK_PF_STATUS_SET. And you can set the new Pf-status in this Subroutine.
2008 Nov 21 8:34 AM
hi,
for alv grids, this is the code
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repname
i_callback_pf_status_set = form routine for pf status
i_callback_user_command = form routine for user command
FORM (routine name ) USING rt_extab TYPE slis_t_extab.
SET PF-STATUS pf status name.
ENDFORM.
make sure that you are creating the pf status by using the tcode se41 for that program
regards
Srinivas M.
2008 Nov 21 8:44 AM
Hi,
I am writing the code in at selection screen event not in start of selction,because i have a button to execute the program and not using the f8.
Thansk,
Deesanth
2008 Nov 21 9:23 AM
Hi Deesanth,
Better create another pf status for the alv , and pass the alv FM.
Regards,
Shobana.K.
Edited by: Shobana k on Nov 21, 2008 11:52 AM
2008 Nov 21 9:28 AM
Hi,
From your description, you will have two status, right? one is for selection screen, one is for alv list.
When at selection screen you set the status1 for selection screen, when in alv list you should set
status2 for alv list. If you don't set another status, the program will still use the status1 you first set, so
you will see the alv list status is the same as selection screen status.
2008 Nov 21 8:40 AM
Hi
When you pass the subroutine name 'SUB_NAME' to parameter I_CALLBACK_PF_STATUS_SET, did
you write the name in upper case? Also in subroutine, did you set the status of your own by statement
'set pf-status 'STATUS_NAME'? Also status name should be in upper case.