"Error for COM routine using application program (return code 40,020)"

Dear All,
Working on 4.1
We are getting the below error while loading the Data into planning book...
"Time Series has to be updated"
After this we updated the storage bucket profile and the fiscal year varient calender.
And after this we are trying to initialize the planning area..but getting the below error...
"Error for COM routine using application program (return code 40,020)"
So then we try to run the LCM CON check  , but here also we are getting the  below log...
"Inconsistent time series initialization horizons"
We teasted all the above in TEST system , but we are not facing any issue.
Plz plz help us to resolve the same.
Regards,
Rajesh Patil

Hello Rajesh,
COM error 40,020 generally indicates that no Time Series exists for
the characteristic combination that is being loaded or saved.
In certain cases it could be related to missing Time Series for aggregates.
Therefore, performing a consistency check for the relevant planning area by running the program
/SAPAPO/TS_LCM_CONS_CHECK is usually the first option.  You could also check the relevant planning
object structure and any aggregates using the programs /SAPAPO/TS_PSTRU_TOOL and /SAPAPO/TS_PSTRU_CONS_CHECK.
Additionally, please make sure that the time series exists for the horizon for which data is to be loaded. Should all these not resolve the issue, the problem will be resolved by deinitializing & reinitializing the time series.
Please note that deinitializing of the the planning area will lead to data loss, so please take the backup of your data before you
deinitialize the planning area.
Hope this helps.
Regards,
Ade

