Controlling the pushbuttons

Hi friends,
         I need to display two pushbuttons and two parameters on the selection screen, when I click one push button I have to display one parameter and hide the another parameter,same with the second pushbutton.Please give me some sample code.
sathish.

TRY THIS:
REPORT  znrw_pbut                               .
SELECTION-SCREEN PUSHBUTTON 15(5) pbut_1 USER-COMMAND pb1.
SELECTION-SCREEN PUSHBUTTON 35(5) pbut_2 USER-COMMAND pb2.
parameters: pbut1a type matnr  MODIF ID pb1,
            pbut1b type sydatum MODIF ID pb1.
parameters: pbut2a type vbeln  MODIF ID pb2.
TABLES:  sscrfields.
data l_button like sy-ucomm.
INITIALIZATION.
  MOVE 'PB 1' TO pbut_1.
  MOVE 'PB 2' TO pbut_2.
  l_button = 'PB1'
AT SELECTION-SCREEN.
  IF sscrfields-ucomm = 'PB1'
  OR sscrfields-ucomm = 'PB2'.
    l_button = sscrfields-ucomm.
  ENDIF.
AT SELECTION-SCREEN OUTPUT.
  loop at screen.
    IF SCREEN-GROUP1 =  'PB1'
    OR SCREEN-GROUP1 = 'PB2'.
      IF SCREEN-GROUP1 <> L_BUTTON.
         SCREEN-ACTIVE = '0'.
         MODIFY SCREEN.
      ENDIF.
    ENDIF.

