cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to execute SPAM T.code

ganesh_borase2
Participant
0 Kudos

Hello everybody

i have just try ti upload the SPAM patch KD70033.SAR, but at the import following error is rises and herewith the log details. so please suggest me how to solve this problem

Runtime Errors CALL_FUNCTION_NOT_FOUND

Except. CX_SY_DYN_CALL_ILLEGAL_FUNC

Date and Time 27.05.2009 11:11:40

Short text

Function module "OCS_SET_ENVIRONMENT" not found.

What happened?

The function module "OCS_SET_ENVIRONMENT" is called,

but cannot be found in the library.

Error in the ABAP Application Program

The current ABAP program "SAPLSPAM" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was

not caught in

procedure "SPAM_SYNCHRONIZE_PAT03_TEPSIN" "(FUNCTION)", nor was it propagated

by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The program "SAPLSPAM" contains the CALL FUNCTION statement.

The name of the function module to be called is "OCS_SET_ENVIRONMENT".

No function module exists with the name "OCS_SET_ENVIRONMENT".

All function modules are listed in the Function Library (SE37).

-

Possible reasons:

a) Wrong name specified. Pay particular attention to

upper/lower case and underscores ("_").

How to correct the error

Check the last transports to the SAP System.

Is the program "SAPLSPAM" currently being changed?

If an enqueue/dequeue module is involved, is the activation

of the lock object missing in the ABAP/4 Dictionary?

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

"CALL_FUNCTION_NOT_FOUND" "CX_SY_DYN_CALL_ILLEGAL_FUNC"

"SAPLSPAM" or "LSPAMU27"

"SPAM_SYNCHRONIZE_PAT03_TEPSIN"

Function modules with names similar to "OCS_SET_ENVIRONMENT":

OCS_SET_ENVIRONMENT

OCS_MODIFY_ENVIRONMENT

OCS_MODIFY_ENVIRONMENT_FROM_Q

OCS_RESET_COMPONENT

OXDEP_WU_ELEMENT_SET

OCS_GET_SFW_COMPONENTS

OCS_GET_SUB_COMPONENTS

OCS_SETNAME_COFI

OCS_SETNAME_DATA

OCS_GET_COMPONENT_STATE

Information on where terminated

Termination occurred in the ABAP program "SAPLSPAM" - in

"SPAM_SYNCHRONIZE_PAT03_TEPSIN".

The main program was "SAPMSPAM ".

In the source code you have the termination point in line 430

of the (Include) program "LSPAMU27".

The termination is caused because exception "CX_SY_DYN_CALL_ILLEGAL_FUNC"

occurred in

procedure "SPAM_SYNCHRONIZE_PAT03_TEPSIN" "(FUNCTION)", but it was neither

handled locally nor declared

in the RAISING clause of its signature.

The procedure is in program "SAPLSPAM "; its source code begins in line

1 of the (Include program "LSPAMU27 ".

After the error occurred in i have just back to the SAP Easy access code, then again try to run the T.code SPAM then the above said error occurred. so please suggest me how to solve the same

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to reschedule the SPAM update again, i mean just repeat the phase.

let us know if you have any difficultie ASAP.

Regards,

Srinivas.korva

ganesh_borase2
Participant
0 Kudos

Thanks for reply instantly

But My problem is that, I am unable to execute Transaction code SPAM. when i try to run the T.code SPAM, screen display the ABAP Dump

Dump is as Follows

Runtime Errors CALL_FUNCTION_NOT_FOUND

Exception CX_SY_DYN_CALL_ILLEGAL_FUNC

Function module "OCS_SET_ENVIRONMENT" not found.

What happened?

The function module "OCS_SET_ENVIRONMENT" is called but cannot be found in the library

Error in the ABAP Application Program

The current ABAP program "SAPLSPAM" had to be terminated because it has come across a statement that unfortunately cannot be executed.

Error Analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was not caught in

procedure "SPAM_SYNCHRONIZE_PAT03_TEPSIN" "(FUNCTION)", nor was it propagated

by a RAISING clause.

Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated. The reason for the exception is:

The program "SAPLSPAM" contains the CALL FUNCTION statement.

The name of the function module to be called is "OCS_SET_ENVIRONMENT".

No function module exists with the name "OCS_SET_ENVIRONMENT".

All function modules are listed in the Function Library (SE37).

-

Then pleas suggest me how to execute the T.code SPAM

Thanks

Former Member
0 Kudos

Hi,

Can you please logout and login again in 000 with ddic.

Then try.

Thanks Rishi Abrol

ganesh_borase2
Participant
0 Kudos

Hi!

i have already done but no use.

generally, which user used to Upload the patch?, I have use the DDIC, if other than DDIC used what are the drawbacks?

Thanks

Former Member
0 Kudos

Hi,

You can have the Authorization issue and it can be possible that you may get dump in running some reports.

What is your relaese and kernel Patch level.did you upgrade the kernel.is this your fresh installation.

Thanks Rsihi Abrol

former_member184114
Active Contributor
0 Kudos

I believe the function module OCS_SET_ENVIRONMENT is missing in your current system.

I suggest you to export this function module from other system and import it in the current system and check. Hope this would help you.

Regards,

Faisal

Former Member
0 Kudos

How should we import from a different system which has the required function module.

mohitsahu
Participant
0 Kudos

Hello Experts,

I also facing the same problem. How i can import this function module?

Regards,

Mohit

Answers (1)

Answers (1)

former_member187565
Active Contributor
0 Kudos

Dear Ganesh,

At first uncar the sar files.

ganesh_borase2
Participant
0 Kudos

Hi

I have already mention that, I have follow all the procedure to upload the SPAM update, by using the T.code SPAM.but now i have problem that, I am unable to execute the T.cdoe SPAM.

when i am trying to execute the T.code SPAM, then it generate the ABAP Dump which were inform in previous message

Thanks

Former Member
0 Kudos

Hi,

Please let me know there you got this error.

Upload the support pack.

click on upgrade SPAM/SAINT

Run this in background.

if you get dump go back to spam and reschedule it.

if you have new system then set dialog and background process as per you System .Upgrade the kernel before applying patch.

Plese let me know if you have issue

thanks Rsihi Abrol