Clearing screen elements at a time

hi gurus,
                  can i have a technique by which i can clear all the screen elements at a time. I mean to reset that screen elements.
One option i have is to call that transaction once again but that has its own limit i,e 6.
other is to manually clear it as many elements we have like p_matnr = ' ',p_mtart = ' '. but it takes time. Can i have a technique which can clear all the elements in a screen at a time.
Thanks in advance,
Gaurav

You could try to do this in the Process Before Output or AT SELECTION-SCREEN OUPUT block :
Sample :
REPORT ZCLRSEL.
TABLES: mara.
PARAMETER para LIKE mara-matnr.
SELECT-OPTIONS selo FOR mara-matnr.
FIELD-SYMBOLS: <fs> TYPE ANY,
               <so> TYPE ANY TABLE.
DATA: fieldname LIKE screen-name,
      dummy.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    CHECK screen-input = 1. " only input fields
    IF screen-name CS '-LOW' " SELECT-OPTIONS
    OR screen-name CS '-HICH'.
      SPLIT screen-name AT '-' INTO fieldname dummy.
      CONCATENATE fieldname '[]' INTO fieldname.
      ASSIGN (fieldname) TO <so>.
      REFRESH <so>.
    ELSE. " single PARAMETERS
      fieldname = screen-name.
      ASSIGN (fieldname) TO <fs>.
      CLEAR <fs>.
    ENDIF.
  ENDLOOP.
Regards

