Want excute the program accourding to the radio buttons

hello,
i am writing an extraction program. here i want to get the out put file in diffrent formats based on the selection on myselection screen.
if
I seclect the radio button "EXCEL" the output should be excel file.
else
if
I select the  radio button  "DAT"  the output should be DAT file.
Thanks,
vineetha.

Hi Vineetha,
Check this program..
PARAMETERS:p_vbeln LIKE vbrp-vbeln.
Parameters:EXCEL  radiobutton group GP1.
Parameters:TEXT  radiobutton group GP1.
DATA:BEGIN OF it_vbrp OCCURS 0,
     vbeln LIKE vbrp-vbeln,
     posnr LIKE vbrp-posnr,
     meins LIKE vbrp-meins,
     ntgew LIKE vbrp-ntgew,
     END OF it_vbrp.
START-OF-SELECTION.
     SELECT vbeln
       posnr
       meins
       ntgew FROM vbrp INTO TABLE it_vbrp where vbeln eq p_vbeln.
if EXCEL = 'X'.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    FILENAME  ='C:\Documents and Settings\Vishnu.Chintala\reddy.xls'
  TABLES
    DATA_TAB                      = IT_VBRP
EXCEPTIONS
   FILE_WRITE_ERROR              = 1
   NO_BATCH                      = 2
   GUI_REFUSE_FILETRANSFER       = 3
   INVALID_TYPE                  = 4
   NO_AUTHORITY                  = 5
   UNKNOWN_ERROR                 = 6
   HEADER_NOT_ALLOWED            = 7
   SEPARATOR_NOT_ALLOWED         = 8
   FILESIZE_NOT_ALLOWED          = 9
   HEADER_TOO_LONG               = 10
   DP_ERROR_CREATE               = 11
   DP_ERROR_SEND                 = 12
   DP_ERROR_WRITE                = 13
   UNKNOWN_DP_ERROR              = 14
   ACCESS_DENIED                 = 15
   DP_OUT_OF_MEMORY              = 16
   DISK_FULL                     = 17
   DP_TIMEOUT                    = 18
   FILE_NOT_FOUND                = 19
   DATAPROVIDER_EXCEPTION        = 20
   CONTROL_FLUSH_ERROR           = 21
   OTHERS                        = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Endif.
If TEXT = 'X'.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    FILENAME  ='C:\Documents and Settings\Vishnu.Chintala\reddy2.TXT'
  TABLES
    DATA_TAB                      = IT_VBRP
EXCEPTIONS
   FILE_WRITE_ERROR              = 1
   NO_BATCH                      = 2
   GUI_REFUSE_FILETRANSFER       = 3
   INVALID_TYPE                  = 4
   NO_AUTHORITY                  = 5
   UNKNOWN_ERROR                 = 6
   HEADER_NOT_ALLOWED            = 7
   SEPARATOR_NOT_ALLOWED         = 8
   FILESIZE_NOT_ALLOWED          = 9
   HEADER_TOO_LONG               = 10
   DP_ERROR_CREATE               = 11
   DP_ERROR_SEND                 = 12
   DP_ERROR_WRITE                = 13
   UNKNOWN_DP_ERROR              = 14
   ACCESS_DENIED                 = 15
   DP_OUT_OF_MEMORY              = 16
   DISK_FULL                     = 17
   DP_TIMEOUT                    = 18
   FILE_NOT_FOUND                = 19
   DATAPROVIDER_EXCEPTION        = 20
   CONTROL_FLUSH_ERROR           = 21
   OTHERS                        = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.

