Error in ATP COM routine

Hello Experts,
User is getting an popup "Error in ATP COM routine atpanc.cpp line 2158"  in ECC while creating a sales order (VA01).
We have SCM ( GATP ) too..
Please help to fix the issue.
Thanks in advance.
Regards
Rahul Chitte

Hi Rahul,
There could have been inconsistency between db tables
and livecache due to this com issue is publsihed by system
Try the below transactions in APO and try creating sales order
OM17
/SAPAPO/ATPQ_CHKCUST
/SAPAPO/ATPQ_CHKUSG
Also check the inbound/outbound queues
Regards
R. Senthil Mareeswaran.

Similar Messages

  • Error while calling COM routines via application prog(return code 1028533-)

    Hello Expert,
    In Interactive Demand Planning ( /SAPAPO/SDP94 ), when I'm trying to load data in a planning book , error
    'Error while calling COM routines via application program (return code 1028533-)' is encountered.
    In my selection id, i have only two locations....there is no material selection. 
    When I select the 1st location and load the data its getting loaded properly.....but when i select the 2nd location and try loading data ...the above error is coming.
    I did run /SAPAPO/TS_LCM_CONS_CHECK but the problem persist.
    Any advise to fix this issue would be much appreciated.
    Thanks.
    Tom

    Hi Tom,
    Please see if below exiting threads help you.
    COM error 40134 in Interactive Planning on SCM 5.0 Support Pack SAPKY50011
    Error for COM Routine application program (return code 40028)
    Thukral

  • 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

  • "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

  • Error for COM Routine application program (return code 40028)

    Hi,
    When we loading data in Planning Book ,we are getting below error
    Error for COM Routine application program (return code 40028)

    Hi,
             Did you try checking your COM build? The COM communicates between your database and Livecache and fetches the data requested. The last time we had this, SAP recommended COM upgrade.

  • Error for COM routine (Return code 40028)

    Dear Friends,
    Need your support in order to tackle this issue.
    Am working on SCM 4.1 ,Demand Planning.When you load the data in to the planning book you get the following error at the bottom:
    "Error for COM routine using application program (Return code 40028)".
    Well further investigation revealed the inconsistency in Live cache.It states the deviation in the start time in storage bucket profile and those in the data base.
    Your feedback on the same is welcome.
    Pramod

    Hello Pramod, 
    You reported the LCA < COM > routine error 40028:: Illegal timestamp in rough timegrid 
    You got this error, when you tried to load the data in to the planning book.
    The error could be due to the fact that the storage buckets profile and the time buckets profile in your application  scenario didn't match.
    Could you please check if they match or not using the report
    /SAPAPO/ADMIN_MVIEW_CONS_CHECK.
    Please check/change the definition of the bucket profiles that they match.
    Solutions may be:
    1) use a time bucket profile in your data view which match the storage bucket profile
    or
    2) deactivate your planning area, set there a storage bucket profile which match a time bucket profile, activate the planning area again and generate your planning book/data view again.
    If you need further assistance on this issue please create the OSS ticket to the component 'SCM-APO-FCS'.                                            
    Thank you and best regards, Natalia Khlopina

  • 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 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

  • COM routine error in Background job.

    Hello All,
    During background process of a job, we found a "Error for COM routine using application program (return code 40.301)" for a CVC. It caused a backgroung job to fail.
    Could you please throw light, why this error comes only for this CVC ( as had the same instance before for the same CVC ) & how to fix it ?
    Reagrds
    Rahul Chitte

    HI Rahul,
    COM routine errors are generally related to LC errors. There are a number of possible causes for it, the CVC was created when a macro was running or it was deleted from MPOS but not from LC etc etc.,
    Solution to this is go /n/sapapo/msdp_admin --> Go to your planning area --> Double Click --> Look for Extras in Menu --> Go to Consistency check and do a time series consistency check.
    Remember to click Check for Live Cache Anchor and leave 'Repair' unselected.
    This will return what is the error. Once you see the error, you can go back and select the 'Repair' Also and then execute again. This should resolve the problem.
    Hope this is helpful.
    Thanks
    Mani Suresh

  • COM routine error code descriptions in SAP APO - transaction /SAPAPO/OM10

    I had recently encountered a  COM error in SCM APO and wasted a lot of time trying to figure out what the error code actually meant.
    If you ever have this issue, you can use transaction /SAPAPO/OM10 to resolve any COM routine error message.
    You can also check the message class /SAPAPO/OM_TS and possibly some other /SAPAPO/OM* message classes as well. This is where the error message descriptions are coming from.
    Hope this helps.

    Hello Gabor,
    -> As you know, you could use the transaction /n/sapapo/om10 to Display Meaning of COM Return Code.
    -> In case you got a COM error in SCM APO => to avoid a spending a lot of time trying to figure out what the error code actually meant, please, open the OSS message to the component BC-DB-LCA to get the liveCache application support from SAP on this issue.
    Thank you and best regards, Natalia Khlopina

  • 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

Maybe you are looking for