cancel
Showing results for 
Search instead for 
Did you mean: 

SPAM - Syntax error in program "SAPMSPAM " Type "PATVERSION" is unknown

former_member229542
Active Participant
0 Kudos

Hi guys, when running SUM for upgrading a system, SPAM was updated from 701/45 to 701/52. During PROPER_IMPORT it ended and SPAM transaction was stating it was locked. After releasing the locks from SM12, the following syntax error shows when starting SPAM Transaction

Its a Solution Manager 7.01 Windows/Oracle 11.0.2.0

disp+work information

--------------------

kernel release                721

kernel make variant           721_EXT_REL

DBMS client library           OCI_10201_SHARE,

DBSL shared library version   721.02

compiled on                   NT 6.0 6002 S x86 MS VC++ 16.00 for NTAMD64

compiled for                  64 BIT

compilation mode              UNICODE

compile time                  Dec  4 2013 16:28:35

update level                  0

patch number                  201

source id                     0.201

Error in the ABAP Application Program

The current ABAP program "????????????????????????????????????????" had to

terminated because it has

come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "SAPMSPAM " in include

"CL_OCS_ENVIRONMENT============CU " in

line 12:

"Type "PATVERSION" is unknown"

" "

When checking Syntax it says

Class CL_OCS_ENVIRONMENT,Public Section

Type "PATVERSION" is unknown  

Tried importing this package at OS level but no luck

J:\usr\sap\trans>tp r3i SAPKD70153 SSM pf=J:\usr\sap\trans\bin\TP_DOMAIN_SSM.PFL -Dsourcesystems= tag=spam -Dclientcascade=yes -Drepeatonerror=8 -Dstoponerror=8

J:\usr\sap\trans>tp r3i SAPKD70152 SSM pf=J:\usr\sap\trans\bin\TP_DOMAIN_SSM.PFL

-Dsourcesystems= tag=spam -Dclientcascade=yes -Drepeatonerror=8 -Dstoponerror=8

tp=>sapparam(1c): No Profile used.

tp=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline

This is tp version 380.08.46 (release 721, unicode enabled)

This is R3trans.exe version 6.24 (release 721 - 26.09.13 - 20:13:07 ).

unicode enabled version

R3trans=>sapparam(1c): No Profile used.

R3trans=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline

R3trans.exe finished (0004).

tp finished with return code: 4

meaning:

  A tool used by tp produced warnings

Finishes OK, but still unable to access SPAM

Any idea how to fix this? Some manual modifications to the program?

Kernel is updated, so please disregard that recommendation.

Thanks a lot in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check if PATVERSION type exists via SE11 tcode.

former_member229542
Active Participant
0 Kudos

Hi Roman, thanks a lot for that hint

Indeed, in SE11, PATVERSION Data Type is shown as NEW, instead Active

After activating PATVERSION domain, SPAM is showing a nex Syntax Error Message, but we are progressing.

Activated other Data Types in NEW status so now i have this error.

The following syntax error occurred in program "SAPLSPAM " in include "LSPAMU67

" in

line 155:

"The data object "OPTIONS" does not have a component called "NO_STDXPRA"

How can i verify that data object?

In SE80 im able to check the sytax, and pinpoint this error

IF options-no_stdxpra <> on.

      options-no_stdxpra = off.

    ENDIF.

*   check the consistency of the data file options combination

    IF ( options-create_df <> on ) AND

       ( options-save_df <> on ) AND

       ( options-save_df <> 'N' ).

      options-create_df = on.

      options-save_df = on.

Thanks!

Former Member
0 Kudos

It seems the right way would be to restore the system to state before update and start again.

former_member229542
Active Participant
0 Kudos

Hi Roman, that option is not viable, since system is being used by customer, and this issue came up during preparations using SUM.

Our options right now would be repair that transaction manually

Answers (2)

Answers (2)

former_member182657
Active Contributor
0 Kudos

Hi Martin,

As said by Mr.Rafikul try to clean up entries from table TRBAT as well as from table TRJOB and try to re import the things again.

Regards,

Gaurav

former_member187565
Active Contributor
0 Kudos

Hi Martin,

Please update your kernel to latest patch available on market place and check.

Regards,

Rafikul

former_member229542
Active Participant
0 Kudos

Hi. The issue is not related to Kernel.

former_member187565
Active Contributor
0 Kudos

Yes Martin ...I just saw that you have clearly mentioned in your note that its already updated.

Do one thing try to clean up trbat table and then try.

Regards,

Rafikul