Creating an Activity: "Display" is a mandatory field

Hey again,
I try to create an activity.
Let's say I want to create a ToDo item.
For this, I use the Webservice 2.0 and try to attach the Activity to an lead.
The code looks like this in Java:
     public ActivityData activityDataByPatternA( String subject, String LeadID ) {
          ActivityData ActivityData = new ActivityData();
          ActivityData.setSubject( subject );
          ActivityData.setType("Email");
          ActivityData.setLeadId(LeadID);
          return ActivityData;
     public void create( ActivityData ActivityData ) {
          ActivityInsert_Input ActivityInsertInput_Input = new ActivityInsert_Input();
          ListOfActivityData listOfActivityData = new ListOfActivityData();
          listOfActivityData.addActivity(ActivityData);
          ActivityInsertInput_Input.setListOfActivity(listOfActivityData);
          try {
               stub.ActivityInsert(ActivityInsertInput_Input);
          } catch (RemoteException e) {
               e.printStackTrace();
               return;
The system strangely gives me an error message in German (my development system has the language German):
org.apache.axis2.AxisFault: Erforderliches Feld fehlt in Instanz von Integrationskomponente 'Activity' mit dem Benutzerschlüssel '': 'Display' ist ein obligatorisches Feld. Geben Sie einen Wert für das Feld ein.
(SBL-DAT-00498)(SBL-EAI-04389)
     at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
     at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
     at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
     at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
     at crmondemand.ActivityStub.ActivityInsert(ActivityStub.java:1026)
     at access.Activity.create(Activity.java:94)
     at CODconnection.main(CODconnection.java:40)
It means in english more or less that for the integration component "Activity" with the user key "", "Display" is a mandatory field.
I have no clue what "Display" field is meant as there is none.
Anyone has a hint?
Thanks! Christian

Display is a mandatory field for creating the activity.
As you must be knowing CRMOD have two type of activity "Task" and "Appointment". This field is to define that.
If you wish to Create "Task" then pass this as "Task"
If you wish to create Appointment pass as "Appointment"
Some places this same field is refer by "Activity" field.
Dinesh

Similar Messages

  • Check for mandatory fields while creating EP users using code .. :|

    Hello All,
    I have a code using which I can create user accounts/EP users on Portal, am working on EP6 SP9 & SP12.
    <u>My query</u>:
    1. <i>From Portal's perspective</i> -> While creating EP users, there are few mandatory fields like user-id, FirstName, LastName, Email-id and Password. If any of the above fields is null/empty, Portal would give us an error message.
    2. <i>From coding perspective</i> -> Here, only the user-id is required. Even if I do not enter/fill any of the above mentioned mandatory fields (except user-id), user account is created.
    In case wherein FirstName/LastName is not mentioned, Portal shows the userid in the Welcome Frame, i.e. Welcome <user-id>. Tried this by commenting the statements contains the methods related to setting/accepting FirstNme and LastName of user.
    <b>I want to know if this is all rite?
    If no, then please guide me as to how can I set mandatory fields in my code.</b>
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
    >>please guide me as to how can I set mandatory fields in my code??
    In ur jsp file or in the controls code add the following attribute
    <hbj:label id="userIdLabel"
               text="User ID"
               labelFor="userIdInput"
               design="HEADER3"
               required="true"/>
    and to check the mandatory entry for that field do this in the submit button
    <hbj:button id="insert"
                text="Submit"
                design="emphasized"
                onClick="save"
                onClientClick="if(!isMandatory()) htmlbevent.cancelSubmit=true;;"/>
    and in the javascript write the client validation code.
    Hope this helps.
    Regards,
    Joshua Kiran

  • Mandatory fields error messages in HCM forms and processes

    Hi,
    This may sound to be a very simple problem but I am unable to get to the root of the issue and thus need an expert advise here.
    I have created several forms in the system out of which one is an OM form using SAP_PD service for create position. There are few mandatory fields in the form scenario such as
    TITLE
    ABBREVIATION
    EMPLOYEE GROUP
    EMPLOYEE SUBGROUP
    As expected, system issues an error message if these field are left out blank but the error message is generic for all the fields and is missing the field name.
    Actual Error Message
    Complete the required entry field ""
    Expected Error Message
    Complete the required entry field "Employee Group"
    Complete the required entry field "Employee Subgroup"
    However, there are couple of fields in the form scenario which issues a correct error message
    Complete the required entry field "Object abbreviator" (P1000-SHORT)
    I am unable to identify the difference between the couple of fields that issues a correct message and rest 20 other fields which doesn't.
    Regards,
    Murtuza Kharodawala

    No, if I enter all the mandatory fields on the form then there is no problem. It allows me to move ahead and submit the form successfully.
    As recommended by Siddharth, I tried debugging the message class and what I observed was it passes the complete_fieldname value as Personnel Subarea (I1008_BTRTL) and system expects it to be I1008-BTRTL.
    SAP as a fallback tries to read description from the table T5ASRFSCNFLDT but it has a_form_scenario as blank and complete_fieldname has a concatenated value "Personnel Subarea (I1008_BTRTL)" instead of "I1008-BTRTL".
    Not sure what am I missing which causes it to have this wrong error message.
    Regards,
    MK

  • Mandatory field in cost center master

    Hi,
    In a particular cost center master data(which was created earlier), business area is a mandatory field. It is critical to remove this mandatory option which has defaulted automatically. Entering a business area in the cost center master data is ruled out now. Also, deletion of the cost center is not possible as transaction data already exists.
    Please advise how to remove this mandatory indicator in the cost center master data as the system is not allowing to post any actual posting.
    Regards,
    Sakthy

    Hi,
    Check if the global parameters for your company has "Indicator: Business area financial statements required" on. This will affect also cost center master creation. Transaction Code: OBY6.
    Please discuss with financial members before you change it.
    Best regards, Takashi

  • Mandatory field "Involved Person" must be filled

    Dear Experts
    In EHSM 5.0 while trying to create Report - Incident - Simplified, receiving error - Mandatory field "Involved Person" must be filled. I have check similar post on this and as per that EHHSSPIID is being maintained for internal number range.
    This issue is triggering either I click "send"  w/o entering data for who was injured or attempt to add details for injured person.
    Regards
    Santosh

    Dear Sunil
    Few  OSS Notes(1526402,1534362,1581936)  which are related to HR Integration & Reading person data from HRMS systems.  Refer EHSM 4.0 Master Guide (Page No: 10) . These Notes Implementation is mandatory during Upgrade.
    Balajee

  • WLK1 Table mandatory field data for DATBI & DATAB missing

    Hi ABAPers,
    I have an issue in production i.e in table WLK1 few records have created which have data missing from mandatory field DATBI & DATAB . Can anyone tell me the reason for that and how to delete those records.
    Thanks,
    Soumya .

    Here in our case we are creating materials and availing certain time period i.e. DATAB and DATBI  for selling those in different stores. So if those goes missing will certainly cause problem.
    So, just by a creating Z code for selcting those records then deleating them and after that listing them again to database will solve the problem or not?
    Thanks.

  • To Generate msg if mandatory field is not filled

    Hi Experts,
        I want to display msg if mandatory field is not filled , for that i called
    CALL METHOD L_MESSAGE_MANAGER->REPORT_ATTRIBUTE_ERROR_MESSAGE
      EXPORTING
        MESSAGE_TEXT        = ' PLEASE FILL ALL MANDATORY FIELD '
        ELEMENT             =  ELEM_GENRAL
        ATTRIBUTE_NAME      =  F_NAME
    But i am getting error that F_NAME is not an attribute name but it is attribute name only
    What i should do , Please Help

    Hi Neeraj,
    Remove Required property of that inputfield make it NORMAL.
    For example your input field is INPUT...
    if input is initial.
    * report message
              CALL METHOD lo_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
                EXPORTING
                  MESSAGE_TEXT   = 'Pick Quantity Should not be 0... '
                  ELEMENT        =  wa_temp // element
                  ATTRIBUTE_NAME = 'PICK_QTY'.   // Attribute name( name used in context )
    endif.
    If you not fill input it will raise error message by hilighting the input field.
    Cheers,
    Kris.

  • What are the mandatory fields of BAPI for creating a new purchase order?

    Hi friends,
    I am very new to XI.My Boss has given me task to create a purchase order using BAPI. I want step by step guide to create it.How will i know which fields are mandatory for BAPI_PO_CREATE?

    Hi Shweta,
    However It depends upon the configuration that which fields to be passed.
    But you can check this by running the BAPI in the SAP system by using transaction Se37.
    The most commanly used fields are:
    HEADER :
    DOC_TYPE                       NB
    CO_CODE                        9001
    PURCH_ORG                    9001
    PUR_GROUP                    900
    VENDOR                         100000
    ITEM
    PO_ITEM                        00001
    MATERIAL                      MM10
    STORE_LOC                   01
    MAT_GRP                       01
    SHORT_TEXT                  SERVICE (optional )
    PLANT                            9001
    NET_PRICE                    500
    ITEM_SCHEDULE
    PO_ITEM                        00001
    SERIAL_NO                      0001
    DELIV_DATE                     05.04.2008
    QUANTITY                                  1.000
    You can run the BAPI with some test data... if something is missing the BAPI will ask for it... the Results are displayed in Return Table.
    Regrads,
    Sachin

  • Mandatory Fields in iView created from SHD0 (sceen variant)

    I am experiencing an issue with the Portal display of an (IAC) iView.  The iView displays PZ05 and a transaction variant was setup to handle Emergency contact info.  I created a screen variant for the second screen of this transaction (screen 0200) in which I made 7 of the fields mandatory in the variant.  When this is tested on the R/3 side the mandatory fields are displayed the way they are supposed to be (with the check mark in the box, denoting it as a required field) however when they are displayed in the iView on the Portal the mandatory fields are completely filled up with the "check mark in the box".  In other words the "Name" field is 40 character... and there are 52 "check marks in the box" characters filling up the field.  The iView works great but this looks ugly.  Any suggestions on what I should do to rectify the situation?
    We are running Portal 6.0 SP15 with a stand alone ITS on a 4.6c backend and the Business Package is 50.4.

    Hi Balaji,
    When you create Vendors properly in ECC it should not give such an error. You have to maintain basic data, Accounting data and purchasing data. Rest all are optional.
    For replicating vendors from R/3 to SRM you should have a Vendor root org / group in SRM. BBPGETVD is used to replicate vendors to SRM by mentioning the logical system and Vendor Group ID.
    Hope this makes you clear. Please explain the error clearly for further help.
    Award points for helpful answers.
    Rgds,
    Teja

  • Dynamic mandatory field error message is not getting displayed in webui

    Hi,
    In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
    Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
    I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
    Can anybody tell where the problem is?
    Thanks,
    Hari.

    Hi Hari,
    Really sorry do not know how to convert this nug file to text
    How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
    Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
    Thanks,
    Rajesh P

  • User Created in OIM 11.1.1.5 with null value for mandatory field.

    Hi,
    We had updated one UDF as mandatory field on OIM user form. We can see the * in front of that field. Now if we create the user using web console (Using UI), we are not able to create the user without giving some value in that UDF as it is mandatory. However if we created the user with UDF value as null using Trusted recon, User sucessfully created in OIM. I had attached the screen shot for that user which create in OIM with UDF value as null.
    Is any thing else also need to do to make UDF as mandatory field.
    Regards,
    Sid

    I am not sure this is a bug. Such mandatory checks will often only apply to administrative changes from the GUI. You may not always be able to enforce the same quality of data in reconciled data as you wish to impose for changes made through OIM, and it may prove an issue in some cases if such users could not be reconciled. In this case the use will go into OIM, but you will be forced to populate a value in the mandatory field if you later try to update them in OIM.

  • Mandatory Fields displaying in the table

    Hi
    In my create Page  , fields are present with input fields and DROP DOWN BY KEY AND rADIO GROUP.
    In that some of the fields are mandatory.
    If i enter values in that create page, it has to show fields in the table.
    But iam having only mandatory fields should come in the table.
    Our Abapers created table for the Mandatory fields only.
    Iam having doubt how the remaining fields(not showing in the table) will connect to the database.
    Will any one explain me on this.
    Please help me.
    Regards
    Sushma

    Iam trying to connect my web dynpro application to R3 Database.
    Iam having list screen consistts of Create and Export buttons and table.
    Table Fields :
    Allowance Code , sub code ,Type , Level , expense Type , amount
    After clicking Create button ,
    the screen consists of save and Cancel buttons.
    Allowance Code -- (Input Field)
    Sub Code -- (Input Field)
    Period Type -
    (Dropdown by key)
    Type -
    (Radio button Group)
    Level --- (Dropdown by key)
    Expense Type -(Dropdown by key)
    Trip - (Dropdown by key)
    Currency - (Dropdown by key)
    Amount --(Input Field)
    In the Create screen all these fields are present. But in the table in the List Screen it is taking only mandatory Fields.
    For this our Abapers created
    Fun Mod : Zup_Allowance_Input
    Table : ZMSTR_ALLOW
    Iam getting error in this code under IdataType in this "Save Button ".
    Can any one help me where i went wrong in this code.or else please provide the Code for this.
    public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionSave(ServerEvent)
    try{
    String str1=wdContext.currentStdAllowanceElement().getAllowanceCode();
    String str2=wdContext.currentStdAllowanceElement().getSubCode();
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("PeriodType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getPeriodType();
    String str3=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str3);
    String arr[]={"Fixed","Actual"};
    for(int i=0;i<arr.length;i++)
    IPrivateEtrecStdCreateView.ICheckElement e=wdContext.nodeCheck().createCheckElement();
    wdContext.nodeCheck().addElement(e);
    e.setType(arr);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("").getDataType();
    String index=wdContext.currentStdAllowanceElement().getLevel();
    String str5=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str5);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("ExpenseType").getDataType();
    String index=wdContext.currentStdAllowanceElement().getExpenseType();
    String str6=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str6);
    IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Trip").getDataType();
    String index=wdContext.currentStdAllowanceElement().getTrip();
    String str7=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str7);
    IDataType datatype = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Currency").getDataType();
    String index=wdContext.currentStdAllowanceElement().getCurrency();
    String str8=wdThis.getTextFromSimpleType(dataType,index);
    wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str8);
    String str9=wdContext.currentStdAllowanceElement().getAmount();
    Zup_Allowance_Input input=new Zup_Allowance_Input();
    input.setAllow_Opt("C");
    input.setAllowance_Code(str1);
    input.setSubcode(str2);
    input.setType1(str3);
    input.setLevel1(str5);
    input.setExpense(str6);
    input.setCurr_Key(str8);
    wdContext.nodeZup_Allowance_Input().bind(input);
    wdContext.currentZup_Allowance_InputElement().modelObject().execute();
    String str10=wdContext.currentOutputElement().get();
    if(str10.equalsIgnoreCase("3"))
    String errorMessage = "Inserted Successfully !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }if(str10.equalsIgnoreCase("2"))
    String errorMessage = "Duplicate Value !";
    IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
    IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
    windowDialog.open();
    windowDialog.setWindowPosition(300,250);
    }catch(Exception e)
    wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    //@@end
    //@@begin javadoc:onPlugFromEtrecStdView(ServerEvent)
    /** Declared validating event handler. */
    //@@end
    public void onPlugFromEtrecStdView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onPlugFromEtrecStdView(ServerEvent)
    wdContext.currentStdAllowanceElement().setAllowanceCode("");
    wdContext.currentStdAllowanceElement().setAmount("");
    wdContext.currentStdAllowanceElement().setSubCode("");
    //@@end

  • Mandatory fields to create vendor and PO

    Hi all,
    I am migrating data from legacy system to ECC and to SRM. I found mandatory fields in ECC and I am not sure what are the mandatory fields for SRM. I need for Vendor creation(Foreign vendors also) and open PO. Please reply.
    Regards,
    Balaji

    Hi
    <b>Use the function module BBP_VENDOR_GET_NON_BAPI to create a vendor directly in SRM.</b>
    <u>Function module - BBP_VENDOR_GET_NON_BAPI</u>
    <u>Program</u> - <b>BBP_VENDOR_GET_DATA</b>
    <u>BAPI</u> - <b>META_BUSINESS_PARTNER_CREATE</b>
    <u>Also look at Function module - BBP_UPDATE_ATTRIBUTES.</u>
    <b><u>Did you created any PO using that "bapi_poec_create"..? Don't forgot to add a commit work in your program.</u></b>
    You will have to develop your own XML mapping to create a PO in SRM.
    You can use BAPI_POEC_CREATE (read SE37 documentation about GUIDs).
    This one also uses internal functions BBP_PD_PO_CREATE, UPDATE & SAVE.
    You don't have to take care of GUIDs. This function will generate them for you. You can pass the PO number as PO header GUID, and PO items as PO item GUIDs. This will make the links as well.
    <u>Please go through this as well -></u>
    Re: Upload PO from XML file in SRM
    Creating a PO with ME_CREATE_PO_ITEM
    Re: Function Module/BAPI to create vendors in PPOMV_BBP
    Re: BBP_PD_PO_CREATE
    Create PO
    <u>Hope this will definitely help. Do let me know.</u>
    Regards
    - Atul

  • Mandatory fields to create PO in SRM

    Hi all,
    I am working on data migration. Can you please tell me what are the mandatory fields to create PO in SRM. Please give the list of field names.
    Regards,
    Balaji.S

    Hi Balaji,
    Other than the mandatory fields mentioned above, you need to do some mandatory setting in SRM which would ensure that a Purchase order is created if the details in the shopping cart are complete.
    Go to transaction SPRO -> Supplier Relationship Management ->SRM Server -> Cross Application Basic Settings -> Define Objects in the backend system.
    Here you would need to mention the Purchasing group , the product category id , source system ( backend system). In the option External procurement - select the option Purchase order if the item data complete.
    This would ensure that provided your shopping cart data is complete, a Purchase order would be generated.
    Hope this helps.
    Kindly award if the answer was helpful.
    Regards,
    Rajesh

  • How to make a Button to work Actively even if there is a mandatory field..?

    Hi All..
    How to make a Button to work Actively even if there is a mandatory field to be fulfilled..???
    I am badly in need of this logic, as i have to incorporate in my code..
    Points will be rewarded without fail..

    Hi Pavan,
    I also faced the same requirement. U can do one thing like remove the obligatory keyword of that parameter/select-option. U can handle the same using the program in at selection-screen event. See this sample of code,
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:  s_land1 for T005-LAND1 <b>[Needs to be mandatory]</b>                 no intervals no-extension.
    SELECT-OPTIONS:  s_panid FOR zoindex_val-zopanid.
    SELECT-OPTIONS:  s_effdat FOR zoexchrate-zedate.
    SELECTION-SCREEN END OF BLOCK b2.
    *-- AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
    *-- Obligatory Country Code
      IF s_land1[] IS INITIAL.
        MESSAGE e050 WITH text-050.
                     "Please select the Country Code
      ENDIF.
    So whenever u do F8/Enter other than that push button, it will prompt u to enter the country code first then only u can proceed.
    Hope this would help u in some way. Please do reward the helpful answers.

Maybe you are looking for

  • Index usage depends on columns selected

    Hi, somehow cannot understand why index is not used, please help. in Oracle Database 11g Release 11.2.0.3.0 - 64bit Production 1.     Included only indexed column and got a perfect plan explain plan for2 select s.x_cnt 3 from reported_summary s 4 whe

  • How to add a new row in Tabular Form based on a table

    Hi I have tabular form based on a table. I want the table to have an empty row when there is no data in the table so that I can enter data directly. But right now whenever the page is launched, its showing a no data found message and I have to press

  • FLEX with java

    I have an java object which returns a map and its a stand alone application how can i call java object in a flex application. any sample code is really helpfull for me. Thanks in advance Poorna.

  • Apple iPhone & Flash

    Hi everyone, It seems as if the iPhone features the flash player within Safari. The page www.fandango.com is being used as a demo on the device in Apple's web site and this page has a few Flash banners. They don't seem to be animated on the demo thou

  • Iphone 4 software phone wont work or restore., Iphone 4 software phone wont work or restore.

    My phone was working fine, I turned it off. Later turned it back on and it told me to connect to itunes so when I got home I did it told me to restore so I did it went so far then came up saying it is damaged, took it to the phone shop and he checked