Similar Messages

  • Customizing the pushbutton control in 6.1

    How do I remove the LED portion of the pushbutton control in LV6.1?
    I tried to do a custom control but the LED can not be deleted.
    Anyone try to do this before?

    An easy way would be to customise the button, select the LED and move to back

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • Remotely control the ITunes on Windows 7 64 bit PC with the new IPad

    With the latest version of ITunes for both Win7 and the new IPad, I'm only able to use the new IPad to remotely control the ITunes on Windows 7 64 bit PC through wired connection  ( ethernet cable ) to the wireless router. As soon as I connect my PC through wireless connection, the new IPad can not find my libraries.
    Is this a known issue or am I missing some settings?
    Thanks,

    Are you using the 64 bit installer?
    See also  Recovering your iTunes library from your iPod or iOS device.
    tt2

  • The sound of my iphone has dissapeared when I play games and when i listen to muisic but when I put the headphones the sound come back and I can control the sound,what should I do??

    I was on a boat ride when some water fell on it but it was just a little bit then when i tried to control the sound and volume while playing and listening to music it didn't showed anything and just with headphones it appeared again and i could listen and I could control it again but when i take the headphones out it goes back to the same thing.What should I do??

    try toggling the Ducking menuItem

  • Can not control the color in JOGL

    I am a beginner to use JOGL.
    I find that I can not control the color, both background and foreground. The background is always Black, and foreground is always Red.
    I use canvas.setBackground(Color),
    gl.glColor3*(), trying to change the color. But it does not work.
    What is the problem?
    Thanks.
    Toby

    A big help for learning JOGL is reading the Red Book from OpenGL, which can be downloaded in pdf. Since JOGL is almost a direct wrapper, the function calls are identical.
    To set the background color, you need to add a GLEventListener to the GLCanvas that you're using. To set the background color, in your init() method for GLEventListener do:
    public void init(GLAutoDrawable glad) {
    GL gl=glad.getGL();
    gl.glClearColor(r,g,b);
    or something similar, I'm not on my normal computer so this was all from memory. Check the JOGL API for the exact method name for glClearColor. To change the foreground color, there are a bunch of various methods that are all similar to glColor3f(float r,float g,float b).
    Calling this on the GL object in the display() method will set the foreground color and everything drawn that isn't using lighting will use this color.

  • I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.  I've been unable to locate an app that will do this.

    I want to make a slideshow to view on my television with image's duration ranging from seconds to an hour or more and I want to use my iPhone or iPad mini to control the television through my Apple tv.
    I've been unable to locate an app that will do this.  The Photos app that comes with the phone or iPad has extremely limited duration controls.  PhotoStream seems to load everything from my phone or iPad not allowing me to just load up a set group of images.
    iPhoto for iPad is getting some terrible recent reviews.  I tried a couple other free apps but they don't use Airplay.
    I can do something like this with iPhoto and my MB Air, but it's kind of ugly to have the computer open in order to connect by Airplay to my Apple TV.  I've thought the iPad or iPhone would be a lower profile controller.
    Am I out of luck?

    Thanks for your help.  Since I'm uninterested in loading all my photos (the only option) into photostream, I won't be able to use the settings in ATV.  I guess I'm just stuck with using iPhoto on my MB Air.  Thanks again.
    paul

  • Can't figure out how to set my midi controler to control the sampler!

    I have a Korg Kontrol49 and I want to be able to control the sampler knobs and faders with the ones on my Korg. I have it connected threw USB. It works for the keys but I can not figure out how to program the rest of it. Any help would be great. I tried reading everything I could to get it to work but I cant. Please help!
    Thanks
    Mac Pro   Mac OS X (10.4.8)  

    Press Command-L. Touch the onscreen control. Twiddle your MIDI knob. Assignment learnt.
    Then go read the manual on Controller Assignments...

  • Control the opening and closing period

    hi ,
    Control the opening and closing period
    How I can control open and close peroid at the level of (ledger or legal entity or operating unit)
    thanks

    can you clarify it, what does it mean 'control' the opening period

  • Allow the user to control the width of the edit forum post input box

    I would like to control the width of of the edit-forum post input box.  This could be:
    automatically adjust the width of the box so that the box doesn't run off the right edge of the window.
    have a user global preference to set the preferred width
    at least, allow the user to change the width via the change size icon.  The three horizontal bars at the lower left of the input box. You can adjust the vertical dimension, but not the horizontal. TenFourFox 4.0.1. This is probably being blocked for some obscure reason.
    Here is an example of an over extended right margin:
    Curiously enough, the "software" let's me adjust the width & height of the add reason to edit text, but not adjust the width of the more important edit text box.
    Robert

    Testing
    Standard Reply box can be height adjusted but not width.
    Same with Advanced Editor
    No Adjustment at all in HTL Editor
    Edit.
    The Edit uses the Advanced Editor
    Only Height Adjustment again.
    I do seem to remember someone posting about the width and saying they could drag it over the edge of the right hand edge (Into the grey surround)
    This may have been a post in the lounge.
    It didn't actually try it at the time but have played with it since and have not seen it.
    Maybe it is something they "Fixed" in both senses of the word.
    Second edit.
    I can't alter the box that currently reads "Message Edited by:- ..."
    I also can't get this box to accept New lines  (they appear in the box but don't post that way)
    Corrected Spelling
    9:51 PM      Wednesday; May 11, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)
    Message was edited by: Ralph Johns (UK)
    and new line with a line space as well

  • Control the creation of excise invoice without chapter id

    Hi All
    If Chapter ID is not maintained for a material in J1ID, can we control the creation of the sales excise invoice (J1IIN) for that particular material.
    Thanks in advance
    regards
    Ram A

    Hi Rajesh
    Thanks for your reply.
    Eventhough the chapter ID is not maintained in the Material Master or in J1ID, the system will allow the creation of the sales excise invoice (J1IIN) without any excise duties in case of TAXINJ and with excise duties in case of TAXINN.
    My requirement is that the system should restrict the creation of sales excise invoice for the materials without chapter ID.(Any User exits ???)
    regards
    Ram A

  • Can 2 iPhones control the same iTunes Library with Remote?

    Hi,
    Does anyone know if you can authorize 2 iPhones to control the same iTunes library using the iPhone Remote app? Or can only one iPhone be authorized at any one time?
    Thanks!
    - John

    Hey John,
    Yes, you can have multiple iPhones remote controlling iTunes.
    Jason

  • How can I control the zoom on my mac mouse?

    How can I control the zoom function on my mouse? In the middle of working on things my hand will rub the mouse by accident and all of a sudden the context within the screen is large. I have no idea of how to work this feature on my mouse and most times to get it to return to normal, I have to escape out of the work I am performing.

    If you are pressing the "Control" button on the Mac keyboard, scrolling up will zoom in and scrolling down will zoom out. You can disable this if it annoys you through System Preferences > Universal Access. If you are using Mountain Lion, it would be System Preferences > Accessibility.
    Uncheck the in the "Seeing" or "Zoom" section that says "Use scroll gesture with modifier keys to zoom".  It may be slightly different if you have an older OS X version. I have Mountain Lion and am going off of memory on the older versions.

  • I have multiple email accounts on my iPad. How do I control the order in which the accounts are displayed?

    I have multiple email accounts on my iPad. How do I control the order in which the accounts are displayed?

    In landscape mode, the mailbox list is automatically displayed (in portrait mode, you will need to tap the button to,show it).
    To edit the list, tap edit as shown below.

  • How can i use the ACL file to control the access from the other website?

    Hello all~
    My Sun one is 6.1 sp3 on Windows 2003 SE, and I am try to use the ACL file to control the access.
    My ACL file is below:
    version 3.0;
    acl "path=my_path_on_HD";
    deny absolute (all)
    (user = "anyone") and
    (dns = "*.my_site.com");
    deny absolute (all)
    (user = "anyone") and
    (dns = "*.other_site.net");
    Once I add the "deny", anyone include my site is decline for vist the path specify in the ACL file. But if remove the "deny", everyone include other one's website can access the file.
    Can anybody tell me how to make it work?

    I think you've misunderstood what the dns attribute is for. The dns attribute returns the hostname of the client accessing your website, not the hostname of the website that linked to your website.
    For example, when someone using the Comcast ISP goes to a malicious website at example.com that loads images from your website at www.amigoo.net, the dns attribute will be something like "c-1-2-3-4.ca.comcast.net", not "example.com". ACLs are used for authentication and authorization of clients (not the websites those clients chose to visit), and they don't provide the functionality you're looking for.
    If I understand correctly, you want to prevent websites other than amigoo.net from linking to files in your d:/webserver/imat/pics_upload directory. You can achieve this adding the following lines to your obj.conf configuration file:
    <Object ppath="d:/webserver/imat/pics_upload/*">
    <Client referer="*~*amigoo.net">
    PathCheck fn="deny-existence"
    </Client>
    </Object>

Maybe you are looking for

  • Problem in deploying a web service

    hi all, i am creating java files out of a wsdl and tring to deploy them. but there is some problem because when i try to deploy the java files it throws following exception: E:\eclipse\workspace\AvailRqOTAToTH\com\tourico\webservices>java org.apache.

  • Keep getting error message

    Hi, I keep getting an error message when I try to login to Myspace.com. I know it's got to be my computer since I can login at work. I copied the message and here it is: Server Error in '/' Application. Runtime Error Description: An application error

  • ICR - relevant customizing for process 002 - transaction FBICS2

    Hello experts, I am trying to setup process 002 for ICR. I have trouble getting documents to be viewed in FBICS2. I already have ledger Z2 for FBICRC002T (sender). As I see in the documentation on page 20 the program will ignore all local companies w

  • Mavericks

    After upgrading to Mavericks everything went slower. During the months I hav had it things progressively got worse. No everthing goes a lot slower, I have no sound on the computer, no light on key pad, iPhoto does not work (it opens but no picture sh

  • Set fixed speed for finding home!

    Hi, I am using a 7344 card. Right now in my program @ certain times/conditions i have moving @ certain speed. How can i use the find home function to move at a fixed speed when i call it to search for home because i saw that it moves @ different spee