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

Query on Set-pf status

Former Member
0 Likes
1,133

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,

6 REPLIES 6
Read only

Former Member
0 Likes
1,023

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.

Read only

0 Likes
1,023

Hi,

I tried using 2 different I_CALLBACK_PF_STATUS_SET but couldn't achieve.

Read only

Former Member
0 Likes
1,023

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

Read only

0 Likes
1,023

Hi Satish,

Refresh is not working here..I tried it.

Read only

0 Likes
1,023

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

Read only

Former Member
0 Likes
1,023

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