‎2010 May 26 6:18 AM
Hi All,
I have one query regarding gui staus.
Can we create 2 gui status in one single report program?
If it is possible how can we implement it as i want one status at one time and the
other should be hidden at that point of time.
‎2010 May 26 6:21 AM
Tripathi,
You can have two statuses
if condn
set pf-status '1'.
else.
set pf-status '2'.
endif.
Thanks
Bala Duvvuri
‎2010 May 26 6:23 AM
Hi,
In Normal Report i dont think it will Work.
When you are using a screen in a normal report this functionality can achieve.
With Regards,
Sumodh.P
‎2010 May 26 6:26 AM
I want one of my gui status to be hidden when i am using the other ?
‎2010 May 26 6:49 AM
You can set the status based on some condition in the PBO.
e.g: if p_flag = 'X'.
set pf-status 'CHECK'.
else.
set pf-status'UNCHECK'.
endif.
‎2010 May 26 6:57 AM
The problem is that i want both my statuses to set but have to use only one at a time and while one is being used
the other should be hidden and vice versa.
So this if else soln will not do coz this will work only if i want one to be executed at a time .
‎2010 May 27 9:49 AM
Hi Tripathy,
I think you can still achieve that setting two PF statuses, by putting a control while passing the relevant PF status to the ALV fu nction module REUSE_ALV_GRID_DISPLAY for displaying the final output in alv grid.
Hope this would resolve.
Thanks & Regards,
Sujatha
‎2010 May 27 10:11 AM
>
> The problem is that i want both my statuses to set but have to use only one at a time and while one is being used
> the other should be hidden and vice versa.
>
> So this if else soln will not do coz this will work only if i want one to be executed at a time .
Hi,
The Solution is already given by others, you can set and use only one status at a time. If you want you can change the status based on some condition in the next PBO.
Another way is to use all function codes in a single GUI status and use EXCLUDING option of the SET PF-STATUS statement.
Regards,
Karthik D
‎2010 May 27 11:19 AM
Hi Tripathiashish,
Use the below code for excluding the some of the status,
REFRESH it_status.
w_status-fcode = c_sum_down.
APPEND w_status TO it_status.
w_status-fcode = c_details.
APPEND w_status TO it_status.
* Assign PF-status
SET PF-STATUS prog_name EXCLUDING it_status.Here c_sum_down & c_details are buttons which i used............ and I dont want to display those button
Hope your question has been answered.......... if yes please mark this question as answered, so that it will be helpful for others.....