Service Call Activity
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, Lita
If 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.
Similar Messages
-
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. -
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 -
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 -
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!
-
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 -
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> -
New Activity date in Service Call Activities folder
Hi,
Does anyone know how to get the new activity date that appears in Service Call Activities folder?
Best Regards,
Ana SilvaHi,
Check this if it helps you start off :
SELECT distinct T0.[ClgCode] as ' Activity Number', T0.[CardCode] as ' Business Partner',
T0.[CntctDate] as 'System Date', T0.[Recontact] as 'Activity Date'
FROM OCLG T0 left outer join OSCL T1 on t1.customer = t0.cardcode
Kind Regards,
Jitin
SAP Business One Forum Team -
Outlook Integration - Save Email as activity to Service Calls
Hello Experts, this is my first post.
Could anyone please tell me if it is possible to save an email as an ativity directly to the Service Call activities window from Outlook Integration? If so, how? I only see access to Business Partners and Sales/Purchasing docs within Outlook. My customer would like to integrate this feature for their service/support department.Hi Dale,
I have the same problem, unfortuantely it does not seem to be a high priority item as you have never had a response.
Hopefully somebody might look into this.
Cheers -
How can I associate an A/P invoice to a service call?
Hi,
Customer wants this:
1. They (Co. A) gets a service call from their customer say for lump sum of 400 dollars.
2. They (Co. A) give out a contract to technician say at 45 dollars an hours and travel expenses. This is SERVICE ITEM for a total expense of say 45*2+120=210.
3. Technician (A Vendor BP in SAP Business one) produces a PO. Co. A pays off the Technician.
How can I create a Service Call to show both ends of incoming revenue and outgoing expense in the service call?
Appreciate your help.
Thank you.Dear Syed Aleem,
I have described some ideas, but if these ideas do not help you, please come back to us with more details of what you need.
1. They (Co. A) gets a service call from their customer say for lump sum of 400 dollars.
Here you can create the servce call with the information in the General Tab and in the Remark and in the subject. If this is not enough I would suggest to create an activity and write your remark and content in the activity.
You can create an activity clicking on the Activity tab. In the activity there is a tab called linked documents and you can add documents linked to the activity and service call.
2. They (Co. A) give out a contract to technician say at 45 dollars an hours and travel expenses. This is SERVICE ITEM for a total expense of say 45*2+120=210.
You can use anothe activity or you can add Return from Technician under the Expenses tab of the Service call.
3. Technician (A Vendor BP in SAP Business one) produces a PO. Co. A pays off the Technician.
Now, create another activity (or your first one) and add the Purchase order and the payment to it.
Please, let me know if my suggestions help you.
Regards,
Marcella Rivi
SAP Business One Forums Team -
Error while calling SPML web service call in OIM 11g
Hi,
While testing the SPML web service call, I am getting the "failure in security check" errors.
And I have attached the request and responce .
Request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns:ns1="urn:names:spml:ws:header">
<ns1:ServiceHeader>
<ns1:serviceId/>
</ns1:ServiceHeader>
<wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>xelsysadm</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXXXXX</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body xmlns:ns2="http://xmlns.oracle.com/idm/identity/spmlv2custom/Username">
<ns2:validateUsernameRequest xmlns:ns3="urn:oasis:names:tc:SPML:2:0" requestID="12345" executionMode="synchronous" locale="en" policyURI="http://www.sample.com/string/string">
<ns2:capabilityData mustUnderstand="true" capabilityURI="urn:oasis:names:tc:SPML:2:0:reference"/>
<ns2:username>TCS1000</ns2:username>
</ns2:validateUsernameRequest>
</soap:Body>
</soap:Envelope
Response:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault xmlns:ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<faultcode>ns0:FailedCheck</faultcode>
<faultstring>FailedCheck : failure in security check</faultstring>
<faultactor/>
</env:Fault>
</env:Body>
</env:Envelope>
I have attached the log file from OIM
####<Apr 26, 2012 10:27:13 AM EDT> <Error> <oracle.wsm.resources.enforcement> <corwloimhd01> <dev-oim_oim_server01> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <214014dca901f288:-460ab67b:136eeab0662:-7ffd-0000000000000838> <1335450433058> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=spml-xsd, composite=null, modelObj=SPMLService, policy=oracle/wss11_saml_or_username_token_with_message_protection_service_policy, policyVersion=1, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss11-username-with-certificates.>
####<Apr 26, 2012 10:27:13 AM EDT> <Notice> <Stdout> <corwloimhd01> <dev-oim_oim_server01> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <214014dca901f288:-460ab67b:136eeab0662:-7ffd-000000000000083d> <1335450433058> <BEA-000000> <<Apr 26, 2012 10:27:13 AM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=spml-xsd, composite=null, modelObj=SPMLService, policy=oracle/wss11_saml_or_username_token_with_message_protection_service_policy, policyVersion=1, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss11-username-with-certificates.>>
Please help me how to solve this issue.
Thanks in advance
SivaYour business logic has to be implemented by using OIM APIS. oimclient.jar..
you can then expose these business functions accordingly using a webservice or rest ...
for business logic refer:-
http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/apis.htm#OMDEV734
You will basicsally have to deal with UserManager class for managing users.
java API:
http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
Maybe you are looking for
-
I have used Responsive tabs from the site http://www.htmldrive.net/items/show/1352/jQuery-Responsive-Tabsaccordion-The-tabs-transfor m-to-an-accordion-when-window-resize I have included all the CSS and jquery links.But it doesn't work well.Pls help..
-
Flash; Import a SWF to replace a Square!
Hey, I have 2 Flash files; 1 is the main body of the website, and the other file has hundreds of layers that each contain some sort of code that imports XML and JPG images to create a slideshow. Now, I have created a grey square and then on playing o
-
Not Seeing BAPI_PROCORDCONF_* (Process Order BAPIs)
I have a client that wants to use various BAPIs of the type BAPI_PROCORDCONF to load update information for Process Orders. However we can't see these BAPIs in either BAPI Explorer or in xMII. The client has checked the permissions and he had been
-
IWeb does not save changes and will not allow republishing
I have created a new site on my iWeb which is now accessed by a separate web address. I first published a new site within this domain which worked fine. Now when I make changes and save, the blue progress bar indicates a save, but when I go to publis
-
I'm looking to buy the new ipad but I've a question. I can only afford either the 16gb with cellular or the 32gb without cellular. If one HAD to pick between bigger storage space or the added cellular which would u pick? Please help!