How to get the header to downloading fine

Hi,
i am downloading xl file for which i need to get the header.i doesnt no the fieldnames.how to get the header for entire file.

Hi,
For this please create an internal table for field names and pass it to FM' WS_DOWNLOAD'.
Sample code:
* internal table for headers
DATA : BEGIN OF it_fieldnames OCCURS 0,
       name(100),
       END OF it_fieldnames.
g_fname = 'C:\Documents and Settings\kut3kor\Desktop\kar4.xls'.
*populate the internal table
it_fieldnames-name = 'Material Number'.
APPEND it_fieldnames.
it_fieldnames-name = 'Material type'.
APPEND it_fieldnames.
it_fieldnames-name = 'Material group'.
APPEND it_fieldnames.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
*   BIN_FILESIZE                  = ' '
*   CODEPAGE                      = ' '
   FILENAME                      = g_fname
   FILETYPE                      = 'DAT'
*   MODE                          = ' '
*   WK1_N_FORMAT                  = ' '
*   WK1_N_SIZE                    = ' '
*   WK1_T_FORMAT                  = ' '
*   WK1_T_SIZE                    = ' '
*   COL_SELECT                    = ' '
*   COL_SELECTMASK                = ' '
*   NO_AUTH_CHECK                 = ' '
* IMPORTING
*   FILELENGTH                    =
  TABLES
    data_tab                      = gt_mara[]
   FIELDNAMES                    = it_fieldnames[]
* EXCEPTIONS
*   FILE_OPEN_ERROR               = 1
*   FILE_WRITE_ERROR              = 2
*   INVALID_FILESIZE              = 3
*   INVALID_TYPE                  = 4
*   NO_BATCH                      = 5
*   UNKNOWN_ERROR                 = 6
*   INVALID_TABLE_WIDTH           = 7
*   GUI_REFUSE_FILETRANSFER       = 8
*   CUSTOMER_ERROR                = 9
*   OTHERS                        = 10
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Karuna.

