Application Development 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: 

PF Status

Former Member
0 Kudos

Hi All,

I am saving the functional buttons like 'BACK', 'SAVE' etc. in the functional buttons group in the pf-status screen, but these buttons are not working when I execute the program .How to make these buttons work? I was able to do so in my previous progam not now. Why is this so?

Should I write separate codes for these buttons to work?

Thanks ,

Shaily

5 REPLIES 5

Former Member
0 Kudos

In PAI of teh screen write as below.


MODULE status_0100 OUTPUT.
  SET PF-STATUS 'STATUS1'. 
ENDMODULE.
Double click on STATUS1 and create the function code for BACK and SAVE. Then in PAI

MODULE status_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
  LEAVE TO SCREEN 0.
WHEN 'SAVE'.
..........
ENDCASE.

This is for ALV

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm

0 Kudos

Hi Judith,

Thanks for your immediate response.

But I do not want to code the functionality of these buttons.

How can I make these buttons work as per their functionality?

Thanks,

Shaily

0 Kudos

Here u r setting ur own PF-Status, so u have to write what needs to be done.

module USER_COMMAND_9001 input.
  CASE sy-ucomm.
    WHEN 'EXIT' or  'CANC'.
* leave program.
      LEAVE PROGRAM.

    when 'BACK'.
      set screen '0'.
      leave screen.
    when others.

  ENDCASE.

endmodule.                 " USER_COMMAND_9001  INPUT

gopi_narendra
Active Contributor
0 Kudos

Make sure you activate the PF-Status and include the PF-Status name properly in the PBO module.

set pf-status 'PFStatus Name'.

Regards

Gopi

Former Member
0 Kudos

Hello,

-


You have to activate the GUI status that you make.Also write the correct name in capitals.SET PF-STATUS 'PF_NAME'.

-


The codes are written in the PAI of the screen in the USER COMMAND MODULE.

(DATA:ok_code type sy-ucomm.Write this in the top declaration).

Case ok_code.

When 'SAVE'.

...logic

when 'BACK'.

...logic

endcase.

-


Also,in the element list of the screen,make sure that you have added ok_code.

-


Additionally,you can place a break point on the CASE OK_CODE statement and check what value ok-code gets when you click on the functional buttons.

Regards,

Beejal

**Reward if this helps