Code for 'screen refresh' in webDynpro for ABAP

Hi all,
can I get some sample code for refreshing the screen in webDynpro for ABAP??
Its urgent, awaiting for your early helpful replies.
thanks,
Hema.
Edited by: Hema Sundar Munagapati on Jan 19, 2008 4:00 PM

HI Hema,
What i understood from u r query is u want 2 refrsh all ui elements data.
u can read data from the respective nodes and clear those data.
Example: I want to delete contents of an ui element on the screen( FULL_NAME ).
create a buuton REFRESH  on the screen and assicn a action to that button.u wil get a method with that action.write this follwing code in tat method.
method ONACTIONREFRESH_UI .
    DATA lo_nd_processedby TYPE REF TO if_wd_context_node.
    DATA lo_el_processedby TYPE REF TO if_wd_context_element.
    DATA ls_processedby TYPE wd_this->element_processedby.
    DATA lv_full_name LIKE ls_processedby-full_name.
  navigate from <CONTEXT> to <PROCESSEDBY> via lead selection
    lo_nd_processedby = wd_context->get_child_node( name = wd_this->wdctx_processedby ).
  get element via lead selection
    lo_el_processedby = lo_nd_processedby->get_element(  ).
  get single attribute
    lo_el_processedby->get_attribute(
      EXPORTING
        name =  `FULL_NAME`
      IMPORTING
        value = lv_full_name ).
clear lv_full_name.
CALL METHOD lo_el_processedby->set_attribute
  EXPORTING
    value  = lv_full_name
    name   = `FULL_NAME`
endmethod.
reward if it is use ful

