How to make a block as invisible at SSCRN Output ?

Hello All,
        I have 3 Blocks on my SSCRN and  I have 2 Radio Buttons.
I want to make 2 Blocks as Invisible when one of the radio button is selected.
Can any one tell me how to do so ?
Regards,
Deepu.K

Hi,
See the 2 sample codes for doing this and do accordingly
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
pa_vkorg TYPE vbak-vkorg MODIF ID abc.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
s_date FOR gs_lfa1-erdat MODIF ID def,
s_augru FOR gs_vbak-augru MODIF ID def,
s_vbeln FOR gs_vbak-vbeln MODIF ID def.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b3.
IF pa_rep EQ gc_x.
LOOP AT SCREEN.
IF screen-group1 = gc_abc.
screen-input = gc_zero_num.
ELSEIF screen-group1 = gc_def.
screen-active = gc_one_num.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_upd EQ gc_x.
*For Reprocessing
LOOP AT SCREEN.
IF screen-group1 = gc_def.
screen-input = gc_zero_num.
ELSEIF screen-group1 = gc_abc.
screen-active = gc_one_num.
ENDIF.
MODIFY SCREEN.
CLEAR pa_upd.
ENDLOOP.
ENDIF.
REPORT zrich_001.
PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                        user-command chk,
            p_rad2 RADIOBUTTON GROUP grp1.
SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                s_datum2 FOR sy-datum MODIF ID d2.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF p_rad1 = 'X'
      AND screen-group1 = 'D2'.
      screen-active = '0'.
    ENDIF.
    IF p_rad2 = 'X'
     AND screen-group1 = 'D1'.
      screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
reward if sueful
regards,
ANJI

