Skip to Content
0
Jan 16, 2012 at 10:10 AM

SPAM upgrade problem

582 Views

Hi All,

I am facing problem while upgrading the SPAM level from version 20 to 44.

I have installed SAP Nw 7.0 and now trying to apply some of the patches and add some add-ons. However, the pre-requisite is to upgrade the SAPM version. Therefore, now I am trying to upgrade it to version 44.

However, while doing this, I am facing a strange problem where in it give me the below error and when ever I am executig the tcode "SPAM" it gives me the below dump:

Short text                                                                                
Syntax error in program "CL_OCS_ENVIRONMENT============CP ".                                  
 
What happened?                                                                                
Error in the ABAP Application Program                                                                                
The current ABAP program "SAPLOCS_CORE" had to be terminated because it has                   
    come across a statement that unfortunately cannot be executed.                                                                                
The following syntax error occurred in program                                                
     "CL_OCS_ENVIRONMENT============CP " in include                                               
     "CL_OCS_ENVIRONMENT============CI " in                                                       
    line 50:                                                                                
"Implementation missing for method "ADAPT_SP_FOR_COMPATIBLE_COMPS". "AD"                      
    "APT_SP_FOR_COMPATIBLE_COMPS"."                                                               
    " "                                                                                
" "                                                                                
The include has been created and last changed by:                                             
    Created by: "SAP "                                                                                
Last changed by: "SAP "                                                                                
Error analysis                                                                                
The following syntax error was found in the program                                           
     CL_OCS_ENVIRONMENT============CP :                                                           
    "Implementation missing for method "ADAPT_SP_FOR_COMPATIBLE_COMPS". "AD"                      
    "APT_SP_FOR_COMPATIBLE_COMPS"."                                                               
    " "                                                                                
" "                                                                                
Trigger Location of Runtime Error                                                                 
    Program                                 SAPLOCS_CORE                                          
    Include                                 LOCS_COREU47                                          
    Row                                     42                                                    
    Module type                             (FUNCTION)                                            
    Module Name                             OCS_SET_ENVIRONMENT                                   
 
Source Code Extract                                                                                
Line 	SourceCde                                                                                
12	*"      IT_UVERS STRUCTURE  UVERS OPTIONAL                                                  
   13	*"      IT_PAT03 STRUCTURE  PAT03 OPTIONAL                                                  
   14	*"      IT_COMP_LAYER STRUCTURE  SPAM_CLAYR OPTIONAL                                        
   15	*"      IT_AVERS_EXT STRUCTURE  AVERS_EXT OPTIONAL                                          
   16	*"      IT_SWF_COMPS STRUCTURE  SPAM_CVERS OPTIONAL                                         
   17	*"  EXCEPTIONS                                                                                
18	*"      ENVIRONMENT_ERROR                                                                   
   19	*"      INTERNAL_ERROR                                                                      
   20	*"----------------------------------------------------------------------                    
   21	* This function is filling global tables and variables with                                 
   22	* the description of a system environment.                                                  
   23	* If IV_CURRENT_SYSTEM is set the content of the local tables                               
   24	* is transfered and the import tables must not be filled.                                   
   25	* If IV_ALL_ADDON_ENTRIES is set even AVERS entries of add-ons                              
   26	* for which the installation/upgrade is only prepared are handed back                       
   27	* If a patch queue for a foreign system should be calculated                                
   28	* at least IT_CVERS has to be defined.                                                      
   29	* If ENVIRONMENT_ERROR is raised there is an inconsistency in                               
   30	* the import tables.                                                                        
   31	* Special PAT03 handling: !!!THIS IS NOT TRUE ANYMORE!!!                                    
   32	* Because table PAT03 is holding system description and                                     
   33	* patch description information the local and the passed over                               
   34	* PAT03 table have to be merged                                                             
   35	************************************************************************                    
   36                                                                                
37	  IF NOT iv_current_system IS INITIAL.                                                      
   38                                                                                
39	**********************************************************                                  
   40	*** calculate queue for the current system environment ***                                  
   41	**********************************************************                                  
>>>>>	    CALL METHOD cl_ocs_environment=>set_current_environment                                 
   43	      EXPORTING                                                                                
44	        iv_all_addon_entries = iv_all_addon_entries                                         
   45	        iv_buffered          = iv_buffered                                                  
   46	      EXCEPTIONS                                                                                
47	        internal_error       = 1                                                            
   48	        OTHERS               = 99.                                                          
   49	    IF sy-subrc <> 0.                                                                       
   50	      IF NOT sy-msgid IS INITIAL AND NOT sy-msgno IS INITIAL.                               
   51	        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno                                   
   52	                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4                                 
   53	                   RAISING environment_error.                                               
   54	      ELSE.                                                                                
55	        MESSAGE e010(tn) WITH 'Could not set the'           "#EC NOTEXT                     
   56	                              'Environment in'              "#EC NOTEXT                     
   57	                              'CL_OCS_ENVIRONMENT'          "#EC NOTEXT                     
   58	                              space                                                         
   59	                         RAISING internal_error.                                            
   60	      ENDIF.                                                                                
61	    ENDIF. 

I dont know how to rectify this problem. Please help me in this.

Regards,

Faisal