Similar Messages

  • My Itunes account is on my dad's user. I downloaded Itunes on my user, and I am wondering how to get the apps I downloaded on my dad's user, on mine? Sorry if the question is confusing.

    Our computer has users that you click to log on. My itunes thingy is on my Dad's and I downloaded Itunes on my user, and i am wondering how to get the apps I downloaded on my  dad's itunes, to mine. Thanks for any help.

    iPads sync to 1 computer only.
    All media and apps are tied to the Apple ID that purchased them.
    Without your relatives ID and password, you cannot update any of the Apps.
    I am pretty certain he is also violating Apples terms of service by giving you the apps.

  • How to get the functionality of downloading files from internet on my jsp

    i have a jsp page that lists me the names of the zip files in a paricular directory on a remote computer over the network.wat i want to do is download those files.so when i click on them it gives me "page cannot be displayed" error.but when i go to that remote machine and run the same jsp to list me the files and download the same it allows me to download the files.but i want the same functionality over the network.so i think that that link is looking for that file locally instead of looking for them over the network.so is it so that i need to give the ip of the remote machine from where i want to download the file and if yes then how and if no then is there any way that i can do it some other way.
    in short this functionality is like downloading some file from the net like downloading software or music....i want to incorporate the same on my jsp.please guide me.

    You can try this, Give the URL from where you want to Download.......
    import java.io.*;
    import java.net.*;
    public class DnldURL {
    public static void main (String[] args) {
    URL u;
    InputStream is = null;
    DataInputStream dis;
    String s;
    try {
    u = new URL("http://username:[email protected]:8080/files/for/me/file.txt");
    is = u.openStream(); // throws an IOException
    dis = new DataInputStream(new BufferedInputStream(is));
    while ((s = dis.readLine()) != null) {
    System.out.println(s);
    } catch (MalformedURLException mue) {
    System.out.println("Ouch - a MalformedURLException happened.");
    mue.printStackTrace();
    System.exit(1);
    } catch (IOException ioe) {
    System.out.println("Oops- an IOException happened.");
    ioe.printStackTrace();
    System.exit(1);
    } finally {
    try {
    is.close();
    } catch (IOException ioe) {
    Here in the URL we will give username and password, if the remote system is password protected.

  • How to get the header text of a PO

    Hi,
    Do you guys know which table stores the header text of a PO? i'm only getting RM06E which is a structure.
    Thanks!

    Hi,
    You need to use the Function Module 'READ_TEXT' for retrieving any text in the header texts.
    For this FM, the mandatory export parameters will be
    a) client b) ID c) language d) name e) object
    here the parameter name will be your P.O.No and the object will be your P.O. table - 'EKKO'.
    So on executing this FM, all the required texts are retrieved in the tables parameters. From this tables paramater, you can read the table and pass on the values to your required internal table for display purpose.
    lakshminarayanan
    Please mark all helpful answers for points.

  • How can get the SAP MDM downloaded from  SAP Marketplace?

    Hi Experts,
    I have tried to download the MDM from the below link -
    http://service.sap.com/swdc
    > SAP Software Distribution Center
    > Download
    > Installations and Upgrades
    > Entry by Application Group
    > SAP NetWeaver > SAP MDM > SAP NetWeaver MDM 7.1
    But it is not showing there, can anyone please help me to find out so that I can start working on it.
    another thing , I am basically  from SAP PI technology, if you can tell me if it is possible for me to work with MDM and also please provide me some basic starter documents.
    Thanks to all of you
    Sugata Bagchi

    Hi Sugata,
    Please find the below links for your informationa and downloading of SAP-MDM 7.1
    https://websmp109.sap-ag.de/~sapidb/011000358700001827872008E
    Then if you want to know about the MDM7.1,find below link for quick review on MDM
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/index.htm
    Hope it is useful!
    Thanks
    Yugandhar

  • HT5714 I pre-ordered Hedleys new album, and I got the email that it was ready to download today. But I did it through my IPhone and don't have a laptop. I can't figure out how to get the album to download. Help?

    Help!

    Hello TaylorMoorey10
    Check to see if it is in your purchased section of the iTunes Store or if it is already in the Music app with Show All Music turned on in Settings > Music.
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Regards,
    -Norm G.

  • I have an iPOD mini library and now have a IPhone 4S.  I updated my library and synced my phone to the library but can not figure out how to get the music library to download to my  iphone

    I have an iPod mini library which I have update. I now have an iPhone 4S which I have synced to the library using a MS XP computer. I can not figure out how to get the library to download to my iPhone?

    Thanks,  This caused me to go back and try again since the solution seemed so simple.  What I did was when it started downloading, it started with the iphones apps to my computer.  I did not want the apps downloaded on my computer so I stopped it.  If I would have waited, the music was uploaded right after the apps were downloaded.

  • How can I get the discontinued iweb download?

    I am a webmaster trying to find out how to get the discontinued iweb download.
    Any information would be appreciated.
    Thanks!
    Dee Briggs

    Welcome to Apple Support Communities
    iWeb isn't available as a download. If you want that application, you have to buy iLife in a DVD at eBay or Amazon > http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES
    iLife '11 comes with iWeb, so you can perform a custom install. After installing the app, open  > Software Update, and install the latest version

  • I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    I downloaded and bought a movie from iTunes on my iPad and now want the same movie on my MacBook Pro but its not offering me to download it, it giving me the options of buying it which I already did. How I get the movie onto my MacBook?

    You can connect the iPad to your Mac's iTunes and do File > Devices > Transfer Purchases, that should copy it over to the Movies part of your library.
    Depending upon what country that you are in, and whether the film studio allows it, you might also be able to re-download it on your Mac via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page.

  • How to get the number of rows written to the header of the spool file.

    Hi
    I need to create a header line for the spool file .
    the header line should include fixed length values .
    The header should include the number of records found in the table with a maximum begin date (begin_date is the column of the table)
    To get the header in the spool file , i wrote a select query has :-
    --SPOOL 'C:\Documents and Settings\abc\Desktop\output.TXT'
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
    rpad(' ',76,' ')
    from dad.school
    group by sysdate;
    SPOOL OFF
    which gets me all the rows in the table , but i only want the rows with the latest school_begin_date .
    how can i achieve that ...
    I know that a subquery should be written in the from clause to get the number of rows found with a maximum school_begin_date.
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
    rpad(' ',76,' ')
    from dad.school where
    select rownum from dad.school
    where school_begin_date = max(school_begin_date) ;
    the error i get is
    ORA-00934: group function is not allowed here
    I NEED HELP ..IN GETTING THE ROWNUM JUST FOR THE LATEST BEGIN_DATE ?
    PLS HELP ME IN WRITING THE QUERY .
    THANKS IN ADVANCE .

    Try this:
    select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000')||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) || rpad(' ',76,' ')
      from dad.school
    where school_begin_date = (select max(school_begin_date)
                                  from dad.school);

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • Question: how to get the adobe plug in to play a downloaded flv file ?

    I want to know how to get the flv adobe plug in which i downloaded as a result abc or nbc or cbs.com i forget exactly which said i had to and also it seems to be used for playing most all videos from web such as those from utube,hulu, etc. So my question is how do i get the plug in to play any downloaded *.flv video ?  The particulars on the one i have is:
    Output folder: C:\WINDOWS\system32\Macromed\Flash
    Execute: "C:\WINDOWS\system32\Macromed\Flash\uninstall_plugin.exe"
    Extract: NPSWF32.dll
    Extract: NPSWF32_FlashUtil.exe
    Extract: flashplayer.xpt
    also perhaps FLVPlayer.swf of about 9Kb may have something to do with it?
    And the latest update i have was about jan 13 when it seemed to automatically take over my system and update itself.x
    I know it has the ability to do what i want- which is full screen cropped ,change aspect ratios etc. and seems
    It has to be able to or else it could not play the files and give those options which it does on some videos like from utube etc. in the first place. Unfortuneately it has something also to do with the useless *.swf files which are apparently of no use to anything and could certainly be eliminated .
      I have downloaded several freebie flv players such as bs player etc. etc. but they all have so many faults and are not suitable. Bs player does what i want but it hangs , have to go to system mgr. to get out of it sometimes , often difficult to use etc.etc. The main features is i need is to be able to make and play playlists to automatically in full screen one after the other in a specified order with NO user intervention and the ability to magnify or 'pan in' i guess they call it and change aspect ratios so that i can have full screen as if just cropping part of horizontal such as if want to view a 16/9 aspect ratio on a computer as i have with the prior standard 4/3 aspect and change a downloaded vertically stretched to a cropped instead etc.
        Also it doesn't make sense to download others and take up disk space when already have the adobe - also adobe seems to be the only one that plays hulu flv's correctly - on other flv players the video and audio are way out of sync and not just by few seconds but often by a minute or more. I know there is another 'pain' way to do it which is create a *.avi or other extension with loss of clarity etc. which have done but would like to be able to just do it in real time while playing the flv file itself as for example
    as bs player does.
       Anyway if there is no way to get adobe to do this does anyone know of any other free flv player downloads which will do what
    i want - basically playlists, magnify , pan,crop and still full screen, change aspect ratios -  other than bs player ?

    The plugin is what it is: a browser plugin - it cannot act as a standalone player.
    To play local flv files you either need to
    download/install the standalone player (Projector) from http://www.adobe.com/support/flashplayer/downloads.html
    download/install Adobe Media Player http://www.adobe.com/products/mediaplayer/

  • How to get the download option in Firefox 3.6.13. Earlier it was showing in the Navigation Bar

    How to get the download option in Firefox 3.6.13. Earlier it was showing in the Navigation Bar just beside where we see the URL.

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    See "Firefox connection settings":
    *[[Firefox cannot load websites but other programs can]]

  • When I purchased a music app from itune store. This got downloaded in Itune maedia/Mobile applications.How to get the songs in that app to my  itune library or on to IPAD?

    I  or tranfer to my librarypurchased from Itune store a Music app. It is downloaded into intune media/mobile applications. How to get the full album msic/songs into my itunes library or on tomy IPAD? It doesnot open out. Can anybody suggest a way?

    If you have a music downloader app (depends on which you have), plug your iDevice into iTunes, go to your device (on itunes), go to your apps, scroll down, and select the app thats holding your music, click on "Save As" (should be located bottom right corner), save the music to your specific folder. Once done, follow through this: Adding music and other content to iTunes and you should have your music on your iDevice music app.
    Hope this helps.

  • How to get the dynamic Crosstab header name ?

    Hi ,
    The crosstab resaults shows as below ,How to get the dynamic Crosstab header name ?
    | Countryname |
    | Province1 | Province2 |
    | here to get CountryName | here to get CountryName |
    how to get the Countryname in data ceil?
    thanks

    Could you please elaborate on your requirement?
    You want header to be dynamic?

Maybe you are looking for