Similar Messages

  • I reloading LR onto a new lap top.    I have the orginal LR 1 disk with correct Serial #.   I have downloaded it,  every time I try to open the program I get the "Do you want to buy or I have a Serial Number Page".    I fill out the page include the seria

    I reloading LR onto a new lap top.    I have the orginal LR 1 disk with correct Serial #.   I have downloaded it,  every time I try to open the program I get the "Do you want to buy or I have a Serial Number Page".    I fill out the page include the serial # accept terms and enter.   All fine and good seems normal.  When I try to open LR I get the damn "Do you want to buy" page.   I do I get past this BS?

    What version of LR are you trying to activate? A serial number for LR 1 will not activate LR versions 2 - 5, but it will enable you to purchase LR 5 at the upgrade price and activate it.

  • The programming language of the future: a philosophical question

    So after reading some of these posts and reflecting on the history of programming languages, I find myself wondering what the programming language of the future will be? As the human-computer interface evolves (touch interfaces, voice recognition, computer vision, etc) how will this influence the process of creating computer programs? Will programming become more graphical (e.g. flow charts, UML diagrams, etc)? Setting ego's aside, does it make sense for programming to be more graphical? Will we reach a point where we can essentially just sketch out a concept and let the compiler/interpreter handle the rest?
    Perhaps this question is best left to Clark and Asimov, but they're dead. This leaves you guys.
    (Moderator, I apologize in advance if this is out of scope for this forum.)
    Last edited by bsilbaugh (2011-11-23 01:15:47)

    geniuz wrote:I think the mistake of the scientist in question was not that he re-derived the Trapezoid Rule, but that he published it as if it was a new invention, while it existed and was already published in some form. That certainly could be prevented by reconciling to literature before publishing. In fact, I'd not even blame the scientist in question too much, rather the commission that approved his paper to be published in the first place.
    Sure, he didn't publish the paper in isolation - but the peers who reviewed it would have been people from the same or a related profession. My point is that this kind of error results from splintering of the disciplines. You seem to think that the splintering should be somehow undone or reversed at the level of the peer reviewer or the publisher - but non-specialists (or specialists in other areas) will not be invited to comment, because it will be assumed that they lack the qualifications to do so.
    geniuz wrote:Still, I think its a long stretch to compare the derivation of a Mathematical rule or method to the invention of a complete DSL.
    I think I didn't make it clear where I was going with that. My point was that splintering of specialisations from each other permitted this duplication of effort to take place. I see DSLs as a way to splinter disciplines from each other. Thus, the rise of DSLs would make it easier for duplicate effort to take place.
    geniuz wrote:The whole point of a DSL is that it allows experts in a specific domain to focus their efforts on creatively solving problems directly related to their field of expertise. When specific DSL's are integrated in university curricula world-wide, I hardly think there will be much duplicate effort going on.
    Sorry, but this seems a little naive to me. I can see why you might think DSLs would permit specialists to more efficiently focus on solving their particular problems, and I don't entirely disagree, but even if it's true, I don't think it's controversial to think this will lead to considerably more duplicate effort.
    geniuz wrote:Also, in the world of OSS, there are multiple tools that can perform the exact same job. Do you for instance consider the existence of both of the mail clients Mutt and Alpine as duplicate effort?
    I haven't used Alpine, but if it's exactly like Mutt, then sure, I would certainly say that's duplicate effort. The more people who use one single piece of software, the more bugs can be filed against that software.
    Also, I think this is a false analogy from the start. Mutt and Alpine are both written in C. If we're talking about the connection between duplicate effort and DSLs, let's consider the fact that "communicating and storing computational models of biological processes" (from the Wikipedia page on SBML) could be better done in Lisp, Lex/Yacc, or with the Lemon C++ library, instead of coming up with some new way of using harmful XML.
    geniuz wrote:I still don't quite see how this can be interpreted as a necessary weakness or argument against more complex systems. Sure, DSLs can be dependent upon lower level languages, but if they are considered to increase the effectiveness and efficiency of certain experts, what exactly stops them from becoming dominant and continually evolving?
    The fact that higher and higher levels of specialisation are concomitant with smaller and smaller user bases who still need to communicate with experts in other groups. I'm not saying DSLs should never be used. I just think they are essentially self-limiting, and just as bacteria will long outlive us more complicated life-forms, so too will the lower-level languages long outlive more cumbersome DSLs.
    geniuz wrote:I wasn't implying computers will ever be able to mimic the human brain, and I'm not even sure whether it is something we necessarily want to strive for. All I was saying is that computers have already become indispensable tools in virtually every scientific and engineering discipline. They are computationally strong machines able to solve numerically involved problems at rates no human can ever hope to accomplish. It is this very aspect that will continue to guarantee the succes of computers, not AI per se. Again, I believe computers will never (at least not while I'm alive) be able to truly independently mimic and outperform the human brain, especially when it comes to aspects like creativity, i.e. the very aspects of human intelligence scientists have not even been able to understand and quantify to this date. Hence, humans will always remain "in the loop" to a large extent.
    This all seems reasonable.
    geniuz wrote:Don't forget that laws of physics are "laws" that have been defined and created by humankind for its own convenience. Even recently this year, practice has shown that a concept as fundamental as the speed of light might not be as accurate as it was so widely acknowledged by the scientific community. This however hasn't stopped mankind from using these fundamental "laws" to invent e.g. radio communication and electronic devices.
    I don't think you're disagreeing with me. I'm aware of the fragile nature of what we call the laws of physics - but like you say, they're good enough that we can do things with them. It looks like our knowledge of the speed of light breaks down on really large length scales, and it looks like our knowledge of gravity breaks down on really small length scales, but the brain is in the middle. In between, our models for how the physical world works are very accurate, and it is in this regime that the brain operates.
    Also, you should note that most scientists regard those neutrino test results as residing within the bounds of experimental error, and therefore not strongly indicative that the neutrinos really did break light speed.
    geniuz wrote:I haven't said low-level languages will be abandoned completely, I think they will remain to serve their purpose as a base upon which higher level languages (like DSLs) are built. In that sense, I believe that the user base of these low level languages will become more limited to computer scientists, i.e. to the people responsible for "formulating suitable abstractions to design and model complex systems" (source).
    Seems reasonable.
    geniuz wrote:Having said that, I still don't see why it so farfetched that for the rest of the world, physically telling a computer what to do in their native tongue as opposed to typing it in some generic-text programming language, will become the de-facto standard. Hence, I will reformulate my statement by stating that programming as most people know it today will eventually become a redundant practice.
    I don't think a friendly human interface should be considered the same as programming. This thread, if we recall the OP, is about programming languages of the future, not user interfaces of the future. I certainly agree that user interfaces will become more intelligent and attractive. I only disagree that this will have any strong impact on how we do programming.
    Last edited by /dev/zero (2011-12-12 19:20:59)

  • I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear and the setup menu says there is an error. Any idea of what is happening?

    I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear from the menu and the setup menu says there is an error. I tried using the wireless connection, and also the cable, but none worked. Any idea of what could be happening?

    What are you setting it up as.. join wireless network .. the very worst setup, it will disappear.. reboot the whole network in order modem. router TC.. clients and it will likely reappear.
    Tell us what network setup you are using..
    If you setup with cable to a computer completely isolated from the network with TC also isolated.. finish the setup of everything you want. .before update.. then plug it into the network. .then restart everything in correct order.. it will work most of the time.

  • How to uninstall the program "Utilities" from the Satellite A210

    How can I unistall the program "Utilities" from the Satellite A210. In the control panel I can uninstall the program "Value Added Package" but not "Utilities".
    With the A210 I can't work with the FN keys and on a German Toshiba help website I have found this information:
    http://aps2.toshiba-tro.de/kb0/TSB0402UR0000R01DE.htm
    So I will try this sequence of installation:
    - Chipset Utility
    - Display Driver
    - Toshiba Value Added Package V1.2.40
    - Flash Cards Support Utility for Satellite L500 (see this thread why I want it to do):
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=46135&tstart=7
    - Toshiba-Utilities V1.0.25.5C
    and probably
    - Hardware Setup V2.00.09
    I hope the FN keys will work after this sequence of installation.
    John

    Hi again John
    So here a little bit theory:
    After clean OS you must install all necessary drivers and Toshiba tools and utilities. Just when everything is installed properly you will have well working operating system. Problem is that you cannot install all this in some alphabetical sequence but following right installation order.
    I don't have Satellite A210 and cannot offer you exact installation order but it must be something like this one:
    -Win7
    -chipset driver
    -storage manager
    -display driver
    -sound driver
    -modem driver
    -LAN/WLAN driver
    -supervisor utility
    -Synaptics touchpad driver
    -Card reader
    -Webcam driver
    -patches
    -configfree
    -VAP
    -Toshiba hardware setup
    -HDMI control
    -WLAN driver
    -Toshiba assist
    Please note
    VAP is package with follow applications:
    - Toshiba Components Common Driver
    - Toshiba Utilities
    - Toshiba PC Diagnostic Tool
    - Toshiba Power Saver
    - Toshiba Button Support
    - Toshiba Zooming Utility
    - Toshiba Flash cards
    As far as I know you cannot remove one single application. What I always do is to remove whole VAP and after notebook restart I start VAP installation again but not as standard installation. I use custom installation. There you can choose which application should be installed and which not.
    To be honest I have very good experience with Win7 installation and if everything is installed properly you should be able to use flash cards with FN button.

  • Calling a transaction code in between the program and use the output

    Hi frnds,
              i want to call a transaction code in between the program   and pass the input .After getting the output, use that output in the program

    Hi Navin,
                     Why don't you sit with ABAPer he can explain better.
    Regards,
    HAri.

  • I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program not installed or can be damaged".

    I am trying to install Adobe premiere elements 8 on my new computer (Windows 7). The program ansvers with "the program is not installed or can be damaged". Then aborts the installation.
    It`s right, the program is not istalld, it is  what i`m trying to do. And there is no problem whit the DVD. Any suggestions?

    "Error 1303: Installer has insufficient privileges" or "Error 1304: Error writing to file" | Install | CS3, CS4, CS5 pro…
    this link FIXED MY PROBLEM! i did the steps to the programdata\adobe folder and it installed FINE!

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • I have been unable to download adobe acrobat pro, which I purchased on a month to month basis almost exactly 1 year ago, since I purchased it. I just received a renewal email and it had a link to download the program and for the first time when I clicked

    I have been unable to download adobe acrobat pro, which I purchased on a month to month basis almost exactly 1 year ago, since I purchased it. I just received a renewal email and it had a link to download the program and for the first time when I clicked on the link it actually sent me to a page that had the icon to download now. I clicked on that, but when I went to open the file and start downloading after about 3 minutes into downloading it says an error had occurred. Can anyone help me?

    I am a little worried. If you are an existing subscriber why would Adobe need you to download... I wonder if the message is a fake.
    I'm not clear, if you've had it for a year, whether you need to download, or you are just following the email?
    This page with the icon to download now. Was it a page on adobe.com ?

  • Help!  iTunes has completely disappeared off my iPhone 4s, yes the program, not just the app, and all my music has gone!  How can I get this back?  Thanks!!

    Help!  iTunes has completely disappeared off my iPhone 4s.  Yes the Program, not just the app!  All my music has just vanished!  How do I get this back!!
    (p.s. I do suspect a deletion has occurred courtesy of my 4 year old nephew, some other stuff has gone too, but beats me how he deleted a whole program!!!)

    Hi clorowan
    I found the following information that may be helpful:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Alternatively, if your media was downloaded from the iTunes Store, you may be able to download it again free of charge:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • So I formatted a brand new hard drive to MAC OS (Journal), I then could save on the hard drive. Not two days later Im back at square one, the program wont recognize the hard drive again.

    So, hard to beleive, but I am having some trouble with Final Cut Pro X.
    This last week I formatted a brand new hard drive to MAC OS (Journal),
    so that I could save on that hard drive.
    Well it went great.
    I saved my project on there and copied a few others over as to free up space on my Laptop.
    Then, not two days later Im back at square one,
    the program wont recognize the hard drive.
    It wont even open the events up off my hard drive,
    as to jog the program into reqcognizing the scratch disk (which worked twice before).
    What happened?
    How do I get the program to re-recongize my newly formatted hard drive?
    Please help!

    The name of the drive, or the name of some folders inside the drive, may fool FCP X into believing it is a camera.
    Also, you should not use the drive for time machine backups.

  • I downloader all the Adobe Presenter, looks like everything downloaded but when I open the program I get the following message: The file archive part of Presenter is missing. You need all parts in the same folder

    I downloadedall the Adobe Presenter, looks like everything downloaded but when I open the program I get the following message: The file archive part of Presenter is missing. You need all parts in the same folder

    HI There,
    It seems that Presenter is not fully downloaded. Please check you have downloaded .exe and .7z files successfully. In case you are still facing the issue then please click on the following link to chat with the support :  Chat
    with an Expert
    Regards,
    Mayank

  • I'm trying to logon on to my itunes, but I keep getting an error "The progro can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix the problem.

    I'm trying to logon on to my itunes, but I keep getting an error "The progro can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix the problem.

    iTunes 11.1.4 for Windows - Unable to install or open - MSVCR80 issue - http://support.apple.com/kb/TS5376
    iTunes for Windows: Missing MSVCR80.dll - https://sites.google.com/site/appleclubfhs/support/advice-and-articles/itunes-wi ndows-missing-msvcr80-dll - install as administrator.

  • Why do all the programs open when the mini is turned on, and how to avoid this?

    why do all the programs open when the mini is turned on, and how to avoid this?

    Open System Preferences > Users & Groups then select the Login Items tab.
    Remove all apps listed there.
    And check /Library/StartupItems
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    /Library/StartupItems
    Click Go then move all items from the StartupItems folder to the Trash.

  • Boy what a screw job when the program freezes in the middle of site wide fo

    Boy what a screw job when the program freezes in the middle of site wide folder name changes.
    Then you never know what did get changed or not until you wade thru every possible one.
    And you cant just redo change the folder name, cuz the folder name did change.
    Further, every attempt locks the program.
    lost on broken links...
    OK I'm talking about changing a folder name: ceaseless freezing
    OK Now when it does work, none of the
    AC_RunActiveContent.js
    updated.  What a mess
    DW CS3
    Mac OSX.4.11

    you can force quit the front-most application in Mac OS X v10.5 or later by pressing Command-Option-Shift-Esc for three seconds.

Maybe you are looking for

  • How Can I stop signature fields disappearing on my IPAD Adobe Reader 11

    Hi, I am using trial version of Adobe Acrobat XI pro. I have converted a Word document to PDF. I have added text fields, Java scripts to automatically add Todays date as default, Form Reset buttons and Signature fields. File is saved as standard save

  • Default constraints replicating when I didn't want them to

    Using SQL Server 2008, I used a TSQL script to set up transactional replication, including sp_addarticle. I did not plan to replicate default values, but they replicated anyway. After seeing them on the subscriber, I generated the script for the publ

  • Best Practice for Running Number Table

    Dear All Thank you for your attention. I would like to generate number for each order AAAA150001 AAAA is prefix 1 is year and 0001 is he sequence number. I proposed the table as below Prefix    | Year     | Number AAAA    | 15        | 1 Using  SQL q

  • Damaged File... Can it be recovered?

    I created a Captivate 3 file and tried to open it simply from a normal folder, it had the Cp 3 icon next to it. Captivate 2 tried to open it, which damaged the file. Now when I try to open it from within Captivate 3, it states that the file is damage

  • Set up replica on OS X 10.8.5

    Good afternoon. Today tried to add a domain controller and against reserves as a result of this error I get this: admin $ sudo / usr / sbin / slapconfig-preflightreplica master.local diradmin master.local Password: 2013-10-11 11:43:58 +0000 NSMutable