cancel
Showing results for 
Search instead for 
Did you mean: 

Error COM routine (return code 40,301) in DP

Former Member
0 Kudos

Hi

In SCM 5.0, when we are uploading the data into Pl book, its giving this error. "error for COM routine using appln program (return code 40,301).

I did doing all cons checks, re-initialising PA, etc. There are neither negative values in data nor there any fixings. Basically users have been doing the copy and paste from excel to Pl Book.

Now at a certain material, I cant put my number (48) either by copy/paste or manual input. It throws this error. But it can save some other small nos like 25, 8, etc..

I sent OSS msg to SAP, they said to check for any negative values or lastly to do reinitalise PA and load from backup later, which i hate to do. It looks to me that they didnt investigate, just sent me a general solution.

We are on Support Pack 8. As this problem is occurring only last 2 weeks, i cant suspect suddenly on Supp Pkg. My KF was set to Neg Values not allowed, decimal not allowed and calc type as P.

(Let me also narrate a strange behaviour. We tried to copy the data in small sets. So first we copied 200 materials and able to paste. Second time, when we tried to copy next 200, while pasting, this error comes. So when i copied only 100 from excel, it allowed me to save in Pl Book. next 100 fail, allowed only 50.. so on, now stuck on 1 material. )

Any suggestions will be appreciated.

thanks

Narendra

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi did you ever found a solution for this?

We are facing the same problem in SCM7.0

Tommy

Former Member
0 Kudos

Hi Srinivas,

Yes, I already checked OM10, and saw the same msg. dont have any default macros. And my ABAPer debugged and he found the same msg to raise OSS.

Visu,

I had corrected the inconsitencies, still have that problem.

I have this problem in only 1 PA out of existing 4 PAs. So it may not be the problem with the whole LC.

Let me know pls if you know more options to solve this critical error.

Or do I have to go for the latest SP 13 ? Will it solve this issue ?

currently we are on 8.

thanks

narendra

srinivas_krishnamoorthy
Active Contributor
0 Kudos

Try transaction /sapapo/om10 and put the return code without commas, and this is what I see for 40301

"Negative value not permitted for this key figure"

"Diagnosis

A key figure is defined so that it can only contain positive values.

Setting negative values directly, or entering a value at detailed level that is larger than its fixed aggregate value, and the propagation that is then performed automatically caused a negative value.

Procedure

For this key figure, avoid entering negative values or values at detailed level that are larger than any fixed aggregate values.

If you have not entered negative values for the key figure and there are no fixings at aggregate level, open an OSS message in accordance with Note 167280.

"

I would recommend to deactivate the macros that may be working in default mode, if any just to make sure it works. The other would ofcourse take a help of developer and understand in debug mode the function module or statements that it is failing in.

Former Member
0 Kudos

Hi Visu,

Thanks a lot for your options. and I was reminded of OM17 txn, which was not in memory during this problem. So i ran the check immdly yest, it has some 268,000 + errors in the time series. I am not sure if this error is the cause of my problem. I could not correct these errors due to lack of authn, waiting for that. Will surely let you know about, after i correct this cons, of the problem i was facing.

Only after that, i will think of initialising for other Pl Versions.

thanks, will update you..

narendra

Former Member
0 Kudos

Hi Narendra,

Looks like there is a problem with the COM build in your system. Few things to do:

1. Initialize the same planning area for a different version and check if it is happening in it too?

if it does not, then you have to suspect some data inconsistency in the previous version.

2. Go to MSDP_ADMIN and right click on your planning area, select change key figure settings. Change some parameter like zeros allowed checkbox or unmark another check box or change the deimal places etc. and execute. You should get the prompt asking whether the planning area need to be changed or not. Say yes. If you donot get this, then you are not making enough changes in key figure settings.

After the completion, see if you still get the error

3. Check with your COM build with your basis. "COM" comminicates between the database and livecache and makes sure they are in synch.

4. Check on transactions OM16 and OM17 for consistencies.