Similar Messages

  • How to make relationship block mandatory?

    Hi,
    Please let me know how to make relationship block mandatory to create a business partner?
    Vinay

    Hi Vinay,
    Did you try to set the flag mandatory in the configuration of the relationship view for a field (e.g. relationship).
    Just go to the view in the component workbench, select your configuration, mark a field and go to Show Field Properties.
    Hope this helps.
    Regards, Thea

  • How to make a Tree Node invisible?

    Hi
    I have got a JTree where I have created a DefaultTreeModel and a DefaultTreeCellRenderer. The JTree is filled to data from data base. These nodes after are used to do querys to a data base. But when in tree's level 2 has got only a child, this node I want to set like not visible. because this node i need it do querys.
    I have found a thread to explain something:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=126031
    a) A kind to do, it is so
    I make a new Class extends DefaultTreeCellRenderer, but it doesn't work, the code is here
    public class SegnalarNodoRender extends DefaultTreeCellRenderer {
      public SegnalarNodoRender() {
      public Component getTreeCellRendererComponent(JTree tree, Object value,
                                                    boolean sel, boolean expanded, boolean leaf,
                                                    int row, boolean hasFocus) {
               Component comp;
              DefaultMutableTreeNode nodo = (DefaultMutableTreeNode) value;
              DefaultMutableTreeNode padreNodo = (DefaultMutableTreeNode) nodo.getParent();
               if (leaf && sel)  {
                 return super.getTreeCellRendererComponent(tree,value,sel,
                                                           expanded,leaf,row,hasFocus);}
               else
                 if (!leaf && nodo.getLevel()==2 && padreNodo.getChildCount()==1 ) {
                 //Set not visible
                   this.setVisible(false);
                   return  super.getTreeCellRendererComponent(tree, value, false,
                                                             expanded, leaf, row, hasFocus);
                 else {
                   return super.getTreeCellRendererComponent(tree, value, false,
                                                             expanded, leaf, row, hasFocus);
    }b) the anoher kinds it explains how to make it. It is extended a class from DefaultTreeModel, But it is in this function the this class(botton), where I don't know how the node sets to invisible. Why NodoPadre hasn't any function to set invisible.
    public Object getChild(Object parent, int index) {
      // DefaultMutableTreeNode NodoPadre = (DefaultMutableTreeNode) parent;
      // TreeNode p;
      // p = NodoPadre.getParent();
       return parent;
    }I hope somebody can help me.
    thanks in advanced.

    Hi,
    I have the same problem and would realy like to know how to do this´, using ADF Faces 11G with the up to date JDeveloper.
    I've found some blog entries in the web showing how to do this with a POJO-based approach. They insert Data programmatically based on a view object's result set, reading all data and inserting the data to the POJO.
    However, I like to
    1) Drag-And-Drop the data-control (based on one master and one details - view object and a view link) to a page and add it as tree table
    2) Get the folder icon only displayed when there are children
    3) get the last child (=leaf) displayed without folder icon.
    To make this possible, we should somehow extend the TreeModel Class and override the function isContainer
    @Override
    public boolean isContainer() {
      if (getRowData() != null) {
         MyRowImpl value = (MyRowImpl) getRowData();
        if (value.getChildValues() != null &&
           value.getChildValues().size() > 0) {
          return true;
        return false;
    }Can somehow please give me a hint how to extend the tree model base class (What class?) and how to get the framework to use this model class?
    Maybe there is a sample application for 11g somewhere?
    Thanks,
    Stefan
    Edited by: Stefan1979 on 04.11.2009 18:10

  • How to make material number field invisible in MM60?

    Dear expert,
    Is there any way to make material number field invisible in MM60 for one user?
    Best regards

    Hello,
    You may create a transaction variant for MM60 and hide Material code using SHD0. Then create Variant group and assign users to this group.
    Thanks,
    Venu

  • How to make Delivery block at Sales Order Header level for specific materia

    Hi,
    My client want to create a delivery block EDI order at the Order Header level for specific materials
    How can we achieve this.

    Dear Varada rajan
    Go to material master, select "Sales: sales org.1" view and assign "01" against the field "DChain-spec. status" and save.  By assigning, for a particular sales area, you can block that material.
    Now go to OVSU select 01 and assign "B" against the field "Block delivery".
    Now create a sale order and post the outcome.
    thanks
    G. Lakshmipathi

  • How to make a block appear / disappear at runtime ?

    Hello,
    I'd like to make a whole block appear and disappear at runtime.
    The block has no "visible" property, nor has the frame surrounding it on the canvas.
    Of course I can set this property for each item in the block, but I would like to find something easier.
    Thanks for your help.

    stack canvas is a better way.
    But the situation matters. after the block 'disappears', you leave the blank space there or resize the canvas ? if you have resize it to smaller, then you may set the window size in one built call.
    Thus the detailed way depends one the detailed requirement.

  • SQL Server - How to make SELECT block with TRANSACTION_SERIALIZABLE

    I'm in the process of switching an application to use SQL Server. Is there anyway of making a SELECT in SQL Server implement a lock (and therefore also get blocked) similar to an INSERT or UPDATE?
    Essentially, I have code that tracks a transaction ID for a particular customer; given there can be concurrent access from the same customer, I am using TRANSACTION_SERIALIZABLE:
    long id = 0L; // Customer ID stmt = Conn.prepareStatement("SELECT TxID FROM TxIDTable WHERE (ID = ?)"); stmt.setLong(1, id); result = stmt.executeQuery(); result.next(); int tx_id = result.getInt("TxID"); result.close(); stmt.close(); stmt = Conn.prepareStatement("UPDATE TxID SET TxID = ? WHERE (ID = ?)"); stmt.setInt(1, tx_id + 1); stmt.setLong(2, id); stmt.executeUpdate(); stmt.close(); Conn.commit();
    This code is working, however on SQL Server I have to wrap a loop around it, and if I catch a deadlock exception, rerun the transaction. This is costly and I would much rather have the SELECT create a lock and therefore block any concurrent SELECTs. One workaround is to force a dummy UPDATE up front:
    long id = 0L; // Customer ID stmt = Conn.prepareStatement("UPDATE TxIDTable SET ID = ? WHERE (ID = ?)"); stmt.setLong(1, id); // THIS UPDATE DOES NOT REALLY UPDATE ANYTHING stmt.setLong(2, id); // (NOTE SET AND WHERE CLAUSE ARE IDENTICAL) stmt.executeUpdate(); // HOWEVER, IT DOES EFFECTLY PREVENT DEADLOCK // BY CREATING A TABLE LOCK BEFORE THE SELECT stmt.close(); // stmt = Conn.prepareStatement("SELECT TxID FROM TxIDTable WHERE (ID = ?)"); stmt.setLong(1, id); result = stmt.executeQuery(); result.next(); int tx_id = result.getInt("TxID"); result.close(); stmt.close(); stmt = Conn.prepareStatement("UPDATE TxIDTable SET TxID = ? WHERE (ID = ?)"); stmt.setInt(1, tx_id + 1); stmt.setLong(2, id); stmt.executeUpdate(); stmt.close(); Conn.commit();
    This seems really like a waste -- anyway to make the SELECT lock on SQL Server??
    Thanks,
    Kevin

    You want a table hint (the equivalent of SELECT ... FOR UPDATE in other dialects):
    [http://msdn2.microsoft.com/en-us/library/ms187373.aspx|http://msdn2.microsoft.com/en-us/library/ms187373.aspx]

  • How to make a screen field invisible?

    Hi
    My problem is the following one : I use th screen painter to create a screen.
    I would like one of the screen fields to be invisible for the user but I would like to be able to write and read values in this field using 'C14Z_DYNP_READ_FIELD' and 'DYNP_VALUES_UPDATE'
    I tried to set the value of screen-active to 0 in the PBO module but it doesn't solve the problem cause if I do it, I can't specify a value for the field.
    Please help,
    Kind Regards
    Morgan

    hi
    good
    ACTIVE, INPUT, OUTPUT, and INVISIBLE
    There are certain hierarchy rules between the components ACTIVE, INPUT, OUTPUT, and INVISIBLE. They also have different effects depending on their respective static settings.
    The ACTIVE component has no equivalent in the element attributes. Instead, it changes the components INPUT, OUTPUT, and INVISIBLE.
    At the beginning of the PBO, ACTIVE is always set to 1, regardless of the static attribute settings. Setting ACTIVE to 0 automatically sets INPUT = 0, OUTPUT = 0, and INVISIBLE = 1. Any other changes to the settings of INPUT; OUTPUT, and INVISIBLE to the current screen element are ignored. Conversely, setting INPUT = 0, OUTPUT = 0, and INVISIBLE = 1 automatically sets ACTIVE to 0, and any further assignment to ACTIVE for the current screen element will be ignored. The setting ACTIVE = 1 has no other effect on the attributes. The only purpose of the ACTIVE component is to allow you to make a screen field inactive through a single assignment. You should particularly note that a module call linked to a FIELD statement in the screen flow logic is always executed, even when SCREEN-ACTIVE = 0 for the field in question. If you want to prevent a module from being processed for an inactive field, you must specify the FIELD- and MODULE statements separately.
    go through this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/content.htm
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/loop_a03.htm
    thanks
    mrutyun^

  • How to make white block cursor everywhere?

    Hello!
    Is it possible to enable solid non-blinking white block cursor everywhere in [Arch]linux console (I mean not only shell-prompt) like it is in X-terminals, Mac OS X and default FreeBSD?
    If it is possible, then how can I do this?
    Thanks!

    Lord Bo wrote:Read something about .Xresources in the Arch Wiki. I think the entry you are searching for is *cursorColor:white.
    No, you didn't understand me. I really LIKE default static white block cursor in X-terminals, but I want exactly same cursor behaviour in Linux text-mode console (everywhere starting from kernel loading console and VT login boxes to any shell prompts and text-mode applications).
    I don't need separate configuration for this type of cursor in every part of the text-mode system as it is much pain, but instead ask for one unified way to enable it everywhere in just one action.
    thisoldman. yes I know that, but unfortunately this is ONLY for the shell prompt that supports it, but not for the whole text-mode system.
    Thanks.
    Last edited by eruditorum (2012-12-11 17:20:26)

  • Collage: How to make the white background invisible?

    In the print module of LR5 my collages all include the white background when I export them. Does anyone have a link they could point me to that explains how to turn this off? Everything I have researched does not address this specificly.
    Thanks so much,
    Ashley

    You can make the background any color but not transparent. If you need a transparent background, for putting images on a web page or blog; you need to make the collage in Photoshop, Photoshop Elements or similar editing software.

  • How to make a movie clip invisible depending on a value in another layer?

    I am trying to make an "achievements" page for my game, where if the user has a high score greater than 100, then the achievement can be unlocked. I tried using a code like this, but it didn't seem to work!
    function Check();
    if(endscreen_mc.highscore_txt > 100)
    medals.roachLock.visible = false;
    else if(endscreen_mc.highscore_txt < 100)
    medals.roachLock.visible = true;
    else if(endscreen_mc.visible == 100)
    medals.roachLock.visible = true;
    The high score value is saved inside a shared object. What's wrong with my code, and what can I do to fix it?

    I tried doing this, but it's still not working.. 
    function Check():void
    if(Number(endscreen_mc.highscore_txt.text) > 100)
    medals_mc.roachLock.visible = false;
    medals_mc.medal_mc.visible = true;
    else if(Number(endscreen_mc.highscore_txt.text) <= 100)
        medals.roachLock.visible = true;
    This is what's inside my endscreen layer
    function showresults():void
              Rchannel.stop();
       // display current score
       endscreen_mc.scoreR_txt.text = String(score);
       // calculate, display and save (if necessary) a new highscore
       var so:SharedObject = SharedObject.getLocal("alltimeHighScore");
       if (!so.data.score || score > so.data.score)
           endscreen_mc.highscore_txt.text = String(score);
           so.data.score = score;
           so.flush();
                 Check();
       else
           endscreen_mc.highscore_txt.text = String(so.data.score);
       if(so.data.score==score)
                        endscreen_mc.score_txt.text = String(score);
                        endscreen_mc.highscore_txt.text = String(score);

  • How to make field visible and invisible dynamically in webdynpro ABAP

    Hi Experts,
    I am working on simple webdynpro application, in which I have two radio buttons and three fields.
    When I select second radio button second field should be invisible out of three and when I select first radio button the second field should be visible. ie I wanted this happen dynamically. I tried with using some methods but no output....
    Please help out.
    Thanks
    Basanagouda

    Hi Prabhu,
    I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
    When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
    I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
    On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
    Thanks
    Basu

  • How to make my Flash content dynamic in HTML5 output?

    Hi,
    Recently I started to make my website dynamic. and experienced some issues while making my content - dynamic. here is link to my website (so you can see what I'm tryin to do) https://www.economycarbooking.com you can find section "Tutorial" with my flash content so this is what I'm tryn to do. At the moment it isn't dynamic.
    Please help!

    I'm not sure but if it can help you here is second website https://www.miravtoprokata.ru/ You can find same section as it is named "Инструкция бронирования",
    also try to view my HTML source code.

  • XML Publisher - how to make column as date format in excel output

    Hi,
    I am having a XML publisher report , output is excel format. There are some date fields in reports, which are being displayed as "General" type in excel.
    Any way to restrict it in Date type only.
    Please explain the solution in detail. I am using rtf template.
    Regards
    Sandeep

    Hi Sandeep,
    I have the same issue. After looking at a lot of replies from various blogs, some suggest to use this format in your rtf.It did not work for me. You could try this and check if it works for you.
    <?format-date:datefied;’yyyy/MM/dd’?> where the format can be specific to your use.

  • How to make the width of powershell script's output greater than 80 column?

    Hi,
    I am trying to remotely execute a powershell script through ssh, and I found the output of my script is only 80 width, a carriage-return and a line-feed are inserted after 79th column, and continue presenting the 80th value of each row onto another line.
    I want it greater than 80, such as 512.
    The code to print the output in my script is like:
    $allInfo | ConvertTo-Xml -as Stream -NoTypeInformation -Depth 1
    Any help will be really appreciated!

    But when I run the powershell script manually, I get the following error message, I do not know why, but anyway, my problem is resolved.
    Exception setting "BufferSize": "Cannot set the buffer size because the size specified is too large or too small.           
    Parameter name: value                                                                                                       
    Actual value was 512,25."                                                                                                   
    At C:\Users\qzhang\Documents\GetVM.ps1:30 char:16                                                                           
    + $Host.UI.RawUI. <<<< BufferSize = New-Object Management.Automation.Host.Size (512, 25)                                    
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException                                                    
        + FullyQualifiedErrorId : PropertyAssignmentException  
    Yeah, that's a good question.  I get the same thing here.  The longer solution the post covers which I've included below does work interactively, and looking at the differences it appears to be related to the buffer height.  My guess is when
    the existing console window already has more rows in the buffer than the 25 rows in height the command tries to define, this error occurs.
    if( $Host -and $Host.UI -and $Host.UI.RawUI ) {
    $rawUI = $Host.UI.RawUI
    $oldSize = $rawUI.BufferSize
    $typeName = $oldSize.GetType( ).FullName
    $newSize = New-Object $typeName (500, $oldSize.Height)
    $rawUI.BufferSize = $newSize

Maybe you are looking for

  • Safari 5.1.2 crashes after installed Mac OS X 10.6.8 Update Combo v1.1

    Process:         Safari [946] Path:            /Applications/Safari.app/Contents/MacOS/Safari Identifier:      com.apple.Safari Version:         5.0.5 (6533.21.1) Build Info:      WebBrowser-75345207~2 Code Type:       X86-64 (Native) Parent Process:

  • Calling a function with sql

    Hi all, i have the following function.......... create or replace function proj_budget_importance (p_budget in NUMBER) RETURN VARCHAR2 IS proj_importance NUMBER (8,2); BEGIN IF p_budget > 250000 THEN proj_importance := 'High'; ELSIF p_budget <250000

  • BEX BW7 patch 10_1000 Not formatting amounts

    I have rolled out the 2004s tools to some of our developers working on a BW7 project here at UBS. I've deployed Compilation 5 with the BW patches 3.5 patch 10 and BW7 patch 903. Patch 903 had some install problems so I installed patch 1000, which did

  • Consolidation package doesnt work, monitor works perfectly fine.

    Hello All, I am facing a very weird problem. I have setup the consolidation and ownership models with all the structure configured and all the equity/intercompany elims configured. When I trigger the consolidations from Consolidation monitor, it work

  • How does update installation work?

    Does it overwrite existing files or append the new ones? Will the new 10.5.3 update take the whole 420MB as additional disk space or will it just change existing files? Message was edited by: Mc Apple