Creating a activity for a lead

Lead.Lead led = new Siebel.OnDemand.WebServices.Lead.Lead();
led.Url = this.mSession.GetURL();
LeadWS_LeadInsertChild_Input input = new LeadWS_LeadInsertChild_Input();
input.ListOfLead = new Lead1[1];
input.ListOfLead[0] = new Lead1();
input.ListOfLead[0].LeadId = "AAFA-2NXCTZ";
input.ListOfLead[0].ListOfActivity = new Activity[1];
input.ListOfLead[0].ListOfActivity[0] = new Activity();
input.ListOfLead[0].ListOfActivity[0].LeadId = "AAFA-2NXCTZ";
input.ListOfLead[0].ListOfActivity[0].Subject = "test";
input.ListOfLead[0].ListOfActivity[0].Description= "test";
input.ListOfLead[0].ListOfActivity[0].Display = "English";
LeadWS_LeadInsertChild_Output mapOut = led.LeadInsertChild(input);
*** Display is a required field .. it is a picklist value?
Method 'SetFieldValue' of business component 'Action' (integration component 'Lead_Action') for record with search specification '[Id] = "AAFA-2O1263"' returned the following error:"No language independent code exists for value 'English' and type 'ACTIVITY_DISPLAY_CODE' with language 'ENU' in table 'S_LST_OF_VAL'.(SBL-DAT-00510)"(SBL-EAI-04375)

Please post this message in the CRM On Demand Integration Development forum. Thanks for your help.

