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

GUI status in report program

Former Member
0 Likes
1,257

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,141

Tripathi,

You can have two statuses

if condn

set pf-status '1'.

else.

set pf-status '2'.

endif.

Thanks

Bala Duvvuri

Read only

Former Member
0 Likes
1,141

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

Read only

Former Member
0 Likes
1,141

I want one of my gui status to be hidden when i am using the other ?

Read only

0 Likes
1,141

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.

Read only

Former Member
0 Likes
1,141

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 .

Read only

0 Likes
1,141

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

Read only

0 Likes
1,141

>

> 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

Read only

Former Member
0 Likes
1,141

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.....