on 09-21-2014 3:34 PM
Hi All,
I have an issue in recent our SAP upgrade from 882 to SAP 9, I noticed that my application will crash if GetByKey() method receive a none exist key value. For example, items.GetByKey(item_code) for ItemMaster, if the item_code doesn't exist in SAP OITM table, then my application crashes. The exception says "Attempted to read or write protected memory. This is often an indication that other memory is corrupted" But if I pass a exist ItemCode value then no exception. I am using 8.8 DI dll, but I tried DI 9.0, seems same result. I tried for BP object, similar issue. Seems my try/catch can't capture this exception. Any idea?
P.S. Everything is running well in my previous 882.
Thanks,
Lan
Hi All,
Thank all your replies. I did try use SAP 9 DI reference, it works in our SAP 9 lab but not our real live environment(I mean after upgrade to SAP 9). My system admin mentioned to me that there could be some hot fix patch not exactly same between our SAP 9 lab and live environment. But regardless, how come DI 882 is not supported by SAP 9 anymore? Is any official announcement talking about this issue? Any one know it? The main reason is that we have so many DI application in our company, if we switch to SAP 9 DI dll, then we have to re-test them. I remember we did it when we upgrade from DI 2007 to 8.8.
Thanks,
Lan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For getting Item name u can get it by "query".
or
try this
Dim oOrder As SAPbobsCOM.Item
oOrder = company.GetBusinessObject (SAPbobsCOM.BoObjectTypes.oitem)
ret = oOrder.GetByKey(ItemCode)
Regards,
Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lan,
can you give some more information, since this error is not reproduceable.
Which patchlevel are you using ?
Is it a 32 or 64 bit OS and project ?
Did you reference the new SBO 9.0 SAPbobsCOM ?
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.