Pushbutton in sel-scrren

hai ..I added pushbutton in selectionscreen.
selection-screen : pushbutton /10(20) txt user-command abcd.
can anyone tell me how to code so that if i click that push button it should go to the report output.

Here i am posting my entire code...hav a luk on this . It is not displaying the data bcoz of improper wrong events .
REPORT  zh_test1 NO STANDARD PAGE HEADING.
TABLES : vbak,            " Sales Document: Header Data
         vbap,            " Sales Document: Item Data
         marc,            " Plant Data for Material
         makt,            " Material Descriptions
         sscrfields.      " Fields on selection screens
*&                   DATA DECLARATION
DATA : BEGIN OF tbl_final OCCURS 0,
        kunnr LIKE vbak-kunnr,
        matnr LIKE vbap-matnr,
        name1 LIKE kna1-name1,
        maktx LIKE makt-maktx,
        END OF tbl_final.
DATA : BEGIN OF tbl_kna1 OCCURS 0,
       kunnr LIKE kna1-kunnr,
       name1 LIKE kna1-name1,
       END OF tbl_kna1.
DATA : BEGIN OF tbl_makt OCCURS 0,
       matnr LIKE makt-matnr,
       maktx LIKE makt-maktx,
       spras LIKE makt-spras,
       END OF tbl_makt.
DATA flag.
*&                       CONSTANTS
DATA c1(10) TYPE c VALUE 'Enter Here'.
*&                 SELECTION SCREEN
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_kunnr FOR vbak-kunnr,
                 s_matnr FOR vbap-matnr,
                 s_prctr FOR vbap-prctr,
                 s_vkorg FOR vbak-vkorg,
                 s_audat FOR vbak-audat.
SELECTION-SCREEN : SKIP,
                  PUSHBUTTON /40(15) txt USER-COMMAND abcd,
                  SKIP,
                  END OF BLOCK b1.
*&                  INITIALIZATION EVENT
INITIALIZATION.
  MOVE c1 TO txt.
*&                   AT SELECTION-SCREEN EVENT
AT SELECTION-SCREEN.
  CASE sscrfields.
    WHEN 'abcd'.
      flag = 'X'.
  ENDCASE.
*&                   START OF SELECTION
START-OF-SELECTION.
  PERFORM DATA_RETRIVE.
*&      Form  rep_out
      text
-->  p1        text
<--  p2        text
FORM rep_out .
  IF flag = 'X'.
    LOOP AT tbl_final.
      WRITE :/ tbl_final-kunnr,
               tbl_final-matnr,
               tbl_final-name1,
               tbl_final-maktx.
    ENDLOOP.
  ENDIF.
ENDFORM.                    " rep_out
*&      Form  DATA_RETRIVE
      text
-->  p1        text
<--  p2        text
form DATA_RETRIVE .
SELECT akunnr bmatnr INTO CORRESPONDING FIELDS OF TABLE tbl_final
  FROM vbak AS a INNER JOIN vbap AS b ON avbeln = bvbeln
  WHERE
  a~kunnr IN s_kunnr AND
  b~prctr IN s_prctr AND
  b~matnr IN s_matnr AND
  a~vkorg IN s_vkorg AND
  b~prctr IN s_prctr.
  SELECT kunnr name1 INTO TABLE tbl_kna1 FROM kna1.
  SELECT matnr maktx spras INTO TABLE tbl_makt FROM makt
  WHERE spras = 'en'.
  LOOP AT tbl_final.
    READ TABLE tbl_kna1 WITH KEY kunnr = tbl_final-kunnr.
    READ TABLE tbl_makt WITH KEY matnr = tbl_final-matnr.
    IF sy-subrc EQ 0.
      tbl_final-name1 = tbl_kna1-name1.
      tbl_final-maktx = tbl_makt-maktx.
      MODIFY tbl_final.
    ENDIF.
  ENDLOOP.
  DELETE ADJACENT DUPLICATES FROM tbl_final.
  SORT tbl_final BY kunnr.
endform.                    " DATA_RETRIVE

