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: 

Handling new function code in customised gui status of report

Former Member
0 Kudos

I have a very simple report, YRPT1, which write a few lines to the list. I have created a new gui status and set it in my report. In se41, I also added a new function code 'TERM' in the application toolbar. If I am not wrong, i need to handle this new function code in the PAI section of the simple report. So my question is, where is the PAI section of this simple report?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You have to do it at USER-COMMAND event of the report.

AT USER-COMMAND.

case sy-ucomm.

when 'TERM'.

*Write your code here.

endcase.

5 REPLIES 5

Former Member
0 Kudos

You have to do it at USER-COMMAND event of the report.

AT USER-COMMAND.

case sy-ucomm.

when 'TERM'.

*Write your code here.

endcase.

anversha_s
Active Contributor
0 Kudos

hi,

do here.

at user-command

rgds

anver

if hlped mark points

Former Member
0 Kudos

In selection screen, the user action is to be handler in

"AT SELECTION-SCREEN" event.

Code should be like this

tables sscrfields.

at selection-screen.
case sccrfields-ucomm.
....
endcase.

0 Kudos

Find all info here

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm">help.sap.com link</a>

Former Member
0 Kudos

as u had mentioned that this is a simple report AT USER-COMMAND event of report acts as pAI,

AT USER-COMMAND.

case sy-ucomm.

 when 'TERM'.

endcase.