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: 

Function code description

Former Member
0 Kudos

Hi All,

In standrad ABAP report program i found code like this...

IF sy-batch IS INITIAL AND

( sscrfields-ucomm = 'ONLI' OR sscrfields-ucomm = 'PRIN' ).

Here i want to know the Meaning of 'ONLI' and 'PRIN'

Function code descripton .. ?or when 'ONLI' triger what action wil perform?

Is there any table for Function codes..?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Upender

sy-ucomm 'ONLI' means the user has pressed Execute.

PRIN means Prnit command has been given.

sy-batch initial means the program is being run in foreground.

Pushpraj

11 REPLIES 11

Former Member
0 Kudos

hi bro....

'ONLI' is the value of sy-ucomm or sscrfields-ucomm if user press F8 on selection screen or execute the program.

'PRIN' is the value of sy-ucomm or sscrfields-ucomm when user give command to print

regards

at run time sy-ucomm or sscrfields-ucomm hold the value of it

Edited by: Mohit Kumar on Feb 5, 2009 12:25 PM

Edited by: Mohit Kumar on Feb 5, 2009 12:27 PM

Former Member
0 Kudos

Hi Upender

sy-ucomm 'ONLI' means the user has pressed Execute.

PRIN means Prnit command has been given.

sy-batch initial means the program is being run in foreground.

Pushpraj

Former Member
0 Kudos

Hi,

'ONLI' is the function code associated with function key F8,so,when u press F8 ,sy-ucomm holds this value.

Former Member
0 Kudos

hi,

ONLI is the function code.

There are several other such function codes ex BU , BS, REFH which you find in various transactions.

You can get the function codes for a specific transaction using recording .

goto SHDB--> new recording --> transaction name. complete the navigation through out the transaction . You return to the BDC recording where you find list of several codes and values displayed across five columns.

check for BDC_OKCODE where you find various functions code performed at each screen number.

Hope this is informative....

Thanks

Sharath

Former Member
0 Kudos

HI,

'ONLI' = Execute

'PRIN' is when user presses a function key that contains the function code PFn in the interface definition.

Hope it answers your query.

Regards

Natasha Garg

Former Member
0 Kudos

Hi,

The code under if will be triggered if the program is running in foreground and execute (F8) or Print command is issued.

If you check in debugging you'll see F8 (execute) sy-ucomm will have value ONLI and Print will have function code PRIN.

Regards,

Sachin

Former Member
0 Kudos

Hi Upender,

Function code 'ONLI' is to catch execute click,

and 'PRIN' is for printing.

Rgrds

Mansi

LucianoBentiveg
Active Contributor

Run your report, go to System->Status

You cna see, "Satus interfase", and his value (%_00 may be), doble click in that value, and you go to menu painter, then you can see what you want.

Regards.

Former Member
0 Kudos

Hi,

sy-ucomm 'ONLI' means the user has pressed Execute(F8).

PRIN means Prnit command has been given.

at run time sy-ucomm or sscrfields-ucomm hold the value of it

If you check in debugging for F8 (execute) sy-ucomm will have value ONLI and Print will have function code PRIN.

So instead of calling explicitly we give sy-ucomm as 'ONLI' or 'PRIN'.

Regards,

Jaya

Former Member
0 Kudos

Hi,

Please find the standard fucntion codes and the corresponding texts...

