2011 May 11 7:54 AM
Hi All,
Here my Question is related to Set pf-status.
I had an ALV program where the output is in ALV grid display i need to show CONFIRM BUTTON on the toolbar and when i click on that it will navigate to one more ALV output with the values where i need to show " APPROVE button on the tool bar.
now here the problem is i am having only one pf-status and it contains both 'CONFIRM ' and APPROVE'.
If i try to write exclude statement its disappearing in both the ALV's.
I googled but couldn't find the accurate answer.Can anyone pls help me.Do i need to create two pf-status for my program? or Can one pf-status helps me.
Thanks,
Hi All,
Here my Question is related to Set pf-status.
I had an ALV program where the output is in ALV grid display i need to show CONFIRM BUTTON on the toolbar and when i click on that it will navigate to one more ALV output with the values where i need to show " APPROVE button on the tool bar.
now here the problem is i am having only one pf-status and it contains both 'CONFIRM ' and APPROVE'.
If i try to write exclude statement its disappearing in both the ALV's.
I googled but couldn't find the accurate answer.Can anyone pls help me.Do i need to create two pf-status for my program? or Can one pf-status helps me.
Thanks,
2011 May 11 8:02 AM
Hi,
Are you using same sub routine for both ALV's . i mean for the first alv you will pass the parameter
i_callback_pf_status_set = 'PF_STATUS'
for Second ALV also are you using the same parameter.
If 'Yes' Change the parameter(Subroutine name).
Thanks,
Venkat.
2011 May 11 8:12 AM
Hi,
I tried using 2 different I_CALLBACK_PF_STATUS_SET but couldn't achieve.
2011 May 11 8:14 AM
Hi,
You can use the EXCLUDING extension while setting the PF-STATUS.
CASE ok_code.
WHEN 'EXEC'. "While displaying the fisrt ALV
REFRESH fcode[].
MOVE 'APPROVE' TO wa_fcodes-fcode.
APPEND wa_fcodes TO fcodes.
SET PF_STATUS 'ZPF_STAT1' excluding fcodes.
Display ALV.
WHEN 'APPROVE'. "while displaying the second ALV
REFRESH fcode[].
MOVE 'CONFIRM' TO wa_fcodes-fcode.
APPEND wa_fcodes TO fcodes.
SET PF_STATUS 'ZPF_STAT1' excluding fcodes.
Display ALV.
ENDCASE.
Hope this helps.
Regards,
Satish Kanteti
2011 May 11 8:37 AM
2011 May 12 9:44 AM
Hi Salini,
I have tried the same which had worked for me. Can I ask you to put your code here.
Are you using OO ALV or REUSE_ALV_GRID_DISPLAY?
Regards,
Satish Kanteti
2011 May 13 10:53 AM
check the codes in okcode for approve and conform and check the code is correct or not in subrountine ia m saying if u have declarded so that no eroors and warning are avoided doe set pf status 'zstatus' (its for example ) double click and select ok for twice so that u can find the column for free function keys can be used
the two thing should be checked first when execution is that is 1. creation of forms table for button and also in pf status than only u can acess the programm well try this solution for error free execution
thanking you
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |