ALV to Download file column contents ***

Hi,
I have the Sales unit field( VBAP-VRKME) shown in an ALV as a column. Though the unit displays in the ALV correctly, the download file from Application toolbar to unconverted format shows the contents of the column as *****.  
The Sales unit field passed to Reuse_ALV  FM is converted using the CUNIT Output conversion Routine.
I tried EDIT_MASK parameter of the field catalog which doesnt seem to help.
Any help will be appreciated.
Thanks
Prasanth

Hi,
You don't have to do explicit conversion. Pass respective reference table and field names in fieldcatelog. It will take care both in ALV display and download.
Thanks,
Vinod.

Similar Messages

  • Can't open the downloaded files ,as content is misformatted

    Dear OTN Sir:
    I downloaded two files(msginfo.fmb & .fmx) from the page :
    http://otn.oracle.com/oramag/oracle/03-jul/o43plsql.html
    ,and attempted to run them with 9i forms .However ,it's always failure.
    Finally ,I opened them with notepad to see their contents and found that there were many html tag in them .
    So would you check them and refresh it?
    Best Regard,
    warren

    mac installation files from adobe are .dmg files.  make sure you have the correct files and that your browser did not removed the .dmg part of the file name.
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Downloaded file 'adobe content server message' from university library; adobe account opened; computer restarted (windows 7); adobe message: Error! Check Activation. / Any suggestion?

    Hello, have a look at the topic, is there anybody out there able to give me any suggestion?

    System requirements
    Linux® or Microsoft® Windows Server® (32 bit or 64 bit)
    1GB of available RAM
    50MB of hard-disk space for the services and assets; 2KB of additional disk space per each fulfillment for transaction logging
    Microsoft SQL Server 2005 or later, MySQL 5 or later, and Oracle 10 or later are supported
    Java™ Runtime Environment 1.7
    Servlet engine
    SSL client (for communication with signing server)

  • Question about download file in OAS4

    Question about download file in OAS4:
    I use Oracle Application Server 4.0.7 on my Windows NT 4.0 SP6;
    I use PL/Sql Cartridge developer a document system; It's use the
    upload/download in PL/Sql Cartridge;
    I read the document , the Upload/download in Pl/Sql Base on the
    Oracle Application Server's Content Service. the Problem is when I
    download a document, If I upload a Html or MsWord file, It will store in a LongRaw column, when me download ; It's tell me can't
    find a application to open this file; I will select a application
    from list to open the download file;
    As normal, It will open MsWord Automatic when download a "doc" file ; also It will open a new window of Browser to view a Html file;
    I check the download process on client Browser; when download
    file, The content-type always return "application/octet-stream";
    Also the download File will lost the postfix of the file,
    So Browser don't open the File Automatic;
    I think If I set the correct Content-Type , Browser can know how open the file; So I use owa_content.set_content_type procedure
    set the Doc file to "application/msword" , but the WEb Server always
    return "application/octet-stream";
    I didn't know how to do this problem, Plese help me.
    null

    I have a Tecra M2 and rely on your email update to ensure I have the latest drivers on my machine.
    When I received a Toshiba support email on 14 April 2005 giving reference to a QFE from Microsoft I assumed it would be necessary for my Tecra.
    I was very confused when I found that this QFE and subsequent ones posted on the 16 April 2005 relate to Pre SP2 critical updates no9t required if one has already taken earlier advice of updating to Service Pack, at the very least your narrative should make mention of this. I find it very difficult to believe that your updates are two+ years out of date.

  • How to create column header text while downloading file

    How can we create column header text while downloading file using function GUI_DOWNLOAD(in SAP Release 4.6c) because there is no FIELDNAMES parameter in
    4.6c version.

    Hii,
      Check this sample code. I have called GUI_DOWNLOAD twice. Onetime to download header of table and next time data of table
    REPORT  z_file_download.
    DATA: w_name(90) TYPE c.
    DATA:
      BEGIN OF fs_flight,
        carrid   LIKE sflight-carrid,
        connid   LIKE sflight-connid,
        fldate   LIKE sflight-fldate,
        price    LIKE sflight-price,
        currency LIKE sflight-currency,
      END OF fs_flight.
    DATA:
      BEGIN OF fs_head,
        carrid(10) TYPE c,
        connid(10) TYPE c,
        fldate(10) TYPE c,
        price(10) TYPE c,
        curr(10) TYPE c,
      END OF fs_head.
    DATA:
      t_head LIKE
       TABLE OF
             fs_head.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    fs_head-carrid = 'CARRID'.
    fs_head-connid = 'CONNID'.
    fs_head-fldate = 'FLDATE'.
    fs_head-price  = 'PRICE'.
    fs_head-curr   = 'CURRENCY'.
    APPEND fs_head TO t_head.
    SELECT-OPTIONS:
      s_carrid FOR fs_flight-carrid.
    START-OF-SELECTION.
      SELECT carrid
             connid
             fldate
             price
             currency
        FROM sflight
        INTO TABLE t_flight
       WHERE carrid IN s_carrid.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'D:\flight.xls'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
        WRITE_FIELD_SEPARATOR         = 'X'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    *   CONFIRM_OVERWRITE             = ' '
    *   NO_AUTH_CHECK                 = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   WRITE_BOM                     = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = t_head
    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 NE 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'D:\flight.xls'
          filetype                = 'ASC'
          append                  = 'X'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_flight
        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 EQ 0.
        MESSAGE 'Download successful' TYPE 'I'.
      ENDIF.
      IF sy-subrc NE 0.
    *  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Abhijeet

  • Downloading ALV to excel file

    Hi all,
       i am trying to download ALV to excel file.
       but as the alv contains many fields,
       the row in the excel is automatically wrapped to the
       next row ..
       what i want is the row in excel should come as it is
       in the ALV (whole thing in one line) and should not wrap to next row
      Regards,
      Tarang

    Hi Shah,
    <b>
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'</b>
        EXPORTING
          I_CALLBACK_PROGRAM      = V_REPID
          I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
          IS_LAYOUT               = WA_LAYOUT
          I_SAVE                  = 'A'
          IT_FIELDCAT             = I_FLDCAT_HEAD
          IT_SORT                 = IT_SORT
          IT_EVENTS               = I_EVENTS
        TABLES
          T_OUTTAB                = IT_FINAL
        EXCEPTIONS
          PROGRAM_ERROR           = 1
          OTHERS                  = 2.
      IF SY-SUBRC = 0.
    <b>     CALL FUNCTION 'GUI_DOWNLOAD'</b>
         EXPORTING
          BIN_FILESIZE                    =
            FILENAME                        = 'C:\Documents and Settings\vikranthk\Desktop\vikranth.xls'
           FILETYPE                        = 'ASC'
          APPEND                          = ' '
          WRITE_FIELD_SEPARATOR           = ' '
          HEADER                          = '00'
          TRUNC_TRAILING_BLANKS           = ' '
          WRITE_LF                        = 'X'
          COL_SELECT                      = ' '
          COL_SELECT_MASK                 = ' '
          DAT_MODE                        = ' '
          CONFIRM_OVERWRITE               = ' '
          NO_AUTH_CHECK                   = ' '
          CODEPAGE                        = ' '
          IGNORE_CERR                     = ABAP_TRUE
          REPLACEMENT                     = '#'
          WRITE_BOM                       = ' '
          TRUNC_TRAILING_BLANKS_EOL       = 'X'
          WK1_N_FORMAT                    = ' '
          WK1_N_SIZE                      = ' '
          WK1_T_FORMAT                    = ' '
          WK1_T_SIZE                      = ' '
        IMPORTING
          FILELENGTH                      =
          TABLES
            DATA_TAB                        = it_final.
          FIELDNAMES                      =
        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
    Thanks
    Vikranth Khimavath
    Message was edited by: Khimavath Vikranth

  • Problem in download to application server- file column is getting truncated

    We have a program for which there are 2 options a list output or file to be placed on the application server. The TXT file is of length 525 characters.
    My problem is while the list output is generated the whole list is getting outputted, but when we take a output on the application server last 10 columns are getting truncated.
    Can somebody give a help on this.
    Thanks in advance.
    Jilly

    Use the function module
    ARCHIVFILE_SERVER_TO_CLIENT
    Pass the values: as download file and destination in the respective fields.
    File to be downloaded in :(Pass the exact file name)
    PATH :                          
    SDEC01\SAPMNT\INT\HR\OUT\FMLA-20080205-0728
    and
    Destination to download the file in:
    TARGETPATH                      C:\DOCUMENTS AND SETTINGS\JILFEM\MY DOCUMENTS\FMLA-20080205-0728
    Regards,
    Jilly

  • I've Downloaded twice ''Additional Contents'' but the issue is still unresolved  ( '' EXS 24 instrument ''steinway Piano.exs '' Audio file '' stw per v1 024.AIF '' not found)

    I've Downloaded twice ''Additional Contents'' but the issue is still unresolved  ( '' EXS 24 instrument ''steinway Piano.exs '' Audio file '' stw per v1 024.AIF '' not found)
    Please Help

    "Additional Contents" I don't even know what that is? What app is it for?

  • Firefox 4 hangs while downloading files, sometimes get an error saying Script: chrome://mozapps/content/downloads/download.xml:68 is busy or may have stopped responding, how can I disable this script?

    While downloading files Firefox 4 freezes (started with 3.5) and sometimes I get a window that says Script: chrome://mozapps/content/downloads/download.xml:68 has stopped responding or is busy and asks if I want to stop script or ignore. I have looked through about:config and don't see a way to disable the script and keep it disabled.

    That is a problem with an AVG extension (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • How to hide/remove a column from Excel download file

    All,
    I have about 7 columns iam displaying on my IR but there is 1 column on this report i dont want to appear on excel download file. How do i accomplish this?
    apex 4.1.0/theme20/report region,
    thanks in advance,

    Hello,
    For IR, each download format is associated with specific REQUEST value. For CSV files, its CSV. So you can put the condition for columns using :REQUEST value as follows.
    Goto Report Attributes -> Select Column you want to hide for CSV export -> Conditional Display
    Condition Type- PL/SQL
    Expression1- :REQUEST IS NULL OR :REQUEST != 'CSV'
    Regards,
    Hari

  • Change Column content of ALV Variant

    Hi,
    I need to add a field in an existing variant for the layout of an ALV report. What I did was to add a field in a structure using Append Structure. The text that I first entered was wrong (field label of the data type of the field). Now, when I run the ALV Report, then when I choose to add a hidden field in the variant(setting>display variant>Current...), the wrong text is appearing even if I've already modified the field label of the data type.
    Do I need to adjust something in order for the "Column Content" of the variant to be displayed properly?

    After you made the change to the ALV catalog, try to re-create the variant again.
    Thanks & regards,
    Hadiman

  • How to change "Display column content" on a uploaded file link?

    Hi,
    I based my portal form on a table with a field of type BLOB. I used this to upload any type of file. I have no problem in uploading my file, when I query the information, a link comes up with the words "Display column content". I can click on that link to see the content of my file. But is there a way to change the wording "Display column content"?
    null

    Yoy can change the link by editing the generated package

  • Download all columns into Excel from an ALV along with hidden fields

    Hello Everyone,
    I have an alv, in which the fieldcat have fields with no_out = 'X'. When I m trying to download the output by selecting the fields with no_out='X' in the output, they are not getting downloaded. But I can see them in the alv output.
    IS there any other way to do this or should I just take off no_out = 'X'?
    Thanks,
    Rushi

    Hi Rushi,
    You can add your own button in PF-Status. And add your required functionality.
    So if thei new added button is added, program will prepare fielname table first and then will download Excel file using function module 'GUI_DOWNLOAD'. You can keep some constant filename and filepath (C:\test.xls) and everytime you can overwrite the same filename and give success message after downloading file.
    If you want different fielnpath, then you can get that on selection screen.
    Hope this will help you.
    Regards,
    Anil

  • Downloading files from database in Google Chrome and Firefox

    I am using a modified version of  the get_doc to view files stored in the database.  I am able to use this code perfectly in Internet Explorer but attempting view the data in Firefox or Google Chrome opens up a page showing the data in a binary format.  I believe it may have something to do with the headers.  The code is as follows:
    create or replace
    package body          "PKG_FILES" is
    PROCEDURE pr_open_file(p_table in varchar2, p_id in number, p_name in varchar2 DEFAULT null, p_content in varchar2 DEFAULT 'CONTENT') AS
         v_query        VARCHAR2(1000);
         v_mime         VARCHAR2(48);
         v_length       NUMBER;
         v_file_name    VARCHAR2(2000);
         v_table        VARCHAR2(100);
         Lob_loc        BLOB;
    BEGIN
      v_table := p_table;
      v_query := 'SELECT MIME_TYPE,'|| p_content ||', FILE_NAME, DBMS_LOB.GETLENGTH('||p_content||') FROM '||v_table ||' WHERE '||v_table||'_ID = :id';
      EXECUTE IMMEDIATE v_query INTO v_mime,lob_loc,v_file_name,v_length USING p_id;
                  -- set up HTTP header
                        -- use an NVL around the mime type and
                        -- if it is a null set it to application/octect
                        -- application/octect may launch a download window from windows
                        owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
                    -- set the size so the browser knows how much to download
                    htp.p('Content-length: ' || v_length);
                    -- the filename will be used by the browser if the users does a save as
                    htp.p('Content-Disposition:  attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
                    -- close the headers           
                    owa_util.http_header_close;
                    -- download the BLOB
                    wpg_docload.download_file( Lob_loc );
    end pr_open_file;
    end "PKG_FILES";
    Has anyone had this same issue or any ideas?

    Before Little Bobby Tables logs into your application, make sure you read up on DBMS_ASSERT to ensure that the table name and column are valid DB objects before you dynamically create any SQL statements.
    ie prevent SQL Injection.
    Other than that, use APEX_DEBUG.MESSAGE() to spit out some information... like which MIME/TYPE you are using.
    It could be that the value stored in the database table is invalid.
    hint:  the ORDDoc data type could be used to detect the correct mime/type.
    Finally, I've read somewhere that an APEX_APPLICATION.STOP_APEX_ENGINE() was needed at the very end of the process.
    MK

  • Download file using wpg_docload doesn't work

    Hello All,
    I am creating a web page that uploads and downloads files. Oracle table that stores BLOB content and type is working fine.
    Upload works fine. When I download file, it opens in the same browser and same tab instead of opening in 'Save As' dialog box . The code is as below:
    IF params('submit') ='Download' THEN
    SELECT mime_type, dbms_lob.getlength( blob_content ), blob_content
    INTO s_mime_type, n_length, lob_cont
    FROM rowan.FILE_UPLOAD
    WHERE name=params('txtFilename');
    -- Set the size so the browser knows how much it will be downloading.
    owa_util.mime_header('text/plain', FALSE );
    htp.p( 'Content-Length:' || n_length );
    -- The filename will be used by the browser if the users does a "Save as"
    htp.p('Content-Disposition: attachment; filename="'||params('submit')||'"');
    owa_util.http_header_close;
    -- Download the BLOB
    wpg_docload.download_file( lob_cont );
    --htp.showpage ();
    END IF;
    Thanks,
    Himadri.

    Your SQL select statement includes the column mime_type.
    The HTTP header that is created by your code, sets the Mime type as follows:
    owa_util.mime_header('text/plain', FALSE );
    So.. the file could be binary, could be an image - and this code tells the browser that the data in that HTTP response is in fact plain ASCII text.
    Obviously the browser will choke on that HTTP response as the content is not ASCII text. And it will use the application that is associated with Mime type text/plain to receive that response. By default, that is the browser itself. So it will open a new rendering window/tab (or use the existing one) to display this "text" contents that is expects to receive.
    Change that statement in your code to:
    owa_util.mime_header(s_mime_type, FALSE );

Maybe you are looking for

  • Sub screen: Handling the Radio button selection?

    Hi, Scenario: I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub

  • Registering MDM servers in SLD - Is it required?

    Hello mates, I was going thru this doc MDM 5.5 SP04 - <a href="https://websmp208.sap-ag.de/~sapidb/011000358700006117152006E">Register MDM Servers in the SLD</a>. My questions..what is the advanatage of registering MDM servers in SLD? Isn't it enough

  • OBIEE 11G Web Services - How to find Catalog Object Type

    Hi All, I am trying to access the Web Catalog objects available in OBIEE 11.1.1.5 through the Web Services API. I am able to read object names in "/shared" folders using the getSubItems() web service. My objective is as follows 1. Categorize catalog

  • Yosemite 10.10.3 & photoshop elements 13

    I just did the 10.10.3 update to Yosemite. Now I'm being asked to enter my Photoshop Elements 13 serial number.  I no longer have the box.  Any fixes?

  • Screen capture functions don't work with 10.4.6

    After update to 10.4.6, Cmd-Shft-4 and Cmd-Shft-3 are idnored. are they supposed to work? John