Text/Caption in Web Dyn Pro? (Newline possible?)

Is it possible to add a new line for text in caption in web dyn pro?
In Java, I tried storing the string as "Result.\nPass" but it seems when being displayed, the new line is not shown but it is only shown in one whole line.
Any advise?

Hi
Good problem is solved.
Your question usage of setLabel? What label is being set when you refer to "currentContextElement()" ?
1Actually for your concern I did one test in my NWDS ,Its a wrong naming convention thats why u confused.
(instead of label i have to use say InputCaption because label is standard used by framework or its common )
2. I have created one context attribute named label and one UI of TextView ,associated its value property to
    this context.
and accessed this through currentContextElement()
Best Regards
Satish Kumar

Similar Messages

  • Select option in web dyn pro

    Hi,
    Is there any way to deafult current date to date select-option in web dyn pro?

    hi,
    Check following code:
    DATA:
           lr_componentcontroller TYPE REF TO ig_componentcontroller,
           l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      DATA:
          lt_range_table       TYPE REF TO data,
          lt_types             TYPE string_table,
          rt_range_table       TYPE REF TO data,
          text                 TYPE string,
          typename             TYPE string.
      DATA: vbeln TYPE lips-vbeln,
            erdat TYPE lips-erdat,
            auart TYPE vbak-auart,
            trnsp TYPE vtadd01t-add_info,
            kunnr TYPE likp-kunnr.
      DATA:
        num_events TYPE i.
      DATA: uname TYPE sy-uname.
      uname = sy-uname.
      wd_context->set_attribute(  name = 'CUSTOMER'
      value = uname  ).
    wd_context->GET_ATTRIBUTE( Name = 'TRANSPORTER_CODE'
    Value = uname ).
    create the used component
      l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
    get a pointer to the interface controller of the select options component
      wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBELN_VL' ).
      wd_this->m_handler->add_selection_field(
        i_description                = 'Sales Document'
        i_id                         = 'VBELN'
        i_obligatory                 = 'X'
        it_result                    = lt_range_table
        i_value_help_structure       = 'LIPS'
        i_value_help_structure_field = 'VBELN' ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'ERDAT' ).
      wd_this->m_handler->add_selection_field( i_id = 'ERDAT'  i_obligatory = 'X' it_result = lt_range_table ).
    *lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VTTK_ADD01' ).
    *wd_this->m_handler->add_selection_field( i_id = 'VTTK_ADD01' I_DESCRIPTION  = 'CHAHA' it_result = lt_range_table ).
       wd_this->m_handler->add_selection_field(
         i_description                = 'Transporters Code'
         i_id                         = 'VTTK_ADD01'
         it_result                    = lt_range_table
         i_value_help_structure       = 'VTADD01T'
         i_value_help_structure_field = 'ADD_INFO' ).
    *Supress Global options in Used Component
      wd_this->m_handler->set_global_options(
          i_display_btn_cancel  = ''
          i_display_btn_check   = ''
          i_display_btn_execute = ''
          i_display_btn_reset   = '' ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBAK-AUART' ).
      wd_this->m_handler->add_selection_field(
        i_description                = 'Sales Document Type'
        i_id                         = 'AUART'
         i_obligatory                = 'X'
        it_result                    = lt_range_table
        i_value_help_structure       = 'VBAK'
        i_value_help_structure_field = 'AUART' ).
    ENDMETHOD.
    METHOD onactionexecute .
      DATA: node_saledoc TYPE REF TO if_wd_context_node.
      DATA: node_crdate TYPE REF TO if_wd_context_node.
      DATA: node_transcode TYPE REF TO if_wd_context_node.
      DATA: node_doctype TYPE REF TO if_wd_context_node.
      DATA: node1 TYPE REF TO if_wd_context_node.
      DATA: node2 TYPE REF TO if_wd_context_node.
      DATA: rt_saledoc TYPE REF TO data.
      DATA: rt_crdate TYPE REF TO data.
      DATA: rt_transcode TYPE REF TO data.
      DATA: rt_doctype TYPE REF TO data.
      FIELD-SYMBOLS: <fs_saledoc> TYPE table,
                      <fs_crdate> TYPE table,
                      <fs_transcode> TYPE table,
                      <fs_doctype> TYPE table.
    Retrieve the data from the select option
      rt_saledoc = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'VBELN' ).
    Assign it to a field symbol
      ASSIGN rt_saledoc->* TO <fs_saledoc>.
    Retrieve the data from the select option
      rt_crdate = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'ERDAT' ).
    Assign it to a field symbol
      ASSIGN rt_crdate->* TO <fs_crdate>.
    Retrieve the data from the select option
      rt_doctype = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'AUART' ).
    Assign it to a field symbol
      ASSIGN rt_doctype->* TO <fs_doctype>.
    Retrieve the data from the select option
    *rt_transcode = wd_this->m_handler->get_range_table_of_sel_field(
    *i_id = 'VTTK_ADD01' ).
    Assign it to a field symbol
    assign rt_transcode-> to <fs_transcode>.
      node_saledoc = wd_context->get_child_node( name = 'S_VBELN' ).
      node_saledoc->bind_table( <fs_saledoc> ).
      node_crdate = wd_context->get_child_node( name = 'S_ERDAT' ).
      node_crdate->bind_table(  <fs_crdate> ).
      node_doctype = wd_context->get_child_node( name = 'S_AUART' ).
      node_doctype->bind_table( <fs_doctype> ).
      IF <fs_doctype> IS NOT INITIAL
        AND <fs_crdate> IS NOT INITIAL
        AND <fs_saledoc> IS NOT INITIAL
        wd_comp_controller->execute_zotddelvnote_vend_tari( ).
      ENDIF.

  • How to handle exceptions in web dyn pro

    Hi Frndz....
                     Can any one kindly xplain how to handle exceptions in web dyn pro..like we hav exceptionhandling in java ....so is there any for NWDS
    THANKS & REGARDS
    Rajesh

    Hi,
    Web Dynpro Java is basically java only.i.e You program in java. Hence exceptions are supported in the same way as in java i.e. via try,catch and finally block.
    Additionally,
    In 04/04s if you create a method in any controller in web dynpro you cann't specify exception that can be thrown in the method. This is now possible in new programming web dynpro model in CE.
    Hence when creating a method you can also specify custom or core java (lib)excetions.
    Regards,
    Ashwani Kr Sharma

  • How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Hi Experts,
    How to reschedule a Back ground job in Normal ABAP from Web Dyn Pro abap application??

    Can you give us some more information? Background jobs primarily don't have anything to do with Webdynpro.

  • Deploying  ABAP Web Dyn Pro application in a portal iView

    Hello,
    Our goal is to Deploy Web Dyn Pro application to public internet user and at the same time we want to keep the ABAP Web Application server that host Web ABAP  Dyn Pro application behind the firewall so that no one can directly access the ABAP WAS over the internet. To do this we are planning to deploy the ABAP Web Dyn Pro application with in a portal iView where the portal server has anonymous access to the internet user. 
    The question is when we embed the ABAP Web Dyn Pro in a portal iView, does the web browser directly talk to the ABAP WAS?  If so, is there any other method where we could keep the ABAP WAS secure and give the public access to ABAP Web Dyn Pro application.
    Thanks,
    Vimalan

    Hi Vimalan,
    <b>I'm assuming you use some kind of a reverse proxy in front of the portal server</b>.
    Here how it goes:
    1. Create a WD ABAP AppIntegrator iView in the portal.
    2. The iView will use a system that holds the ABAP server details (host:port and protocol)
    3. The system will be configured to have the host:port and protocol of the reverse proxy server.
    4. On the reverse proxy server, create a rule that will forward all URLs with the template of <i>/sap/bc/webdynpro/</i> to the real host:port and protocol of the ABAP server. This way you achieve what you intend to do.
    Hope this helps,
    Natty

  • Java Web Dyn Pro Jump Start

    Forum Members
    Can you please help me and provide links,documentation(pdfs etc) which would help me get started
    with a medium complexity java web dyn pro application.?
    Any information pertaining to Java Web dynpro will be useful.
    Moderators: Please note..I did look for some quick start tips in the forum but search did not yield relevant results.

    Follow this link
    This is specific for  [Web Dynpro for Java |http://help.sap.com/saphelp_nw70/helpdata/en/14/c897427f18d06ae10000000a155106/frameset.htm|Click to Navigate] Applications

  • Debug Web Dyn Pro application. Absent library class

    Hello, Could anybody assist me.
    I have web dyn pro project, it works well when I run it in normal mode. But when I run it under debug mode I got the exception
    that one my library was not found.
    java.lang.NoClassDefFoundError: com/accenture/mdp/common/util/StatusUtil
         at com.accenture.mdp.company.components.CompanyDataEntry.wdDoInit(CompanyDataEntry.java:189)
         at com.accenture.mdp.company.components.wdp.InternalCompanyDataEntry.wdDoInit(InternalCompanyDataEntry.java:824)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:275)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:539)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:421)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:135)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:404)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:618)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    May be somebody know reason of this problem ?

    Hi Sergey,
    Please check if the below threads are useful for you:
    1. debugging question - source not found  
    Re: debugging question - source not found
    2. java.lang.NoClassDefFoundError when utilizing an external jar/zip  
    Re: java.lang.NoClassDefFoundError when utilizing an external jar/zip
    Regards,
    Anagha

  • Find the missing Authorisation Object in the WEB Dyn pro applciation

    Hi,
    We are having the ECC6.0 with Enterprise portal. in EP we are running the application with some webdynpro
    there are some missing authorisation when running the application
    how can we track the what all authorisation is missing / checked for the web dyn pro
    is there any way Like SU53 in the WEbdyn pro or any other method to check ?
    all the web dynpro are custom developed
    Thanks & Regards
    Virandra Sharda

    Hi,
    SU53 dump may not work for the authorization issue as it provides last authorization check failed details.
    Take trace by ST01 transaction. It will provide you the authorization check details..
    Where Return Code (RC) will be 4(RC= 4), there user is facing authorization issue...
    Try to find the error from from the first authorization check failed details..
    There may be some false authorization check failed details, what is not required for the perticular work.
    This kind of error comes due to program error. So you need to test the access by adding the authorizations.. try to provide minimum authorization to solve the issue.
    Regards,
    Sandip.

  • Web Dyn Pro development

    Dear Experts,
    Seek your kind advise on the following:
    We have developed a Web Dyn pro object which has created a URL. We are able to access the screen through directly entering the url in the browser. However, as you would know typing the extra long URL is not the preffered way. hence i wish to launch this url through a click on the web screen of the SAP CRM.
    I understand the 'transaction launcher' could be helpful but I dont know how. Would be heavily obliged for some tips on how to proceed ahead.
    Thanks and regards, in advance.

    Thanks a ton.

  • Web dyn pro+ALV

    Hi all,
    I am using alv in web dyn pro.
    I want Drop downs in alv list.
    Eg: alv is displaying carrid,connid,price,and etc.,
    i want carrid and connid as read only drop downs.
    Regards,
    sarath

    Hi Sarath,
      set_attribute_value_set method is used to set dropdown values to an attribute and not to the node.
    If you want to use this specific method for setting dropdown values, Create an attribute in the node 'DROP' say drop_down and then do the following.
    METHOD dd_country.
    DATA: lx_current_controller TYPE REF TO if_wd_controller,
    lx_node TYPE REF TO if_wd_context_node_info,
    lx_element TYPE REF TO if_wd_context_element,
    ls_value TYPE wdy_key_value,
    lt_value_set TYPE wdy_key_value_table,
    lx_current_controller = wd_this->wd_get_api( ).
    Get the Values to that need to be set as dropdown,
    Build the values set internal table. by doing the below.
    CLEAR ls_value.
    ls_value-key = ls_t005t-land1.
    ls_value-value = ls_t005t-landx.
    APPEND ls_value TO lt_value_set[].
    Set the dropdown.
    lx_node = wd_context->get_node_info( ).
    lx_node = lx_countries_node->get_child_node( name = 'DROP' ).
    lx_node->set_attribute_value_set( name = 'DROP_DOWN'
    value_set = lt_value_set ).
    Regards,
    Suman

  • Is Auto-refresh feature available for tables in web dyn pro???

    Hello Experts,
    I have a requirement as explained below..
    There is a table which has few rows, which are populated on launch of a particular screen..now table needs to be refreshed without reloading of page or press of a button (i.e without any user action)..
    is there any fearure in Web dyn pro which facilitates this requirement???
    Thanks in advance..
    thanks & Regards,
    Hampanna Kamatar

    Hi Hampanna,
    I guess you can use the TimerTrigger. This will be useful in your case.
    The TimedTrigger UI element is used to execute a controller action periodically with a defined delay.
    TimedTrigger is currently invisible (like InvisibleElement), thus it ignores both its tooltip and its visibility. Nevertheless it occupies a cell in certain layouts like MatrixLayout. To use a timed trigger, you have to assign an action to the onAction event and set the delay property to the desired delay in seconds.
    There are several ways to turn off a timed trigger. The most convenient way is to disable the assigned action (like you would do with a button). Other possibilities are setting the delay to 0 or disabling the timed trigger like any other UI element.
    Caution: Triggering the action rudely interrupts user interactions!
    So what you can do is asign a action and write the code to reload teh data in that action. Set the delay you require in seconds. In case later you want to switch of the timer you can easily do that.
    Check these API:
    http://help.sap.com/javadocs/nwce/current/wdr/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDTimedTrigger.html
    I hope this will solve your issue.
    Thanks and Regards,
    Pravesh

  • Interactive report in Web Dyn Pro

    Hi.
    How to do the Interactive Report in Web Dyn Pro Application.
    In selection screen i give the VBELN data.
    Based on VBELN i want display VBAK data First.
    If i am double click on the Sales Document Number of VBAK then i want display the VBAP data.
    Thank You.

    Hi Krishna,
    Try going through this [example here|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm]. The application has 2 views created, one for input screen for entering customer number and other for displaying the sales order details for the chosen customer. The user enters a customer number on the main view & clicks on a button to fetch the data. The system then displays the corresponding sales orders of this customer in a pop up window. The user then selects 1 sales order from the popup window and presses on another button. It would then go back to the main view & display the corresponding sales items for the selected sales order number.
    Regards,
    Uday

  • Java WEB DYN PRO and KM

    Can webdyn pro application talk to KM and retrieve documents and other other such information?
    Any examples or information on similar approach will be really welcome.
    Thanks in advance
    Points will be awarded to useful answers
    Regards
    Stride

    Hi Stride,
                     Hope these links will help u
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/kmLibrary-ReusableComponentforWebDynpro+Java&
    /people/thilo.brandt/blog/2007/08/27/getting-started-with-the-km-web-service-api
    /people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
    regards
    Sumit

  • Schedule Web Dyn Pro Java Application in EP 7.30

    Hi Experts,
    We have a requirement to execute a web dynpro Java program every day at a specified time (Like a SAP ISU Batch program). Is there any probition in NWDS 7.30 to schedule a Web Dynpro Java Program

    Hi Amit,
    Possible solutions:
    You can try using java scheduler from NWA , but it wil need atleast onehuman interaction.
    http://scn.sap.com/docs/DOC-2665
    or may be use of Asynchronous views
    Implementing a scheduler using webdynpro java in CE 7.2
    For RFC, you can write an helper class inside your application.
    Or if you can use BPM for this. You can write your custom code on Boundary event, which will do all the work you intended.
    Regards,
    Nikhil Joshi

  • How to get the column filtering in web dyn pro

    wainitng for reply

    By reading SDN weblogs and forum posts? Example:
    /people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter
    /people/kapil.kamble/blog/2006/12/21/how-to-get-ready-made-filter-for-your-web-dynpro-table-with-minimal-coding
    Armin

Maybe you are looking for