09-18-2006 11:59 AM
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?
09-18-2006 12:02 PM
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.
09-18-2006 12:02 PM
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.
09-18-2006 12:04 PM
09-18-2006 12:04 PM
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.
09-18-2006 12:08 PM
Find all info here
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm">help.sap.com link</a>
09-18-2006 12:04 PM
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.