Similar Messages

  • HOW TO KEEP PUSHBUTTON IN OUTPUT SCREEN(ALV)

    HOW TO KEEP PUSHBUTTON IN OUTPUT SCREEN ( ALV FORMAT)

    Hi,
    At selection screen use this below code:
    Eg:
    *SELECTION-SCREEN FUNCTION KEY 1. "Adds button to application toolbar
    Declaration of sel screen buttons
    selection-screen begin of line.
    selection-screen pushbutton (20) w_button user-command but1.
    selection-screen pushbutton (25) w_but2 user-command but2.
    selection-screen end of line.
    Madhu
    Pls reward me if it is useful

  • Installing Lion to Sell Computer... How does this work?

    I want to sell my computer, but I want to buy Lion and install it... but does it get attributed to my account? How can the new owner have the OS under their name with the digital download?

    G'day,
    The license agreement that you will read carefully and agree to before installing Lion says that "you are granted a limited, non-transferable, non-exclusive license:"
    Thus, when you sell the Mac, you should sell it with the restore disks that came with the machine, and running the OS that is on those disks.
    That means doing an erase and install of whatever OS the machine came with.  For example, on my 2007 MacBook... that would bust the new owner back to Tiger.  Although... I would probably sell it with my retail box of Leopard, which could be the base OS for the new owner.
    Cheers,
    Rodney

  • Error in generating a sel-screen.

    friends,
        am getting an error while activating a report saying that error in generating the sel. screen 1000 in line 0....also, am not able to select the selection-texts (in the goto->text elements), which says there aer serious syntax errors...pl help..thanks all..
    here is my selection-screen declaration code
    SELECTION-SCREEN BEGIN OF BLOCK APPLICATION WITH FRAME TITLE TEXT-002.
    PARAMETERS:
      PM_WERKS LIKE MSEG-WERKS OBLIGATORY DEFAULT '1000',
      PM_MJAHR LIKE MKPF-MJAHR OBLIGATORY DEFAULT SY-DATLO.
    SELECT-OPTIONS:
      PM_MBLNR FOR MSEG-MBLNR NO-EXTENSION MEMORY ID MBN.
    PARAMETERS :
      PM_LGORT LIKE MSEG-LGORT OBLIGATORY DEFAULT '1001',
      PM_BUDAT LIKE MKPF-BUDAT.
    SELECTION-SCREEN END OF BLOCK APPLICATION.

    Hi Satish,
    i am not facing any kind of problem with your code. can you check it once.
    TABLES: mseg.
    SELECTION-SCREEN BEGIN OF BLOCK application WITH FRAME TITLE text-002.
    PARAMETERS:
    pm_werks LIKE mseg-werks OBLIGATORY DEFAULT '1000',
    pm_mjahr LIKE mkpf-mjahr OBLIGATORY DEFAULT sy-datlo.
    SELECT-OPTIONS:
    pm_mblnr FOR mseg-mblnr NO-EXTENSION MEMORY ID mbn.
    PARAMETERS :
    pm_lgort LIKE mseg-lgort OBLIGATORY DEFAULT '1001',
    pm_budat LIKE mkpf-budat.
    SELECTION-SCREEN END OF BLOCK application.
    Regards
    Vijay

  • My Mac has broken and I want to sell it for parts. How can I be sure that my personal data that is/was on the hard drive is safe?

    My 2006 MacBook Pro has broken. There is a little bit of drive noise when I turn it on, but then nothing happens. It is no big deal. Most of my files were backed up. There are a few files I would like to recover if possible, but nothing worth a major effort.
    I have seen that broken MacBook Pro's go for about $300 on eBay for parts, so I would like to sell the MacBook Pro. However, I only want to do that after I am sure that my personal data is wiped out. Does anyone know how I can accomplish that? Does anyone know of an easy way to search the old hard drive for some of the data that I lost? Can a Genius Bar take care of this stuff for me (and how much do they charge?)?
    Thank you for your help.
    - Eric

    EricNY wrote:
    I only want to do that after I am sure that my personal data is wiped out. Does anyone know how I can accomplish that?
    The ONLY real secure way to be sure that noone may recover data from your drive is, to remove the drive, and drill one or two 1" holes thru the disk.
    A bit less secure but useful way is, to wipe out the data with a tool that's overwrite all sectors of the drive with randomized data in multiple runs.
    For example: Permanent Ereaser http://www.edenwaith.com/products/permanent%20eraser/
    Independent tests bring out, that even specialized recovery companies with forensic tools are unable to find useful data after such a run.
    EricNY wrote:
    Does anyone know of an easy way to search the old hard drive for some of the data that I lost?
    There are some recovery tools out there to fit your needs, e.g. MacKeeper http://mackeeper.zeobit.com/mac-data-recovery
    Lupunus

  • How do I delete everything on the iPod so that I can sell it?

    I just purchased the new ipod touch and now I would like to sell my 30G video ipod with all songs deleted. Any suggestions?

    Just to expand a little on Diane's post. Once the restore is complete follow the on screen instructions and the iPod should connect to iTunes and give you a prompt to automatically update your library onto the fresh installation. Choose "No", it will default to manual mode and be completely empty: Restoring iPod to Factory Settings with iTunes 7

  • Is it legal to sell photos edited in trial and beta verisons of Photoshop?

    I recently downloaded the new CS6 beta version of photoshop and since I am interested in stock photography I was wondering if it's legal and not againts Adobe's rules to sell photos edited in trial and beta versions of Photoshop? I mean, since you haven't bought them and just trying them out.
    I really haven't found info about it, yet. Adobe terms and policy are little overwhelming
    Thanks.
    p.s. I hope I asked the question on the right place

    The last time that I read the EULA, the only restriction on commercial or production work was on beta/pre-release software. So you could use the CS5 trial but not the CS6 beta.
    See section 4.a . here:
    http://www.adobe.com/misc/terms.html

  • Md04 - additional columns as pushbutton

    Implementing the badi MD_ADD_COL_EZPS
    How can I add a column and the content of the column is a pushbutton ????
    thanks in advance
    Stephan

    Hi Stephen,
                        I just made this particular enhancement. You first have to check if the BADI - MD_ADD_COL_EZPS - is activated. If it is then you will have to do the enhancement using the BADI, else you can use the combination of the two following User-exits :
    EXIT_SAPLM61R_001, EXIT_SAPMM61R_001.
    Thanks & Regards,
                         Aditya

  • How to Protect your Custom Access Database Product - so that you can sell & distribute it?

    I'm looking for an update on this topic as I have been away from Access for a couple of years and have not kept up with the latest.
    Hopefully they have made it easier to design, develop, sell and distribute custom database solutions. So here goes...
    Question A:
    If one develops a custom database product with Access 2013 what is the current best way to...
    1 - Prevent it from being (too easily) copied
    2 - Prevent it from being (too easily) reverse engineered
    3 - Prividing a time limited free demo copy?
    4 - Providing a demo copy with limited functionality... like limiting the number of records in an important table, or whatever?
    5 - What have I left out of this list that should be considered for protecting ones investment in the development of the product? (other than copyright, of course.)
    Question B:
    What is the latest on being able to migrate an Access database to the cloud?
    1 - Entirely online
    2 - Part in the cloud and part on the users machine
    3 - And what about all that VBA code - is there no way to make that work in the cloud and/or on a web server... or does it all have to be tossed and all the coding redone?
    Question C:
    What are other alternatives solutions for selling your custom database application while protecting all your investment in developing it?
    1 - Write the front end in C++  (so that it is fully compiled) and the back end in ASP with MS SQL Server? (or alternative server side solutions)
    2 - Write the whole thing as a server side solution with browser interface?
    3 - Or what?
    Thanks for any help.

    Hi Fran_3,
    >>What is the latest on being able to migrate an Access database to the cloud?
    In my option, the Access Web app would be a better choise.
    Regards,
    Tony
    Help each other

  • How to take off email and website subscription from 2006  iMac to sell?

    I have a desktop Imac that I bought in 2006 and would now like to sell. I also bought a laptop in 2007 that I prefer using. How do I remove the email and website subscription from the desktop model without messing up the laptop info? They seem to be connected at this point and I am not sure how to take off the information from one without damaging the other.

    Have you solved this problem? If not, can you be more specific? You can change the email account information using Email preferences. Which website subscription would you like to remove?

  • Good day, tell me what to do iphone 4s bought preowned raised to 7.2 firmware but it requires aktivatsyi apple id but I do not know it because they do not buy a new one. and contact the seller lost in what to do now tell me?

    Good day, tell me what to do iphone 4s bought preowned raised to 7.2 firmware but it requires aktivatsyi apple id but I do not know it because they do not buy a new one. and contact the seller lost in what to do now tell me?

    There is no way around the activation lock. You apparently decided to use the phone with someone else's ID set up for an iCloud (and find my iPhone) account before updating. Since Find My iPhone was active, updating to iOS 7 has automatically turned on the activation lock. If you do not have the Apple ID and password that were previously used, then the phone is now useless. You can't activate it without that informaion.
    Talk to whoever you bought the phone from if you can. If you can't, buy a new phone.

  • I want to sell my MacBook, please read and help

    I want to sell my MacBook (1.83 GHz) to my roommate and buy the next model up (2.0), which was out of stock at the store when I purchased it. I bought this model because I was leaving for Japan in a few days and needed the laptop. I bought the MacBook in September of this year.
    Here's the problem. Well, problems.
    I live in Japan. I'm in the Navy. Will I be able to get a hold of Apple tech support to find out what to do?
    I've never sold or bought a used laptop before. Is there a way to "transfer" everything of mine to my new one, and then erase it from the old one, making it like new for my roommate?
    I just got the Protection Plan in the mail for my MacBook. Does this expire? I had a 90 day plan when I bought it, I now have the three year plan still wrapped in its box. Can I save it to use on the new laptop, or does it have to be used on this one? And if so, can it be put under her name? Or, should I just send it back for a refund and buy it again when I get the new laptop?
    How do I change all the licenses and usernames and such so it becomes "her" laptop?
    Not as important as the others: Should I wait until Leopard is released to purchase the new one? When will that be? Or does it really matter.
    I know these are tons of questions, but I need them answered, and it's difficult to find time (and money) to call tech support. I'm such a noob at this, as you can tell from my questions, but.
    I appreciate any and all help offered!! THANK YOU!
    Cristina
    I can be contacted by email at [email protected]

    Hi Christina,
    Visit apple store in Japan area to talk with one of their apple guy.
    You can transfer your previous macbook files to your new macbook using firewire connection:
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh2333.html
    http://docs.info.apple.com/article.html?artnum=25773
    For transfering your apple care, Iread somewhere it can be done but with additional fee that almost half of apple care cost, if that so, I recommend leave the apple care for her and get you another one. But if you never open or register that apple care to your macbook, then I guess you can use it for your new macbook (call apple care to make sure about that).
    AFter you transfer your files, it is safer to do format and re-install your old macbook os x so it wipe all of your old information and she get the "fresh" one.
    Leopard might be released on 2007, when? Nobody knows for now but estimated within first quarter of 2007.
    If you and she can wait, then wait for it .
    Otherwise you might spend another $129.99 or so for new Leopard.
    Good Luck.
    ps: it is not recommended to put your e-mail on this or any open forum for you might get tons of unrelated e-mail sent to you.

  • I am going to sell my second generation ipod touch, so i resetted it to factory defaults. It said it would take up to an hour, and i patiently waited. But when the black and white loading bar completed, the ipod went to the black screen with an apple logo

    I am going to sell my second generation ipod touch, so i resetted it to factory defaults. It said it would take up to an hour, and i patiently waited. But when the black and white loading bar completed, the ipod went to the black screen with an apple logo on it. Sounds about right, right? But now, there is a processing circle on top of the logo, but the circle spins once, and stops at about halfway to the bottom. It just stays there, and about every half to one hour it becomes a white screen and starts all over again. (not the loading bar part, just the circle). I've tried holding the power and the home button, and it works, but it just goes back to the circle screen with the apple logo. HELP PLEASE?

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Just got a new MBP and I want to sell my old one.

    The email I got from Apple says they will give me $500 for my 3 year old MBP.  I have a lock set but I do not remember how I did this or how to remove it, but when I want to make a change with the time, for example, I have to insert a mastercode.  it is the same code when that brown/beige lock comes up. It only shows up at different times when I am trying to make a change. The company that will take my computer neds all locks removed.  It does not show up when I want to make changes to System pref.  Does anybody know how I turn that off because the company who will buy the old MBP needs this master pasword/lock turned off.
    any suggestions on how to turn off the lock or set it so it does not show up anymore?  I think I found it under System Pref.---Security---Uncheck "Require a password..."  The locks are still there but so far the ones I have gone back to look at are unlocked.

    This is just the standard user password for your account. If you've forgot it, there are various ways to reset it, depending on which version of OS X you're running.
    If you want to sell your old machine, take a look at Thomas Reed's How to prepare your Mac for sale.
    If you need help on resetting your password, post back with your OS X version.
    Clinton

  • TS1538 Hi technical support Team of  Apple  I am sorry but this time  I am very disappointed with IPhone and  IOS 7.1, actually I have IPhone 5,5S both and I was trying to Restore  my Phone for sell Because I want to by IPhone 64 Gold but unfortunately   

    Hi technical support Team of Apple  I am sorry but this time  I am very disappointed with IPhone and  IOS 7.1, actually I have IPhone 5,5S both and I was trying to Restore  my Phone for sell Because I want to by IPhone 64 Gold but unfortunately    both phone stuck on recovery mode with error 1, and 3
    I got Error 3 on IPhone 5 and error 1 In IPhone 5s , I did lot of try as I can my level best , like Update iTunes, stop all security, change cable even change computer format my laptop and install everything fresh in window   I did try to with Mac of my friend,
    Change Internet connections try with DFU mode, Make DFU file Also with redsnow   everything I did
    Whatever on internet information like go to  cmd and run as administrator  to make change hosts file
    Like ipconfig/flushdns everything  everything  what I can….  but I dint get good results and  good information about this error
    Somebody told me this is hardware problem, I make change my battery and charging connector too.
    I don’t know what to do next.. because  I don’t leave any experiment on my stuck phone..
    Note : one  is big issue that apple support team  is also and giving good answer
    I am in Saudi Arabia so I don’t  have any nearest store of Apple.. even Saudi Is Big Consumer of IPhone
    Its Really Bad its big Loss of Money I can’t afford more , Now will not Buy Any IPhone  in future if I don’t get solution..
    Thank You..

    What the **** is this taht you will not provide any service due to just a bit jailbreak..
    we are not much tecnical person.. and mostly consumer dont have good idea about Jailbreak. make your device  much better secure from hacker and jailbreak please we cant afford much money please give me any solution i ll not do jailbreak again please  

Maybe you are looking for

  • How to adjust the path of a tween using actionscript

    I'm a novice at Actionscript3 and would greatly appreciate an answer to what seems like a simple question: Here's my project: http://home.comcast.net/~samiri/director/mortals/amadoFlashPortrait/index.htm Click on the gray scale frame images. A larger

  • Network Expansion - Novice Needs Help

    I would appreciate some guidance with a change I need to make to my wireless network. What I currently have is working fine, but I'm pretty much a novice at this. My current network consists of two computers. Computer A is a desktop connected to a WR

  • Error in importing org.apache.poi

    hi.....i am getting only one error as "package org.apache.poi.hssf.usermodel does not exist" when i write the code as import java.io.*; import jxl.*; import java.util.*; import jxl.Workbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import j

  • Cs 6 Having problems exporting buttons with rollover to dreamweaver

    Im trying to export out of fireworks cs6 buttons with rollover and import into dreamweaver cs6. It looks good in dreamweaver until i view it in internet explorer here is what it comes out like.

  • V$latch_children

    Hello in V$latch_children we have latch# as well as child#. Latch# is the parent latch of the child. Does it mean that latch# is the holder of the latch? And child# is waiting for latch? Rgds