Labels in webdynpro

Hi All
        Is there any possibility to type multiple lines in a single Label. If you know let me know please.
Thanks in advance.

Hello Santosh,
Se the 'wrapping' property of label to 'true' and then set the 'width' propery to your required percentage; say '25%'. This way you can make the label come in multiple lines.
Hope this would suffice.
Regards,
Sudeep.

Similar Messages

  • Table of Labels of Webdynpro

    Hi Master of SRM.
    I have an Issue the Languages Translation in transaction BBPSC02 wizard the first step ask the three posibles options
    1 Old Shopping Carts and Templates
    2.- Internal Good /Services
    3.- Describe what do you need
    that is only an example.
    the problem is next . when  user Log in SRM portal in Language EN no problem is show the label of link in English
    but when I changes the Languages to Spanish the Portal show the description in German Languages, we Imported Languages in Spanish but no show the correct Label.
    what can I do ?
    Thanks .

    Hi,
    Here is the step for finding translation text id (Concept ID).
    1. Open the UI in application and right click on the field (Old Shopping Cart and Template) -> "More Field help".
        Copy the Web Dynpro Component: /SAPSRM/WDC_DODC_SC_GAF_C to clip board.
    2. Logon SRM in EN via SAPGUI. Go to SE80 and open the WebDynpro and display the View V_DODC_SC_GAF_FSCA
        Find the text and there is no text binding
    3. Go back to WebDynpro level /SAPSRM/WDC_DODC_SC_GAF_C and find Package name /SAPSRM/CH_WD_UI_BO_SC
    4. Open new session and call SOTR_EDIT transaction. Select Find button
    5. Paste the /SAPSRM/CH_WD_UI_BO_SC in package field, Langaugae=EN, Text=Old*
        You find the translation text objects. The transaction guides you how to maintain translation text.
    Regards,
    Masa

  • Setting the column labels in webdynpro abap alv report

    Hello,
    Right now I have programmed an ALV report. The selection criterion and the display of the report all work.
    However, there is an issue with the labels of columns in the ALV report. The report takes the field names of the structure I am using in the ALV report as the labels of the report. I have been trying to play around with the ALV class model to see if something will change the labels of the fields but to no avail. Would you guys know of some code or way to change the labels of the columns in the ALV report.
    Thank you for your help in advance.
    Sumit.
    Here is some of the code I tried but does no work in the wdInit() method. It does not change the label. Any suggestions???
    METHOD wddoinit .
    * instantiate used component from wizard
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * call a method in the used component from wizard
      DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE REF TO cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
    DATA: lr_field TYPE REF TO cl_salv_wd_field.
    lr_field = lo_value->if_salv_wd_field_settings~get_field( 'CUSTOMER_NUMBER' ).
    * change the label of the report.
    DATA: lr_CUSTOMER_NUMBER TYPE REF TO cl_salv_wd_column.
                CALL METHOD lo_value->if_salv_wd_column_settings~get_column
                  EXPORTING
                    id     = 'CUSTOMER_NUMBER'   receiving value  = LR_CUSTOMER_NUMBER.
    * SET THE LABEL OF THE COLUMN
    DATA: HR_CUSTOMER_NUMBER TYPE REF TO CL_SALV_WD_COLUMN_HEADER.
    CALL METHOD lr_customer_number->get_header
      receiving
        value  = HR_CUSTOMER_NUMBER.
    ***** set the text of the column
    CALL METHOD hr_customer_number->set_text
      EXPORTING
        value  = 'Customer1 Number1'.
    ENDMETHOD.

    You have to disable the DDic binding on the column before your override text will show up:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data l_salv_wd_table type ref to iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'POSTING_DATE' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Posting Date` ).

  • How to hide a label in webdynpro

    Hi.
       I have a Label and a dropdown in the window, where on selecting the particular value in my previous dropdown. This label and drop down need to be visible. How to hide the field.
    Kindly help me to solve this one.
    Thanks
    Yogesh

    Hi,
    You can use the ONSELECT event of the previous dropdown (the dropdown whose value you want to use to make the label invisible).
    In the evenhandler for ONSELECT event has paramaters like CONTEXT_ELEMENT , ID and KEY where ID is the ID of dropdown
    and KEY is the value selected in dropdown.
    EXAMPLE,
    DATA : lo_label = cl_wd_label.
    IF key EQ 'I agree'.
      lo_label ?= view_instance->get_element(ID = 'LABEL_ID').
      IF NOT lo_label INITIAL.
        lo_label->set_visible(value = 01 ).
      ENDIF.
    ENDIF.
    The view_instance has to be set with value of attribute"view" in ur WDMODIFY method of view.
    Similarily you can make dropdown or any UI element invisible.
    Hope it helps.
    Thanks,
    Aditya.

  • Align Fields or Label in Webdynpro

    Hi Experts ,
    How can I Allign the UI elements in WebDynpro ?
    I tried using different Layouts we have. But ! I couldn't get the desired result.
    My requirement is :
    In the First Row, I should have a table and in Second row , I must have two buttons which are aligned
    one for left and one for right. How can I align like that ? If I use the GridLayout with 2 columns, I am getting
    two collums for all the rows.  but ! I should have one column in first row and two columns in second row.
    Please help me.
    Regards
    Suresh..

    Suresh,
    To align  two UI elements in the same row you can use container UI element which is an invisble UI element used to align other UI Elements in webdynpro.
    -> Create a Container
    -> add/Create buttons into this container
    Done!
    Ram

  • How to align fields in Webdynpro ?

    Hi,
    How fields can be aligned as per user need in Webdynpro? I mean, say a table has been defined and user need the table to be displayed in the center of the screen....How can we achieve this???
    Completely new to Webdynpro !!!!!
    Regards,
    ABAPer007

    Hello,
    you need to define the fields in the layout..
    the properies of that field layout, can control your alignment of the layout
    for more info
    Check these.
    Align Fields or Label in Webdynpro
    /message/5412013#5412013 [original link is broken]
    hope it is useful to you.
    Regards!

  • Personalization for dynamic labels.

    Hi Everyone,
    I need to personalize my screen from english to french.
    i have used the same label in 2 different views.
    for one view it is create and other it is change.
    i am changing it dyanmicaly in the code.(in english).
    but now i need to personalize these labels to french.
    how do we personalize a dynamically changing label in webdynpro?
    Thanks and regards,
    rohan.

    Hi,
    Put your label texts as part of the message pool and then access them using the key and assign to the respective labels.
    Regards
    Ayyapparaj

  • Performance Management - Note Field

    Good Morning,
    I am investigating a customer request to change the label in our template's note field.   Does anyone have any experience in making this change ?  We are interested in changing each occurrence to something more reflective of the criteria that it is associated with rather than a plain 'Note'.   Thanks in advance for your input.
    Chris Thomas'

    Michael L Pappis wrote:>
    > >
    Chris Thomas wrote:
    > > Good Morning,
    > > I am investigating a customer request to change the label in our template's note field.   Does anyone have any experience in making this change ?  We are interested in changing each occurrence to something more reflective of the criteria that it is associated with rather than a plain 'Note'.   Thanks in advance for your input.
    > >
    > > Chris Thomas'
    >
    > I think if you modified the data element HAP_CELL_INPUT_NOTE so that you can change the field labels it would work.  It's pretty straightforward modfication.  the following object would need to be registered with SAP to get modification key.  basis can do this for you...
    >
    > R3TR DTEL HAP_CELL_INPUT_NOTE
    also I forgot, besides this option, somewhere along the lines you could create a post-user exist on the HAP_MAIN_Document webdynpro, where you can swap out the label to something else hardcoded or at least configured in the SOTR_EDIT (labels for webdynpro).  This would avoid an object key modification. 
    however more work / investigation would be needed to find out exactly where and how to implement.

  • Make label visible in webdynpro code

    hi,
    how to set a property of a label to visible in web dynpro java code?

    Hi,
    Create an attribute"Visibility" of type com.sap.ide.webdynpro.uielementdefinitions.Visibility
    And bind this to the visibible property of the label.
    Set any of the following values based on your requirement
    //To make the label visible
    wdContext.currentContextElement().setVisibility(WDVisibility.VISIBLE);
    //Hide
           wdContext.currentContextElement().setVisibility(WDVisibility.NONE);
    Regards
    Ayyapparaj

  • Field labels in alv in webdynpro

    hi all,
    I am using standard table as dictionary structure for my context node .
    So when i m seeing the ouput in ALV the header is coming up with field names . But  I want to display field lables so that it can be understood by users .
    Could you please send information on this .
    thanks

    Hi Santosh,
    As i understood you want to change the columns headers and if this is right then you can make use of CL_SALV_WD_COLUMN_HEADER class to achieve it.
    1. get the ref to all the columns
        data: lt_columns type salv_wd_t_column_ref.
        data: ls_column  type salv_wd_s_column_ref.
    lt_columns = lo_value->if_salv_wd_column_settings~get_columns().
    2. read the column you want to add custom header
    loop at lt_columns into ls_column.
    case ls_column-id.
    when 'MATNR'.
       data lr_col_header type ref to cl_salv_wd_column_header.
       lr_col_header = ls_column-r_column->create_header().
       lr_col_header->set_text('Test Header').
    endcase.
    endloop.
    this will set the column header as "test header" for the field matnr.
    Thanks,
    Abhishek

  • How to capture sy-ucomm BACK EXIT or CANCEL button in webdynpro from inbox

    I have a webdynpro which is triggerd by a inbox item (the inbox item is now reserved), on pressing BACK EXIT or CANCEL i want  to release the inbox item.
    In de webdynpro view methode WDDOEXIT i can do this butr i need to know if one of the three buttons ( BACK EXIT or CANCEL) is pressed by the user.
    sy-ucomm is empty.
    Is there a way to find out if a GUI button is preesed??
    Grtz and thanks
    RIchard

    hi, thanks for your response!
    I can't use your hint, because with the code:
    SELECTION-SCREEN BEGIN OF screen 100 as window.
    there will be a "GENERATED" screen. This means, there
    is a screen with all the input fields und the label 100 which I can't
    edit! Because if I edit this screen and activate my source again,
    my changes will be undone!
    So is my question, if there is another system-field than sy-ucom?

  • How do I change the text on a label for a SAP delivered WD view

    Hi,
    I need to change the text that is being displayed for a label in a SAP delivered WD ABAP View. When I look at the properties for this label, the Text property is currently empty, so I assume that the text that is being displayed in the view is coming from the dictionary. I was hoping to change the text of the label via the Enhancement Framework. I created an OTR entry, then went into SE80 for the WD Component, I navigated to the view in question, I pressed the Enhance button and entered $OTR:<package>/<alias name> in the text property for the label. Finally I saved and activated and was prompted to create an Enhancement Implementation, which I did and I selected it. Everything seems to be fine (no errors or warnings). I then ran the WD application. My change was not there. I then went back into SE80 for the WD Component that I created the enhancement. I navigated to the View and looked in the text property of the label and saw that my change was not there. I repeated this process several times and each time when I added the OTR entry to the text property of the label, it saves and activates without issue (in enhancement mode), but when I run the WD App the change does not show up and when I go back to the WD View, my change to the text property is gone. I know that if I really wanted to I could register the object and add the OTR entry to the text attribute of the label, but I am trying to perform this change using a modification free enhancement. Can this be done via an Enhancement, or do I have to register the object and make my change using a modification?

    Hi Gregg,
    excellent question. I had the same problem as well before.
    What I have learned is that you cannot change a UI Element via Enhancements.
    You can add new UI Elements (e.g. new label) or remove existing elements, but you cannot change them (except the layout properties (e.g. colspan) maybe).
    The only possibilities I see is
    1. Remove the existing label, and add a new label with your desired text
    2. Do it as a modification
    3. Do it as a configuration (This means you go to the webdynpro application in SE80, right click and select "Create/Change Configuration)
    4. Do it as customizing (This means you add the URL parameter sap-config-mode=X to the URL, navigate to the label, right click on it, and select "Change Settings for Current Configuration").
    The disadvatages of 3) and 4) are
    - texts in configurations and customizing are not translatable (as far as I know)
    - if you have multiple configurations, you have to change the label multiple times
    Hope this helps a bit,
    Daniel

  • Dynamic Label change the Text depending of the locale

    Hi,
    I have create a dynamic UI (some InputFields with Labels). The development is in American English. I have create resource name in the xlf-Files. For American English and for German. I set the text of the label by the dynamic creation of the label.
    If I try to get the label texts in english I get always  the text of the creation one but not the german one. The other texts of the UI-elements are right, which I have translate to german.
    It looks like that it is not possible to create UI-Labels for international using.
    Any idea.
    regards
    Gunter

    hi Werner,
    you try in this pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/internationalization%20of%20web%20dynpro%20applications.pdf
    Regards,
    vino

  • Firefox browser compatibility issues webdynpro for java application

    Hi,
    we have migrated SAP net weaver SP 21 and also to IE8 and Firefox. we have compatibility issues in Firefox like input fields, labels and command buttons are not properly aligned when comparing with IE 8.
    Could you please give suggestions to fix this problems.
    Thanks.
    Parthiban

    Hi Parthiban,
    Please check the SAP NetWeaver 7.0 Product Availability Matrix (PAM) in the Service Market Place http://service.sap.com/pam.
    [Check here |http://saplab.org/wp-content/SAP-NetWeaver-7.0-PAM.pdf]and verify you firefox browser versions compatibie for webdynpro
    Hope it will helps
    Regards
    Arun Jaiswal

  • Webdynpro pop up text change

    Hi All,
    I have created a pop up window by using method create_popup_to_confirm of if_wd_window_manager . I have created the OK button by using if_wd_window=>co_button_ok of if_wd_window .
    I need to change the default button text " OK  " to " EDIT ". I am following the below approach .
            view_controller = wd_this->wd_get_api( ).
            lo_window->subscribe_to_button_event(
            button = if_wd_window=>co_button_ok
            button_text = 'EDIT'
            action_name = 'MSG'
            action_view = view_controller ).
    Note : Action " MSG "  is a dummy action which I have created just to change the default button text .
    This works if the control is in the same view where pop up is called . If we have to go back to other webdynpro component/ view then , after clicking on EDIT button in pop up , it gives the dump with the error " Controller for View, Window, Interface, and Configuration Cannot Be Created " .
    Please let me know if there is any other way to change the default text in the pop up screen or any other solution . I am ok to use any other method which creates pop up window and default text should be modified .
    Thanks,
    Kiran.

    Hi Kiran,
    If its that important for you to change the button label, I would suggest creating a new view and calling it as a popup.
    Please follow below steps to do so:
    1) Create a new view with your respective design having message and EDIT button.
    2) Create a new window say Popup_Window
    3) Add the new view to this window and add below code
    4)Create a
    Data: context_node type ref to if_wd_context_node.
      data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
      data: lr_api_comp_controller type ref to if_wd_component,
            lr_window_manager type ref to if_wd_window_manager.
      lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      lr_popup = lr_window_manager->create_window(
      MODAL               = ABAP_TRUE
      window_name         = 'POPUP_WINDOW'  "Name of the window created in step 2
      TITLE               = Confirmation Message"
      CLOSE_BUTTON        = ABAP_TRUE
      BUTTON_KIND         = if_wd_window=>CO_BUTTONS_OKCANCEL
    MESSAGE_TYPE        = if_wd_window=>co_msg_type_error
      CLOSE_IN_ANY_CASE   = ABAP_TRUE
    *MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
    Adds an action to the popup screen buttons
    lr_view_controller = wd_this->wd_get_api( ).
    lr_popup->subscribe_to_button_event(
    button = if_wd_window=>co_button_ok
    button_text = 'EDIT'
    action_name = 'EDIT'
    action_view = lr_view_controller ).
      lr_popup->open( ).
    I hope it helps.
    Please revert back in case of issues.
    Regards,
    Sumit

Maybe you are looking for