%ML                  Folder                                      
%PC                  Local file...                               
%PC                  Local file...                               
%SC                  Find                                        
%SC+                 Find next                                   
%SL                  Mail recipient                              
%SL                  Mail recipient                              
&ABC                 ABC analysis                                
&ABC                 ABC analysis                                
&ABC                 ABC analysis                                
&ALL                 Select all                                  
&ALL                 Select all                                  
&AQW                 Word processing...                          
&AQW                 Word processing...                          
&AUF                 Define totals dri...                        
&AUF                 Define drilldown...                         
&AUF                 Define totals drilldown...                  
&AVE                 Save...                                     
&AVE                 Save layout...                              
&AVE                 Save layout...                              
&AVR                 Mean value                                  
&CDF                 Unfreeze columns                            
&CFI                 Freeze to column                         
&CRB                 First column                             
&CRDESIG             Crystal Reports D...                     
&CRDESIG             Crystal Reports Designer                 
&CRE                 Last column                              
&CRL                 Column left                              
&CRR                 Column right                             
&CRTEMPL             Crystal Reports file                     
&DATA_SAVE           Save                                     
&DAU                 Automatic separator                      
&DOF                 Separator always off                     
&DON                 Separator always on                      
&DQS                 Display Quality R...                     
&EB9                 Call up report...                        
&ELP                 Help                                     
&ERW                 Layout Managemen                         
&ERW                 Layout Management                        
&ETA                 Details                                  
&F03                 Back                                     
&F12                 Cancel                                   
&F15                 Exit                                     
&F4                  Possible entries                         
&GRAPH               Graphic                             
&GRAPH               Graphic                             
&IC1                 Choose                              
&ILD                 Delete filter                       
&ILT                 Set filter                          
&ILT                 Set filter                          
&INFO                Information                         
&KOM                 Choose...                           
&LFO                 List status...                      
&LFO                 List status...                      
&LIS                 Basic list                          
&MAX                 Maximum                             
&MIN                 Minimum                             
&NFO                 Selections...                       
&NTE                 Refresh                             
&OAD                 Choose...                           
&OAD                 Select layout...                    
&OAD                 Select layout...                    
&ODN                 Sort in descendin...                
&ODN                 Sort in descending order            
&OL0                 Change layout...                    
&OLX                 Change...                           
&OMP                 Collapse                   
&OPT                 Optimize width             
&OUP                 Sort in ascending...       
&OUP                 Sort in ascending order    
&REFRESH             Refresh                    
&RNT                 Print                      
&RNT_PREV            Print preview              
&RNT_PREV            Print preview              
&SAL                 Deselect all               
&SAL                 Deselect all               
&SAL                 Deselect all               
&SAV                 Save                       
&SUM                 Subtotals...               
&SUM                 Subtotals...               
&UMC                 Total                      
&UMC                 Total                      
&VCRYSTAL            Crystal Reports            
&VEXCEL              Microsoft Excel            
&VEXCEL              Microsoft Excel            
&VGRID               SAP List Viewer            
&XINT                Extended storage ...       
&XINT                Extended storage of SAP Query      
&XPA                 Expand                             
&XXL                 Spreadsheet...                     
&XXL                 Spreadsheet...                     
CARR                 REDETERMINE CARRIER                
CREA                 CREATE ALLOCATION                  
DESELECT             Deselect All                       
DSCT                 Deselect ALL                       
DSEL                 Deselect all                       
LEGEND               Legend Details                     
LEGEND               Legend Details                     
ONLI                 Online                             
P                    First page                         
P+                   Next Page                          
P+                   Next page                          
P++                  Last Page                          
P++                  Last page                          
P-                   Prev Page                          
P-                   Previous page                      
P                    First Page                         
P                    First page                         
PRINT                F8 Create PDS        
PRNT                 Create PDS           
SALL                 Select all           
SDEL                 Deselect All         
SELA                 Select All           
SELECT               SELECT ALL           
SLCT                 SELECT ALL

this all info you can see thru goto

SE38 choose any program where you have maintained GUI status i.e. menu ( in change mode if possible )--> find for set pf_status -->Double click on the pf_status object-->

then choose menu path by placing cursor position

" Function Keys "

on any empty row and then

Edit-->Insert-->Function with dynamic text

.

there you will get small window with F4 option available for Function. then press F4 option .there you can see alll possible function ocdes with texts.

Thanks

Parvathi

0 Kudos

Hi,

I am doing BDC to run the transaction CJI3 and export the ALV output to local file. But while processing the BDC Function code %PC to export the Local file is not taken. And itu2019s giving error as u201CFunction code cannot be selected".

Can any one help me what is the function code I need to use? I am using currently as %PC. And the recording is below:

SAPLSLVC_FULLSCREEN 0500 X

0000 BDC_OKCODE =%PC

Regards,

Satheesh.