Similar Messages

  • How to add screen elements at run time on button click in Web Dynpro abap?

    Hello All,
    I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
    Please help.
    Thanks

    Hi Ajinkya,
    This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
    Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
    Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
    Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
    Cheers,
    Amy

  • Adding selection screen elements at run time

    Hi,
    I have a selection screen with four drop down list which has 20 elements.
    When i select any element from drop down, i must be able to add some other UI in the same line.
    DD1
    DD2
    DD3
    DD4
    If i choose a first item in DD1,
    DD1 Lable1 IP1 lable2 IP2
    DD2
    DD3
    DD4
    these lables and input fields are not known till selecting the item.
    Will i be able to do this in selection screen?
    Thanks
    Vimalraj

    Have a look at this Report. you have to Capture events on User Command and modify the screen accordingly.
    REPORT  ztesttt.
    PARAMETERS: test1(10) TYPE c MODIF ID sc1,
                test2(10) TYPE c MODIF ID sc2,
                test3(10) TYPE c MODIF ID sc1,
                test4(10) TYPE c MODIF ID sc2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          screen-active = '1'.
          MODIFY SCREEN.
          CONTINUE.
        ENDIF.
        IF screen-group1 = 'SC2'.
          screen-ACTIVE = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Adding Screen Elements Dynamically

    Hi!
    <b>Is it possible to add screen elements at run time?</b>
    I have tried doing
    APPEND g_wa_screen TO screen
    but it is not allowed.
    Im trying to add new colums to my table control. I've already added columns in the cols sub-structure of my table control but nothing gets displayed. My hunch is that those fields arent defined in the screen structure.

    Hello Emir,
    You might struggle to do this with dialog screens.
    A better alternative would be to use ALV Grid control. Using this, you could dynamically add columns etc. You can even include a grid control on a dialog screen using a custom control in the screen painter. Look at transaction SE83 for examples of ALV grid control and the documentation on class CL_GUI_ALV_GRID.
    Cheers,
    Martin

  • How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy

    How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy?
    It is very cumbersome to "re browse" for audio files/pics/movie clips to add to menu screens. Certainly there is a way to view the media and menu screen at the same time so I can drag and drop?

    Jayhawk
    I think I know exactly what you are seeking and believe it cannot be done in Premiere Elements 11, 12, and 13 as it can be done in versions earlier than 11 where the Disc Layout and Project Media are viewed side by side.
    Premiere Elements 13 uses a Movie Menu customization workspace which is not allowing viewing of Project Assets in the Expert workspace at the same time.
    ATR

  • Issue with selection screen element on At slection scree

    Hi All,
    I am facing an issue with a checkbox which is present within the subscreen of a standard selection screen.
    The issue is that the value of the combobox get toggled by itselfon the event mentioned below. I am unable to find out how this combo box value gets changed by itself on the screen events.I tried clear statemetns etc nothing is helping. I debugged with a watch point on this screen element and found this to happen.It just changes the value of the element to a previously held state.I m trying to clear the combobox but this event puts back the tick mark.How can I stop this.
    AT SELECTION-SCREEN ON COL_FROM.  "COL_FROM is another screen element diffrent from the combobox
    Thanks

    Hi Vighneswaran CE,
    This event corresponds to the PAI module of the COL_FROM field. So, it gets executed each time you press any valid function code on the screen (unless there was an error in a previous field). Nothing abnormal here.
    That's difficult to help you on that topic, you'd better tell us exactly what report it is, where you have added your code (and what code) to change the checkbox, ...
    Best regards,
    Sandra

  • How do you update an intensity plot one element at a time?

    I would like to use an intensity plot (or other control) to plot data collected from A/D channels. How do you get the Intensity plot to update one element at a time vs. row by row? Tips and suggestions greatly appreciated!

    > I would like to use an intensity plot (or other control) to plot data
    > collected from A/D channels. How do you get the Intensity plot to
    > update one element at a time vs. row by row? Tips and suggestions
    > greatly appreciated!
    >
    You will need to use the intensity graph and keep the buffer yourself.
    Init the data with background values and start filling then in using
    Replace Array subset. Presumably you are in a loop. Recirculate the
    data in a shift register adding new data each iteration and plotting the
    array to the intensity graph.
    Once you get to the horizontal edge, you need to decide if you split the
    data to get rid of the first row and append a new background row to the
    end making a strip chart, or do you clear the array and start over from
    the initial edge again making a scope chart, or do you mod the index
    with the buffer size and erase a row at a time in advance making a sweep
    chart.
    To update the scales, you don't have to change the data. Just write to
    the Offset property each time you scroll and it will relabel the data
    with 0 mapping to the offset value.
    Greg McKaskle

  • Capturing the values of screen elements on click of execute button

    Hello folks,
    Is there a way to capture the values entered in the screen on click of the execute button?
    What I want to do is, I have a selection screen where-in a user can fill the input fields (parameters and select-options). Now when the user clicks on the execute button, the values of all the screen elements (no matter if they are filled or empty) should be stored in variable, so that I can use these values again when I am calling this program from another program.
    I want to do something similar to saving a variant, but this save should happen on click of Execute button and user need not require to explicitly save these values as variant.
    Hope I am clear enough to put my query in front of you all.
    It would be a great thing if you could help me.
    Need your help.
    Thanks in advance.

    Hi,
    You need something like this
    REPORT A.
    TABLES: sflight.
    PARAMETERS: pa_scarr   TYPE sflight-carrid.
    SELECT-OPTIONS so_conn FOR  sflight-connid.
    DATA: BEGIN OF it_selscr_values OCCURS 0.
            INCLUDE STRUCTURE rsparams.
    DATA END OF it_selscr_values.
    START-OF-SELECTION.
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          curr_report     = sy-repid
        TABLES
          selection_table = it_selscr_values.  "here you have all parameters' values from selection screen
    "later in some other program you can use this table to call report A filling its selection screen with these default values like
    SUBMIT a WITH SELECTION-TABLE it_selscr_values.
    Regards
    Marcin

  • Search help on screen elements

    Hi I have a screen where I need to include a seach help on the screen element.  The element itself is just a generic char 8 field with no dictionary reference.  I have tried using the VRM_SET_ VALUES in the PBO but as soon as I press enter it looses the value selected. So I have now tried the using the process on value_request but despite finding and populating 138 values in the search help pop up, the actual pop up screen shows a blank list, with the text at the bottom saying 138 values.
    Any ideas what I am doing wrong?
    Set list values
        call function 'VRM_SET_VALUES'
          exporting
            id              = lv_vrm_id
            values          = it_values
          exceptions
            id_illegal_name = 1
            others          = 2.
        if sy-subrc <> 0.
       MESSAGE I000 WITH 'Failed to populate username list values'.
        endif.
    process on value-request.
      field my_field module fill_my_field.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = 'MY_FIELD
          dynprofield     = 'MY_FIELD'
          value_org       = ' '
          dynpprog        = progname
          dynpnr          = dynnum
        tables
          value_tab       = it_values "it contains 2 fields that will be shown in the list box
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.

    I'm still having problems with this.  Here is my VRM set values - the problem I have with this is as soon as i choose a value from the list and press enter, the value dissappears from the screen element:
    data: lv_vrm_id(80)    type c.
        data: lv_key(3)        type n value 1,
              lv_index         type sy-tabix.
        data: it_values  type standard table of vrm_value,
              s_values   type vrm_value.
        lv_vrm_id = i_type.
        lv_key    = 1.
        clear it_values.
        loop at it_cabn into s_cabn
                        where ATNAM = i_type.
          read table it_cawn into s_cawn with key atinn = s_cabn-atinn
                                         binary search.
          while s_cawn-atinn = s_cabn-atinn.
            lv_index = sy-tabix.
            s_values-key  = 1.
            s_values-text =   s_cawn-ATWRT.
            condense s_values-text.
            append s_values to it_values.
            add 1 to lv_key.
            lv_index = lv_index + 1.
            read table it_cawn into s_cawn index lv_index.
            if sy-subrc <> 0.
              exit.
            endif.
          endwhile.
        endloop.
    * Set list values
        call function 'VRM_SET_VALUES'
          exporting
            id              = lv_vrm_id
            values          = it_values
          exceptions
            id_illegal_name = 1
            others          = 2.
        if sy-subrc <> 0.
    *    MESSAGE I000 WITH 'Failed to populate username list values'.
        endif.
    And here is my code for the F4 lookup - the problem here is that the search help pop dispklays nothing depsite saying it has 138 values.  I am wondering if its my it_values that is the wrong format, or is it the fact that my field type doesn't point to a dictionary element?
    TYPES: BEGIN OF ty_values,
               type(8),
               descr(20),
             END OF ty_values.
      DATA: it_values TYPE STANDARD TABLE OF ty_values,
            s_values  type ty_values.
      data: lv_key(3)        type n value 1,
            lv_index         type sy-tabix.
    * Build lookup values for wood type test
      clear it_values.
      loop at it_cabn into s_cabn
                      where atnam = i_type.
        read table it_cawn into s_cawn with key atinn = s_cabn-atinn
                                       binary search.
        while s_cawn-atinn = s_cabn-atinn.
          lv_index = sy-tabix.
    *      s_values-key  = 1.
    *      s_values-value1 =   s_cawn-atwrt.
          s_values-type =   s_cawn-atwrt.
          append s_values to it_values.
          lv_index = lv_index + 1.
          read table it_cawn into s_cawn index lv_index.
          if sy-subrc <> 0.
            exit.
          endif.
          add 1 to lv_key.
        endwhile.
      endloop.
    DATA: progname TYPE sy-repid,
          dynnum   TYPE sy-dynnr,
          dynpro_values TYPE TABLE OF dynpread,
          field_value LIKE LINE OF dynpro_values.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = 'ATWRT'
          dynprofield     = 'TYPE'
          value_org       = ' '
          dynpprog        = progname
          dynpnr          = dynnum
        tables
          value_tab       = it_values "it contains 2 fields that will be shown in the list box
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.
      if sy-subrc <> 0.
      endif.

  • How to upload multiple files in Webdynpro using File upload Screen Element

    Hi Experts,
          Can anybody tell me how to upload multiple files/pdfs in webdynpro using file upload screen element, and also please tell me what is the maximum storage limit of RAWSTRING data type,Advance Thanks.
    Regards,
    Sandesh

    Hi Sandesh,
    this is simply not supported, not in WebDynpro nor in standard HTML.
    A workaround is to upload a ZIP with all files and on server side unpack the ZIP and operate on the single files.
    I hope it will  help u..
    ----------------------OR-------------------------
    As you know using File upload UI element we can upload only one file at a time. There may be a scenario where user may want to upload any no of files at a time which is not determined at design time. This can be acheived using the ACF UpDownload UI element which requires a security whiltelist to be created
    http://scn.sap.com/docs/DOC-2270
    ----------------------OR-------------------------
    You can use Table UI element.
    Regards,
    Deepak Singh

  • How to get selection screen elements and its table reference of a report ?

    halo experts
    How can I get selection screen elements and its table reference of a report ? . I tried rs_refresh_from_select_options. But I am unable to get the table and field it is referring to
    For eg if my selection screen 1000 is
    parameters: p_carrid type spfli-carrid,
    select-options :s-_connid type sflight-connid.
    is there any Fm or method which gives me what are the screen elements( p_carrid and s_connid ) and what table( splfi and sflight ) and field ( carrid and conid )it is referring to ?

    The following code is an example of how you might dynamically determine all your PARAMETERS and SELECT-OPTIONS variables at run time.  The PARAMETERS and SELECT-OPTIONS only point to a dictionary element--not a specific table.  Even though you may say "spfli-carrid" or "sflight-connid", the data type really references the dictionary type and not a specific table/structure.
    REPORT  ZTEST_PROG.
    TABLES sflight.
    DATA:
           screen_tab TYPE STANDARD TABLE OF screen,
           wa_screen TYPE screen,
           scrn_nm TYPE string,
           scrn_leftover TYPE string,
           l_type TYPE REF TO cl_abap_typedescr,
           typ_nm TYPE string,
           typ_pre TYPE string.
    FIELD-SYMBOLS <fs_data> TYPE ANY.
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECT-OPTIONS s_connid FOR sflight-connid.
    INITIALIZATION.
      LOOP AT SCREEN.
        IF screen-group3 = 'PAR'
          OR screen-group3 = 'LOW'.
            APPEND screen TO screen_tab.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
      LOOP AT screen_tab INTO wa_screen.
        ASSIGN (wa_screen-name) TO <fs_data>.
        l_type = cl_abap_typedescr=>describe_by_data( <fs_data> ).
        IF wa_screen-group3 = 'LOW'.
          SPLIT wa_screen-name AT '-' INTO scrn_nm scrn_leftover.
          TRANSLATE scrn_nm TO UPPER CASE.
        ELSE.
          scrn_nm = wa_screen-name.
        ENDIF.
        SPLIT l_type->absolute_name AT '=' INTO typ_pre typ_nm.
        WRITE:
                 / 'Screen Name:  ', scrn_nm,
                 / 'DDIC Type:    ', typ_nm.
      ENDLOOP.
    When you get into defining internal tables you can determine those at run time with cl_abap_structdescr.  The following is an example of how you might do that.  You can loop through the "components_table" and evaluate each field of the structure in this way.
    DATA: structure_reference TYPE REF TO cl_abap_structdescr,
          components_table TYPE abap_compdescr_tab,
          components_structure LIKE LINE OF components_table.
    structure_reference ?= cl_abap_structdescr=>describe_by_data( any_structure ).
    components_table = structure_reference->components.
    I don't know if this answers any of your questions but I hope that some of it is useful.

  • Adding a screen element in Module pool

    Hi Experts,
             How to add a screen element in module pool programming?
    Thanks,
    Sudha...........

    Hi sudha ,
    To add screen elements in you module pool programming ,
    i > Go the layout of the screen for which you want to have elements .
    ii> Drag and drop the available elements from the left hand side .
    iii> Be sure to have a name a name of the data elements that you have inserted .
    iv>Check any dataelement is't showing red in color as red color signifies error .
    v> Make sure to save and activate the layout.
    Hope this would be clear .
    Thanks
    Lokesh

  • Opening premier elements for first time. Been "gathering user info" for 15 minutes...what to do?

    Opening premier elements for first time. Been "gathering user info" for 15 minutes...what to do? Previously hit "organize", ran for 25 min till hit 100%, then "had to close"?

    Unfortunately, there's not enough info listed to give you an effective answer.
    Can you give more detailed system spec's.  There are a lot of differences in RAM, & Hard Drive Technologies.  Is your 2TB a single hard drive, or multiple drives in RAID?  While a single 2TB drive is nice for the storage capacity, they also sacrifice some performance to reach that capacity... What speed is the RAM, & I'm assuming it's properly opperating in Dual Channel mode (watch your POST screen to be sure).  Which Core i7 CPU are you running, & what Operating System are you running.   Finally, bring up your task manager, & see what processes are using CPU cycles.   Also, are you starting up PrE8 through the default shortcut which uses the Welcome screen?
    A quick guess is that Auto Analyzer & the Welcome screen are behind your troubles, but can't be sure till more info is available.
    There is a current thread about Auto Analyzer, & I've posted a way to bypass the Welcome screen in several threads. 
    See my post in this thread to bypass the Welcome screen http://forums.adobe.com/thread/516524 (2nd post in thread)
    Message was edited by: chaosdsmFL -  added link

  • Disabling ui elements at run time.

    hi ,
    i am working on a screen in which i have a no gui elements. what i basically want that when i use this component in another my buttons and input field (embeded in the tabe) should get disabled. please guide me ,how to change the value of the context bound to the read only property of these ui elements, at run time.

    Hi Vishvdeep,
        I think your requirement is that you want to control the   enabled property of UI elements from one component by other component.
    So what solution Abhi has provided is perfect and if u didnt understand it i am just explaining in steps.
    *Suppose u have two components
    component A and component B
    You want UI elements of component B should be controlled by component A.*
    Step 1) Create a method in component controller of component A and select the interface property of method( so that you can use it in other component)
    Step 2) Create a node along with its attribute and make this node also interface node.
    step 3)Write the code in this method as per your requirement(as Abhi has given the code)
    step 4)Call component A in component B and bind the enable property of ur UI elements with the interface nodes from component A.
    step 5)call the interface method of component A which will make control enable property of component B.
    Hope this will fullfil your requirement.If you have any query feel free to ask.
    regards
    PG

  • Urxvt patch: VTE like clear screen behavior

    I've switched to urxvt last week. I come from the VTE world (gnome-terminal, xfce-terminal and such, the latter in my case). VTE has a nice feature to which I've accustomed myself. This is the way how it handles the clear screen function (ctrl-L).
    In VTE when you press ctrl-L, the screen cursor position gets to top row and the lines get scrolled just before the visible portion of the window. This means that the scrollback remains intact so you can scroll back and see it later. If you press ctrl-L again when you are at top you get a bunch of empty lines - you can use this to mark the scrollback with empty portions when you are scrolling back large amounts of texts.  This is handy for example when you want to quickly glance at an output from a command but you want to differentiate from different outputs - I press ctr-L several times before I execute the command and then I can just quickly scroll back - I immediately spot where the command began because it has a large black spot before it.
    The way urxvt works in this case that it just positions the cursor to the top row and then just erases everything below that point. This means you lose valuable lines from the scrollback. Example: type "seq 1000", press ctr-L. Now you won't see the last lines of the command's output!
    Now it is possible that I have a misconfigured urxvt and I'd be interested in the config option which I have misconfigured.
    Here's a patch for urxvt which adds proper clear screen function and also adds the VTE-like functionality:
    *** src/command.C 2011-10-29 18:06:07.000000000 +0200
    --- src/command.C.patched 2011-10-29 18:05:28.000000000 +0200
    *************** rxvt_term::process_csi_seq ()
    *** 2932,2937 ****
    --- 2932,2948 ----
    case CSI_CUP: /* 8.3.21: (1,1) CURSOR POSITION */
    case CSI_HVP: /* 8.3.64: (1,1) CHARACTER AND LINE POSITION */
    + if (nargs == 1 && current_screen == 0)
    + {
    + // This is usually followed with clear screen so add some extra
    + // lines to avoid deleting the lines already on screen. If we are
    + // already at the top, add an extra screen height of lines.
    + int extra_lines = nrow-1;
    + if (screen.cur.row == 0)
    + extra_lines += nrow;
    + for (int i = 0; i < extra_lines; ++i)
    + scr_add_lines (L"\r\n", 2);
    + }
    scr_gotorc (arg[0] - 1, nargs < 2 ? 0 : (arg[1] - 1), 0);
    break;
    Last edited by rlblaster (2011-10-29 19:07:32)

    Now I see what's happening! Your prompt uses '\e[H' which is used as move to home. I assumed that '\e[H' is usually followed with clear screen. This means if you use it to just move the cursor to home it won't work. I don't really see how could I fix this nicely but here's a workaround for your prompt: use '\e[1;1H'. In other words:
    PS1=$'%{\e[s\e[1;1H\e[30;42;1m%}[%~][%M] %{\e[K\e[256C\e[8D\e[30;42;1m%} [%D{%H:%M}]%(?,%{\e[32;32m%}\u2588,%{\e[31;41;1m\u2588)%}%{\e[u\e[1A%}\n%{\e[0;32m%}> %{\e[0m%}'
    By the way the feature of adding extra blank lines if your cursor is already at top won't work in your prompt because your cursor is always at least on row 1. You could change the patch from
    if (screen.cur.row == 0)
    to
    if (screen.cur.row <= 1)
    to have this feature.

Maybe you are looking for

  • IKEv2 AnyConnect and Pool allocation via RADIUS

    I am configured a CSR1000V (03.09.00a.S.153-2.S) for AnyConnect with IKEv2. I am storing username and IKEv2 authorization policy on the RADIUS server. Clients are dropped into their own iVRFs through RADIUS attributes passed back to the NAS. e.g. in

  • Quad: end-of-day: shut down or sleep?

    Hello. Took delivery ten days ago of top-end Quad with 8GB ram and Apple 30-inch display. WHAT a configuration. (Had been working on a 17-inch G4 laptop for 3 years, which had become my desktop machine, in fact. Needn't tell you what a quantum leap i

  • Roll-out Project Implementation

    Hi Experts In our Company SAP is implemented for Great Britain.  Now they want to go for global implementation like USA, Denmark, Germany, Canada, Mexico etc.  In that case,  I have some doubts. 1.     Whether the same SAP package can be used for imp

  • Can't download and install Acrobat on Windows Vista

    Hey there, I hope that someone could help me. I bought a subscription for Adobe Acrobat yesterday evening. Now I tried to download the software from this page: https://cloud.acrobat.com/acrobat. And it failed - saying that "i don't have the right lan

  • Update checking

    Hey guys Me and my team have a problem. We run a web-based java application. The current process is like so: The user loads a web page on the intranet, the web page which has an active-x script in it, downloads a jar file from our server and deploys