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?

Similar Messages

  • How to create a Weblogic Duplex Service?

    How to create a Weblogic Duplex Service?
    Like this in WCF:
    http://msdn.microsoft.com/en-us/library/ms731184.aspx

    However you can't run a batch script as a service in Windows. I think you are looking in the wrong place for a solution.

  • How to create a background job for call transaction

    hi gurus
    can any one suggest me
    how to create the background job for call transaction.
    thank you
    regards
    kals.

    Hi,
       Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10926107&messageID=889652
    Regards
    Kiran Sure

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • How to create Activity type

    How to create Activity type
    below are the details
    x sales MnF Expenses
    y FMS MnF Expenses

    dear sudhir
    KA01 - Create Primary Cost Element for the new activities type.
    KL01 - Create Activity Type tied to the primary cost element.
    regards
    rohit

  • How to create activity workflow based on the Web API 2 services

    Hi,
    We have Web API 2 services and we want create activity workflow based on the Web API 2 services.
    Web API 2 services provide some application operations and based on this operations we would like to create custom activity workflow.
    Question:
    Is that possible?
    Could you please give best practices to create activity workflow based on the Web API 2 services ?
    Thanks for your support.

    HI Max_P,
    Welcome to workflow forum.
    ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
    I researched relevant topic about creating workflow application using Web API 2, I just found these resources about it.
    Learn About ASP.NET Web API
    Hope it helps.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a Generic Object Services for a standard tcode.

    Hi,
    We have a requirement where we are depreciating the assets (standard transaction ABAA) using a custom BDC program. We need to maintain a history (called audit trail) for the particular asset that has been depreciated using this program. For this audit train we have been asked to use "Generic Object Services" in transaction code ABAA.
    Unfortunately, Generic object services are not available in this transaction code. Can you please suggest me how to create "Generic Object Services" for a particular standard transaction code. Also, we have show the details of custom workflow that follows the approval process in order to depreciate the asset. how to show this workflow details using Generic Services. This is a very critical issue, any help will be very help ful.
    Please let me know should you require more information on this topic.
    Thanks,
    Ashish

    Instead of copyg the std fm to z, do the following,
    1. Go to se37 open FM VIEW_KURGV in display mode.
    2. Click on the spiral icon on the top.
    3. Then in menu go edit->enhancment options -> show implicit enhancement
    4. """""""""""""""""""""" kind of lines will appear in the cde, just rt click on the line at the place u want to insert the code and select
         enhancement implementation create.
    5. Give apropriate name for thi , it will inset a n place to write your code.
    This is an std sap methodology and is supported in upgradde also.

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

    Actually, FM was active but Function Group was inactive!

  • How to set up meeting with sales employee & how to create activity in a emp

    Hi all,
    I have two scenarios to be configured for my client.
    1. Sales manager should be able to set up a meeting with his sales team in CRM. can any one give me a idea how we can configure it in SAP CRM & what is the transaction type (Business activity) to be used to setup meeting with employees.
    2. How to create an activity or task in employees calendar. where we configure calendar in SAP CRM, do we need to assign this calendar any where in order to create create activity for employees calendar.
    Please do let me know how to achieve the above scenarios.
    I got one more issue is that, I have created two transaction types (business activity types) 1 for transaction type for meeting with employee with category "meeting" in business activity and 2nd transaction type is for sending email to employees with category "email" in business activity. I have also assigned these transaction types to categories under sentings for activities ->assign transaction types to categories in SPRO. But I am not finding these two transaction types on UI under activities. If use different category for these transaction types like appointment then these are available on UI for activities. Please suggest me how to fix this issue too.
    Thanks in advance
    JM

    Hi JM,
    1. It depends how you want to configure this and your detailed requirements. One way would be to create an activity of type Appointment and from this, create a CRM E-mail activity that sends an e-mail to all the Attendees in order to setup the meeting.
    2. Synchronizing Activities/Tasks is done with the Groupware Integration. I'm sure you can find some documents in SDN for it, but for now you can take a look at the IMG node (Customer Relationship Management->CRM Middleware and Related Components->Groupware Integration) and the help.sap.com (http://help.sap.com/saphelp_crm70/helpdata/EN/47/09e1c4cc8d4861e10000000a155369/frameset.htm) page.
    The "New" button in the standard Activities Search will load everything under the "screen kind" ALLS, which means all Activities with Activity Class Appointment, Task, E-mail and Sales Call. You can see this in the method CL_CRM_UIU_BT_ACT_CUST_GET=>GET_ACT_CLASS_FOR_SCREEN_KIND. It is pure UI logic that you can influence if you make modifications or enhance the Appointment UI (for example the component BT126S_APPT, by changing the screen kind passed). You'd need to debug a little bit to understand the logic, however.
    Hope this helps,
    Kind regards,
    YZ

  • How to create Query (Sq01) fro service contract

    hi,
    How to create Query for Service contracts , where i need to take a report for sub line items of that particular Service contract.
    Ex: we maintain short text - services in the initial screen ,
           in the next screen we maintain the sub line items for that short text (Activity numbers).
    Please guide me on this.
    Regards,

    Hi Sowmya,
    1 Create User Group (SQ03)
    Specify the users who should be authorized to run the query.
    2.
    Create Infoset (SQ02)
    Indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query.
    3.
    Create Queries (SQ01)
    Create the query and arrange the layout
    for joining the two tables there should be common field should be available in both the tables then only we can able to join the table and run the query
    or use this below link
    http://www.sap-img.com/abap/step-for-using-query-sq01-sq02-sq03.htm
    Regards,
    Pramod

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

    Hi,
    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

  • How to create activity template for email campaign in CRM 5.0

    Hi,
    I tried attaching only a simple activity transaction type (Z005) to communication type email in SPRO > CRM > Marketing > Marketing Planning and Campaign Management > Campaign Execution > Define communication medium.
    After doing this, I was expecting that when I execute my campaign for channel email, emails will be sent to the customers and activity transactions of type Z005 will be created for each outbound email.
    Activity transactions are created, but I think I would like to maintain more details (description, responsible org etc.), which should be possible using activity template.
    I am struggling with creating activity template. I created a normal transaction of type Z005 and tried to maintain it as a template (which was obviously wrong), and the system gave me a message that I need to attach a template transaction of template type D.
    How do I create an activity template of type D?
    Any help would be appreciated.
    Regards,
    Kaushal

    Hi Kushal,
    As your are in CRM 5.0 you can create Activity template from SAP GUI. Just execute CRMD_ORDER and select your Activity type (ZOO5) and in Menu click on Extras->Template->Create  just enter required details such as (description, responsible org etc.)  save the template it will create Activity template number. While creating Email Campaign just enter activity template number.
    Execute Email Campaign it should create Activity with required details.
    Regards,
    Dipesh.

  • How to create an Accounting Document by calling BAPI

    Hai friends ,
    please tell me how to call this BAPI and fulfill all the parameters .. Please help me , I dont know the head and tail of it ...
    create an Accounting Document by calling BAPI  BAPI_ACC_DOCUMENT_POST
    Below is the step to fill the parameters for BAPI:
    Enter company code, invoice no, invoice date, document type, header text into DOCUMENTHEADER
    Enter customer, item text, company code, payment term into ACCOUNTRECEIVABLE
    Enter offset account, company code, document type, item text into ACCOUNTGL
    Enter currency type u201800u2019, currency, exchange rate, amount into CURRENCYAMOUNT. Please note there will be two rows in this table, one positive amount and one negative amount
    Call the BAPI to create the AR document. If p_check is checked, call the BAPI only without COMMIT and then do the message processing
    If p_check is initial, COMMIT the data to the database tables.
    Check the RETURN table after each BAPI, if no u2018Eu2019 message type found, output the document no. Otherwise, output the error messge to the screen with the message type u2018Eu2019.
    thanks in advance ...

    Hi,
    Check the link
    http://www.sapbrainsonline.com/sapinfo/tutorial.php?artid=617
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_acc_document_post-error-1973720
    http://delaynomore.spaces.live.com/blog/cns!D2BFFB84EDFE4189!528.entry
    http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST
    http://www.sapfans.com
    Anurodh

  • How to create a servlet to be called by a portlet in weblogic workshop

    Hey,
    In weblogic workshop 8.1.4, I created a portal application. In the portlet(Java portlet- JSR 168), I would like to call a Java Servlet. In the workshop, it seems there is no way to create a Java Servlet.
    Does anybody know how to create a Java Servlet in the Weblogic workshop?
    Thanks!
    Jeff

    How about creating a java class and adding the proper imports, extends, methods etc. to make it a servlet.
    Do the the necessary changes to web.xml
    Then try to invoke it from the portlet's jsp of java code
    HTH,
    Raj

  • How to create active state or current state in spry menu ?

    i have build a vertical menu with spry menu widget, Just
    wondering if any one can guide me how to create an active state or
    current state in the menu.
    I want the visitor to understand which page they are on, so
    just want to change the colour of the active link.

    <helpful but self-serving too>
    There are several ways to do this, but the easiest way, if I
    may say so,
    is to use my divaGPS Extension. It works with virtually any
    menu type
    and is designed to accomplish precisely what you are asking
    for quickly
    and easily.
    </back to our regularly scheduled programming>
    E. Michael Brandt
    www.divaHTML.com
    divaPOP : standards-compliant popup windows
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz
    www.valleywebdesigns.com
    JustSo PictureWindow
    JustSo PhotoAlbum

Maybe you are looking for

  • Itunes says ipod touch is an iphone?

    well I just bought my touch about two weeks ago, and it was working fine. but two days ago when I plugged it in, itunes said 'could not connect iphone' and then my touch just restarts (the black screen with the apple logo in the middle appears). it k

  • How to Make a Printable Results Page in Adobe Captivate 8

    Hi Captivate Developers! We made a really cool Captivate tip that I think you will enjoy. This tip allows your learners print-friendly results in Adobe Captivate 8. We also include the code needed to make it work and is actually pretty easy. It also

  • Ipod is not recognized and is stuck on apple black screen.

    So here's the story: I have a 30Gb ipod.A few days ago it ran out of battery.and now ive been trying to charge it on my computer but it gets stuck on the black screen with the apple in it and keeps making some weird "start up" sounds all the time.I'v

  • Quality issues with slideshows

    Hi, I'm a long term user of PE v9 (basic editing & burning of home vids & slideshows), but I've just bought a new computer & upgraded to Photoshop & PE v11. The first slideshow I created (created in Photoshop & exported to PE for adding music, titles

  • Can applet use multicast broadcasting?

    Hello Can applet listen to server sending to multiple sockets?. When I tried to run applet exception showed up. Applet would listen for message, server was sending messages in a thread. Could You direct me to some examples which can do such thing?. (