Similar Messages

  • Article: Screen Conversion in WebDynpro for ABAP

    Hi all,
           I want to share with you my first article that i posted in SDN. Looking for your valuable comments...
    Click the below link to read by article. Thanks.
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/screen%20conversion%20in%20web%20dynpro%20abap.pdf">Screen Conversion in WebDynpro for ABAP</a>
    Some of the links in the article are not accessable from the article. The links are given below.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712">Getting Started with Web Dynpro for ABAP</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/content.htm">Wizard</a>
    [url=http://help.sap.com/saphelp_erp2005/helpdata/en/73/e5e6418b7eca17e10000000a155106/content.htm]Restrictions[/url]

    HI Hema,
    What i understood from u r query is u want 2 refrsh all ui elements data.
    u can read data from the respective nodes and clear those data.
    Example: I want to delete contents of an ui element on the screen( FULL_NAME ).
    create a buuton REFRESH  on the screen and assicn a action to that button.u wil get a method with that action.write this follwing code in tat method.
    method ONACTIONREFRESH_UI .
        DATA lo_nd_processedby TYPE REF TO if_wd_context_node.
        DATA lo_el_processedby TYPE REF TO if_wd_context_element.
        DATA ls_processedby TYPE wd_this->element_processedby.
        DATA lv_full_name LIKE ls_processedby-full_name.
      navigate from <CONTEXT> to <PROCESSEDBY> via lead selection
        lo_nd_processedby = wd_context->get_child_node( name = wd_this->wdctx_processedby ).
      get element via lead selection
        lo_el_processedby = lo_nd_processedby->get_element(  ).
      get single attribute
        lo_el_processedby->get_attribute(
          EXPORTING
            name =  `FULL_NAME`
          IMPORTING
            value = lv_full_name ).
    clear lv_full_name.
    CALL METHOD lo_el_processedby->set_attribute
      EXPORTING
        value  = lv_full_name
        name   = `FULL_NAME`
    endmethod.
    reward if it is use ful

  • For the last week or three Firefox refreshes two or three times for each refresh, and sometimes for no obvious reason..

    For the last week or three Firefox refreshes two or three times for each refresh. Sometimes it refreshes for no obvious reason. For instance, I'll be in the middle of typing into a forum's post block & it refreshes. Or filling out an online form. Or simply viewing a page.

    You can check for issues caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to create a proxy object for MOSS integration via WebDynpro For ABAP

    Hello all,
    I have a question about the creation of an ABAP proxy class in SE80.
    When i follow this link:
    [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d&overridelayout=true]
    i see on page 7 that there is: a tab under create called Enterprise Service/ Web Service with under this tab a tab called proxy object.
    When i do this in my SE80 i only see Enterprise Service and not proxy object.
    Screenshot
    [http://picasaweb.google.be/panneels.robin/SAPScreens#5377623235095894546]
    Is there a extra configuration or add-on needed to do this action? Or is there a work-arround for this?
    Because we need this for abap web dynpro for communication with MOSS.
    Thanks in advance for all your help.
    With kind regards,
    Robin Panneels

    Hi James,
    If you like to use SAP web dispatcher as a solution for load balancing portal application, you no need to create system object under systems..
    You have to install web dispatcher as separate instance where you need to configure portal apps into it..
    Configure web dispatcher like to hit the admin port, use http://<webdisp-server>:<adminport>/sap/admin
    For normal portal access, use http://<friendly URL>/irj/portal
    The good news is that the webdispatcher knows that the portal supports SSL
    Another advantage of this config, is the webdisp, will just replace the apache redirect server. Users will access mycompany.com, without any port number, since we are redirecting 80 to the backend j2ee. Also, https should work like in the normal world.
    Profile will be like below...
    SAPSYSTEMNAME = WEB
    SAPSYSTEM = 00
    INSTANCE_NAME = W00
    DIR_CT_RUN = $(DIR_EXE_ROOT)/run
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    Message Server Parameters ##########
    NOTE: The "ms/http_port" must match the profile on the Central Instance
    rdisp/mshost = <FQDN of portal CI Host>
    ms/http_port = <Ms port of portal>
    SAP Web Dispatcher Ports
    #icm/server_port_0 = PROT=HTTP,PORT=81$$
    icm/server_port_0 = PROT=HTTP,PORT=80, TIMEOUT=3600, EXTBIND=1 (some OS will not allow to bind ports <1024)
    Admin port details
    icm/server_port_1 = PROT=HTTP,PORT=3200
    #, EXTBIND=1
    icm/HTTP/admin_0 =
    PREFIX=/sap/admin,DOCROOT=./admin,PORT=3200,AUTHFILE=/usr/sap/WEB/SYS/global/security/data/icmauth.txt
    SSL
    icm/HTTP/redirect_0 = PREFIX=/ , TO=http://<friendly URL name>/irj/portal
    WebAS Message Server Parameters
    rdisp/TRACE = 1
    icm/trace_secured_data = 1
    Regards
    Suresh

  • Is it normal for screen to go blank for a sec. when waking from sleep?

    When I leave my MacBook sleep for a while, then wake it up, the screen will display, then go blank for a sec., then display again.
    Is this normal? I don't believe it is the flicker, as my screen is solid at other times.

    Not sure if it's exactly "normal" but I've notice mine do that once in awhile. I've got a first generation MacBook and it hasn't seemed to have an effect on it yet.
    I don't think mine does it all the time (I really don't pay that much attention to it) but I have noticed it.

  • OVS Help for Table Fields in WebDynpro for JAVA

    Is it possible  to create a ovs help input for table fields?
    If yes, how can I do it?
    Help me...
    Thanks!!!

    Hi,
    Use the code for tabel column also.
    Web Dynpro: the OVSBuilder utility or OVS Re-Reloaded
    Regards,
    Lavanya.G

  • Portal Password Reset Application In webdynpro for ABAP

    Hello Friends,
    I am new to WDA . I want to create a Password Reset application in WDA like this
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0c09b9d-52e0-2d10-3981-86bfa8e19dc3?quicklink=index&overridelayout=true]
    Can someone pls give the solution , how to start??
    Thanks in advance
    Himani

    I am afraid that this is not going to be possible for you. From WebDynpro for ABAP, you do not have portal API's to do that.
    May be an idea ,If you have SSO in place you could try to call some FM's in r3 side to change the password in r3 system and this would synchronize the UME in portal.

  • Webdynpro for ABAP - interactive Adobe form - drop down lists not working

    Hi all,
    I'm trying to create an interactive form for a client using webdynpro for ABAP and I've viewed the demo "Create SAP Interactive Forms by Adobe with Web Dynpro for ABAP" by Thomas Jung, but when I implement it the form following similar steps the form is not interactive.
    In the properties of the "InterativeForm", I've tried clicking the "enabled" flag both on and off.  I've also tried setting the "displayType" property to both "ActiveX" and "Native".  But none of this worked.
    I though my problem might be with Adobe reader so I switched from 8.0 back to 7.0 but this didn't make any difference either.
    The system we are using is NW04s WAS 700.  Any hints would be greatly appreciated!
    Thanks,
    -tom

    Thanks for the suggestion Dezso.  I've downloaded a newer version of ACF as indicated by the OSS note and installed it.  I'm still having the same issue.
    My basic question is what options should I be using in the form and on the InteractiveForm component?  It looks like because of the evolution of the product there are multiple options available.  I recall reading somewhere that as of a certain SP level we should have ZCI (zero client install) available.  The would be our preference.  It will be a support nightmare if each user needed a manual download of ACF.exe installed.
    Should I click the "enabled" flag on the InteractiveForm object?  When I create the form should I use the "Native" drop down list or the one from the "Active X" tab?  I would like to use the "List Box" control on the form as well but it is only available in the "Standard" tab.  So does that mean I can't get the selections from a "List Box"?
    Thanks,-tom

  • Portal integration of Webdynpro for ABAP application

    Hi all,
    Can anyone provide me with the steps for <b>integrating a Webdynpro for ABAP application with portal?</b>
    Regards,
    Bino

    Hi Bino
    Check out the following link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/portal integration of web dynpro applications.pdf
    Regards
    Rajeev.
    Do award points for helpful answers in SDN.

  • Who can tell me how to find the leave request Webdynpro for ABAP iview

    Hi,Expert,
    As I know Portal only has Webdynpro for java iview for leave request iview in the past.
    but someone tell me SAP portal has delivered some new standard WebDynpro for ABAP iview.
    I have a requirement to create a employee role for new Leave Request service created by WD ABAP . Under Content Provided by SAP in Content Administration, I couldn't find the iView assocated to the leave request except the Java one. Is there have any Employee Self-Service Web Dynpro ABAP workset ?
    thanks
    Olivia

    The business package for ESS based on Webdynpro for ABAP is available only for ECC 6.0 EHP5.
    If you are on EHP5, you may choose to use this version of the BP.
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/25/340b0507434193adbfe3f8fc8896c7/frameset.htm
    Leave Request application:
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/1f/a073be62744fcca7e1fae9942f0031/frameset.htm
    Thanks,
    Shanti

  • Information about Integration WebDynpro for ABAP and Business-Workflow

    Hi Experts,
    I'm looking for information about
    • Integration WebDynpro for ABAP and Business-Workflow
    Link, documents and books are welcome!
    Thanks
    mishak

    If you have worked on workflows earlier the procedure is very simple. You just need to enter certain parameter values of your application in SWFVISU for the respective task and re-register your system in UWL administration. Thats it! your webdynpro and workflows are integrated. For details on the parameters check the following link,
    http://help.sap.com/saphelp_nw04/helpdata/en/19/bff5c18ba44da4a4ca68cf572dabda/frameset.htm
    There are also a couple of blogs on "launching webdynpro from UWL" (Procedure for both Java and webdynpro is almost similar). You can also check these for more details.
    Thanks,
    Prasath N

  • How to set property for KM Resource in webdynpro Java

    Hi all
    i am trying to set the property for KM resource in webdynpro for java.
    can anybody send sample code, then it will be great help to us?
    Regards
    Sunil

    Hi Sunil,
    check in sdn with thread name as
    "Reading property from a resource via api, tricky one"
    Koti Reddy

  • Screen exits using BAdI for promotion - tcode WAK1/WAK2

    Hi,
    We want to add a new field for search selection in screen 2140 of WAK1/WAK2. Can we do that with BAdI/exit because client doesn't want to modify the standard program? There are several BAdIs in the program but not for screen 2140, such as :
    WAKT_BADI_004 for screens 2600, 8003
    WAKT_BADI_005 for screens 8223
    WAKT_BADI_008 for screens 8231
    Thanks for your advice

    Le,
    it will lil easy if you can take access key from basis and just add one more selection in selection screen.
    Amit.

  • MacBook Pro Screen Refresh Rate

    I got one of the new santa rosa 15-inch macbook pros with a glossy display about 3 weeks ago. When i play games or look at display settings, i can't change the screen refresh rate. For example, in battlefield 1942, in the display settings i get a rate of "0"for my built in display! Not "60", or "75", just "0". Also, in the display preferences tab in system preferences, there in no refresh rate to set, but all other displays i connect have a refresh rate setting. How to i change the refresh rate of my built in display?

    as far as i'm aware, LCD displays do not have a refresh rate per-se
    the reason is because refresh rate is a term applied to Cathode Ray Tube monitors (read that as your standard computer monitor, not an LCD one) and in particular the refresh rate is how many times the gun in the monitor rasters a horizontal line onto the screen in one second.
    with LCD displays, because they don't use a gun and are not based on CRT technology, they don't have a refresh rate
    i could be wrong though, but i'm sure i read somewhere about this

  • Display HTML code in WebDynpro for ABAP

    Hi, I would like to display a html page in a WebDynpro View, ie: I have the html code in a "string" variable and would now display this string now not with the html tags visible, but as a "real" html page.
    I found a thread in WebDynpro for ABAP but I am a little bit lost in converting the logic to ABAP world.
    Thanks

    >I found a thread in WebDynpro for ABAP but I am a little bit lost in converting the logic to ABAP world.
    I'm a little bit confused by this statement. Do you mean you found a thread in Web Dynpro Java, perhaps?
    Regardless the approach is possible using the iFrame UI.  The warning about the iFrame is that it is deprecated in NetWeaver 7.0 and 7.01 and my not be usable depending upon your support package level. However in NetWeaver 7.02 the iFrame returns to fully supported status.
    If you have the HTML content in a string, you can simply place it into the ICM cache.  This will provide a temporary URL for the content (you supply the lifetime of the URL) that can be referenced via the iFrame URL or even the LinkToURL if you want to open in a new window.
    Here is the code for placing the string into the ICM Cache:
    ****Create the cached response object that we will insert our content into
      data: cached_response type ref to if_http_response.
      create object cached_response
        type
          cl_http_response
        exporting
          add_c_msg        = 1.
      try. " ignore, if compression can not be switched on
          call method cached_response->set_compression
            exporting
              options = cached_response->co_compress_based_on_mime_type
            exceptions
              others  = 1.
        catch cx_root.
      endtry.
    ****set the data and the headers
      data: l_app_type type string.
          cached_response->set_cdata( lv_html_text ).
          l_app_type = 'text/html'.
    cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 60 ).
      data: guid type guid_32.
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate '/sap/public' '/' guid '.' 'html' into lv_iframe_url.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = lv_iframe_url
                                           response = cached_response ).
      wd_context->get_element( )->set_attribute(
        name =  `IFRAME_URL`
        value = lv_iframe_url ).

Maybe you are looking for

  • Error while deploying .jsp page

    Hi all, I created a single sample jsp page using jdeveloper and moved this jsp file to $OA_HTML. This page will be called from existing apps jsp page through hyperlink. When i click the hyperlink request passed for my jsp page but the following error

  • Where can I purchase a USB chord for my 1st generation iPod Nano?

    I need the plug that plugs my iPod into the computer to add and delete songs, does anyone know where I can purchase one. I already checked Radio Shack and Walmart. I even searched it on the Apple site and got nothing. Any ideas?

  • XP and Acrobat 7.0

    We recently upgraded 3 pcs to XP sp2. They all had Acrobat 7.0 on them. one was professional, 2 were standard. Each one of them has the c:\program files\common files\adobe\color\ folder missing. This folder just doesn't exist, so there are no icc pro

  • TDS not cleared while f-04

    Hi all    I want to ask that when i am doing f-04 (post with clearing)  entry was not clearing. for example there is payment of Rs. 1000 and TDS is charged Rs.20 here TDS amount is not cleared. Is there any customozation required for solution. advice

  • Database starting on one node.

    Hi All, After reboot of server and ssh key gen. My RAC instance is running only on one node. What can be problem? Thanks.