We are using VB to communicate with SAP throughout DCOM Connector. I was following the VB example to set up the...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Session object and logon to SAP. In the examples, there is no logoff method. I need to set the Session Object to logoff from SAP. However, this sometimes does not log off properly. We found that sometimes we get a error log in the system log(SM21). The log is as following: R49 Communication Error, CPIC return code 020, SAP return code 233 R5A, Conversation ID: 99860671 R64 CPI-C Function: CMSEND(SAP) And in SM04, sometimes the user remains there for a long time. Here is the VB code that I am using to logon and end the program. Set objQuoteSession = CreateObject("SAP.QuoteCreationSession") objQuoteSession.PutSessionInfo strServerName, UserName, Password, Language, Client Boo = objQuoteSession.Logon(strError) Set objQuotation = objQuoteSession.CreateInstance("CAN.Quote") ................ Set objQuotation = Nothing Set objQuoteSession = Nothing Could you tell me what I did wrong? Is there a proper way to logoff from SAP?
Your code looks correct to me. Please report this as a possible bug to SAP.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.