Similar Messages

  • Creating depreciation area for non leading ledger

    Hi,
    I want to configurate a depreciation area for a non-leading ledger. This is my scenario:
    01-Accounting area leading ledger. Group legder: 0L (on line)
    02- Accounintg area non leading ledger. Group ledger N1 (Area posts APC only directly)
    03-Depreciation non leading ledger. Grouo ledger N1 (Area posts depreciation only)
    Is it correct to created this 2 areas for non leading ledger?
    Thanks,
    Cecilia

    Hi Cecilia,
    additionally to my colleagues:
    For each additional set of accounting principles, you create one real  and one derived depreciation area.                                                                               
    Real Depreciation Area:                                                                               
    1. In Customizing for Financial Accounting (New), choose Asset Accounting  - Valuation  - Depreciation Areas  -Define Depreciation  Areas.                                                                               
    2.  Assign both depreciation areas to the same ledger group.                                                                               
    The ledger group you assign them to is not allowed to contain the leading ledger.                                                                               
    3.  In the Posting in G/L field, choose Area Posts Depreciation Only.                                                                               
    Derived Depreciation Area:                                                                               
    It is easiest to create the derived depreciation area using the Wizard.                                                                               
    4. In Customizing for Financial Accounting (New), choose Asset Accounting - Valuation - Depreciation Areas - Set Up Areas for Parallel Valuation.                                                                               
    5. In the Posting in G/L field, choose Area Posts APC Only.  Specify that this derived depreciation area represents the difference between the real depreciation area for parallel accounting and the        
    master depreciation area.                                                                               
    You do not have to set up a separate account set for these new depreciation areas. Instead you use the account set of the master depreciation area. In this scenario, you do not have to create any new  accounts in the chart of accounts or in the company code. You also do  not have to create a new financial statement version.                                                                               
    So a typical dep.area setting for a parallel ledger at you is like: 
    T093
    AFABER ABVOR1 AFABE1 ABVOR2 AFABE2 BUHBKT LDGRP_GL
    01...............................00...........................00............1.............0L
    02...............................00...........................00............3.............N1
    03..................+...........01............ - ............02............6.............N1
    Regards Bernhard

  • MSA - creating/changing activity for bp error : enter a valid value for bp

    Hello experts,
    while using msa with activites, on one client for one bp
    I cannot create/change an activity: error:
    insert a valid value for bp   
    This happens only for one bp on this client,
    on other clients this bp works fine.
    When I look in old activites for this bp, there in activity -> detail
    the field bp (hyper link) is not filled.
    I think there is a problem with the incorrect bp, but in which tables
    can search for this ?
    Best regards
    Gerd

    Hi,
    I assume that the BP is present in table smokna1 but not available in smokna1sht (anymore).
    When creating an activity the BP selection is based on smokna1, but the field/property validation is based on smokna1sht (see error message).
    But unfortunately I don't have any idea for now how to download this particular record to this site...
    Regards,
    Wolfhard

  • Inserting an Activity for a lead

    Lead.Lead led = new Siebel.OnDemand.WebServices.Lead.Lead();
    led.Url = this.mSession.GetURL();
    LeadWS_LeadInsertChild_Input input = new LeadWS_LeadInsertChild_Input();
    input.ListOfLead = new Lead1[1];
    input.ListOfLead[0] = new Lead1();
    input.ListOfLead[0].LeadId = "AAFA-2NXCTZ";
    input.ListOfLead[0].ListOfActivity = new Activity[1];
    input.ListOfLead[0].ListOfActivity[0] = new Activity();
    input.ListOfLead[0].ListOfActivity[0].LeadId = "AAFA-2NXCTZ";
    input.ListOfLead[0].ListOfActivity[0].Subject = "test";
    input.ListOfLead[0].ListOfActivity[0].Description= "test";
    input.ListOfLead[0].ListOfActivity[0].Display = "English";
    LeadWS_LeadInsertChild_Output mapOut = led.LeadInsertChild(input);
    *** Display is a required field .. it is a picklist value?
    Method 'SetFieldValue' of business component 'Action' (integration component 'Lead_Action') for record with search specification 'Id = "AAFA-2O1263"' returned the following error:"No language independent code exists for value 'English' and type 'ACTIVITY_DISPLAY_CODE' with language 'ENU' in table 'S_LST_OF_VAL'.(SBL-DAT-00510)"(SBL-EAI-04375)

    Hi I am very new to this, trying to insert a contact after importing the wsdl in vs.net and adding a web reference to the contact wsdl.
    Can you please send me the complete sample code for inserting an object into CRM On Demand. (in c#)
    Much appreciated.
    Cheers,
    Ritesh

  • FM to create followup activity for opportunity

    hi forum,
    can anyone tell me the FM to create a followup document for opportunity.

    Hi Neelima,
    You can't use function modules for such purposes. You need to maintain copy control procedure in SPRO.
    Maitain the following settings in SPRO :
    1. Define Copying Control for Transaction Types
    2. Define Copying Control for Item Categories
    3. Define Item Category Determination when Copying
    You can implement the CRM_COPY_BADI to control the copying process.
    <b>Reward points if it helps.</b>

  • Create Activity from a Lead on PCUI

    Hi everybody,
    I am having a problem, I don't know if anybody has had this before. I am trying to create an Activity from the lead screen on PCUI by using the Standard create activity button, but when I click on it instead of trying to open a popup accessing the portal and one of the roles in it, it tries to open a popup calling the CRM WAS but it sends the portal role and i-view information. Of course with this instead of getting the activity I-view open I am getting a BSP Error from the PCUI BSP application.
    I am not sure why is this happening I am using the standard i-views.
    The exact error I am getting is as follows:
    Business Server Page (BSP) Error
    What happened?
    Call of BSP page terminated due to error.
    Note
    Following error text processed in system:
    BSP Exception: the Application Name com.sap.pct.crm.LeadManager in URL /roles/com.sap.pct.crm.LeadManager/ActivityManagement/MaintainActivities_2?DynamicParameter=CRM_OBJECT_TYPE%3DBUSINESSACTIVITYCRM%26CRM_BOR_TYPE%3DBUS2000126%26CRM_LOGSYS%3DCRDCLNT110%26CRM_NAV_EVENT%3DCREATE_FOLLOWUP%26sap-syscmd%3Dnocookie%26crm_psid_gu is invalid.
    Error Type:
    Your SAP Business Server Pages Team
    Thanks a lot for any help you can give me on this.
    Regards,
    Felipe

    The CRM Context Service is already installed, but I don't know if maybe something on it was not installed right and I don't know how I could check it.
    Regards,
    Felipe

  • Extractor for Non Leading Ledger

    Hi,
    I am trying to create a DS for a non leading ledger based on table FAGLFLEXT (Totals). I am using TCODE - FAGLBW03 for that. When I try doing this I get an error message:
    No extract structure exists for ledger table ECMCT
    Message no. GQPI053
    I am able to create a DS for the Leading Ledger with the same table in the same TCODE.
    Any suggestions please?
    Cheers
    Anand

    Anand,
    You can go to BW01 Tcode in ECC and Execute Summary Table ECMCT.you would need a Dev key and then you can activate str and then try to create a Data source.But Why dont you go via FAGLBW03 and generate any specific reason.You want to create a Generic?
    How you are goin to handle Delta?
    Thanks!
    ~AK

  • Create an Activity Report for Current Week

    I would like to create a activity report for the current week. The trick is that if the weekday is Wednesday or earlier (Sunday being the first day of the week), the report shows last week's activities; but if the weekday is Thursday or later (Saturday being the last day of the week), the report shows the current weeks activities.
    I have a filter that works in Access but does not seem to work in Siebel. It does just what I explained above:
    Between CDate(Int((IIf(Weekday(Now())<=4,Now()-(6+Weekday(Now())),Now()-(Weekday(Now())-1))))) And CDate(Int((IIf(Weekday(Now())<=4,Now()-Weekday(Now()),Now()+(7-Weekday(Now()))))))
    Thank you,
    David
    Edited by: DavidE on Oct 7, 2008 4:17 PM

    David,
    try this:
    case DAYOFWEEK(CAST(Activity."Planned Start Time" AS date))when 1 then timestampadd(sql_tsi_day,1,CAST(Activity."Planned Start Time" AS date)) when 3 then timestampadd(sql_tsi_day,-1,CAST(Activity."Planned Start Time" AS date)) when 4 then timestampadd(sql_tsi_day,-2,CAST(Activity."Planned Start Time" AS date)) when 5 then timestampadd(sql_tsi_day,-3,CAST(Activity."Planned Start Time" AS date)) when 6 then timestampadd(sql_tsi_day,-4,CAST(Activity."Planned Start Time" AS date)) when 7 then timestampadd(sql_tsi_day,-5,CAST(Activity."Planned Start Time" AS date)) else CAST(Activity."Planned Start Time" AS date) end
    This gave me the sunday of the week. You should be able to modify this format for your purposes.
    cheers
    Alex

  • SAP CRM MObility Activity Survey to create Marketing Attributes for a BP

    ATtrHi Gurus ,
    I have to create an Activity from IPAD ( CRM Mobility ) which will create a survey response,and the survey responses have to be captured and then create Marketing Attributes for the BP related to the Activity. I am not able to use the Callback Function given to IPAD Application.
    So my Approach so far has been :
    implement a badi that gets trigerred at Survey Response submission.
    in that call function module crm_svy_activity_pai.(Made a Z-copy of this to enforce COMMIT WORK )
    I am not able to pass the parameter lr_values for FM: CRM_SVY_ACTIVITY_PAI
    These are the 2 links that has been useful so far . Kindly add to this if possible.
    Regds
    Oindrila

    Hi Jacques,
    Once you click on Marketing in Web UI you will find "Marketing Attribute" in the Work Area.Click on that.
    You need to give ID No. and Attribute Set name.
    You need to mark Persons and Organisation checked also.
    Below that you will find 2 blocks " Attributes" and "Value"
    Under Attribute gve your Attributes Names you want to define ( e.g. Age,Salary or any client defined..) then select the Format ( Numeric or Chracter etc...)
    Once you have filled in all the Attributes you click on one attribute and below you need to fill the Values ( e.g 20-30 yrs etc...) . If you want to make that value a default one you can select default check box against each value.
    That way for each attributes you can define values. Hope this would help you.
    Regards...
    Edited by: akscrm akscrm on Sep 3, 2008 2:19 PM

  • Create long text for network activity

    Hello,
    I'll create a long text for a network activity, but I found no BAPI for that.
    When I create long text for an order activity I use the BAPI BAPI_ALM_ORDER_MAINTAIN. There it is possible to specifiy the long text lines.
    In the BAPI BAPI_NETWORK_MAINTAIN there ist no table for specifying long text.
    Did anyone know how to create a long text for an network activity?

    Hello Vivek,
    I'll tried this too. My problem was, if I add long text to a existing network activity, everything works well. But in my programm I create a new network plan with one network activity (0010). After commit I become the correct network plan number. Then I try to add long text to the network activity. I get correct return codes but if I look in the transcation CJ20N I could not see some text. If I use the READ_TEXT function with the key I insert the text, I see the text, but not with the transaction CJ20N.
    I compared the key I used in my program with the key if I insert text with transaction CJ20N. I could'nt found some differences.
    SELECT SINGLE afvcp~mandt afvcp~aufpl afvcp~aplzl
                      INTO (mandant,aufpl,aplzl)
                      FROM afvcp INNER JOIN
                      afko ON
                      afko~mandt = afvcp~mandt
                      AND afko~aufpl = afvcp~aufpl
                      AND afko~aufnr = ordernumbernew.
                        "*Create Identifier
                        CONCATENATE
                        mandant aufpl aplzl
                        INTO lv_name.
                        header-tdobject = 'AUFK'.
                        header-tdname = lv_name.
                        header-tdspras = sy-langu.
                        header-tdform = 'SYSTEM'.
                        header-tdid  = 'AVOT'.
                        header-mandt = sy-mandt.
                        header-TDLINESIZE = '079'.
                        CALL FUNCTION 'SAVE_TEXT'
                          EXPORTING
                            client          = sy-mandt
                            header          = header
                            insert          = 'X'
                            savemode_direct = 'X'
                            owner_specified = ' '
                            local_cat       = ' '
                          IMPORTING
                            function        = func
                            newheader       = newheader
                          TABLES
                            lines           = lines
                          EXCEPTIONS
                            id              = 1
                            language        = 2
                            name            = 3
                            object          = 4
                            OTHERS          = 5.
                          CALL FUNCTION 'COMMIT_TEXT'
                           EXPORTING
                             OBJECT                = header-tdobject
                             SAVEMODE_DIRECT       = 'X'
                           IMPORTING
                             COMMIT_COUNT          = commit_count
                          COMMIT WORK AND WAIT.
    For example in the debug the header ist filled with:
    1 TDOBJECT C 10 AUFK
    2 TDNAME C 70 210000044156300000001
    3 TDID C 4 AVOT
    4 TDSPRAS C 1 D
    5 TDTITLE C 50
    6 TDFORM C 16 SYSTEM
    7 TDSTYLE C 8
    8 TDVERSION N 5 00000
    9 TDFUSER C 12
    10 TDFRELES C 4
    11 TDFDATE D 8 00000000
    12 TDFTIME T 6 000000
    13 TDLUSER C 12
    14 TDLRELES C 4
    15 TDLDATE D 8 00000000
    16 TDLTIME T 6 000000
    17 TDLINESIZE N 3 079
    18 TDTXTLINES N 5 00000
    19 TDHYPHENAT C 1
    20 TDOSPRAS C 1
    21 TDTRANSTAT N 1 0
    22 TDMACODE1 C 16
    23 TDMACODE2 C 16
    24 TDREFOBJ C 10
    25 TDREFNAME C 70
    26 TDREFID C 4 4
    In CJ20N the header is filled with
    1 TDOBJECT C 10 AUFK
    2 TDNAME C 70 210000044156300000001
    3 TDID C 4 AVOT
    4 TDSPRAS C 1 D
    5 TDTITLE C 50
    6 TDFORM C 16 SYSTEM
    7 TDSTYLE C 8
    8 TDVERSION N 5 00000
    9 TDFUSER C 12
    10 TDFRELES C 4
    11 TDFDATE D 8 00000000
    12 TDFTIME T 6 000000
    13 TDLUSER C 12
    14 TDLRELES C 4
    15 TDLDATE D 8 00000000
    16 TDLTIME T 6 000000
    17 TDLINESIZE N 3 079
    18 TDTXTLINES N 5 00007
    19 TDHYPHENAT C 1
    20 TDOSPRAS C 1
    21 TDTRANSTAT N 1 0
    22 TDMACODE1 C 16
    23 TDMACODE2 C 16
    24 TDREFOBJ C 10
    25 TDREFNAME C 70
    26 TDREFID C 4

  • How to Create New Activity Type  for Assiged to work centre Costing in Acti

    Dear Sir,
    We have four activity type to assigned in workcentre Costing Activity. Details are as under
    AIRJET     2010     AIRJET
    DONIER     2010     DORNIER
    SULTEX     2010     SULTEX
    SULZER     2010     SULZER
    in addition one more loom is comming in our unit and require new activity type.
    How can i create new.
    Please guide.
    Thanks in advance
    Regards
    Ajit

    Dear ,
    To create new Activity Type  , you need to follow the below steps :
    KA01 - Create Primary Cost Element for the new activities type.
    KL01 - Create Activity Type tied to the primary cost element. 
    KP26 - Change Activity Type/Activity Price Planning - maintain the Variable price
    Assign the activity type to cost center using T code KP26.
    In the input screen of T code KP26 ,enter version as 0, from period 1 and to period as 12 and the Fiscal Year as 20xx.
    Click on Overview tab on top and key in costing details in this screen.
    After performing this ,while creating the work center ,this combination of activity type & cost center should be assigned.
    At work centre level , you should have
    1.Create Standrad Value Key -OP19 and Formula Key in OP49.
    2.Create Formula Parameters in OP7B or u can use existing one to assing in the Standard Value Key
    3.In CR02-Assing the Standard value key in Basic Data  and select the Formula Key in Costing tab with cost centre assingement .Save
    Try and check
    Regards
    JH

  • How to create a PR for BOM from a Project (WBS, Network or Activity) ?

    Hello All,
    Project Structure:
    Project Defination
                1 level WBS
                           2 level WBS
                                 Network (Supply of Material for Sub station)
                                                Activity (Procurement of materials) Internal
                                                           Material Component (BOM)  Main Item
                                                                          Component 1
                                                                          Component 2
                                                                          Component 3..................
    Now i want to directly create a PR for this BOM and its components as well and using this PR i want to create a PO and procure the materials against the project.
    Can any one help me in this regard.
    Thanks and Regards,
    Sudarshan.

    Hello Sukhveer,
    Thanks for your reply.
    I have maintained in Material master MRP views and is also relevant for MRP.
    Also at the time of entering the BOM main materail, i am entering the item categery as L and exploding the BOM by going through the path:
    Go to Activty materail components, select the BOM main materail, now in the menu goto EDIT --> Component ---> Explode BOM.
    The component materails are getting exploded under the BOM main material, but the item categery of the main item is changing from L to T (Text item) and the PR's are created for all the component items individually after i save the project.
    Regards,
    Sudarshan.

  • Creating management accounts for protected accounts and groups in Active Directory

    I'm following step-by-step instruction for creating management accounts for protected groups that I found in Microsoft book "Best Practise for Securing Active Directory", published april 2013.
    What is confusing me is the "Enabling management accounts to modify the membership of protected groups" step. When I use DSACLS command:
    Dsacls "CN=AdminSDHolder,CN=System,DC=MyDomain,DC=com"/G
    [email protected]:RPWP;member
    what I have to type insted of "member".
    When I use previous command with simple "member" at the end I dont get this:
    Verify that the account has been granted only Read Members and
    Write Members permissions on the DA group, and click OK.
    My account have flag on all properties.
    I hope You understand me.

    The last field is for the attribute to delegate. You can read about it here: https://technet.microsoft.com/en-us/library/cc772662%28v=ws.10%29.aspx
    You can also refer to this for updating AdminSDHolder container: http://social.technet.microsoft.com/wiki/contents/articles/22331.adminsdholder-protected-groups-and-security-descriptor-propagator.aspx
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Can not create activity for a workspace in the DTR

    Hi there,
    I am trying to get familiar with the DTR which comes with the WAS 6.40 SP9.
    I figured out how to create a workspace. Now I try to create a project at this workspace. Therefore an activity is necessary. The NW Developer Studio (perspective DTR with admin-plugin activated) tells me that an activity was created but there is none.
    Thus, i tried to create an activity with the DTR Shell. At first the shell tolds me that an activity was created but a second later it showed me the following error:
    Could not create the requsted activity.Set client properties on activity failed: Internal Server Error.
    I tried to find some logfiles and at the SAP Management Console at the database i found an error which occurs when i try to create an activity:
    ERR 51080 SYSERROR -9041 BD Index not accessible
    Have anybody an idea how to solve this problem?

    I guess you are using MaxDB as the database.
    The error message indicates that some database indexes could have got corrupted in your database.
    To check this, you the MaxDB Database Manager.  Go to
    Instance->Tuning->Index Use.  Provide the table owner (SAP<SID>DB) and click on 'Search' on the tool bar.  It lists you all the indexes for the owner.  The last column shows if there are any bad indexes.
    If indeed there are bad indexes, then you can recreate them via Instance->Recovery->Index.  Provide the table owner, table and index name and click on 'Recovery'.
    -Girish

  • Creating Handling Unit for Inital Load with SU active

    Hi,
    What is the best way to create Handling units for WH with SU active during Initial load.

    Hi,
    To upload stock please refer below steps.
    1.You can write a program or create LSMW to upload stock. In my experience I used program to upload stock in WM. To upload stock I used transaction LT01 in program.For this I have to give input file which will have material,plant, storage type ,bin ,storage unit type, qty etc.When you run this program system will create automatically TO &SU for the material with the given bin.This TO can be automatically confimed in system.
    2.To perform your program your whole warehouse structure should be in place.
    I believe you got the answer.
    Regards,
    Prashant

Maybe you are looking for

  • Screen shots not seen by Windows user. How come?

    When I create a screen shot on my MacBook, and send it to someone using Windows, it appears to them as a blank square. Anyone know why?

  • Configuration - New G/L

    Hi people, Could you tell pass by pass about the configuration New G/L? Or give me the best link where there are that? Thanks a lot, Rosana.

  • Update BSEG field

    Hi All, I want to update a z.. field which was being added by someone.. Problem is I can not do it through BDC..there is some problem in doing so...it will bit more work I already tried it. I am looking for a FM or BAPI through which I can update fie

  • Extremely sluggish performance with Mavericks

    Hardware Information:           MacBook Pro (13-inch, Mid 2010)           MacBook Pro - model: MacBookPro7,1           1 2.4 GHz Intel Core 2 Duo CPU: 2 cores           4 GB RAM Video Information:           NVIDIA GeForce 320M - VRAM: 256 MB System S

  • Booklet Printing on HP Laser Jet M1005, Operating System Windows &

     Hi ,  I have PRINTER - HP Laserjet M1005 MFP OPERATING SYSTEM - WINDOWS 7 Question - 1) I want to print Booklet by this printer? 2) When trying multiple pages on 1 page with printing on both side, then first side come perfectlly but backside comes w