Collapse button in screens

Hi All,
I want to insert a collapse/ insert button in screens , wherein a table control will be collapse or expanded based on this button. please give your inputs and steps to do it.
Thanks ,
Ramya
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 3:09 PM

hi,
insert buttons in the screen initially and make then invisible like
in the pbo of the screen.
loop at screen.
  if screen-name eq 'insert'.
  screen-invisible = 1.
modify screen.
endif.
endloop.
if particular button is clicked then make that button visible.
if w_flag eq 'X'.
loop at screen.
  if screen-name eq 'insert'.
  screen-invisible = 0.
modify screen.
endif.
endloop.
endif.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 3:09 PM

Similar Messages

  • Expand/collapse button functionality on module pool screen

    Hi ,
    I want to design a module pool screen with a expand/collapse button on it.
    The desired functionality associated with this button would be something similiar to that available in ME21N screen. When the expand button is clicked it should open up a section of screen that allows the user to enter some parameter. Based on this parameter some selections from DB can be perfomed and then displayed below it.
    Any pointers on how to achieve this? Any kind of help would be appreciated.
    Regards-
    Harmeet Singh.

    example for three pushbutton with expand collapse .
    First of all define your push button as output field with icon tick in the pushbutton characteristick,
    then define this pushbutton in top_include
    include <icon>.
    data : push_a1 like icons-l4,
             push_a2 like icons-l4,
             push_a3 like icons-l4.
    data : a1 ,
             a2,
             a3.
    in pai of the screen
    suppose i had assign function code a1 ,a2 , a3 for repective pushbutton
    module user_command_9002 input.
      okcd = ok_code.
      clear ok_code.
      case okcd.
        when 'A1'.
          if a1 is initial.
            a1 = 'X'.
          else.
            clear a1.
          endif.
        when 'A2'.
          if a2 is initial.
            a2 = 'X'.
          else.
            clear a2.
          endif.
        when 'A3'.
          if a3 is initial.
            a3 = 'X'.
          else.
            clear a3.
          endif.
      endcase.
    endmodule.                 " USER_COMMAND_9002  INPUT
    define three seprate screen -group for three pushbutton say a1 a2 a3
    during pbo you can directly assign name of icon .
    if a1 is initial.
        push_a1 = icon_collapse.
      else.
        push_a1 = icon_expand.
      endif.
      if a2 is initial.
        push_a2 = icon_collapse.
      else.
        push_a2 = icon_expand.
      endif.
      if a3 is initial.
        push_a3 = icon_collapse.
      else.
        push_a3 = icon_expand.
      endif.
    loop at screen.
        if screen-group1 = 'A1'.
          if a1 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        elseif screen-group1 = 'A2'.
          if a2 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        elseif screen-group1 = 'A3'.
          if a3 = 'X'.
            screen-invisible = 1.
            screen-input = 0.
            modify screen.
          else.
            screen-active = 1.
            screen-invisible = 0.
            screen-input = 1.
          endif.
        endif.
      endloop.
    regards,
    Alpesh
    Edited by: Alpesh on May 28, 2009 10:28 AM

  • Add Expand/Collapse button in selection screen

    hi,
    i have to add expand button in the selection screen, afterwich, the expand button will be replaced by collapse button,
    any idea?!
    thanks

    Check this code..............
    DATA: wf_ucomm TYPE sy-ucomm.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    SELECTION-SCREEN PUSHBUTTON  /01(30) but1 USER-COMMAND but1.
    SELECTION-SCREEN PUSHBUTTON  /01(30) but2 USER-COMMAND but2.
    PARAMETERS:  p_test TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name   = 'ICON_EXPAND'
        IMPORTING
          RESULT = but1
        EXCEPTIONS
          OTHERS = 0.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name   = 'ICON_COLLAPSE'
        IMPORTING
          RESULT = but2
        EXCEPTIONS
          OTHERS = 0.
    AT SELECTION-SCREEN.
      IF sy-ucomm EQ 'BUT1'.
        wf_ucomm = 'BUT1'.
      ELSEIF sy-ucomm EQ 'BUT2'.
        wf_ucomm = 'BUT2'.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      IF wf_ucomm IS INITIAL.
        LOOP AT SCREEN.
          IF screen-name CS 'P_TEST'OR
             screen-name EQ 'BUT2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF wf_ucomm EQ 'BUT1'.
        LOOP AT SCREEN.
          IF screen-name CS 'P_TEST' OR
             screen-name EQ 'BUT2'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name EQ 'BUT1'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF wf_ucomm EQ 'BUT2' .
        LOOP AT SCREEN.
          IF screen-name CS 'P_TEST' OR
             screen-name EQ 'BUT2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name EQ 'BUT1'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • While i was updating my ipod touch it had an error and froze at the apple logo with a loading bar underneath.How do I fix it? Its stuck there,  tried everything, turn off button home screen button even the volume buttons, nothing is working.

    I was updating my ipod touch and the updation had an error and it froze at the apple logo with the loading bar underneath. How do I fix it? I tried the turn off button home screen button and even the volume buttons. I cant get anything to work. Please help me.

    Connect to itunes and retore.

  • After upgrading to Mavericks on my MacBook, I'm not able to download third party applications like Dropbox and MyCleanMac 2.  After clicking the download button, the screen just turns dark and is frozen.  Any idea what is happening?

    After upgrading to Mavericks on my MacBook, I'm not able to download third party applications like Dropbox and MyCleanMac 2.  After clicking the download button, the screen just turns dark and is frozen.  Any idea what is happening?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • HT4623 I installed ios7 on my iPad 2 yesterday, this morning it wouldn't open the weather channel app. I thought maybe I should power it down. When I held down on the power button the screen went black and now it won't do anything. What do I do now?

    I installed ios7 on my iPad 2 yesterday, this morning it wouldn't open the weather channel app. I thought maybe I should power it down. When I held down on the power button the screen went black and now it won't do anything. What do I do now?

    Try a reset: Press and hold both Sleep/Wake and Home buttons until the Apple logo appears.

  • How to set Function Code for Radion Buttons in Screen painter

    Hi,
    I have faced problem of grouping 3 radio buttons in screen painter (no graphical editor). How to do it?
    I have checked similiar threads in SDN, but those are for graphical editor.
    Radio Buttons in custom screeen
    http://****************/Tutorials/ABAP/Checkbox/page1.htm
    http://****************/Tutorials/ABAP/Checkbox/page2.htm
    Regards,
    Sukhbold

    Hi,
    U want to create radio button in the selection screen  then u can create like this
    PARAMETERS : c1 AS CHECKBOX USER-COMMAND cd,
    r1 RADIOBUTTON GROUP rad,
    r2 RADIOBUTTON GROUP rad.
    AT SELECTION-SCREEN OUTPUT.
    IF c1 = 'X'.
    LOOP AT SCREEN.
    IF screen-name = 'R1'.
    screen-input = '0'.
    screen-active = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ELSE.
    LOOP AT SCREEN.
    IF screen-name = 'R1'.
    screen-input = '1'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Thanks,

  • When I press to the left of the home button, the screen lights up

    When I press to the left of my home button, the screen lights up as if I were pressing the actual button. This causes Siri to pop up randomly all the time and my phone keeps accidently taking screen shots. Should I take it in?

    I was a little confused when I first read this, but I think I understand what you mean now. The bottom left part of the glass on the front of the iPhone, by the home button, can cause it to act like you're pressing the home button. I do not experience this issue on my iPhone 5. This is probably a small defect in your iPhone. It isn't major, though, I'm  sure if you visit the Genius Bar in your nearest Apple Store, you can get advice from the experts on what to do.

  • New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    edit: iPad 4

  • Option button in screen painter

    Hi everyone,
    Can I group option buttons in screen painter? How?
    I have two problems:
    1. The options buttons seem disabled: when i click on them, they aren't checked
    2. I can't group them
    Thanks
    Carles

    Hi
    First bind your option buttons to a same datasource then use the following to group then
    Dim ob1 As SAPbouiCOM.OptionBtn = oForm.Items.Item("ob1").Specific
      Dim ob2 As SAPbouiCOM.OptionBtn = oForm.Items.Item("ob2").Specific
      Dim ob3 As SAPbouiCOM.OptionBtn = oForm.Items.Item("ob3").Specific
       ob2.GroupWith("ob1")
       ob3.GroupWith("ob2")
    Hope this helps
    Regards
    Arun

  • Expand and collapse button in maintenance view

    hi all,
               i want help for functionality of expand and collapse buttons present there in maintenance view. delimit button is also there what is the functionality for these buttons.
    u ppl can see these buttons while enetering values in standarad maintenance view V_T510
    my requirement is to create same buttons and their working in user defined maintenance view.

    Hi Chavi,
    check the PDF document
    Module Poolo tuorials
    regs,
    Hema sundar.

  • How to get collapse button of panelSplitter in center

    Hi,
    I have used panelSplitter on my ADF page but the collapse button of panelSplitter is coming on the bottom of splitter and its size is very short,
    kindly let me know how to set this collapse button on the center of panel splitter and how we can increase its size.
    Thansks,
    Lalit

    Hi
    My JDeveloper version is 11.1.1.5.0 and the browser version is Internet Explorer 8.
    the code i have used is-
    <af:panelSplitter id="ps1" inlineStyle="width:100%; height:100%;"
    splitterPosition="204" >
    <f:facet name="first">
    <af:outputText value="HI" />
    </f:facet>
    <f:facet name="second">
    <af:outputText value="HI" />
    </f:facet>
    </af:panelSplitter>
    this code gives collapse button at the center when i make a new application but when i use the same code in my main application in which i have used style.css file for giving styling it gives collapse button
    at the bottom of splitter while i haven't used style class on this page. Is it due to using style.css in application if yes then kindly let me know how can i bring collapse button at center.
    thanks

  • I pod touch 5th generation was working fine died so i charged it. Now that it is charged when i hold the power button the screen turns dark blue if it on and the apple logo is about to appear but it never does nor does anyother picture. If i hold the

    I pod touch 5th generation was working fine (Not sure what the last ios i downloaded was it should be ios 8 or higher). The battery died so i charged it. Now that it is charged when i hold the power button the screen turns dark blue as if it's powering on and the apple logo is about to appear but it never does nor do any other type of images on the screen. If i hold the home button Siri will say "Siri is not available please connect to internet" but there is still no image on the screen. I've tried holding down the home and power button it restart it but doing this just gave me the same results. How do i fix this problem? What's wrong with my i pod?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • My iPhone crashing after latest IOS Update. Screen is not working anymore. I cannot use buttons, the screen is freezing up.Only thing I am able, is to 'restart' the phone. Now it does it after 5 minutes itself! Already removed en reset phone, no success!

    My iPhone crashing after latest IOS Update. Screen is not working anymore. I cannot use buttons, the screen is freezing up.Only thing I am able, is to 'restart' the phone. Now it does it after 5 minutes itself! Already removed en reset phone, no success!
    Can anyone help me?

    Hi there Cinthia88,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    -Griff W.

  • Sleep button take screen shot when pressed

    The sleep button take screen shot when pressed,doesn't act like sleep button?

    It only takes screen shots if the round home button at the bottom and the power button on top of the phone are pressed together. 

Maybe you are looking for

  • Is there an app for "while you were out" messaging?

    Is there an app for "while you were out" messages?

  • Boot camp - getting back to mac

    I recently put windows 7 on my mac through boot camp and somehow ended up deleting the harddrive with mac on it, i am now only left with windows 7. How do i go back to Mac? Please help Thank you

  • Any error come oracle 11g r1 n 11g r2 installed in same ORACLE_BASE

    Hello , if I had installed oracle 11g r2 in same oracle base where oracle 11g r1 was already existing,,,ll there b any problem going to occur .

  • Authorizations in SAP PI

    Hi all, dealing mainly with authorizations in ERP I am new to authorizations in PI. Therefore I am facing a problem with this situation: 1.Three roles with authorizations in ABAP and Java are expected: Developer, Supporter, Monitoring. 2. HR data is

  • Canon Optura 50 capture won't connect

    I have new Canon Optura 50; great camcorder, BUT my Mac will not connect/see it via 1394 in any application (FC HD/iMovie/istopmotion). I know it's not a cable etc. issue, since it sees my junker ZR10 just fine. DV setting is set to "Basic". Please h