Flipping the visibility of a screen element.

how to change the visibility of a screen element if a specified condition is satisfied?

Hi,
check this:
if the screen element is called P_TEST for example, you can hide it with the following code in the PBO module of your screen
  LOOP AT SCREEN.
    if screen-name cs 'P_TEST'.
      if <HERE IS YOUR CONDITION.....>.
      screen-active = 0.
      MODIFY SCREEN.
     endif.
    endif.
  ENDLOOP.
If this element is in the selection-screen, you could do the following:
PARAMETERS: p_test(1).
AT SELECTON-SCREEN OUTPUT.
  LOOP AT SCREEN.
    if screen-name cs 'P_TEST'.
      screen-active = 0.
      MODIFY SCREEN.
    endif.
  ENDLOOP.
If you just need to show the element but not allow for input, then you can change screen-active = 0. with screen-input = 0.
Please reward if it helps.
Regards,
George

Similar Messages

  • How to change the visible length in screen painter?

    Hi Guys,
    we have field in screen which is type to ATWRT but the visible length is set to 11. ATWRT is 30 char.
    Please advise on How to change the visible length in screen painter to make it 30?
    When I try to edit the defined length from 11 to 30. It wont allow me to.
    Thanks a lot!

    Hi,
    Try the below method:
    Goto Screen Painter -> Double click on Input-Output field for ATWRT another screen will appear with attributes of Input Output field -> Increase the Visible length Value there. (Option of visible length is below the Name and Text attribut of Attribute windiw.)
    If the Visible length field isn't allowing change then declare it as a Char type instead of taking the DataType for Data Dictionary.
    Thanks,
    Preyansh
    Edited by: DWIVEDP on Mar 29, 2010 12:42 PM

  • How to change the screen element of a single field in a table control

    Hi Gurus,
    I want to change the screen element of a single field (or the whole row) in a table control according to a condition.
    I have 2 columns in the table control. One is an input column and one output only. When user enters values into the input column, they need to be compared against the values in the other column, and if there is a discrepancy, the row where the discrepancy is needs to be highlighted.
    I have tried the following code which highlights the whole column ...
    CONTROLS: TC_ZVOYG_BINS TYPE TABLEVIEW USING SCREEN 0500.
    DATA: wa_tc_zvoyg_col LIKE LINE OF TC_ZVOYG_BINS-cols.
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              wa_tc_zvoyg_col-screen-intensified = 1.
              MODIFY tc_zvoyg_bins-cols FROM wa_tc_zvoyg_col TRANSPORTING
              screen-intensified WHERE screen-name = screen-name.
            endif.
          endloop.
        endif.
      endloop.
    And also the following code which makes no change ...
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              screen-intensified = '1'.
              modify screen.
            endif.
          endloop.
        endif.
      endloop.
    Thanks in advance.

    Hi,
    The modification of a screen element attribute (LOOP AT SCREEN...MODIFY SCREEN) must always be done in the PBO (for a dynpro, it will be in a PBO module, i.e. declared by MODULE ... OUTPUT)
    About the loop at the internal table, it is done automatically by the system, also during the PBO, you'll find something like LOOP [AT itab] ... WITH CONTROL ...  in the PBO part of the screen flow logic (note: you may have to complete with a supplementary READ TABLE if you don't use AT itab). So you don't need an additional loop.
    Best regards
    Sandra

  • Change Type of Screen Element in Report Program

    Okay guys, I have been struggling with this the whole day.. someone please help me.
    I have a selection screen defined in the selecton-screen of a report program
    select-options : so_matnr for mara-matnr,
                     so_ebeln for ekpo-ebeln,
                     so_ebelp for ekpo-ebelp.
    Now if I go to SE51 and give the program name and the screen number as 1000 (Default screen for report)
    Now go to tab "Element List" --> "General Attributes"
    in the column "Type of screen element" everything is considered as "I/O".
    *Name*                 *Type of Screen Element*
    %_SO_MATNR_%_APP_%-TEXT             I/O
    %_SO_MATNR_%_APP_%-OPTI_PUSH     I/O
    SO_MATNR-LOW     I/O
    %_SO_MATNR_%_APP_%-TO_TEXT     I/O
    SO_MATNR-HIGH     I/O
    %_SO_MATNR_%_APP_%-VALU_PUSH     Push
    %_SO_EBELN_%_APP_%-TEXT     I/O
    %_SO_EBELN_%_APP_%-OPTI_PUSH     I/O
    SO_EBELN-LOW     I/O
    %_SO_EBELN_%_APP_%-TO_TEXT     I/O
    SO_EBELN-HIGH     I/O
    %_SO_EBELN_%_APP_%-VALU_PUSH     Push
    %_SO_EBELP_%_APP_%-TEXT     I/O
    %_SO_EBELP_%_APP_%-OPTI_PUSH     I/O
    SO_EBELP-LOW     I/O
    %_SO_EBELP_%_APP_%-TO_TEXT     I/O
    SO_EBELP-HIGH     I/O
    Now, my requirement is that I  need to do something at the loop at screen to change the 'I/O' to 'Text' for all the %TEXT% screen fields. Exactly behave like text labels in the dialog program
    Now, I don't want to write a dialog program to achieve this. Is there any thing i can do in the report program to achieve it.

    Hello,
    Try something like this:
    INITIALIZATION.
    loop at screen.
      if screen-name eq <your field>
        screen-input = 0.
        modify screen.
      endif.
    endloop.
    The important thing is to do it on INITIALIZATION event
    Gabriel P.-

  • Best Way To transfer screen elements to ABAP variables

    Hi all,
    whats the best way to attach the abap elements to screen elements
    normally earlier versions before 4.7C i always used TABLES : MARC in abap program
    and in screen design i used to click "GET from DICTIONARY" to design the screen in Screen painter
    The advantage with this approach is all data base elements are attached to our screens like search helps
    atomatic checks etc and more over all the information valid for a particular plant are retrived by the system search helps themselves like
    for example on the screen we have screen elements/ fields  Plant , MRP controller.
    in the plant i typed  "X110'.
    now in the mrp controller i pressed F4 to search for valid mrp controller . Since we associated the screen elements with database elements with TABLES statement all the MRP controller relevent to that plant X110 are displayed. this is quite valid.
    But i read usage of tables : in Object Oriented abap is Obsolete is this still the correct way of programming.
    I can also use Some thing like this Data : st_marc type type MARC.
    and in Screen design i can click "Get from program" This approach will loose all the database assignments to screen elements.
    Now i can no longer retrieve the MRP controller relevent for plant 'X110'. F4 will show me all the MRP controllers in all plants.
    Is there any other approach to do this. Thanks.
    Edited by: Kavitha on Mar 13, 2008 2:37 PM

    Please read the following two links. These experts explain it better than I could put in words!:
    /people/thomas.jung3/blog/2005/09/08/oo-abap-dynpro-programming
    /people/horst.keller/blog/2007/04/24/from-abap-ipo-to-abap-objects-and-the-separation-of-concerns
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fbafc9e-0e01-0010-dea9-9d23d1b269fb  (Under section Modularizing your programs)

  • I recently Updated my phone and my front camera stopped working its pitch black but still shows the icons on the screen but when i get off the app and get back on and flip the camera to my face view it works fine

    I recently Updated my phone and my front camera stopped working its pitch black but still shows the icons on the screen but when i get off the app and get back on and flip the camera to my face view it works fine

    Hi there Fgonzalez2015,
    You may find the camera troubleshooting steps in the article below helpful.
    Get help with the camera on your iPhone, iPad, or iPod touch
    You see a closed lens or black screen
    If you see a closed lens or black screen when you open the Camera app, try these steps:
    Make sure that there’s nothing blocking the camera lens. If you’re using a case, try removing it.
    Force the app to close, then open the Camera app again.
    Restart your device, then open the Camera app again.
    If your device has a front and rear camera, try both cameras by tapping the camera swap icon . If you see the closed lens or black screen on only one camera, take your device to an Apple Retail Store or Authorized Service Provider for more help.
    -Griff W.  

  • In LabVIEW6i, is there a way to make particular elements of an array invisible while the others stay visible (without losing any element's info.)?

    I have an array of clusters. Each cluster pertains to a certain oscilloscope I am controlling. There is another control which specifies which oscilloscopes I have "on".
    If a particular oscilloscope is "on" I want its cluster to be VISIBLE in the array. If a particular oscilloscope is "off" I want its cluster to be INVISIBLE in the array.
    How can I implement this in my program without losing ANY of the info. in my array?

    I suggest to use two arrays; one for user interface holding the ON clusters,
    and one for internal use holding all clusters. The diagram periodically
    updates the internal array with user interface array data.
    By INVISIBLE do you mean "skipped from the array" or displayed as an empty
    placeholder? To hide an OFF cluster you could put in the cluster a flat
    button boolean that is small and transparent when ON and large enough to
    cover the whole cluster area (and other controls) when OFF.
    Jean-Pierre Drolet
    Scientech R&D
    "mcmastal" a écrit dans le message news:
    [email protected]..
    > In LabVIEW6i, is there a way to make particular elements of an array
    > invisible while the others stay visible (without losing any element's
    > info.)?
    >
    > I have an array of clusters. Each cluster pertains to a certain
    > oscilloscope I am controlling. There is another control which
    > specifies which oscilloscopes I have "on".
    > If a particular oscilloscope is "on" I want its cluster to be VISIBLE
    > in the array. If a particular oscilloscope is "off" I want its
    > cluster to be INVISIBLE in the array.
    > How can I implement this in my program without losing ANY of the
    > info. in my array?
    LabVIEW, C'est LabVIEW

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    I am trying to set up my newly purchased Apple TV but when I enter my network password while setting up, I am not able to enter the Submit button, any idea how to hit the visible submit button that is visible on screen but not responding?

    You need to use the right arrow on the remote to go all the way to the right. The submit button will be highlighted and you can then press select on the remote to proceed.

  • 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

  • Why are the apps on my IPad scattered across the whole thing and when I open them they turn to little rectangles in the corner of the screen and I can't even use them or tap on anything. Also when I turn my iPad it doesn't flip the screen over

    Why are the apps on my IPad scattered across the whole thing and when I open them they turn to little rectangles in the corner of the screen and I can't even use them or tap on anything. Also when I turn my iPad it doesn't flip the screen over.

    Hi The next thing to do is to Restore back to Factory Settings this will get rid of any bugs . After Restore use same Apple ID /Password then you should get all your Apps & data back If you still have this problem make an Appointment at Apple Store . Cheers Brian

  • Adobe elements 10 mac when I play up the video in full screen.

    Adobe elements 10 mac when I play up the video in full screen. I have
    black borders on both sides of the movie how do I correct this problem when playing thevideo?

    Along with Steve comments, also see this ARTICLE, for some of the possible reasons - all of which boil down to a mis-match between the Source Footage and the Project Preset.
    Good luck,
    Hunt

  • I recently added photoshop elements 12 to my computer but can't get past the initial log in screen. It goes gray and spins.  any thoughts?

    I recently added photoshop elements 12 to my computer but can't get past the initial log in screen. It goes gray and spins.  I have a current serial number and log in ID/password but still not working.  Any thoughts?

    Hello,
    I recommend you contact AT&T's dedicated BB Support staff (call their front line, request escalation to BB Support) and have them check to be sure that your account with them is correctly configured for this device. Sometimes when switching devices things don't fully automatically move behind the scenes, and only they (ATT) can validate that.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Nothing is visible on my screen, except my background picture and the cursor (not even the menu bar)

    When I wanted to turn off my macbook pro, the menu bar disappeard. There's nothing visible on my screen except my background picture and the cursor. I can't even turn off the macbook with the on/off button.

    I already held it for about one minute and nothing happened.. it's like i'm not doing anything..

  • How to change the screen element to be ineditable in Dynpro POV

    Hi Experts,  any one has experience on how to change the screen element to be ineditable in Dynpro POV?

    Write this piece of code in the PROCESS ON VALUE-REQUEST..
    PROCESS ON VALUE-REQUEST.
    FIELD MARA-MATNR MODULE matnr_mod.
    MODULE matnr_mod input.
    LOOP at Screen.
    if screen-name=<field_name>.
      screen-input = 0.
      modify screen.
    endif.
    ENDLOOP.
    ENDMODULE.
    Thanks
    Venkat.O

Maybe you are looking for

  • Why is the FactAdditionalInternationalProductDescription a fact table in the AdventureworksDW2008R2 database?

    Was wondering why this table is a fact table in the AdventureworksDW2008r2 database?  It has no measures that I can tell.  Here is the schema for the table.... [ProductKey] [int] NOT NULL, [CultureName] [nvarchar](50) NOT NULL, [ProductDescription] [

  • Iphoto wont open after i installed ilife11

    i bought ilife 11 and i bought snow leopard. I installed snow leopard and then ilife11 my imovie updated fine but my iphoto wont even open. Theres just a circle and it goes around and around and it never opens. my itunes got messed up too i had to re

  • Upgrade to ECC 6.0 from 4.7. OSS Notes implementation

    Hi, We have upgraded the R/3 system from 4.7 to ECC 6.0. I am looking into the SPAU Note corrections and it has a huge list of Notes to be implemented. I think some of these would have been already included in the upgraded version but is there a way

  • Capture label of a radiogroup-Please help.

    Hi Everyone, I created 4 radiogroups(page items) with static LOV. The labels of these radiogroups are dynamically populated using javascript. How can I retrieve these labels corresponding to the selected radiogroup. I tried different combinations as

  • Exporting OMF to Protools from FCP5

    I am running FCP 5.1.4 and cutting an HD pix, shot on an F900, downconverted to a DVC PRO 100 hd for editing. I want to export an OMF for a pro tools session. From what I hear, FCP 5 will not export OMF with the pan and volume levels. The sound edito