Similar Messages

  • Error for  COM routine using application program (return code 40069)

    Hi,
    In our planning book, sometimes, when we change a value and save, we are getting a pop up with the message "Error for  COM routine using application program (return code 40069)". When we click ok, the value in that cell is reset to the previous value.
    I initially thought this is due to duplicate CVCs and ran the consistency checks, /SAPAPO/TS_LCM_CONS_CHECK and /SAPAPO/TS_PSTRU_CONS_CHECK. I found few and corrected them. Now even after correcting them, I am still getting this COM error.
    I could not find any SAP notes on this.
    I switched on the SQL trace in ST05 and executed the same operation to get the COM error.
    I noticed this part of the trace that is unusual and I am guessing that is what the system is doing when I get the error.
    Can somebody please explain me the meaning of this attached trace?
    http://spreadsheets.google.com/pub?key=pMjKR_3qLaxblBDDPfRt6cw
    what does the SIM_SIMSESSION_CONTROL do?
    Does CALL USER.SAPTS_AGGMULT_TIMESERIES  mean there are duplicate time series?
    Thanks.

    I may not be technical person but may be the following thread on SIMSESSION may help.
    SIM Session
    ST05 trace only gives DB level traces. It would not give you traces of things happening in Live Cache since there are stored DB procedures that are called for LC activity.
    Did you do OSS search on "return code 40069" ? CHeck OSS note 863244. See if it is applicable.

  • "Error for COM routine using application program (return code 1028514-)"

    Hello Experts,
    We have one issue in SAP SAP SCM 5.10.
    When we are accessing the SNP Planing book, Now a days every often we are getting kicked out of the Planning book
    with the error message "Error for COM routine using application program (return code 1028514-)"
    How to rectify this,..Please advice /suggest
    Regards,
    Ramesh

    Sorry, I copy the content as below:
    Error -28514
    Version Not Found
    You attempted to access an OMS version, the liveCache infrastructure to store a Simulation Version, which does not exist (any longer).
    On a productive system this error should only occur in exceptional situations because liveCache checks whether the simulation exists beforehand and returns an Error 17831 if this is not the case.
    Reasons (=exceptional situation) for an error -28514 are:
    a transactional simulation (Simulation Version) is older than liveCache parameter MaxRetentionTime (default: 8 hours). In this case, the OMS version (more precisely: the corresponding consistent view) can be deleted (asynchronously) by liveCache and an error -28514 will occur if the application tries to use the transactional simulation again.
    a transactional simulation (Simulation Version) is older than liveCache parameter MinRetentionTime (default: 1 hour) and the data area usage exceeds 90%. In this case, the OMS version (more precisely: the corresponding consistent view) can be deleted (asynchronously) by liveCache and an error -28514 will occur if the application tries to use the simulation again.
    If liveCache deletes an OMS version due to one of the reasons above, a corresponding notice can be found in liveCache's knlmsg file (cyclically overwritten!).
    Error -28833
    Error -28833 ("Consistent view has been cancelled") occurs instead of an error -28514, if the an OMS version is deleted while a parallel liveCache call is still using this OMS version.
    Malfunction Test
    If this error occurs during LCAPPS internal malfunction tests, it indicates that the preceeding provoked exception has not been handled correctly. During the handling of the provoked exception the OMS version is dropped automatically. As the malfunction test program catches the exception which would normally lead to a shortdump, it either has to recreate the current simulation in liveCache or to ensure that it is not used any more.
    Error 17831 does not occur in this situation, because the keyed object representing the simulation (OMS version) is not deleted along with the version and can therefore still be accessed.
    Best Regards,
    Ada

  • Error for COM routine using application program (return code 40.301)

    Hi All,
    We are loading data in the DP book interactviely and then trying to Execute the Update Quantity button. The error message given is "Error for COM routine using application program (return code 40.301)".
    We are on APO 5.0 and have the highest Support Pack of SAPKY50011.
    I have searched in the SAP notes and one note 1050350 talks about a similar issue however the corrections mentioned are already there in our system and there the desired SP is SAPKY50010.
    Can anyone tell what could be the reason for such error and how to resolve the same.
    Thanks
    Harsh

    Hi Senthil / Vijaya,
    Thanks for your prompt response.
    Well first responding to Senthil
    - Issue is not reproducable in Dev or Q systems.
    - How to check the application logs during the time of errors
    - Yes I have checked system locks they are clear
    - We have run OM 17 and TS consistency checks but still the error persists.
    I will go through the notes refered by you and see if it is of help.
    Vijaya
    - Yes you are Correct that for the related keyfigures the tick "No Negative stocks is there" also the tick for Fixed Values is also there. But the concern is that it was running fine earlier with the same settings.
    To give you more inputs perhaps this is being run with the Sales Order History and the key figure which is in consideration is a Sales Override.If it is the negative values that are causing the problem they how can we avoid that figures?
    Looking forward from hearing from you guys
    Thanks,
    Harsh

  • Error for COM routine using application program (return code 40,134)

    Hi,
    I am facing Error while loading P-book
    Error for COM routine using application program (return code 40,134)
    My system details are
    SC2 system is SCM 7.0 and support pack SAPKY70002
    i have checked following thing before posting it but dint helped.
    1) SAP Notes 863244, 944254 -Not relevant to my system.
    2) Checked Livecache performance.
    3) Checked application logs during the time of error
    4) Carry out livecache inconsistency check and check any errors.
    let me know your expert views on this.
    Regards.
    Sandeep K.
    Edited by: khaire sandeep on Jul 27, 2009 4:21 PM

    Hi Sandeep,
    If you have de-intialised the planning area and intialised agian the com routine errors will be washed out, but still it is surprising.
    i guess this is something with the version that we are using in the planning area should have some issues.
    i prefer you to run the re-oraganisation check for the vesion if not done earlier.
    /SAPAPO/TSLCREORG - Check LiveCache Time Series Data
    And please dont look at the issue only at planning area level, pls explore your circumstances at the whole planning areas and commom objects like Storage bucket profiles.
    Yarala

  • Error for COM routine using application program (return code 40,053)

    i get the below error while running process chain from APO to BW system.
    Error for COM routine using application program (return code 40,053)
    Message no. /SAPAPO/OM102
    Diagnosis
    An application program has called a COM routine. During the process, an error occurred.
    Message number /SAPAPO/OM102
    Return code 40,053
    Error code
    please let me know how to proceed.I am not able to get a relevant note either.

    not ansered

  • Error for COM routine using application program (return code 40,075)

    Hi Experts,
    I am facing the problem to save in the Forecast in interactive planning book after executing the univerate fcst.
    It is saying "Error for COM routine using application program (return code 40,075)" when i save it in interactive
    planning book.
    The is happening to only one product among in the list of selections in the selection profile.
    What could be the reason, what i have to do to save my forecast in interactive planning book.
    it is not showing any error message for other products in the selection profile.
    please help me

    Hello Bhushan,
    The problem may be becuase your forecast keyfigure has fixed values in it. After forecast, the new values will be different but it cannot be saved since the values in your forecast keyfigure is fixed. So please undo fixing from your forecast kefigure inorder for the new values to be saved. Also you can check the note 1437685 inorder to have warning message.
    Thanks and Regards,
    Nithin.

  • Error for COM routine using application program (return code 40.022)

    Hi,
    When iam loading the data into the DP planning book iam getting the "Error for COM routine using application program (return code 40.022)" error.
    How to rectify this,
    Regards,
    Vignesh

    Hi,
    Thank you for your answers. the problem solved now, i did the consistency check for the Planning Area in the background.
    The COM error occurred coz i was trying to change one KF setting in the active PA in the foreground, and when i did the same in the background it worked..
    Regards,
    Vignesh

  • Error for COM routine using application program (Return Code 40301)

    Hi Experts,
    Currently we are working on SCM 5.1 version.
    We are facing one issue. When we are trying to save one particular KF the system through below error
    "Error for COM routine using application program (Return Code 40301)"
    But when we save other KFs then data save successfully.
    This may be resolve by running consitancy check but if the inconsistancy is the issue then it should impact all the KFs.
    Can anyone help me to find the correct reason & solution?
    Thanks & Regards
    Sujay

    Dear Sujay Joshi ,
    The COM ERROR 40.301 means that the key figure became negative although this is not permitted.
    You need to check the setting of the key figure in your planning area and ensure that you have setup the respective key figure(s) accordingly (not allow negative values).
    If you believe that the negative value is not correct you have to reinitialize the planning area, after correcting the same. Please do a backup of the planning area before reinitializing.
    Please refer to the following SDN Thread for more information about the COM ERROR 40.301.
    How to allow or not allow negative values in key figures for SNP
    Check Note 944254. Also check the KF for Sales history or Statistical Fcst. where the tick negative values not allowed should be there. Sometimes calulation of the Praportional factors also causes te negative values getting calculated for certain KF. You will have to do thorough research to ascertain where from the negative value are coming into the KF.To start with reading the note that I have mentione above.
    I hope this helps.
    Regards,
    Tibor

  • Error for COM routine using application program (return code 40028)-

    Hi All,
    When iam to load data from selection data to planning book, iam getting the above error with the below message.
    Message- /SAPAPO/OM102.
    I did the time series consistency check, but still i face this error. Kindly help
    Rgs
    Krishna

    Hi All,
    The reason why iam getting this is may be due to the difference in the storage bucket profile and the time bucket profile iam using.
    Infact i changed the previous time bucket profile with a new one i created with a new fiscal year variant. This doesnt match with my storage bucket profile.
    But if this is the problem then, i did the same thing for other planning book, it worked fine.....why??
    Release version of the system iam using is 4.1.
    Is there any other way apart from de initialising my planning area and keeping my storage bucket profile and time bucket profile in Sync.
    Coz  we cannot afford to de initialise my planning area now.
    Thx for your help.
    Your inputs will be highly appreciated.
    Rgs
    Krishna

  • Error for COM routine using application program (return code 1028533-)

    Hi Gurus,
    I'm encountering the error message below when im loading specific selection data in the Planning Book.
    A similar topic was already raised but when i executed all the recommended Consistency checks, the error still exists.
    Hope you can help me on this!
    Thanks in advance!
    Napoleon

    Hi,
           Since you already did all the consistency checks please check your COM build. The last time we had this issue, we did all the consistency checks and finally found that the COM build is not updated. Upgrading COM build solved our issue. Please check with your basis team about this.
    Please let us know how you solved your issue.

  • Error for COM routine using application program

    Hi all,
    I'm trying to extract data from livecache to a BW cube, but appears this mistake:
    Message no. /SAPAPO/OM102
    Diagnosis
    An application program has called a COM routine. During the process, an error occurred.
    Procedure
    Contact your system administration.
    Procedure for System Administration
    Contact SAP Service. Specify the application component in which this message occurred.
    You should also specify:
    Message number /SAPAPO/OM102
    Return code 40,020
    Error code
    Thanks

    Hi
    COM errors are a bit cryptic. From your description it sounds like this is a data issue and depending on the type of object the answer is probably in the CIF queue. The data is visible from the CIF queue which provides a way to find the problem. You must be manipulating data either on the outbound/inbound CIF or in the save of the data prioir going to the CIF. It sounds like a operation in a recipe or order has components that are directly assigned to the operation and when data going into APO the data is mapped for the live cache routine which is then not correct according to data integrity rules within live cache.
    Can you provide more info such as what was passing thru the CIF - an order? Is the CIF queue still intact or was it deleted? Can you past the actual error message?
    Many thanks
    Kiran

  • Error COM routine using Application program (return code 315)

    Hi,
    Have anybody come across and resolved the above error message? It points to LC routine in its detailed error text in the CIF queue, but no further details...
    SAP gives a reason that components must be assigned to phases and not operations, and that is how it is done..
    Any more clue on this.
    Thanks.
    GP

    Hi GP
    COM errors are a bit cryptic. From your description it sounds like this is a data issue and depending on the type of object the answer is probably in the CIF queue. The data is visible from the CIF queue which provides a way to find the problem. You must be manipulating data either on the outbound/inbound CIF or in the save of the data prioir going to the CIF. It sounds like a operation in a recipe or order has components that are directly assigned to the operation and when data going into APO the data is mapped for the live cache routine which is then not correct according to data integrity rules within live cache.
    Can you provide more info such as what was passing thru the CIF - an order? Is the CIF queue still intact or was it deleted? Can you past the actual error message?
    Andy

  • Error while calling COM routines via application program (return code 40028

    Hi ,
    When i am doing these steps i am getting the following error.
    1.from SAP menu...Demand Planning>Planning>Interactive Demand planning
           2.after the transaction gets loaded...click on the 2nd button that is selection window from the left ALV menu..on the top.
            3.type the below
    show -  Material
    APO Planning Version - K01
    Material  - 12345
    4.Material 12345 will be loaded
    5.Double click and i am getting  ''error Error while calling COM routines via application program (return code 40028)''
    Note : Observed that this is not happening everytime, but happening alternatively.
    Can any one say what is the problem for Error.
    Thanks
    Gerard

    Hello Gerard, Hello Krishna,
    -> The liveCache application failed with COM error::
                                   40028 Illegal timestamp in rough timegrid
    More details about COM error 40028 you will see in TA /n/sapapo/om10
         -> Return code: 40028 -> execute ::
    Invalid time stamp in the time buckets profile relation     
    ( om_ts_tgrelinvalidstamp )     
       < click on '?' mark >
    -> Open an OSS message in accordance with SAP note 167280 if further help
         needed to solve the issue on your system.
    Thank you and best regards, Natalia Khlopina

  • COM routine error using application program (return code 40,134)

    All,
    In Interactive Demand Planning ( /SAPAPO/SDP94 ), when im trying to load data in a planning book ther is an error 'Error while calling COM routines using application program (return code 40,134)
    is encountered.
    What should I do ?
    Regards
    Steve

    Hello Steve,
    Return code 40.134 means a key figure operation tried, via a key figure anchor, to dereference a key figure object that does not exist in the liveCache.  This problem is due to master data inconsistency in the application.
    You might as well want to open an OSS message in accordance with SAP Note 167280.
    Hope this helps,
    Raymond

Maybe you are looking for