Unix file download

An ABAP program is downloading a file and how do I see the file..There iis a transaction and a program which we need to exeucte...
Please help.

Hi,
try this.
report ztest no standard page heading.
tables: z_mver.
parameters: test(60) lower case default '/dir/judit.txt'.
data: begin of unix_intab occurs 100,
field(53),
end of unix_intab.
data: msg(60).
***open the unix file
open dataset test for input in text mode message msg.
if sy-subrc <> 0.
write: / msg.
exit.
endif.
***load the unix file into an internal table
do.
read dataset test into unix_intab.
if sy-subrc ne 0.
exit.
else.
append unix_intab.
endif.
enddo.
close dataset test.
***to process the data. load the database table
loop at unix_intab.
z_mver-mandt = sy-mandt.
z_mver-matnr = unix_intab-field(10).
translate z_mver-matnr to upper case.
z_mver-werks = unix_intab-field+10(4).
translate z_mver-werks to upper case.
z_mver-gjahr = sy-datum(4).
z_mver-perkz = 'M'.
z_mver-mgv01 = unix_intab-field+14(13).
z_mver-mgv02 = unix_intab-field+27(13).
z_mver-mgv03 = unix_intab-field+40(13).
to check the data on the screen (this is just for checking purpose)
write: / z_mver-mandt, z_mver-matnr, z_mver-werks, z_mver-gjahr,
z_mver-perkz, z_mver-mgv01,
z_mver-mgv02, z_mver-mgv03.
insert z_mver client specified.
*if the data already had been in table z_mver then sy-subrc will not be
*equal with zero. (this can be *interesting for you - (this list is
*not necessary but it maybe useful for you)
if sy-subrc ne 0.
write:/ z_mver-matnr, z_mver-werks.
endif.
endloop.
- Selvapandian Arunachalam

Similar Messages

  • Windows to UNIX file download directory location

    Hello all,
    I have a page that displays the contents of a directory and allows the user to click and download a file.
    I developed it on Windows and now I need to temporarily get it running on Solaris 8.
    I deployed the war file and now I need to change the code and create the "data" directory.
    Previously on Win 2k I had the following code:
    private static String PATH = "C:\\data\\"; //PATH to the data directoryI created the data directory on the root of the c drive: C://data
    Now that I am on Solaris I cant seem to point the page at the directory.
    I tried this:
    I created a dir called "data" directly off of root: /data
    and changed the code like so:
    private static String PATH = "\\data\\"; //PATH to the data directoryThis didnt work so I created another directory called "data" just off of the root of my webapp:
    /tomcat/jakarta-tomcat/webapps/myWebAppName/data
    and left the code like this:
    private static String PATH = "\\data\\"; //PATH to the data directoryStill no go.
    So where should I create a "data" directory? and how shall I code the PATH constant?
    TIA!!

    try
    private static String PATH = "/data/" //PATH to the data directoryUsing forward slashes instead of backslashes. This is unix remember?
    If it still doesn't work, post an error message/exception and we can go from there.
    Cheers,
    evnafets

  • Download PDF spool to unix file system

    Does anyone know how to programatically download a PDF document spool to the unix file system?
    I am trying to find a method to send PDF documents that have gone to spool to a unix file system. If anyone had any ideas on how to do this, please let me know.
    Thanks.

    Hi,
    For this define a logical file while using transaction FILE.
    In your code you will get the complete path of the file while using FM FILE_GET_NAME.
    Then download your PDF while using instruction
    OPEN DATASET...
    TRANSFERT ...
    Hope this help you .
    Best regards

  • About download file into unix file

    Hi expert,
    i use the openset to write file into unix file server.
    but why there are some space at the end of every line.
    by the way, i works very well in windows server
       DATA: DATA_TRANSFER(70).
        Data: DATA_TRANSFER type string.
        data: fine_riga1(1) TYPE X VALUE '0D0A'.
        DATA: gt_data TYPE STANDARD TABLE OF ty_data.
        Constants: ascii_tab type x value ','.
        field-symbols: <f> type any, <delim> type any.
        "Assign delimiter field such as tab or comma.
        assign ASCII_tab to <delim>.
        CLEAR VN_CNT.
        concatenate DSNU 'employee' PN-BEGDA SY-UZEIT into P_UNIX.
        OPEN DATASET P_UNIX in legacy text MODE FOR OUTPUT. " IN TEXT MODE encoding UTF-8.
        IF SY-SUBRC <> 0.
          WRITE: / 'Error on file open:', P_UNIX.
        ELSE.
          LOOP AT TI_DATA .
            CLEAR DATA_TRANSFER.
            concatenate TI_DATA-TYPE
                              TI_DATA-PERNR
                              TI_DATA-ZAUSW
                              TI_DATA-ENAME
                              TI_DATA-TERID
                              INTO DATA_TRANSFER separated by cl_abap_char_utilities=>HORIZONTAL_TAB.
            CONDENSE DATA_TRANSFER NO-GAPS.
            TRANSFER DATA_TRANSFER TO P_UNIX.
            ADD 1 TO VN_CNT.
            CLEAR DATA_TRANSFER.
          ENDLOOP.
          CLOSE DATASET P_UNIX.
        ENDIF.
        WRITE: / P_UNIX,
               / 'Transfered', VN_CNT, 'records'.
    Best Regards,
    Kevin

    Hi,
    Try this way...
    TRANSFER dobj TO dset [LENGTH len]
                                          [NO END OF LINE].
    Addition 1
    ... LENGTH len
    Effect
    This addition determines how many characters or how many bytes of data object dobj are written to the file. len is expected to be a data object of type i that contains the number of characters or bytes. In text files, the content of len specifies the number of characters that are written from the storage. For binary files, legacy text file, and legacy binary files, len specifies the number of bytes that are written to the file. The first len characters or bytes are transferred and alignment gaps are included in the structures. If the addition LENGTH is not specified, all characters or bytes are transferred.
    If the value of len is less than or equal to 0, no characters or bytes are transferred. If the file is opened as a (legacy) text file, however, a line end marker is inserted into the file by default. If the value of len is greater than the number of characters or bytes in dobj, hexadecimal 0 or blank characters are transferred to the file instead of the missing bytes or characters, depending on whether the file was opened as a (legacy) text file or a (legacy) binary file.

  • UNIX files pc download (AL11, ...)

    Hi,
    I generate a unix file (output as file), for example for EC Sales List, and I want to know how to access such file with a user transaction or something similar. If I access to the file directly in the server the file is absolutely correct, but I want the user to be able to access the file. I am trying to use transaction AL11 to save such file in local pc unconverted, but I have problems because it includes a header and each line of the file end after the last character not blank and it should not do that. The file in the server do not end after the last character not blank, because it has characters '   ' at the end of each line. That is why I would like to know if there is another way to access to unix files.
    Thanks,
    Ariana

    Thank you very much for your answers. Finally, using CG3Y I can obtain my file without problems.
    Message was edited by:
            Ariana Landaluce

  • Function Module - to download the Unix file to frontend

    I need one function module which will dwon load unix file to frontend.
    If anyone knows the Function module plz tell me.

    FORM popup_from_server .
    *           call a function to get the physical name of the directory from the server
    *           using the given logical name FILE_GET_NAME
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
    *              CLIENT                        = SY-MANDT
          logical_filename              = p_logi    "ZHOME
         operating_system              = sy-opsys
         eleminate_blanks              = 'X'
       IMPORTING
         file_name                     = v_file_name.
      v_dirname = v_file_name.
    *          call a function to get the list of the files
    *          into an internal table from the given directory
      CALL FUNCTION 'SUBST_GET_FILE_LIST'
        EXPORTING
          dirname      = v_dirname
          filenm       = '*'
          pattern      = '*.txt'
        TABLES
          file_list    = i_file_list
        EXCEPTIONS
          access_error = 1
          OTHERS       = 2.
      v_unixfield = 'P_UNIX'.
      v_dynpprog = sy-repid.
      v_dynpnr = sy-dynnr.
    *           now call F4 help function, and populate the file list into its value table
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'NAME'
         dynpprog               = v_dynpprog
         dynpnr                 = v_dynpnr
         dynprofield            = v_unixfield
         value_org              = 'S'
        TABLES
          value_tab              = i_file_list .
    ENDFORM.                    " popup_from_server

  • TAx Reporter Temse Files Download Automation

    Hi,
    I have a reuiqrement to download the Temse files generated in Tax Reporter. I have completed the code and it works fine if we run the program in foreground. But when I run the same program in background some Temse files downloaded have junk characters. If I download the same Temse file in foreground it works fine.
    There seems to be some issue with the FM when I run my progam in background.
    I have searched SDN and SAP Notes for any clues but did not get any.
    REPORT  ZPHOP_TEMSE  NO STANDARD PAGE HEADING
                      LINE-SIZE 1023
                      LINE-COUNT 65
                      MESSAGE-ID zz.
    DATA: BEGIN OF tape OCCURS 1,
             DATA(2000),
          END OF tape.
    DATA: force_ascii type c VALUE 'T'.
    DATA:  BEGIN OF int_msgs2 OCCURS 10,
             errnum(2) TYPE c,
             text1(8) TYPE c,
             text2(60) TYPE c,
           END OF int_msgs2.
    DATA: BEGIN OF g_int_temse OCCURS 0,
             dname    LIKE TST01-dname,
             dpart    LIKE TST01-dpart,
             dcretime LIKE TST01-DCRETIME,
             dcreater LIKE TST01-DCREATER,
          END OF g_int_temse.
    DATA: record_length  TYPE i VALUE 275,
           data_length    TYPE i,
           convert_to_ebcdic,
           filesize TYPE i,
           number_of_records TYPE i VALUE 1,
           filetype(3) VALUE 'BIN',
           conv TYPE REF TO cl_abap_conv_out_ce,
           dline TYPE REF TO data,
           dtab TYPE REF TO data,
           p_compid(4),
           p_pswd(8),
           g_str(2000),
           uc_filename TYPE string.
    DATA: l_nm_fixed_record.
    CONSTANTS: c_lpath TYPE pathintern VALUE 'ZOUT'.
    TABLES: TST01, ZPHOPFLS, ZTEMSE_LOG, V_5UXY_A.
    FIELD-SYMBOLS: <dtab> TYPE STANDARD TABLE,
                   <dline> TYPE ANY.
    INCLUDE: dbpnpcom.           " No logical database        Do not modify!
    INCLUDE: zphoptop,           " Top Include                Do not modify!
             zphopfil.           " File inlcude               Do not modify!
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-T01.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(30) text-001.
    SELECT-OPTIONS  s_temse FOR TST01-dname NO INTERVALS.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE text-T02.
    SELECT-OPTIONS  s_cai   FOR TST01-DCREATER NO INTERVALS.
    SELECT-OPTIONS  s_date  FOR sy-datum.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE text-T03.
    PARAMETERS: p_ifid   LIKE t9aoa-if_id MODIF ID DIS ,
                p_fileid LIKE t9aoa-file_id MODIF ID DIS,
                p_unixf(60)  LOWER CASE MODIF ID DIS,
                p_uxdir  TYPE pathextern LOWER CASE MODIF ID DIS,
                p_dstfil(45) LOWER CASE MODIF ID DIS.
    SELECTION-SCREEN END OF BLOCK B3.
    PARAMETERS: p_skip AS CHECKBOX.
    DATA: ws_unixr LIKE p_unixf,
          ws_trans LIKE p_unixf.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'DIS'.
          screen-output = '1'.
          screen-input  = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    INITIALIZATION.
      p_ifid = 'PAYFLS'.
      p_compid = 'HR00'.
      p_fileid = '01'.
      p_unixf = 'AFS'.
      p_pswd = 'chevr123'.
      p_skip = 'X'.
    -End of Initialization--
      PERFORM get_physical_path.
      FORMAT COLOR COL_HEADING.
      WRITE: /01 text-t04,
              10 sy-pagno,
              41 text-t05,
             110 text-t06,
             123 sy-datum.
      WRITE: /01 text-t08,
              14 sy-repid,
             110 text-t07,
             125 sy-uzeit.
      FORMAT COLOR OFF.
      SKIP.
      WRITE: /(20) text-T21       CENTERED COLOR COL_HEADING,
              (15) text-T22       CENTERED COLOR COL_HEADING,
              (20) text-T23       CENTERED COLOR COL_HEADING,
              (15) text-T24       CENTERED COLOR COL_HEADING,
              (40) text-T25       CENTERED COLOR COL_HEADING.
    START-OF-SELECTION.
    *Do not allow background processing
    *Check if the Temse file and CAI both are entered
    IF NOT S_TEMSE IS INITIAL AND NOT S_CAI IS INITIAL.
       MESSAGE W999 WITH TEXT-E01.
    ELSEIF S_TEMSE IS INITIAL AND S_CAI IS INITIAL.
       MESSAGE W999 WITH TEXT-E02.
    ENDIF.
    Collect all temse filenames from TST01 into an internal table.
    IF NOT s_temse IS INITIAL.
       SELECT dname dpart dcretime dcreater FROM TST01 INTO TABLE g_int_temse
              WHERE dname in s_temse
              AND   dpart EQ '1'.
    ELSE.
       SELECT * FROM TST01
              WHERE DCREATER in s_cai
              AND   DPART EQ '1'.
         IF TST01-DCRETIME(8) GE s_date-low
             AND TST01-DCRETIME(8) LE s_date-high.
            MOVE-CORRESPONDING TST01 TO g_int_temse.
            APPEND g_int_temse.
         ENDIF.
       ENDSELECT.
    ENDIF.
    SORT g_int_temse BY DNAME DPART DCRETIME.
    LOOP AT g_int_temse.
    Check if the temse file is already processed in ZTEMSE_LOG table.
      SELECT SINGLE * FROM ZTEMSE_LOG
             WHERE DNAME = g_int_temse-dname.
      IF sy-subrc EQ 0.
    error. Temse already processed
         CONTINUE.
      ENDIF.
    Check if the temse file bieng processed is the eligible temse file
      SELECT SINGLE * FROM V_5UXY_A
             WHERE TSOBJ = g_int_temse-dname.
      IF sy-subrc EQ 0.
         SELECT SINGLE * FROM ZPHOPFLS
             WHERE TAXAU = V_5UXY_A-TAXAU
             AND   TXFRM = V_5UXY_A-TXFRM.
         IF sy-subrc EQ 0.
    Generate the filename for the target destination
            CONCATENATE ZPHOPFLS-FILENAME '.' sy-datum '.' sy-uzeit INTO p_dstfil.
         ELSE.
    error. Script not maintained in ZPHOPFLS table
            CONTINUE.
         ENDIF.
      ELSE.
    error. Temse file is not the latest processed file.
         CONTINUE.
      ENDIF.
      CALL FUNCTION 'RP_TS_OPEN'
        EXPORTING
          tsobj = g_int_temse-dname
         versn = g_int_temse-dpart
          empfg = 'RPUTSVUM'.
      COMMIT WORK.
      REFRESH tape.
      CLEAR   tape.
    Einlesen von der TemSe
      CALL FUNCTION 'RSTS_READ'
        EXPORTING
           PARTS1BY1 = 'X'
        TABLES
          datatab = tape.
      CALL FUNCTION 'RSTS_CLOSE'.
    Read the 1st line which is supposed to contains info important for
    the downloading procedure. The syntax of the line is :
      SAPxxxnnnyyyy  - the 1st 3 char 'SAP' indicates this line contains
    download related info. xxx can either be 'ASC' (for ASCII) or 'EBC'
    (for EBCDIC). nnn is the length of each record, e.g. 128 for SSA disk
    format, 275 for SSA tape format etc. yyyy can either be 'CRLF' (each
    record is delimited by CRLF) or blank (no CRLF).
    After processing the 1st line, the line is deleted from the internal
    table. Downloading begins on the 2nd line.
      READ TABLE tape INDEX 1.
      IF tape-data(3) EQ 'SAP'.
        IF tape-data+3(3) EQ 'EBC'.
          convert_to_ebcdic = 'x'.
        ELSEIF tape-data+3(3) EQ 'ASC'
              AND force_ascii EQ 'T'.
          filetype = 'ASC'.
        ENDIF.
        IF tape-data+6(3) NA '*'.
          record_length = tape-data+6(3).
        ELSE.
          record_length = tape-data+13(4).
        ENDIF.
        IF tape-data+9(4) EQ 'CRLF'.
          data_length = record_length + 2.
        ELSE.
          data_length = record_length.
        ENDIF.
        DELETE tape INDEX 1.
      ELSE.
        data_length = record_length.
      ENDIF.
    Transfer the Temse file data to Unix file.
          PERFORM transfer_file.
    Update the Log table with the temse details.
          ZTEMSE_LOG-dname = g_int_temse-dname.
          ZTEMSE_LOG-txcmp = V_5UXY_A-taxau.
          ZTEMSE_LOG-txfrm = V_5UXY_A-txfrm.
          ZTEMSE_LOG-filename = ws_unixr.
          ZTEMSE_LOG-DCREATER = g_int_temse-dcreater.
          INSERT ZTEMSE_LOG.
        WRITE: /(20) ZTEMSE_LOG-dname,
                (15) ZTEMSE_LOG-txcmp,
                (20) ZTEMSE_LOG-txfrm,
                (15) ZTEMSE_LOG-dcreater,
                (40) ZTEMSE_LOG-filename.
    ENDLOOP.
    *&      Form  get_physical_path
          Get Physical directory name for the given logical path name
    FORM get_physical_path .
      CALL FUNCTION 'ZFILE_GET_PATH_NAME'
        EXPORTING
          LOGICAL_PATH               = c_lpath
        IMPORTING
          FILE_NAME_PATH             = p_uxdir
        EXCEPTIONS
          PATH_NOT_FOUND             = 1
          MISSING_PARAMETER          = 2
          OPERATING_SYSTEM_NOT_FOUND = 3
          FILE_SYSTEM_NOT_FOUND      = 4
          OTHERS                     = 5.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " get_physical_path
    *&      Form  TRANSFER_FILE
    FORM transfer_file.
      p_unixf = 'AFS'.
    Concatenate Date with Unix File name
      CONCATENATE p_unixf '.' p_compid '.' p_ifid  '.' sy-datum '.' sy-uzeit INTO ws_unixr.
    Concatenate Unix Directory with Unix File for Outbound
      CONCATENATE p_uxdir ws_unixr INTO p_unixf.
      PERFORM open_files USING p_unixf.
    LOOP AT tape.
         g_str = tape-data(record_length).
        TRANSFER g_str TO p_unixf LENGTH record_length.
        IF sy-subrc <> 0.
          MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
           ' Error Transferring to: ' p_unixf.
        ENDIF.
    ENDLOOP.
      PERFORM close_files USING p_unixf.
    ENDFORM.                    " TRANSFER_FILE
    Can anyone please check and tell me what I need to overcome this problem.

    Hi Bhaskar,
    I also have the same requirement to upload TemSe files in to application server.
    In FDTA tcode after we enter company code and click on enter.
    In the second screen checking and line item and go to edit and click on download button.
    Here we see a popup with default file name, and when we say ok the file will get downloaded into C:\.....
    Here our req is to upload the file automatically pick up via batch job and place it in the in to the application server and from there it should be placed in the Netwrok server (UNIX).
    Pls provide me with suitable code so that i can finish it off.I tried a lot but did not work.
    Thanks.

  • URGENT : Writing to UNIX file problem !

    Hi friends,
    I am stuck at a crucial point while uploading a UNIX file from ABAP program.
    I am using open dataset & then transfer to...the file path.
    But when I go and check the UNIX file it is split into 2 lines (it is supposed to be a
    record with 1 line with 1500 characters) ! It shows a maximum of 255 chars in one line.Moreover,while I download to a text file via Txn CG3Y,some data are missing or truncated etc.
    Please suggest how can I create a record with 1500 characters in UNIX and download it successfully with full data or how can I ensure proper data has been transferred as the record display is truncated.I checked the program its fine,only after transferring I get the problem.
    Thanks,
    Sandip.

    The files would not get truncated. The file actually exists in App. server but you will be able to see only uptil 255 characters. You can check the same by downloading it onto Pres. server by specifying  file type as BIN when you are downloading through CG3Y

  • Special characters in UTF-8 UNIX file

    We have a program which downloads data from certain info-types in to the UNIX file, Fields are written to the specific position in the UNIX file. Some of the fields contains "Special Characters" in them.
    When we download the file in UTF-8 mode (encoding default) then the file display special characters correctly but the all the characters in that record gets shifted to left.
    When we download the file in ANSI mode then the file display doesn't special characters correctly but the all the characters in that record do not get shifted from their place.
    How can i find the special character in the field and accordingly i will shift the field right so that in the final UNIX file field won't shift their positions.

    Hi Ramnivas.
    Have you tried to read the characters with class: CL_ABAP_CHAR_UTILITIES (transaction SE24, label Attributes)
    For example you can see # in ABAP but in the file will be a new line or a carriage return, you can detect that an adapt it with:
    CL_ABAP_CHAR_UTILITIES=>NEWLINE or CL_ABAP_CHAR_UTILITIES=>CR_LF
    Other hand, if you are using OPEN DATASET to download the file, look at the options of encoding
    See F1 of OPEN DATASET and then encoding..
    OPEN DATASET - encoding
    Syntax
    ... ENCODING { DEFAULT
                 | {UTF-8 [SKIPPING|WITH BYTE-ORDER MARK]}
                 | NON-UNICODE } ... .
    Hope it helps
    Regards.
    Alfonso.

  • Transfer string to unix file

    Hi Gurus,
    I am converting data in an internal table (consisting of 5000 records) into XML string using CALL TRANSFORMATION. All data is stored in XML format in a variable of type STRING.
    I am trying to write this data in a Unix file using TRANSFER statement.
    The problem is all data is not copied into the file!
    Can anyone suggest a suitable solution so that complete data in the string variable will be reflected in the file?
    Regards,
    Jack

    Hi,
    If you are opening the file in text mode, your itab fields have to be character type fields. So define another itab with fields of character type with lengths defined as per your output requirements.
    You have understand that if you have floating, decimal fields, currency or quantity fields in your itab, they are know to SAP only, once you try to download such records, converting them into character form needs to happen.
    Did you try the binary mode with your 'open dataset' statement?
    Srinivas

  • Unix file to be converted to proper excel format

    Hi Ima writing data to unix file but when i want to download from there in excel format i data is not not aligned in excel format
    please let me know the seperator to be used to upload to unix which can be converted to excel with good alignment.
    i tried  seperator '09'  but didn't work and my version is 4.6 c so i can not use the encoding command or the classes.
    pls guide
    OPEN DATASET p_unix FOR OUTPUT IN TEXT MODE MESSAGE v_message .
      IF NOT sy-subrc IS INITIAL.
        MESSAGE e398(00) WITH text-008 p_unix v_message space.
      ENDIF.
    ** Write header to unix file
      LOOP AT gt_fieldcat1 INTO st_fieldcat1.
        CONCATENATE st_rec st_fieldcat1-seltext_l
               INTO st_rec
               SEPARATED BY ','.
      ENDLOOP.
    CONDENSE st_rec.
      TRANSFER st_rec TO p_unix.
    ** Write data to unix file
      LOOP AT  <fs_table>  ASSIGNING <fs_struc>.
        CLEAR: st_rec.
        DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE <fs_struc> TO
                                                 <field>.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
          v_field = <field>.
          IF v_field IS INITIAL.
            CONCATENATE st_rec v_field ','
                INTO st_rec .
          ELSE.
            CONCATENATE st_rec v_field ','
                INTO st_rec.
          ENDIF.
        ENDDO.
        TRANSFER st_rec TO p_unix.
      ENDLOOP.
    Close unix file
      CLOSE DATASET p_unix.

    Although I dislike MPEG-1 because of the large file size those .mpg files are commonly used on the Web. They can be played by nearly any computer and are not "Player" dependent like WMP or QuickTime so each user can decide how to view them.
    As a bonus they are a "playback" format which makes editing and repurposing them a bit more difficult so your media is a bit more "secure".
    I'll stick to QuickTime formats (avoiding H.264 video codec) and force QuickTime down their WiMPy throats. Millions of PC's have QuickTime installed (because of iTunes) and others can easily download the free Player and browser plug-in. By avoiding H.264 my files can be viewed on Mac's and PC's that can't install QuickTime 7.

  • Radio button &  file download

    Hi all,
    I have a requirement whre i use two radio buttons
    one for UNIX download and one for PC download.and below i have a paramenter field p_path where the file is to be downlaoded.
    Now i want to change my requirement such that, whn i click the radio button for PC, i must show the p_path as C:\temp
    ,when i click for UNix, i should show the p_path field as inteface/out/sap/fi.
    Any pointers will be help full.
    SELECTION-SCREEN SKIP 1.
    PC or UNIX
    PARAMETERS: R_UX RADIOBUTTON GROUP 1,
                R_PC RADIOBUTTON GROUP 1.
    path
    PARAMETERS: P_PATH TYPE RLGRAP-FILENAME OBLIGATORY.
               DEFAULT '/interface/out/stage/hr/'.
    *PARAMETERS: P_PATH TYPE RLGRAP-FILENAME OBLIGATORY
               DEFAULT '/interface/out/stage/hr/'.
    SELECTION-SCREEN SKIP 1.

    hi,
    I have create two radiobuttons.first button pc file second radio button for unix file.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
      PARAMETERS: R_UX RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND com modif id 001,
    R_PC RADIOBUTTON GROUP G1 modif id 002 .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
    PARAMETERS: P_PATH TYPE RLGRAP-FILENAME MODIF ID 001.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME.
    PARAMETERS: P_PATH1 TYPE RLGRAP-FILENAME MODIF ID 002 DEFAULT '/interface/out/stage/hr/'.
    SELECTION-SCREEN END OF BLOCK B3.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PATH.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         PROGRAM_NAME        = SYST-CPROG
         DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
      IMPORTING
        FILE_NAME           =
    loop AT SCREEN.
      if R_UX = 'X'.
        if screen-group1 eq '001'." and screen-group1 eq 003.
          screen-INVISIBLE = 0.
          SCREEN-ACTIVE = 0.
          MODIFY SCREEN.
        endif.
       else.
        if screen-group1 eq '002'." and screen-group1 eq 003.
          screen-INVISIBLE = 0.
           SCREEN-ACTIVE = 0.
          MODIFY SCREEN.
        endif.
      endif.
    ENDLOOP.
    regards,
    muralii

  • Trailing space issue in Unix File

    Hi All,
    I am facing an issue with the trailing space in Unix file content.
    When the file is being created in Unix server the trailing space is getting trimmed automatically.
    As per the requirement,this space should be retained in the Unix file as it is when the file is being downloaded to PC.
    Is there any solution for this issue? Request your help for resolving this.
    Thanks in Advance,
    Savitha

    Hi,
    When you're writing youd data to the file (assume you're using the TRANSFER command), you could try explicitly specifying the length of the data line to write, ie.
    TRANSFER data(200) TO DATASET filename.
    Regards,   Andy

  • Urgent : Doubt on Output in UNIX FIle

    HI Friends,
    I have downloaded the output from my program into a text file.
    In which i have 1matnr,1tab,1price.
    it coming perfectly. I am using constant
    constant: c_a type x value '09'.
    this is giving a tab in text file.When i checked the output in Unix file, In the place of Tab a
    Hash(#) is replaced there.
    Can anybody help me to get only a material numer one tab and then a Date.
    or Is it like a Hash is the denotion for a Tab in unix.

    Hi gokul
                 I think you need to change File type in FM: WS_DOWNLOAD as 'DAT' or 'ASC' .
    Regards
    wiboon

  • Plz tell me the FM for UNIX file

    HI
        plz tell me the FM that convert the uploading program which is going to save in unix file.
    Thanks

    Hi SKK,
    Check out the link:
    Re: download file to webserver
    Hope this helps.
    Manish

Maybe you are looking for

  • How can I add a new submitbutton is like an oracle button?

    Hi everybody, I wanna add a new submitbutton to page(xxxxPG.xml). There are some oracle buttons in the page. But, when I add a new submitbutton to page, it is looking like a windows button. What should I do? Thanks...

  • How can I access all the correspondence from or to a particular contact?

    In MS Outlook address book I can access correspondence events etc. from the record in the address book. Is there a way to do this other than using the search function in an account, if I have correspondence or events on multiple accounts, is there a

  • EPUDL popping up all the time in dock

    Hi, 13" MBP running newly installed Yosemite OSX. I had Epson drivers installed and printer worked fine. Since installation of new OSX, EPUDL, which I gather is part of Epson software keeps popping up in the dock, every 20-30 seconds then disappears.

  • Installing Business Objects XI R2 on the same server (LPAR) multiple times

    Greetings! My goal is to create "multiple" Business Objects XI R2 instances on a single AIX LPAR, so that I might have up to 8 Business Objects environments.  Each environment would be be used to promote reports through test and eventually production

  • T.Codes for Sending material outside..?

    HI gurus Can anybody explain me , what are all the T.codes available in STA SAP related to Sending materials to outside like Drillngm/c, grinding m/c,..etc To do the some customer service work.. materials are not consumable, we wil use the material f