Ho to Display Fields as Mandatory in BSP Layout?

Ho to Display Fields as Mandatory in BSP Layout, I mean with '*' after the field lable in BAP Layout ?
Thanks
James

For Every BSP element we have attribute:
required -
Use this attribute to determine whether or not the input field is mandatory.
Thanks
James.

Similar Messages

  • Displaying SY-ZONLO in the BSP layout

    Hi all
      I would like to know how do you pass a system variable Sy-ZONLO to a table iterator in BSP layout.
      I need to show the timezone in the BSP layout according to some conditions in the internal table.  I need to pass this
      dynamically.
    Cheers
    Vivek

    Hi
    I found it out! thnks !
    Cheers
    Vivek

  • In BSP how to give the input field as mandatory?

    Hi friends,
    In BSP how to give the input field as mandatory?
    In BSP i want to validate the input field (example checking the material no is valid or not)
    if this material no doesnot exit means i want to pass error message.What is the code for that.
    Moosa

    hi
    try this
    in LAYOUT
    <htmlb:inputField id = "vname"  disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
    in DO_HANDLE_EVENT
    in oninputprocessing
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
        button_event ?= event.
      ENDIF.
        case event->id.
            when 'select'.
               if v_visitor = ''.
                 page->messages->add_message(
                 condition = 'vname'
                 message   = 'Visitor Name can not be blank'
                 severity  = page->messages->CO_SEVERITY_ERROR ).
              ELSE.
                    here u can write ur when ur field getting filled
            endif.
         endcase.
    endif.
    give marks if it is helpful
    thanks

  • 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

  • How to Make Fields in Field Catalog Mandatory

    Hi Gurus,
    I want to Make Some Fields In Field Catalog Mandatory and Some should be Non Mandatory Can u please help me out as soon as u can.
    Regards
    Deep Gaur

    Hi,
    IF you can specify which Field Catalog then it will be useful for us to provide appropriate answer.
    1. For Customer Master
    IMG> Financial Accounting New> Acs Recev and Acs Payable --> Customer Accounts --> Master Data --> Preperation of creating customer master Data --> Define Account Groups with screen layout (customers)
    In that you can create your own account group, and click Details Screen.
    There will Field Status header within that are listed three main areas
    General data
    Company code data
    Sales data
    When you double click these lines it will take you into "Status Group" Overview. Wherein under "Select Group" are listed fields Address, communiucation.... Double click on one group , you will bet aken into the group field wherein you will find 4 colums with indicators assigned to it. ( Suppress, Req. Entry, Opt Entry, Display) you can choose the required option. "Req. Entry" against the field. Click save after you complete your selections.
    2. Similarly you can do for Material Master in
    IMG --> Logistics General --> Material Master --> Field Selection --> Maintain Field Selection for Data Screens
    But be careful when you do it for material master as it is cuts across all the modules...
    Regards
    Sathya

  • How to make external reference field as mandatory in customised ZDCR

    Hi guys,
    I am working in CHARM implementation and we have defined customised transaction type for change request(ZDCR), now my client wants the external reference field as mandatory, and we are using CRMD_ORDER for creating a customised change request. Now my point is the external refernce field should be mandatory only to ZDCR transaction type and it should not effect to another transaction types who are using through CRMD_ORDER transaction code.
    Kindly give ur inputs it is very urgent as the Go-live it very near.
    Thanks&Regards
    Sitaramaraju.P

    Hi!
    Try to modify the Dynpro of TC: CRMD_ORDER:
    Start Transaction SE80.
    Display program SAPLCRM_SERVICE_UI
    Go to 'Screens' and select screen 7153
    Go to the element list of screen 7153
    Then select 'Special attr. '.
    Activate the change mode.
    Mark field Name: CRMT_7010_SERVICE_UI-PO_NUMBER_SOLD / Typ: I/O as required entry field.
    Activate your changes and start Transaction CRMD_ORDER
    Due to this modification you will need a SSCR Key for this object (see http://service.sap.com/sscr).
    Hope this will help!
    Best regards / Gerhard

  • Select -options (fields as mandatory) and alv

    Hi all,
    i have 5 fields in select options and alv table , based on selection criteria values will display in alv table. now i want to make 2 fields as mandatory in select-options. without entering values in those two fields it should not allow the values to display iin alv table , it should rise a message..
    (i have not created node for select-options ,i have directly used data type in wddoinit for select-options and for alv table i have created node)
    thanks all

    Hi,
    In wddoinit while creating select options by ADD_SELECTION_FIELD method ,it has a parameter called I_OBLIGATORY. Set it as X and thus the field becomes mandatory.
    Regards
    Karthiheyan M

  • Display irrespective of mandatory restriction

    hi sap,
    i have screen and first 3fields are mandatory fields.
    my requirment is... when give the purch.grp.no  and press display it should give the record which already existing.
    but now due to the mandatory restriction it is asking me to fill those 2 values... so how can i avoid this and display all the records. when i remove the restriction am able to display it but mandatory restriction should not be taken out instead they should be there and i should be able to display it.
    ex : prc.grp   is mandatory
          descrit   is mandatory
          name     is mandatory
    when i give prc.grp = 100 i should get the record of 100 irrespectiv of the 2 other mandatory fields
    how can i do it can you please advise me.
    thanks in advance
    regards,
    laya.

    dear laya,
    u have ticked the mandatory for 3 fields in the screen.so it is saying to fill other two fields also.
    so what u can do is, remove the tick from other two fields.
    so for the other two fields, u can control them programatically.
    write the following code in pai. in chain........ endchain for  other two fields.
    if purch org is not initial and sy-ucomm = 'displayclick'.
    ******write the code whatever u need.
    else.
    message 'fill other two fields' type 'E'.
    endif.
    regards
    sajid

  • How to make input field as mandatory field in sub screen

    Hi All,
           I need to display the input selection parameters in tab strip sub screen. The input screen is not giving an error while processing with blank values, but I made the input field as required in sub screen input filed settings. Can some one please help me how to make the input field as mandatory field in sub screen.
    Thanks in advance.
    Regards,
    Kannan

    Hi Kannan,
        Try this out.
    1. Goto screen painter
    2. Enter the program name and screen number ( screen # 1000 -  in case if its  a custom report prg)
    3. Double click on the field which u`ve got to make mandatory.You`ll get Screen painter attributes window.
    4. U`ll find three tabs here - Dict, Program, Display
    5. Go to Program tab, and change the first attribute - Input field`s input value as "Required".
    6. Save and activate it.
    7. Now execute ur program and this should make ur field as mandatory on the screen.
    This works with input fields, but I`m not sure about the input field in tab strip control.
    Hope this helps
    Regards,
    Farhana

  • Drill down capabilities for an alv grid display field using oops concept

    Hi All,
    could anyone help me in how to achieve the drill down capabilities for an alv grid display field using oops concept.
    Thanks & Regards,
    padmasri.

    padmasri,
    Hope your requirement is something like, when you click on a sales order number it should display that order (VA03), in a grid output displayed using set_table_for_first_display.
    you can acheive it using event double click.
    *&            L O C A L  C L A S S E S   -   D E F I N I T O N         *
    class lcl_event_receiver: local class to handle event DOUBLE_CLICK
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
        METHODS:
        HANDLE_DOUBLE_CLICK
            FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                IMPORTING E_ROW E_COLUMN.
      PRIVATE SECTION.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    *&    L O C A L  C L A S S E S   -   I M P L E M E N T A T I O N       *
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DOUBLE_CLICK.
        PERFORM HANDLE_DOUBLE_CLICK USING E_ROW
                                          E_COLUMN.
      ENDMETHOD.                           "handle_double_click
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    FORM HANDLE_DOUBLE_CLICK USING E_ROW    TYPE LVC_S_ROW
                                   E_COLUMN TYPE LVC_S_COL.
      DATA: LS_DETAIL LIKE LINE OF T_OUTPUT.
          WHEN 'T_OUTPUT'.
            READ TABLE T_OUTPUT   INDEX E_ROW-INDEX INTO LS_DETAIL.
    If clicked on PO Number or PO Item, call ME23
        IF E_COLUMN-FIELDNAME = 'EBELN' OR
           E_COLUMN-FIELDNAME = 'EBELP' .
          SET PARAMETER ID 'BES' FIELD LS_DETAIL-EBELN.
          SET PARAMETER ID 'BSP' FIELD LS_DETAIL-EBELP.
          CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
    If clicked on sales order number or item, call VA03
        ELSEIF E_COLUMN-FIELDNAME = 'VBELN' OR
               E_COLUMN-FIELDNAME = 'POSNR'.
          SET PARAMETER ID 'AUN' FIELD LS_DETAIL-VBELN.
          SET PARAMETER ID 'APO' FIELD LS_DETAIL-POSNR.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    Hope this helps

  • Setting a field as Mandatory dynamically based on certain condition

    Hi All -
    I am working on ADOBE Interactive forms. I am not able to find out, How to set a particular field as a 'Mandatory field' based on some condition. I am using FormCalc as scripting language.
    i.e: I have a field "RATING". I want to make the next field "COMMENT" as mandatory when "RATING" is less than 3.

    Hi Vishal,
       You need to set the mandatory attribute of the specific field according to your condition. In FormCalc this will be similar to this,
    if (Rating < 3) then
              $.mandatory = "error"
              $.mandatoryMessage = "The corresponding Comment field is mandatory. Please fill"
    else
              $.mandatory = "disabled"
    endif
    The mandatory property can be set as:
    "error" : Makes the field compulsory to be filled before submission
    "disabled" : Makes the field optional
    "warning" : Gives a warning to the user that the field should be filled, but doesn't cause an error on submission
    The property "mandatoryMessage" specifies the message to be displayed to the user when the mandatory field isn't filled before submission.
    Regards,
    Rose

  • Regarding Selection Screen field making display field  in ALV report

    Hi All,
               In ALV Report,  at runtime how can i make the field as Display Field in selection screen .
    Thks & Regds
    Shailesh

    hii,
    Go to se38 and give the below progra name execute.... check the source code it is very easy to understand.
    1.demo_dynpro_modify_simple
    2.demo_dynpro_modify_screen
    if tou are using grid,u can refer to foll link
    sequencing / choosing fields in report screen at runtime,
    Display the Columns in the grid at run time
    rgrds,
    Shweta

  • Displaying fields from a Z Table on CRM UI

    Hello Experts
    I am trying to display fields from a custom table onto a CRM UI form view.
    1. I created a custom GENIL root object & Search object ie. ZCUSTOMER. & ZCUSTSEARCH
    2. Tested this in the GENIL BROWSER to ensure that I could enter update values to the table and retrieve it via the search object.
    3. Created a custom component ZCUSTOMER
    4. Created a view with this component ZCUSTOMER using the wizard -
         Model Name - CUSTINFO
         BOL Entity - ZCUSTOMER
         No links to the custom controller or higher level objects.(as I do not want to tie this to any standard components)
    Type of view - Form view
    7. Created a Context node for the component controller with the same info as I did for the view.
    8. Performed the binding of the view context node with the component controller context node.
    9. Configured 1 field CUST_NAME to be displayed on the view.
    10. Configured the run time repository to display the view.
    Now the issue is..
    When the view gets displayed, the field is displayed with the error "CUST_NAME not bound"
    What am i missing?
    Thanks
    RLX

    Hi Swati,
    Thanks for the feedback. I re-viewed the WD_CREATE_CONTEXT method of the view controller implementation class and I see the following code in there already-
    method WD_CREATE_CONTEXT.
      create the context
        context = cl_bsp_wd_context=>get_instance(
              iv_controller = me
              iv_type = 'ZL_ZCUSTOMER_BSPWDCOMPONEN_CTXT' ).
        typed_context ?= context.
    endmethod.
    Does that look right or do I need to modify it?
    Thanks once again for the help.
    RLX

  • Import Manager and Display Fields

    I've been using SRM-MDM 3.0 for a couple of months and 1 fundamental MDM design has always bothered me and I was hoping to get some resolve on this.
    The purpose of Display Field is 2 folds:
    1. Display the field in the Catalog Search UI for a lookup table: i.e. if both Supplier Name and ID are Display Fields, then in the Search UI, both fields are displayed to the end-user. If only Supplier ID was the display field, then in the UI only the ID is displayed.
    - From a usability pov, tables such as Supplier and Product Group should have the name or description fields displayed in the Search UI as the numeric values are meaningless to the end-users. 
    2. Display field ALSO affect what is the key used to import data into a table.  So if Supplier ID is the display field for Supplier table, then in Import Manager, the Supplier ID values are displayed and must be mapped to the source values.
    - From an importing pov, mapping values should always be an index-like field, such as Supplier ID or Product Group ID, or ISO, and usually never the actual name or description field.
    But SAP has tied the two together. So in order to display the name/description to the end-user, we must enable the name/description field as a Display Field.  But we also want to map based on the index/ID field, so we also enable the index/ID field as a Display Field.  Now in Import Manager, we have two Display Fields for a table (i.e. Supplier ID and Supplier Name for Supplier table) and I've noticed some issues with this:
    1. You import file must have BOTH values (index/ID and the name/description fields) in the source, in order to Automap.  If your source file only has 1 field, like in MECCM when extracting  ECC contract, ONLY the Supplier ID, or Category ID is extracted, Automap is not possible.  What is funny is that standard SAP extract program only extracts the ID fields, BUT the standard SAP repository has the name/description fields as the Display Field.  Automap is a must for tables like Product Group where hundreds of lines can make manual mapping a pain.
    2. I also noticed you cannot Add values to a table that has 2 Display Fields, you can only map to existing values.  The Add button is grayed out.
    With all that said, when you're replication ECC Contract Data using MECCM, for tables like Supplier and Product Group, what fields should be set as Display Fields, and if there are multiple Display Fields, what special setting needs to be done in Import Manager to enable automapping?  Even standard SAP Import Map (_MDMContractDataTransmission_ProductID) throws errors when multiple fields are set as Display Fields.
    I'm not familiar with the partitioning function, and I've seen PDF's about it, but don't really see how it could be helpful. I've also read someone suggesting changing the DF's before import, which I think is unacceptable, as this requires unloading/loading repositories everytime an import happens.
    Thanks for reading my paragraph and any input is greatly appreciated.
    Edited by: Derek Xu on Apr 30, 2009 6:50 PM

    Hi Derek,
    Thanks for writing your thoughts. I would like to provide some information on one of your points where in you have mentioned that :
    You import file must have BOTH values (index/ID and the name/description fields) in the source, in order to Automap. If your source file only has 1 field, like in MECCM when extracting ECC contract, ONLY the Supplier ID, or Category ID is extracted, Automap is not possible.
    I completely agree that if you have 2 fields in MDM repository and you are only importing only one of them, then you cannot use the Automap feature of Import Manager. So in your case, the description is not getting importing, so you cannot use Automap in that case.
    I had a very similar requirement in one of my project and we went with creation of a Import Value template. We created a template with all the possible values for all the look up tables in that and mapped it once in the Map. Hence, next time, the Map was used to automatically Map the source and Destination values for all the look up tables.
    SAP-MDM Automatic Import Requirement u2013 Creation of a Value Mapping Template:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80ad0cff-19ef-2b10-54b7-d4c7eb4390dd
    Please read the above article and hope its useful. You can go for this approach in your case if suitable.
    I have mentioned examples of descriptions and their respective fields in the article.
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • OIM 11g R2 - Setting a field as mandatory while provisioning through catalo

    Hi,
    May I know how i can make a field as mandatory (Red Asterick) while trying to provision an account through catalog wizard.I dont see any option to set required=true while creating a form for an application instance.Thanks.

    login to sysadmin-> create sandbox-> go to form designer->select your form now click on customize link(right top corner)->select your attribute and set the required field as true and then save it. finally export sandbox. run catalog sync job. and then verify if attribute is mandatory in the request form/dataset or not.
    same mentioned in R2 release note

Maybe you are looking for