Without selection screen how can we featch the file.

Hi all,
     without selection screen(parameter,select-options iam not using these both.) how can we featch the flat file what ever it may be (file format is xls.textor any thing) how ot do...plz it's urgent for me.
Regards,
Krishna,

Hi varun,
  this is my sample code.here we are geting selection screen.without selection screen hoe to get file from out internal table.
plz gothrough this code and replay to me varun.
tables:pa0002.
type-pools:truxs.
*data:W_TRUXS_T_TEXT_DATA TYPE TRUXS_T_TEXT_DATA ,
     it_p0001 type standard table of pa0001.
TYPES: BEGIN OF it_p0002,
        pernr like pa0002-pernr,
        nachn like pa0002-nachn,
        vorna like pa0002-vorna,
       end of it_p0002.
DATA: t_p0002 type standard table of it_p0002,
      wa_p0002 type It_p0002.
DATA: it_raw TYPE truxs_t_text_data.
SELECTION-SCREEN BEGIN OF BLOCK S_BLK WITH FRAME TITLE TEXT-000.
parameters: P_EXCEL   TYPE RLGRAP-FILENAME.
SELECTION-SCREEN end OF BLOCK S_BLK.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_EXCEL.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
   PROGRAM_NAME        = SYST-CPROG
   DYNPRO_NUMBER       = SYST-DYNNR
   FIELD_NAME          = 'P_EXCEL'
IMPORTING
   FILE_NAME           = P_EXCEL .
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
  EXPORTING
  I_FIELD_SEPERATOR          =
   I_LINE_HEADER              = 'X'
    I_TAB_RAW_DATA             = it_raw
    I_FILENAME                 = p_excel
  TABLES
    I_TAB_CONVERTED_DATA       = t_p0002[]
EXCEPTIONS
   CONVERSION_FAILED          = 1
   OTHERS                     = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
end-of-selection.
    loop at t_p0002 into wa_p0002.
       write:/ wa_p0002-pernr,
               wa_p0002-nachn,
               wa_p0002-vorna.
    endloop.

