URGENT: Service Call Activity Issue
Hi guys, I have a seriously irritating issue concerning the linking of an activity to service call.
As of Service Pack 01, Patch 36 (at least as far as I know) I get the following error when attempting to create and link an activity to a service call:
Error Code: -5002
Error Description: A service call activity does not exist
I use the folliwing code;
If oServ.GetByKey(MRI) Then
If DocType = "QT" Then
oAct = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oContacts)
oAct.Activity = SAPbobsCOM.BoActivities.cn_Task
oAct.CardCode = oServ.CustomerCode
oAct.DocEntry = DocID
oAct.DocType = 23
oDoc = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations)
If oDoc.GetByKey(DocID) Then
oAct.Notes = "Sales Quote: " & oDoc.Comments
End If
oAct.Details = "Sales Quote " & DocID & " auto created by MRI " & MRI & ""
If oAct.Add <> 0 Then
oApp.SetStatusBarMessage("Error adding Linked Document Activity for Sales Quote " & DocID & " : " & oComp.GetLastErrorDescription)
oLog.WriteLog("Error adding Linked Document Activity for Sales Quote " & DocID & " : " & oComp.GetLastErrorCode & oComp.GetLastErrorDescription, EventLogEntryType.Error)
Else
oServ.Activities.Add()
oServ.Activities.ActivityCode = oComp.GetNewObjectKey
oServ.Activities.SetCurrentLine(oServ.Activities.Count() - 1)
End If
If oServ.Update <> 0 Then
oApp.SetStatusBarMessage("Error linking Expense Document " & DocID & ":" & oComp.GetLastErrorDescription)
oLog.WriteLog("Error linking Expense Document " & DocID & ":" & oComp.GetLastErrorCode & "-" & oComp.GetLastErrorDescription, EventLogEntryType.Error)
End If
the Activity is added without any problem, but the error comes when linking it to the Service Call (oServ.Update)
Can you please help, I'm going insane with this problem.
this is how i got it to work:
ServiceCalls sc = null;
sc = (ServiceCalls)company.GetBusinessObject(BoObjectTypes.oServiceCalls);
if (!sc.GetByKey(callId))
throw new Exception("Failed to add service call activity! Service call does not exist!");
if (sc.Activities.Count == 1)
sc.Activities.SetCurrentLine(sc.Activities.Count - 1);
string temp = sc.Activities.ActivityCode.ToString();
if (!string.IsNullOrEmpty(temp) && !temp.Equals("0"))
sc.Activities.Add();
else
sc.Activities.Add();
sc.Activities.SetCurrentLine(sc.Activities.Count - 1);
sc.Activities.ActivityCode = int.Parse(lastAcctivity);
if (sc.Update() != 0)
company.GetLastError(out errorCode, out errorMsg);
if (null != sc)
System.Runtime.InteropServices.Marshal.ReleaseComObject(sc);
sc = null;
throw new Exception(errorCode + " -> " + errorMsg);
You could either use that piece of code or make an insert in SCL5.
Similar Messages
-
Hi all,
Does anyone know how to create a service call activity? I've created a service call but now I need to create an activity for that service call. The DI help file states that you need to specify the ActivityCode, and then I assume you call the Add method.
But where or how do you obtain an ActivityCode? I've tried setting it to the newly created service call and also to a value of 1 but both of these attempts did not work.
Also the Add method does not return a value, so you can't determine whether or not the activity has been created unless you look at the service activiy table or the activity screen.
Does anyone else have any experience in this area?
Regards, LitaIf you create the activity first, this will give you an activity code which you can then use for the service call activity object.
Here is a sample adding a new activity to an existing service call.
Private Sub ServiceCallActivities()
Dim sboServiceCall As SAPbobsCOM.ServiceCalls
Dim sboContact As SAPbobsCOM.Contacts
Dim lngDocEntry As Long
'Create a new Activity
Set sboContact = sboCompany.GetBusinessObject(oContacts)
sboContact.CardCode = "SLU003"
sboContact.Closed = tNO
sboContact.ContactDate = Date
sboContact.Details = "Details...."
sboContact.Notes = "Sample notes..."
sboContact.DocType = oServiceCalls
sboContact.DocEntry = 31
sboContact.Add
'Get Activity Code
lngDocEntry = sboCompany.GetNewObjectKey
'Assign Activity to Service Call
Set sboServiceCall = sboCompany.GetBusinessObject(oServiceCalls)
sboServiceCall.GetByKey 31
sboServiceCall.Activities.Add
sboServiceCall.Activities.ActivityCode = lngDocEntry
sboServiceCall.Update
End Sub
John. -
Service Call Activity's attachments missing/not adding
Hi Experts,
First off, some technical data. We have SAP Business One 9.0(9.02.220) PL 12 running on MS Windows Server 2012 R2 Standard ontop of MS SQL Server 2012
Now as the title suggests, when adding attachments to activities in a service call through the DI-API, they do in-fact not get added to SAP(once you check the actual activity).
Strange thing is that this was working a couple of months ago and I cannot seem to get this working. Now to twist things up, in a development environment, with an older database, exactly the same SAP version and on MS SQL Server 2008 R2 - It works fine as it did before.
I remember reading SAP Note 1290959( 1290959 - Missing attachments after upgrading to 2007 versions), which pretty much describes our situation.
I cannot find the SAP note relevant to my situation. Does anyone know whether this is a known issue or am I just blind and overlooking the SAP note.
Thanks!Hi Rikus,
While connecting on each environment, do you change the database server type?
Are you using DIS alone, or with B1WS and in such a case, are you using the version 1.2 which is specific to V9?
Regards,
Eric -
Verizon - Service already active issue
Hi,
I'm having issues with an iPad that I bought a couple of months ago. I bought it and I've never used the Verizon data plan and recently tried to enter all my details to use it and I started getting in the mess that Verizon has created for iPad. I get this dialog when I try to view account in Cellular data setting. It says "Your ipad is already active on a subscription that cannot be managed on this device". What does this mean? I've spent more than 12 hours cumulatively between customer reps and the store guys but they keep pointing me to one another and no one has resolved it. I spoke to an apple rep and he said that it's a Verizon issue and they can't do anything. I'm wondering why did I pay around $900 to buy a piece that doesn't do what it should do. What are my options now? Help please I'm super frustrated but I'm trying keep my calm.
-Kalyan.Spoke to cust rep and got a new sim card which resolved this issue
-
Service Call in SBO 2005 B PL 38 - Activity done but not added to call
Hi All,
I have updated PL 38, SBO 2005 B, I had created Service call, it was created successfully, now i have done activity of return but it dosent add to activity tab and gives us error -> "Generate SCActivity : A Service Call Activity dose not exist"
Can any one has idea or solution of this please.
With Warm Regards
Chintesh SoniHi
I am not sure note :891809 is suitable for your issue or not.
this note is about "The Activity exists but it seems that there is no link saved between
Service Call and Activity."
hope it could be helpful. -
Unable to deserialize HTTP response content - SharePoint Designer Call Web Service Workflow Activity
I am creating a workflow using SharePoint Designer 2013 and I'm using the call HTTP web service action.
The web service call works (it is for a text messaging service, and I get the text message to my phone) however the workflow stops at this point with internal status "suspended" and gives the error message below when clicking on the "i"
icon.
I have tried setting the Accept and Content-Type request headers to "application/json; odata=verbose" (minus the quote marks) as other posts suggested but this doesn't make a difference (e.g. here: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/f0b18411-87d1-466b-aab0-1a0093605ed4/workflow-cannot-read-json-after-latest-sp15-patches?forum=sharepointdevelopment).
I tried adding in the Content-Length header too but that made no difference.
I tested calling another web service (https://sharepointurl/_api/contextinfo) and this works fine.
Is there any way to get the workflow to accept this XML as the response? I don't actually really need anything out of the response content, but I do need the workflow to carry on after this step and carry out other activities after this call.
Error message:
Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.IO.InvalidDataException:
Unable to deserialize HTTP response content. Expected ContentType : 'application/json', 'text/plain' or 'text/html', Received ContentType : 'text/xml'. Content (truncated) : '<?xml version="1.0" ?><outbound-message-delivery messageId="35d60bd2-a829-4382-8189-7a74de2d1cca"
isError="false"><recipient msisdn="6427xxxxxxx" isError="false"></recipient></outbound-message-delivery>'. ResponseStatusCode : 'OK' Request Uri : 'https://www.txtserviceurl.co.nz/api/3/sms/out?to=6427xxxxxxx&body=test+from+workflow'
at Microsoft.Activities.Messaging.SendHttpRequest.OnReceiveResponse(NativeActivityContext context, Bookmark bookmark, Object value) at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) Exception from activity SendHttpRequest HttpPost Switch<String> Sequence Microsoft.SharePoint.WorkflowServices.Activities.CallHTTPWebService
Stage 1 Sequence Flowchart Sequence TestingHi,
Thank you for your post.
I'm trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Best Regards,
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Lisa Chen
TechNet Community Support -
Removing a linked Activity from a Service Call via the DI Server
Has anyone done this or something similar? Below is the XML sent and received while trying to remove the last linked activity. I get a successful response but the Service Call isn't updated. If I try and remove an activity that isn't the very last I get an error. Am I doing something wrong, or is this a bug?
(XML posted below as it isn't previewing properly)Original XML:
<?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><GetByKeyResponse xmlns="http://www.sap.com/SBO/DIS"><BOM><BO><AdmInfo><Object>oServiceCalls</Object></AdmInfo><ServiceCalls><row><ServiceCallID>1</ServiceCallID><Subject>tecbician issue</Subject><CustomerCode>C20000</CustomerCode><CustomerName>Norm Thompson</CustomerName><ContactCode>1</ContactCode><ManufacturerSerialNum></ManufacturerSerialNum><InternalSerialNum>A6-000011</InternalSerialNum><ContractID>0</ContractID><ContractEndDate></ContractEndDate><ResolutionDate></ResolutionDate><ResolutionTime>0000</ResolutionTime><Origin>0</Origin><ItemCode>A00006</ItemCode><ItemDescription>HP 600 Series Inc</ItemDescription><ItemGroupCode>102</ItemGroupCode><Status>-3</Status><Priority>scp_Medium</Priority><CallType>0</CallType><ProblemType>0</ProblemType><AssigneeCode>1</AssigneeCode><Description></Description><TechnicianCode>0</TechnicianCode><Resolution></Resolution><CreationDate>20100323</CreationDate><CreationTime>2336</CreationTime><Responder>1</Responder><UpdatedTime>1446</UpdatedTime><BelongsToAQueue>tNO</BelongsToAQueue><ResponseByTime>0000</ResponseByTime><ResponseByDate></ResponseByDate><ResolutionOnDate></ResolutionOnDate><ResponseOnTime>1428</ResponseOnTime><ResponseOnDate>20100325</ResponseOnDate><ClosingTime>0000</ClosingTime><AssignedDate>20100323</AssignedDate><Queue></Queue><ResponseAssignee>1</ResponseAssignee><EntitledforService>tNO</EntitledforService><ResolutionOnTime>0000</ResolutionOnTime><AssignedTime>2337</AssignedTime><ClosingDate></ClosingDate><U_Tested>2</U_Tested><U_Comment>Updated via a web service through the DI Server2</U_Comment><U_Type>hmm</U_Type></row></ServiceCalls><ServiceCallActivities><row><LineNum>0</LineNum><ActivityCode>1</ActivityCode></row><row><LineNum>1</LineNum><ActivityCode>2</ActivityCode></row><row><LineNum>2</LineNum><ActivityCode>3</ActivityCode></row></ServiceCallActivities><ServiceCallInventoryExpenses><row><LineNum>3</LineNum><PartType>sep_NonInventory</PartType><DocumentType>edt_Invoice</DocumentType><DocumentPostingDate>20100325</DocumentPostingDate><DocumentNumber>1100001</DocumentNumber><StockTransferDirection>bos_TransferToTechnician</StockTransferDirection><DocEntry>96</DocEntry></row></ServiceCallInventoryExpenses></BO></BOM></GetByKeyResponse></env:Body></env:Envelope> -
Adobe customer service wont adress issue with 3 month free trial activation code
I bought a Sandisk HDHC card from Fryes.It have an activation code for 3 free months freee Creative Cloud and /Lightroom.When I tried the code it was invalid.When I tried the online chat,they gave me a lot of ********.Will I get the 3 months or will I post this on every SOCIAL MEDIA SITE?.ADOBE NEEDS TO WISE UP!!!
Its an ADOBE advertisement with their name on it.Product has activation code with it and is still valid.Adobe WONT LIKE ME by the time its over.
From: ssprengel <[email protected]>
To: al conlon <[email protected]>
Sent: Monday, January 12, 2015 10:32 PM
Subject: Adobe customer service wont adress issue with 3 month free trial activation code
Adobe customer service wont adress issue with 3 month free trial activation code
created by ssprengel in Adobe Creative Cloud - View the full discussionI would call Fry’s about it, not Adobe. You didn’t pay Adobe, you paid Fry’s, right? If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7090387#7090387 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7090387#7090387 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following" Start a new discussion in Adobe Creative Cloud by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624. -
Unable To Call Active FM Through Service Call - After Adding To a TP
Hi,
I am facing a weird problem.
I have created a FM "Z_GENERIC_SERVICE" which is remote enabled. I have radio button for Remote Enabled and Start Immediately selected.
Initially this FM/RFC was a local object (in $TMP package), created in local Function Group.
I was able to execute this RFC from WDJ as well as from WDA via service calls.
But later, I added this particular RFC to a Transport request. Hence it is inside a newly created Function Group now.
And additionally, I recreated the service call to this RFC inside WD Component.
This FM is in active state!
Now while running application, I get following error:-
The following error text was processed in the system KLL : The function module is not active or contains no code.
The error occurred on the application server KLL_10 and in the work process 3 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: EXECUTE_Z_GENERIC_SERVI of program /1BCWDY/E6VJ1B35GQA0PLHLCWNC==CP
Method: IF_COMPONENTCONTROLLER~EXECUTE_Z_GENERIC_SERVI of program /1BCWDY/E6VJ1B35GQA0PLHLCWNC==CP
Method: ONACTIONATESTCALL of program /1BCWDY/E6VJ1B35GQA0PLHLCWNC==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/E6VJ1B35GQA0PLHLCWNC==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Any idea why this is happening?
Thanks and regards,
Amey MogareActually, FM was active but Function Group was inactive!
-
Hi,
I have a FM "HRCA_GETEMPLOYEEDATA_FROMUSER" which retrieves the employee master details for the user whoever logged in ECC. This User id is attached to pernr in HR.
I have copied this FM to "Z" and made changes to import paratemer (USERNAME) as default value to SY-UNAME.
I run this FM in se37, it is picks the logged in user id by default as import parameters and retrives the employee details from Infotype.
However, I have created WD ABAP component using service call with Import and export parameters. Created the context mapping with the view controller via Input fields, submit button (with Actions to execute FM) and table element with data binding to display output details.
However, it throws error message as "No active nametab exists for SY". When I run this application in IE it says USER_NOT_FOUND.
Does the import parameter SY-UNAME of logged user is not allowed to pass in WD ABAP ? Then how to proceed with this one to implement ESS applications using WD ABAP. How the FM should be designed for ESS to used for WD ABAP applications.
Please share your inputs.
Regards,
Anil KumarHi Thomas,
Problem has been resolved. It was only warning message while activation of WD ABAP component (No active nametab exists for SY)
Coding is not much from WD ABAP side. Once service call has been created to WD ABAP component, context mapping is done via component controller to View controller with necessary export parameter.
And the FM is executed in "WDDOINIT" method of view at runtime.
DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->execute_zhrca_getemployeedata_(
Output is displayed via a Table element throug data binding.
User ids are same in ECC and Portal as well. SSO is also implemented successfully in the landscape.
WD ABAP execute fine in Portal via WD ABAP iview.
Thank you very much for your inputs.
Regards,
Anil kumar -
Service Master / Activity Master description change Issue
Dear Experts,
I am facing problem with Service master / Activity Master description change problem.
Steps in the problem -
1) Service Master / Activity Master created.
2) Long term purchase order (with large quantity) is created.
3) Service entry sheet and Invoice has been posted for the Purchase Order.
Due Service master / Activity master description change requirement from client, description of the
Services are changed.
But it is not updated in Purchase order. (As purchase order has been created before service master description change)
and when i am trying to post next service entry sheet with reference to the long term purchase order created,
it is not adopting the new one service description.
Thanks in AdvanceHi Kiran
The solution to your issue could be achieved as follows:
In the item level 'Service' tab for the corresponding PO line item, change the quantity to which you have already made Service Entry sheet. Then create a new line item with the Service number, once you enter the Service number you would see the new description here. Then when you create a Service Entry sheet with reference to PO, the system would ask you to select one of the two entries you have in PO. Here select the new entry which you have made.
Thanks
Prashanth -
How to create Activity to a Service Call
Hi,
how can i create an activity to a service call?
i have to create an activity first and then add a line in the activities collection of the service call, right?
but i always get an error message, when i want to create the contact.
Error-Message: "Invalid Code [OCLG.CntctSbjct]"
What is that? The contact has got a subject!ServiceCalls oSC = (ServiceCalls)oCompany.GetBusinessObject(BoObjectTypes.oServiceCalls);
Contacts oContact = (Contacts)oCompany.GetBusinessObject(BoObjectTypes.oContacts);
oContact.Activity = BoActivities.cn_Other;
oContact.Subject = sFreitext;
oContact.StartTime = Convert.ToDateTime(dtDatum.ToString("yyyy-MM-dd") + " " + sVon);
oContact.EndTime = Convert.ToDateTime(dtDatum.ToString("yyyy-MM-dd") + " " + sBis);
oContact.CardCode = sKundennummer;
int iRet=oContact.Add();
what is wrong? -
Create Activity same as button Activity on TAB Activity of Service Call
Anyone can lead me on the right track with the DI API to create an Activity which is the same as
going in the Service Call , tab Activities and pressing the Activity button at the bottom ?Hi Marc,
You can try this it will help,
Dim oActivity As SAPbobsCOM.Contacts
oActivity = vCompany.GetBusinessObject(oContacts)
oActivity.Activity = SAPbobsCOM.BoActivities.cn_Conversation
oActivity.CardCode = ""
oActivity.Subject = ""
oActivity.ContactPersonCode = ""
oActivity.ContactDate = ""
oActivity.Notes = ""
oActivity.Add()
Thanks & Regards,
Amit -
When calling or receiving calls, after a minute or so, is the call, give notice "call failed, THEN RUNS OUT OF SERVICE, then activated" SEARCHING "and then restoring the coverage. THIS FOR THE 100% of calls
You may have a bad sim, contact your phone carrier and see if you can get a new one.
-
Adding the duration in Activity of Service Call
Hi All,
How to construct a query that will add all together the duration of my Activities in Service Call.
Lets say for example,
Activity 1 .............. 30 Minutes
Activity 2 ............... 2 hours
Activity 3 ................3.5 hours
thnks
vin.Hi,
Try this:
SELECT T0.ParentId,
SUM(CASE T0.DurType
WHEN 'M' THEN T0.duration
WHEN 'H' THEN T0.duration * 60
ELSE T0.duration * 1440
END) 'Duration(minute)'
FROM dbo.oclg t0
WHERE t0.parentId >= [%0\] and parenttype = 191
GROUP by T0.parentid
Thanks,
Gordon
Maybe you are looking for
-
Where could I find MSI G4 4200 64MB Reviews?
-
Printing Problems with Canon Pixma MP830 under 10.5.5.
Hi All. Strange one here. I'll try to keep it short. A client just bought a 24" iMac (running Leopard 10.5.5) and all was great until they tried to connect their Canon Pixma MP830 to it. The client installed connected the printer to the USB port in b
-
Applying a patch to ACS5.3 - change patch file ext ?
hI All About to apply a patch for the first time on the ACS 5.3 tonight. Ihave tftp'd it onto a directory i have created on the server. However my support hints i may havre to rename the file ? is this true ? copy the latest patch file you got from
-
Defective X230 - what should I do now?
Hello, Two weeks ago I bought a new X230 from Germany's Lenovo online shop. It arrived on Thursday, and my initial experience is, to put it mildly, frustrating. While customizing the system I chose the 3-year onsite next-business-day + accidental dam
-
Hi guys, I have used sql extension to invoke my DB function (Sybase) dateDiff. The filter i have sprcified is like ext:sql ('dateDiff(dd, <b>payDate</b>, '<i>(select sysDate.systemDate from SYSTEMDATE sysDate)</i>')') == calculatedAge ) Here payDate