Similar Messages

  • Based from my selection-screen, how can I make the parameter dynamic?

    Hi experts,
    Based from my code below and logic, I have to modify the loop at screen without removing the original IF condition in such a way that the parameter p_code will only be available for input if the radiobutton pr_edit is clicked by the user.
    Again, thank you guys and have a great day!
    SELECTION-SCREEN BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.
    PARAMETERS: pr_upld RADIOBUTTON GROUP grp MODIF ID id3.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(30) text-a11 FOR FIELD p_flnme MODIF ID id3.
    PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:\' MODIF ID id3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(32) text-002 FOR FIELD p_dcode MODIF ID id1.
    PARAMETERS: p_dcode LIKE vbak-kunnr MODIF ID id1,
                p_name1 LIKE kna1-name1 MODIF ID id1.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: pr_list RADIOBUTTON GROUP grp MODIF ID id4,
                pr_add  RADIOBUTTON GROUP grp MODIF ID id2,
                pr_edit RADIOBUTTON GROUP grp MODIF ID id5.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(30) text-a12 FOR FIELD p_code MODIF ID id2.
    *PARAMETERS: p_kunnr LIKE zts0001-kunnr.
    PARAMETERS: p_code LIKE zts0001-cdseq MODIF ID id6.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK box1.
    IF v_compflag EQ space.
        LOOP AT SCREEN.
          IF screen-group1      = 'ID1'.
            screen-input        = '0'.
            screen-output       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID2'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID3'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID4'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID5'.
            screen-active       = '1'.
            MODIFY SCREEN.
         ELSEIF screen-group1  = 'ID6'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF v_compflag NE space.
        LOOP AT SCREEN.
          IF screen-group1      = 'ID1'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID2'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID3'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID4'.
            screen-active       = '1'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID5'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ELSEIF screen-group1  = 'ID6'.
            screen-active       = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

    Write the below code in  selection Screen Output Event
    AT SELECTION-SCREEN OUTPUT.
      IF pr_edit EQ 'X'.
        LOOP AT SCREEN.
          IF ( screen-group1 = 'ID6' ).
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    ENDIF.
    Enjoy Coding.
    Thomas.

  • When I play an iMovie at full screen, how can I remove the bottom toolbar

    When I play an iMovie at full screen, how can I remove the bottom toolbar?  It shows up on the projector screen and I don't want my audience to see those tools at the bottom quarter of the screen.

    Do a malware check with a few malware scan programs.
    You need to use all programs because each detects different malware.
    http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    http://www.superantispyware.com/ - SuperAntispyware
    http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • When I import my Sony video, which is in m2ts format, the file size is a few times larger.  This affects the volume of clips for creating the blu-ray or DVD discs.  How can I squeeze the file size without sacrificing the quality of output?

    When I import my Sony video, which is in m2ts format, the file size is a few times larger.  This affects the volume of clips for creating the blu-ray or DVD discs.  How can I squeeze the file size without sacrificing the quality of output?  Is there any other ways of achieving this?

    wongrayd wrote:
    Thanks.  I do not have the experience on burning discs from iMovie for the movie after editing (ie for video discs players).  It seems that i cannot find the relevant command in the tool bar for this purpsoe.  Would you please show me the way?
    The command is gone because iDVD has been discontinued by Apple. After Apple discontinued iDVD they removed the iDVD burning link from iMovie. I still use iDVD sometimes, only because I have an old copy.
    wongrayd wrote:
    You have mentioned about Handbrake as a converter.  What is the RF no. (under Constant Quality) meant?  It seems that the smaller the no. is, the better quality will be.  What is the optimal no.? or should we use the Average Bitrate? Again, what is the best rate?  Furthermore, which format is more suitable or the best: H264 or mpeg 2/4?
    I don't know what RF means. When I have used HandBrake, I've used presets that apply to what I want to do, so I don't know the meaning of each individual setting. However, it appears that many of them are listed in the HandBrake User's Guide that is linked from the Help menu in the program:
    https://trac.handbrake.fr/wiki/HandBrakeGuide
    wongrayd wrote:
    For iMac, except iMovie, what other software is the best for the amateur?  I have read Photoshop.  Can this support m2ts files and user friendly?
    Photoshop is not amateur-level software, and although it can edit a video, it cannot burn a DVD. Unfortunately, because I still use iMovie, I haven't tried anything else. You might want to read the reviews of various DVD-burning applications in the Mac App Store.
    And maybe another forum member will jump in and help us here!

  • HT4796 How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users?

    How can I take the files that were migrated from my PC to my Mac and add all those files to my current user instead of having 2 users? Having to log out just to sign in on a different user to access the files is absurd.
    Do I make all the files sharable to all the NOW users on the mac then just delete the files? Or can i erase my account that I made when starting up my new mac and then just use the one with the transferred files?
    I just dont want to have to og in and out of 2 different accounts .. Help please.         
    -Nina

    Sorry. /Users is a folder path. It would be similar to C:\Users (if that exists on Windows).
    So, in the Finder, select Computer from the Go menu.
    You'll see Macintosh HD, double-click that to open it.
    In there you'll see several folders. One is Users. That is where all the user Home folders exist. Select the other account's home folder and go to step 3.
    If you have any more confusion, please stop and ask. We'll get there.
    If you feel more comfortable, you can just log into that other account and move the files into /Users/Shared.
    Then, log into the account you wish to use and copy the files from the Shared folder and paste them into your Home folder, wherever they belong, Documents, Music, Pictures, etc.  That just takes a little more work. Transferring them into Shared, and then copying into your home sets the permissions on the files so that you won't have a problem accessing them later. The steps I provided just prevent you from having to do the double move, since you are not going to use the old account once you are done.
    Quick unix shorthand. If someone gives you a file path that begins with a /, that means the root of the hard drive, ie Macintosh HD (if you haven't renamed it). The path separator in unix is /, not \.
    A path that starts with ~/ means your Home folder, the one inside /Users named with your account name.

  • How can I edit the file name of the home page?

    How can I edit the file name of the home page?
    Gr Ammani

    I have a similar issue with regards to the filename...
    When I navigate to my website, it doesnt work unless I actually type the filename at the end of it. Example: type in "www.whitelion.com" (this is my real domain name) and it doesnt work. When I type in "www.whitelion.com/index.html" then it works.
    This is obviously inconvenient because my clients will never know to add the filename to the end of the site.
    Is there any setting or way to get the page to appear by just typing the original domain name without adding the extension?
    Thanks,
    Emelia

  • After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    Hello Kirk,
    Thank's for your efforts, and I just wish that this was the solution.  Unfortunately, it isn't because, after double-clicking on the pdf in the website, it simply "opens" in another Safari window as a black screen - the pdf is there, somewhere, but not visible (either as an icon, or as a document). 
    When I right-click in the black Safari window, where the file is supposed to be, the only option available to display the file is to "Open file in Internet Explorer" (which is not what I want to do).  Other options include saving or printing the pdf, which I don't want until I've confirmed that it's the form that I want.  The same options are offered if I right-click on the file icon in the website.
    Any other suggestions, please?

  • How can I get the File, Edit, View, Windows ect to show in Organiser

    While on various tutorials they all show a
    menu of file, edid, view ect in the top left hand corner of the screen, mine shows only a small square box that when clicked give you the option of restore, close minimise ect. How can I get the file edit menu to show. Should have said in Photoshop Elements 9.

    Thanks Barbara that's done the trick

  • All the links to download DREAMWEAVER CS3 Creative Suite are not working. How can I download the file ? I have a serial number of a purchased software.

    All the links to download DREAMWEAVER CS3 Creative Suite are not working. How can I download the file ? I have a serial number of a purchased software.

    They work just fine. whatever issues you have are specific, but without proper system info, browser info and other details nobody can even begin to guess.
    Mylenium

  • How can I compress the file?

    I've created a video that starts off with 20 layers and ends with 100, so the video starts moving at a decent speed in the beginning then slows down tremendously from the middle to the end. How can I make the video run at a steady speed? Also how can I make the file size smaller without ruining the quality and changing the image size?

    Alright, there are several things to consider here.
    1. Motion Tweens are expensive, when it comes to speed.  Especially when you layer them on top of each other.  So, if you have 100 layers of motion tweens, the player will tend towards slowing down. 
    If you are using Classic Tweens in CS4, or using a prior IDE, then check for broken, or unnecesasry tweens (tweens where there is no motion happening).  Removing these will inevitably speed up the playback.  Also, if there are layers that are continued but invisible, drop a blank keyframe at the end of their visible time.  Less objects = faster playback.
    If this isn't enough, and it many times isn't, consider exporting the whole thing out as a video or image sequence, and importing that into a new project for playback.
    As for file size.  You can change the JPG compression in the publish settings for the project.  I've found that, unless using a lot of raster graphics, you can make this quite low without too much quality loss.  Otherwise, my other suggestion can help with this too (exporting it out and reimporting for playback)

  • How can i find the file size before downloading

    I am trying to decide if I want to download a tv show [Doctor Who] in standard definition or high definition.  How can I see the file size before I purchase the show from iTunes?

    1. That's only getting the file size of the Preview.
    2. Click on a photo to select it. Then click on the info button. You can get the dimensions and the file size in the top of the pane
    Note that the final size of any image will depend on the export settings you choose.

  • I downloaded an Adobe file from my email but cannot find it on my hard drive or in recycle bin - it's in downloads but am unable to open from downloads - how can I recover the file?

    I downloaded an Adobe file from my email (service provider is MWeb) but now cannot find it on my hard drive and it's not in the recycle bin. It does, however, appear in Firefox downloads but I'm unable to open it from there. How can I recover the file?

    Thanks Rob.
    I actually had no clue what the core problem was caused by. So it's Windows itself...that helps some.
    I'll resubmit there. It might actually have saved time for it to simply have been moved to there instead of off-topic, though I suppose you have to follow protocol.

  • My laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    my laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    See this user tip for recovering the media from the iPhone: https://discussions.apple.com/docs/DOC-3991

  • How can I delete the files .DS_store in Mac OS Yosemite?

    How can I delete the files .DS_store in Mac OS Yosemite?

    The .DS_Store file is normal. It holds certain settings related to the folder it is found in. Removing these files is futile, as they will come back, as you have observed.
    If you are seeing them on your Mac, that means you have changed settings so that your Mac is showing invisible files in the Finder. To reverse that, run the following command in the Terminal:
    defaults write com.apple.finder AppleShowAllFiles NO
    This will hide them, and any other invisible files, from view.
    If you are seeing them on a Windows machine, just ignore them. They're not doing any harm.
    If you found a Terminal command that is supposed to stop them from being created, I would be extremely skeptical as to the wisdom of running it.

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

Maybe you are looking for

  • Multiple users and shopping carts, one searchable index?

    Hi all, I've got an idea but I would like to know if it possible with Business Catalyst. I'll try and explain as simply as possible: I have multiple users (let's say 10). They all need separate shopping carts as they are all selling different product

  • Media Encoder 3.1 is crashing non-stop

    Here is the logfile, any ideas on what is causing program to crash? Tested my sound and video and everything is fine. Running Windows 7 Professional 64-bit / Nvidia GTX 480 / Soundblaster xfi Titanium. Thanks so much for any help someone can provide.

  • Customer Open Item clearing Line Layout (O7F4)

    Hi Dear ABAP experts, I am the FICO consultant and I got the below issue. I am trying my level best to solve this issue. But i need some help. So I am posting this issue in forum. Pl check this issue and give me ur valuable suggestion. the user uses

  • Nokia 700 unexplained alert tone?

    My new Nokia 700 is randomly playing an alert tone that is not acompanied by any message. No Apps are open and the WLAN is turned off. The tone is the Email1 tone (NB email is not open). I have not changed the default alert tones. What could this be?

  • HT1526 trash from my  segate external hard disk.But i am unable to empty my trash box ,getting an error(Error code -36)how to trash?

    I had moved some folder to trash from my  segate external hard disk.But i am unable to empty my trash box ,getting an error:The Finder can't complete the operation because some data in "" can't be read or written. (Error code -36): pls advise,how to