Replacing download with gui_download

Hi,
as part of upgradation i am  trying to replace Download fm with  Gui_download but the problem is in download function i have  exp parameter  filemask_mask but  its not available in gui_download. Is there any way to  down load? Please help me out!!
Thanks and Reg,
Archana
Edited by: archana pakanati on Feb 9, 2009 8:14 AM

Hi,
Refer to the following code:
*& Report  ZDOWNLOAD_PROGRAM
report  zdownload_program.
parameter : p_path type rlgrap-filename default 'C:\Pdata.xls'.
data : gt_output   type standard table of trdirt,
       wa_output   type trdirt,
       p_filen     type string.
at selection-screen on value-request for p_path.
  clear p_path.
  call function 'F4_FILENAME'
    importing
      file_name = p_path.
start-of-selection.
  select * from trdirt
           into table gt_output
           where name like 'Z%'
              or name like 'Y%'.
end-of-selection.
  move : p_path to p_filen.
  call function 'GUI_DOWNLOAD'
    exporting
  BIN_FILESIZE                    =
      filename                        = p_filen
   filetype                        = 'ASC'
  APPEND                          = ' '
   write_field_separator           =
cl_abap_char_utilities=>horizontal_tab
  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                      = ' '
  WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
IMPORTING
  FILELENGTH                      =
    tables
      data_tab                        = gt_output
  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
     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.
Regards
Rajesh Kumar

Similar Messages

  • Problem with the Excel Download with GUI_DOWNLOAD

    Hi Sdn,
    I am reading the long text from FM READ_TEXT and downloding that text to Excel file  in one cell with the GUI_DOWNLOAD FM (I got 16 lines of text and by using CONCATENATE i got 16 lines of text into a string variable).
    The problem here I am facing is.
    The text contains a # symbol in one line (Which is not a last line).
    After downloading the file the text after the # symbol is coming in the next line.
    I tried to REPLACE that # symbol with space but failed.
    System not at all reading that symbol also.
    The text came as LEE, ANDREW" Completed On: 2010/09/04#
    Can any one help me to solve this issue.
    Edited by: Naresh Nelapatla on Apr 20, 2011 8:27 PM

    Hi Naresh,
    My thoughts on a possible solution, convert the last character value to a HEX value and check if it falls within the ASCII/Unicode CP range, Obviously this becomes easier if you are just looking at a single language character set.
    The below FM and code helps you check if the character falls within the ASCII char set.
    DATA: l_in_char TYPE string,
          l_out     TYPE xstring.
    CALL FUNCTION 'NLS_STRING_CONVERT_FROM_SYS'
      EXPORTING
        lang_used                   = sy-langu
        SOURCE                      = l_in_char
      TO_FE                       = 'MS '
    IMPORTING
       RESULT                      = l_out
      SUBSTED                     =
    EXCEPTIONS
       illegal_syst_codepage       = 1
       no_fe_codepage_found        = 2
       could_not_convert           = 3
       OTHERS                      = 4.
    IF l_out LT '0' OR l_out GT '7F'.
      WRITE: 'error'.
    ENDIF.
    Links: http://www.asciitable.com/
              http://www.utf8-chartable.de/unicode-utf8-table.pl
    Regards,
    Chen
    Edited by: Chen K V on Apr 21, 2011 11:25 AM

  • Download a zip file with gui_download = CRC error

    Hello erverybody,
    I download a zip compressed file with gui_download (cl_gui_interface_services) in binary mode.
    When I try to open it, I have a crc error. Does anybody has any idea why?
    here the code:
           TYPES: begin of t_zip,
                 text(1024) type c,
                 end of t_zip.
          DATA: itab_zip type table of t_zip,
                wa_zip type t_zip.
          OPEN DATASET p_fileon IN BINARY MODE FOR INPUT.
          IF sy-subrc <> 0.
            MESSAGE text-e01 TYPE 'E'.
          ENDIF.
          DO.
            READ DATASET p_fileon INTO wa_zip MAXIMUM LENGTH 1024.
            APPEND wa_zip TO itab_zip.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fileon.
          MOVE p_filedw TO filename.
          CALL METHOD cl_gui_frontend_services=>gui_download
            EXPORTING
              filename                  = filename
              FILETYPE                  = 'BIN'
            CHANGING
              data_tab                  = itab_zip
    Thanks
    Joachim

    Hi Joachim,
    1. use this code (just copy paste in new program)
    2. It will download from SERVER to front-end.
    3.
    *& Report  YBCR_FILEDOWNLOAD                                           *
    REPORT  ybcr_filedownload                       .
    DATA
    DATA : file_name TYPE string.
    DATA : BEGIN OF itab OCCURS 0,
           ln(255) TYPE c,
           END OF itab.
    SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : appfn(150) TYPE c LOWER CASE OBLIGATORY.
    PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CLEAR p_file.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p_file.
      file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
      OPEN DATASET appfn FOR INPUT IN TEXT MODE  ENCODING DEFAULT .
      IF sy-subrc <> 0.
        MESSAGE s999(yhr) WITH 'COULD NOT OPEN FILE ON APP SERVER'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      DO.
        READ DATASET appfn INTO itab.
        IF sy-subrc = 0.
          APPEND itab.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      file_name = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          filename                        = file_name
      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                        = itab
      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
      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.
    regards,
    amit m.

  • My ipod touch broke then replaced it with a new one. I already dloaded iOS5 on the old one. When I connected my new unit it says it won't load the previous back because the new one is not up to date... Do I really have to download iOS5 again?

    My ipod touch broke then replaced it with a new one. I already dloaded iOS5 on the old one. When I connected my new unit it says it won't load the previous back because the new one is not up to date... Do I really have to download iOS5 again?

    Yes, you have to update the iPod in order to retore from backup. The iOS on the "new" has to be aequal to r greater than on the iPod from which the backup was made.  The iOS downloads are unique to an iDevice and model (the one for a 3G iPod will not work for a 4G iPod).

  • Tried to download 16.0.1 but got following message: A newer version named Firfox.app (15.0) already exists in this location. Do you want to replace it with the

    I have a MacBook 10.5.8 OS. I have been getting an auto update notice for updating my current version 15.0 to 16.0.1. Tried to download version16.0.1 from Firefox web but got following message: A newer version named Firfox.app (15.0) already exists in this location. Do you want to replace it with the one you are moving? How can this be if the current version on my mac is 15.0?

    Have you tried just using the built in updater to update firefox? [[Update Firefox to the latest version]]

  • Replace files with newer download files on NB100?

    Just got the NB100 for my daughter and we both love it to bits:)
    I'm doing the update and it's found 129 updates and after downloading, it's asking me at various points if I'd like to keep a modified file or replace it with the newer downloaded file.
    What do I do?
    Homey

    I just went ahead and replace everything with newer versions and everything worked apart from the sound. two lines of typing at the terminal screen fixed this and everything now works!
    Hope this is of help to anyone who's bought oneof these babies!
    Homey
    Still learning...

  • Issue with gui_download function module

    Hi All,
             I have an issue with gui_download function module that it is creating one extra line while downloading my internal table data into text file,which i donot want.i have searched for various threads but couldnot get the proper reply.Or please provide me some other Function Module which will not create one extra line.Please help.

    part 2
    INCLUDE RPPPXD00.
    DATA : BEGIN OF COMMON PART A.
    INCLUDE RPPPXD10.
    DATA : END OF COMMON PART.
    INCLUDE PC2RXTW0.
    INCLUDE RPC2RX00.
    DATA : BEGIN OF COMMON PART B.
    INCLUDE RPC2CD00.
    DATA : END OF COMMON PART.
    INCLUDE RPPPXM00.
    INCLUDE RPCMGR00.
    AT SELECTION-SCREEN OUTPUT.
      CONCATENATE SY-DATUM2(6) SY-UZEIT0(4) INTO REF_NO.
      LOOP AT SCREEN.
        IF R1 = 'X'.
          IF SCREEN-NAME = 'FLN' OR SCREEN-NAME = '%_FLN_%_APP_%-TEXT' OR
             SCREEN-NAME = 'BTC'  OR SCREEN-NAME = '%_BTC_%_APP_%-TEXT' OR
            SCREEN-NAME = 'PY_DT' OR SCREEN-NAME = '%_PY_DT_%_APP_%-TEXT'"SOC BY ANKITA"
           OR SCREEN-NAME = 'ORG_ID' OR SCREEN-NAME = '%_ORG_ID_%_APP_%-TEXT'
           OR SCREEN-NAME = 'ORG_AC' OR SCREEN-NAME = '%_ORG_AC_%_APP_%-TEXT'
           OR SCREEN-NAME = 'DEPT_CD' OR SCREEN-NAME = '%_DEPT_CD_%_APP_%-TEXT'
           OR SCREEN-NAME = 'REF_NO' OR SCREEN-NAME = '%_REF_NO_%_APP_%-TEXT'
           OR SCREEN-NAME = 'PRS_BNK' OR SCREEN-NAME = '%_PRS_BNK_%_APP_%-TEXT'
           OR SCREEN-NAME = 'TRANS_TY' OR SCREEN-NAME = '%_TRANS_TY_%_APP_%-TEXT'
           OR SCREEN-NAME = 'TRANS_ID' OR SCREEN-NAME = '%_TRANS_ID_%_APP_%-TEXT'
           OR SCREEN-NAME = 'TRANS_RK' OR SCREEN-NAME = '%_TRANS_RK_%_APP_%-TEXT'."EOC BY ANKITA
            SCREEN-ACTIVE = 0.
          ENDIF.
        ENDIF.
        IF R2 = 'X'.
          IF SCREEN-NAME = 'FLN' OR SCREEN-NAME = '%_FLN_%_APP_%-TEXT' OR
             SCREEN-NAME = 'BTC'  OR SCREEN-NAME = '%_BTC_%_APP_%-TEXT' OR
             SCREEN-NAME = 'PREPBY' OR SCREEN-NAME = '%_PREPBY_%_APP_%-TEXT'
             OR SCREEN-NAME = 'APROBY' OR SCREEN-NAME = '%_APROBY_%_APP_%-TEXT'
             OR SCREEN-NAME = 'PY_DT' OR SCREEN-NAME = '%_PY_DT_%_APP_%-TEXT' "SOC BY ANKITA
             OR SCREEN-NAME = 'ORG_ID' OR SCREEN-NAME = '%_ORG_ID_%_APP_%-TEXT'
             OR SCREEN-NAME = 'ORG_AC' OR SCREEN-NAME = '%_ORG_AC_%_APP_%-TEXT'
             OR SCREEN-NAME = 'DEPT_CD' OR SCREEN-NAME = '%_DEPT_CD_%_APP_%-TEXT'
             OR SCREEN-NAME = 'REF_NO' OR SCREEN-NAME = '%_REF_NO_%_APP_%-TEXT'
             OR SCREEN-NAME = 'PRS_BNK' OR SCREEN-NAME = '%_PRS_BNK_%_APP_%-TEXT'
             OR SCREEN-NAME = 'TRANS_TY' OR SCREEN-NAME = '%_TRANS_TY_%_APP_%-TEXT'
             OR SCREEN-NAME = 'TRANS_ID' OR SCREEN-NAME = '%_TRANS_ID_%_APP_%-TEXT'
             OR SCREEN-NAME = 'TRANS_RK' OR SCREEN-NAME = '%_TRANS_RK_%_APP_%-TEXT'."EOC BY ANKITA
            SCREEN-ACTIVE = 0.
          ENDIF.
        ENDIF.
        IF R3 = 'X'.
          IF SCREEN-NAME = 'PREPBY' OR SCREEN-NAME = '%_PREPBY_%_APP_%-TEXT'
            OR SCREEN-NAME = 'APROBY' OR SCREEN-NAME = '%_APROBY_%_APP_%-TEXT'
            OR SCREEN-NAME = 'PY_DT' OR SCREEN-NAME = '%_PY_DT_%_APP_%-TEXT' "SOC BY ANKITA
            OR SCREEN-NAME = 'ORG_ID' OR SCREEN-NAME = '%_ORG_ID_%_APP_%-TEXT'
            OR SCREEN-NAME = 'ORG_AC' OR SCREEN-NAME = '%_ORG_AC_%_APP_%-TEXT'
            OR SCREEN-NAME = 'REF_NO' OR SCREEN-NAME = '%_REF_NO_%_APP_%-TEXT'
            OR SCREEN-NAME = 'DEPT_CD' OR SCREEN-NAME = '%_DEPT_CD_%_APP_%-TEXT'
            OR SCREEN-NAME = 'PRS_BNK' OR SCREEN-NAME = '%_PRS_BNK_%_APP_%-TEXT'
            OR SCREEN-NAME = 'TRANS_TY' OR SCREEN-NAME = '%_TRANS_TY_%_APP_%-TEXT'
            OR SCREEN-NAME = 'TRANS_ID' OR SCREEN-NAME = '%_TRANS_ID_%_APP_%-TEXT'
            OR SCREEN-NAME = 'TRANS_RK' OR SCREEN-NAME = '%_TRANS_RK_%_APP_%-TEXT'."EOC BY ANKITA
            SCREEN-ACTIVE = 0.
          ENDIF.
        ENDIF.
        IF R4 = 'X'.
          IF SCREEN-NAME = 'PREPBY' OR SCREEN-NAME = '%_PREPBY_%_APP_%-TEXT'"SOC BY ANKITA
             OR SCREEN-NAME = 'APROBY' OR SCREEN-NAME = '%_APROBY_%_APP_%-TEXT'
             OR SCREEN-NAME = 'BTC'  OR SCREEN-NAME = '%_BTC_%_APP_%-TEXT'."EOC BY ANKITA
            SCREEN-ACTIVE = 0.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    START-OF-SELECTION.
      SELECT SINGLE * FROM T549Q WHERE PERMO = '01'
                                 AND   PABRJ = PRD+0(4)
                                 AND   PABRP = PRD+4(2).
      FR_DT = T549Q-BEGDA.
      TO_DT = T549Q-ENDDA.
      CONCATENATE FR_DT0(4) FR_DT4(2) INTO FR_P.
      CONCATENATE TO_DT0(4) TO_DT4(2) INTO TO_P.
      PN-PAPER = PRD.
      PN-PERMO = '01'.
    GET PERNR.
      RP-PROVIDE-FROM-LAST P0003 SPACE PN-BEGDA PN-ENDDA.
      RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
      IF PNP-SW-FOUND EQ 1.
       SN = SN + 1.
       ITAB1-SNO = SN.
       ITCC-SNO = SN.
        ITAB1-ENO = PERNR-PERNR.
        ITAB1-NAM = PERNR-ENAME.
      ELSE.
        REJECT.
      ENDIF.
      RP-INIT-BUFFER.
      RP-SEL-CALC.
      CALL FUNCTION 'RP_EVALUATION_PERIODS'
        EXPORTING
          LAST_CALCULATED_DAY = P0003-ABRDT
          LAST_DAY_IN_PERIOD  = TO_DT
          RETROCALCULATED_DAY = RP-SEL-CALC-RRDAT
        TABLES
          DIR                 = RGDIR
          EVP                 = EVP
        EXCEPTIONS
          RGDIR_EMPTY         = 1
          INTERNAL_ERROR      = 2
          OTHERS              = 3.
      DESCRIBE TABLE EVP LINES LIN.
      IF LIN > 0.
        LOOP AT EVP.
          IF EVP-IAPER = TO_P AND EVP-PAPER = TO_P.
            RX-KEY-PERNR = PERNR-PERNR.
            UNPACK EVP-SEQNR TO RX-KEY-SEQNO.
            RP-IMP-C2-TN.
            READ TABLE BT INDEX 1.
            READ TABLE WPBP INDEX 1.
            READ TABLE TAX INDEX 1."CHANGES BY ANKITA
            ITAB1-BAC = BT-BANKN.
            ITAB1-BKEY = BT-BANKL .
            ITAB1-DEP = WPBP-KOSTL.
            ITAB1-BETRG = BT-BETRG."CHANGES BY ANKITA
            ITAB1-TAXID = TAX-TAXID."CHANGES BY ANKITA
            YEAR = VERSC-PAYDT+0(4) - 11.
            MONTH = VERSC-PAYDT+4(2).
            DAY = VERSC-PAYDT+6(2).
            CONCATENATE YEAR MONTH DAY INTO ITAB1-PDT.
           ITAB1-PDT = VERSC-PAYDT - 110000.
            ITCC-DEP = WPBP-KOSTL.
            LOOP AT RT WHERE LGART = '/559'.
              ITAB1-BTFR = RT-BETRG.
              ITCC-BTFR = RT-BETRG.
             IF EVP-SRTZA = 'P'.
               ITAB1-BTFR = ITAB1-BTFR - RT-BETRG.
             ELSE.
               ITAB1-BTFR = ITAB1-BTFR + RT-BETRG.
             ENDIF.
            ENDLOOP.
          ENDIF.
        ENDLOOP.
      ENDIF.
      APPEND: ITAB1, ITCC.
      CLEAR: ITAB1, ITCC.
    END-OF-SELECTION.
      CONCATENATE 'Prepared By:' ` ` PREPBY INTO PREPBY.
      CONCATENATE 'Approved By:' ` ` APROBY INTO APROBY.
      IF R1 = 'X'.
        FORMAT COLOR 2.
        ULINE (127).
        NEW-LINE.
        WRITE: 2 'Sr No.', 10 'Emp Num', 27 'Name'.
        WRITE: 57 'Department'.
        WRITE: 72 '  Transfer Amount' RIGHT-JUSTIFIED.
        WRITE: 92 'Bank Key', 107 'Bank AC. Number'.
        WRITE:1 '|', 8 '|', 25 '|', 55 '|', 70 '|', 90 '|', 105 '|', 127 '|'.
        NEW-LINE.
        ULINE (127).
        NEW-LINE.
        FORMAT COLOR OFF.
        LOOP AT ITAB1.
          SN = SY-TABIX.
          WRITE: 2 SN, 10 ITAB1-ENO, 27 ITAB1-NAM.
          WRITE: 57 ITAB1-DEP.
          WRITE: 72 ITAB1-BTFR.
          WRITE: 92 ITAB1-BKEY, 107 ITAB1-BAC.
          WRITE: 1 '|', 8 '|', 25 '|', 55 '|', 70 '|', 90 '|', 105 '|', 127 '|'.
          ULINE (127).
          NEW-LINE.
        ENDLOOP.
        SKIP 4.
        ULINE 90(32).
        NEW-LINE.
        WRITE: 90 PREPBY.
        SKIP 4.
        ULINE 90(32).
        NEW-LINE.
        WRITE: 90 APROBY.
      ENDIF.
      IF R2 = 'X'.
        LOOP AT ITCC.
          COLLECT ITCC INTO ITCOL.
        ENDLOOP.
        FORMAT COLOR 2.
        ULINE (44).
        NEW-LINE.
        WRITE:2 'Sr No.', 9 'Department'.
        WRITE: 27 'Transfer Amount  ' RIGHT-JUSTIFIED.
        WRITE:1 '|', 8 '|', 25 '|', 44 '|'.
        NEW-LINE.
        ULINE (44).
        NEW-LINE.
        FORMAT COLOR OFF.
        LOOP AT ITCOL.
          SN = SY-TABIX.
          WRITE: 2 SN, 9 ITCOL-DEP, 27 ITCOL-BTFR.
          WRITE:1 '|', 8 '|', 25 '|', 44 '|'.
          NEW-LINE.
          ULINE (44).
          NEW-LINE.
        ENDLOOP.
      ENDIF.
      IF R3 = 'X'.
        LOOP AT ITAB1.
          CLEAR: ITTF, P3, P11, P13, P6, V_BAC.
          LEN = STRLEN( ITAB1-BKEY ).
          IF LEN < 3.
            CONCATENATE ITAB1-BKEY '***' INTO P3.
          ELSE.
          LEN = LEN - 3.
            LEN = 3.
            P3 = ITAB1-BKEY+LEN(3).
          ENDIF.
          CLEAR LEN.
          V_BAC = ITAB1-BAC.
          REPLACE ALL OCCURRENCES OF '-' IN ITAB1-BAC WITH ''.
          CONDENSE ITAB1-BAC NO-GAPS.
          LEN = STRLEN( ITAB1-BAC )."if length of acc num > limit
          IF LEN > 11.
            IT_FAIL-EN = ITAB1-ENO.
            IT_FAIL-BA = V_BAC.
            APPEND IT_FAIL.
            CLEAR: IT_FAIL.
            CONTINUE.
          ENDIF.
          P11 = ITAB1-BAC.
          CONCATENATE P11 '***********' INTO P11.
    above step is for putting '' in place of unfilled chars of P11.
          P13 = ITAB1-BTFR * 100.
          P6 = ITAB1-PDT+2(6).
          CONCATENATE ` ` P3 P11 BTC P13 P6 INTO STR.
          ITTF-ROW = STR.
          APPEND ITTF.
        ENDLOOP.
        IF ITTF[] IS NOT INITIAL.
          CONCATENATE FLN SY-DATUM SY-UZEIT '.txt' INTO FILEPATH.
          CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            FILENAME                        = FILEPATH
            FILETYPE                        = 'ASC'
         WRITE_FIELD_SEPARATOR           = 'X'
            TABLES
            DATA_TAB                        = ITTF
         OTHERS                          = 22
          SKIP 2.
          IF SY-SUBRC <> 0.
            WRITE:/ 'Unable to Download file at ', FILEPATH.
          ELSE.
            WRITE:/ 'File with following data downloaded at ', FILEPATH.
            NEW-LINE.
            SKIP 2.
            LOOP AT ITTF.
              WRITE:/ ITTF.
            ENDLOOP.
          ENDIF.
        ELSE.
          WRITE 'No Data, no file was downloaded'.
        ENDIF.
        IF IT_FAIL[] IS NOT INITIAL.
          SKIP 2.
          FORMAT COLOR 2.
          WRITE 'Acc. No. of following employees exceeded the length limit'.
          WRITE:/ 'So their entry was not created in the file'.
          SKIP 1.
          WRITE : 'Employee Number', 20 'Bank Acc. No.'.
          FORMAT COLOR OFF.
          LOOP AT IT_FAIL.
            NEW-LINE.
            WRITE : IT_FAIL-EN, 20 IT_FAIL-BA.
          ENDLOOP.
        ENDIF.
      ENDIF.
      IF R4 = 'X'."CHANGES BY ANKITA
        WRITE:/ 'ERROR LOG - BANK A/C NO. CONTAINS ALPHANUMERIC'.
        WRITE:/ 'EMPID' COLOR COL_POSITIVE,12 '|',15 'Receiving Bank Code' COLOR COL_POSITIVE,
                                                                      40 '|','Receiver A/C No' COLOR COL_POSITIVE.
        PERFORM EXTRACT_DATA.
        SKIP 2.
      ENDIF."EOC
      RP-READ-PAYROLL-DIR.
    Edited by: ANKITA BHARDWAJ on Dec 9, 2009 10:36 AM

  • Difference between DOWNLOAD and GUI_DOWNLOAD

    hi
    let me know the difference between DOWNLOAD and GUI_DOWNLOAD  and    giv me clear  idea  of wat  and wat not should be done with respect to  conversion  from download to gui_Download??????
    give me clear process of  putting my download  data  into my  own defined file name ..  during   manual   and    backgrnd job. process..
    thanks inadvance

    Hi Shaik,
    DOWNLOAD function module is obsolete now and DOWNLOAD as well as WS_DOWNLOAD should be replaced by GUI_DOWNLOAD function module.
    The only matter you need to be careful off is mapping the parameters correctly.
    Also, you have asked "during manual and backgrnd job. process.. " , well GUI_DOWNLOAD or any download module for downloading to Presentation server CANNOT be used in the background.
    Because background work processes are run on application server level and do not have access to the desktop of any PS.
    For downloading to the presentation server essentially, pass the contents of internal table to DATA_TAB tables parameter and pass the presentation server file name to FILENAME importing parameter.
    Cheers,
    Aditya

  • After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous peopl

    After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous people call and ask why I didn't reply to their texts...and I look, but have not received any new texts. YES, I have restarted phone. I have cleared data as well as cache on all apps. I have downloaded the vzw messaging app, which seems silly, since it happens with several different processes and apps, but all to no avail. I am missing texts from my employer, from my family. This did happen, but rarely, before this "soak test". It is now Kitkat version 19.6.3.obake_verizon.en.US. THIS is when I started having problems...like 50 times a day kind of problems! I have seen hundreds of posts all over the internet over the past 3 days. Does no one know how to fix this??? Shouldn't there be a way to revert phone to a pre-update state? and no, hard reset did NOT work!!!! I have been with verizon for well over 15 years, but I have not upgraded my lines and will not in July either. This is ridiculous. It's not like my games aren't working, it is my messaging and "android os"...my lifeline at work!

    kristinaf333,
    Oh no, I am sorry to hear your messages are not working since the software update. I greatlly appreciate doing all that troubleshooting to try and get the messaging application back in business. I know how much I rely on my messages so I can understand the urgency to get this resolved. Have you had a resolution ticket opened since you started experiencing issues with your messages? Does this happen with all contacts or just some? Please provide additional information to ensure we get to the bottom of this for you.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • My Macbook Pro was stolen, and I have replaced it with a Macbook Air. New hard drive is too small for a Time Machine restore. How do I restore my more-expensive apps (ie iWorks) on my new Macbook without repurchasing them?

    My Macbook Pro was recently stolen, and I have replaced it with a Macbook Air. I attempted to simply do a restore from the Macbook Pro's Time Machine backup, but since the new Macbook Air's hard drive is significantly smaller, a Time Machine restore was not possible. I even tried to choose only settings or only my User Profile (option) when restoring, but the backup was still too large to do a restore onto the new machine. How do I restore my more-expensive apps (ie iWorks) onto my new Macbook without repurchasing them? Also, I reaad somewhere that if you went to the Mac App Store and attempted to repurchase the app and clicked BUY, it would simply alert you that you have already purchased the app (and trigger a re-download)... NOT THE CASE... So I just dropped another $19.99 for a second copy of Pages... Not my intention....
    Any help would be greatly appreciated.
    LM

    you should get a usb backup drive as well.  time machine has limited use in my eyes. it saves things. but older things can be errased ad space drops without telling you
    nothing beats data redundancy.  2 saves is. 1.    and 1 is none
    im personally not fond of time machne though i use it only for a recovery parameter for a mac
    id never ever myself consider time machine a genuine data backup tool.  though most do consider it as such
    drive clones such as superduper and carbon copy cloner can clone your entire drive for emergency recovery.  and you can boot from them as well o. another mac

  • A family member has given me her iPhone. How do I delete her Apple ID and replace it with my own

    A family member has given me her iPhone. How do I delete her Apple ID and replace it with my own ?

    Any Apps that have been downloaded with her Apple ID will remain Tied to that ID...
    You should consider doing a Restore as New and start over with your ID...
    Connect the Device to the iTunes library on your Computer, click on the Device tab that appears in iTunes and click Restore.
    http://support.apple.com/kb/HT1414

  • Replace Null With 0 in Pivot Table in a BI Publisher Report (Not OBIEE Answ

    I have a problem with nulls in a pivot table. I got a measure column in my BI Answers analysis and I made a report with a model based in this analysis. When I add a pivot table to my report the 0 measures don't display.
    In first place I found that there's a bug (13054445). I download and ran the patch, then I tried editing data format in my analysis column and in BI Answers and this worked. The 0 displays correctly, but in the report it's still not displaying.
    I tried editing the formula in the analysis with:
    IFNULL(column,0)
    CASE WHEN column IS NULL THEN 0 ELSE column END
    CASE WHEN column IS NOT NULL THEN column ELSE 0 END
    IFNULL(cast("column"as varchar (10)), '0')
    And nothing works
    When I tried this: CASE WHEN column IS NULL THEN 0 ELSE 656565656 END
    in the report the 6565656565 display correctly but the 0 still doesn't display.
    Does anybody know if that is a bug? Or does another option exist that can I try?

    Hi,
    Following on with this post, I followed the document posted and the formula worked fine. I was able to replace nulls with strikethrough in a pivot table. Since combining the report into a compound layout, the strikethrough has reverted back to nulls. Even when just viewing the pivot table, the same applies.
    I have double checked the column properties and the condition(is null) and formatting(strikethrough) still exists but does not take effect in the pivot table.
    I hav also checked that no data exists in the fact table under the null categories and they are true.
    Can anyone help with this problem, I have also removed the condition and re-applied but still face the same problem.
    Thanks

  • Mac Pro 3,1 - did my hard drive die? And what should I replace it with?

    Hi,
    I inherited my late husband's 2008 Mac Pro (3,1 model) which had 2 x 500GB hard drives in it and 6GB of RAM. I filled the remaining hard drive bays with 1TB drives (I take a lot of video so needed the extra space). The boot drive was partitioned 50/50 in Boot Camp. I've upgraded the RAM to 10GB and I am currently running Lion.
    Today, while doing something as innocuous as scrolling down a web page, the bottom half of my screen went black and the top half began flashing wildly. When it  stopped after several seconds, the mouse would not respond and I could not click on anything. If flashed a bit more, and then I had mouse control back but could not click on anything - web links, applications, finder. After waiting patiently but getting nowhere, I powered the machine down manually, and when I re-started it, it failed to boot. The chime sounded, the apple appeared, and the little revolving wheel, but at the point where the screen would normally go blue then display the desktop, it just went white. The fans spin, but otherwise it's very silent.
    I tested with a second display, got the same issue. I tried booting to recovery mode but it went back to the white screen. I could start in target mode, and there were no issues with flickering screen, so I don't think it's the graphics card. Then I tried browsing to the hard drive over the network, but it wasn't showing on the PC network page, nor could I connect to it via the home theater system, which I can normally do as the streaming app launches on start-up. I am assuming this means the drive has failed? It's the original, and we bought the machine when they were new to the market, so is a good 5 years old. It contains not only the boot drive but my documents, photos, websites, selected videos, all of which are backed up on the Time Capsule, and I was in the process of uploading to cloud backup as well (although not very far along, due to data cap and slow international upload speeds). I had no warning it was about to do this, but then I guess sometimes you don't!
    Assuming I need to replace the drive, would it be worth replacing it with an OWC Mercury Electra 480GB SSD in an Icy Dock sled? Or would that be overkill for such an old machine? Would getting a standard 7200 WD Caviar HDD or similar give me enough of a speed boost? Obviously I am rather enamoured with the idea of a blazing fast SSD but I'd have to import it (not available locally) so I don't want to shell out all that money unless it's really going to make a massive difference.
    Is there anything else I would need to know about using an SSD over a HDD? I assume I would fire it up the normal way - install it, boot from my Snow Leopard install disc (I downloaded Lion from the App Store) format it, clean install SL, then re-update to Lion, then restore my Time Machine backup? Am I likely to experience any weird issues due to it being an SSD? I see talk online of firmware problems and something called TRIM that I don't know anything about. If it's most likely that I can install it and rock on as normal, then I'm pretty keen, but if there's a reasonable probability of it being temperamental, I probably wouldn't be willing to deal with that (and therefore go the HDD route instead). Therefore I am very keen to hear people's opinions and experiences.
    Sorry for the terribly long ramble. The more I have researched this, the more questions it raises! All advice gratefully accepted. Thanks!

    more than likely it is your video card. If it is ATI 2600XT, tell it bye-bye. The card is barely used at all in TDM or Safe Boot Mode. The 2600 and Lion and the issues with that card, even if it seems okay, is not.
    Depending on Windows OS as to how it mounts and sees your Lion HFSX (there is a nice HFSX driver from Paragon, and an NTFS driver for Lion too)
    480GB SSD is overkill for any system unless you are pushing CS6 2-3GB images and then for scratch. All you need for a boot drive is about 100GB.
    If you have an SSD now, then 1) you need to do a full image backup and restore (regularly as maintenance), and 2) TRIM Enabler
    Save Lion and you can always do a clean Lion install w/o going back to SL - but you might want to keep SL (dual boot) and handy if you run into anything you still need that required PowerPC/Rosetta
    FBDIMM RAM dies, Amazon has $32 kits of 4GB. And having all 8 DIMM slots filled improves things. If you need or want to and feel 16GB isn't overkill.
    SSD and issues are always possible. you should not just go along. not without a clone image. And you should have another drive w/ TRIM Enabler so that you can do a repair and "trim" what is needed.
    Clone a system with CCC regularly. Bootable. And can also be used by Setup Assistant.
    Install Lion over a heavily used SL system and there are likely remnants of old things that get in the way and left in there and not removed.

  • I I have a late 2005 power PC G5 that I want to bring back to life.  I need to replace the original hard drive, a Maxtor 250 GB Sata.  Can I replace it with modern drives, SATA 5-6 etc?

    I have a late 2005 power PC G5 that I want to bring back to life.  I need to replace the original hard drive, a Maxtor 250 GB Sata.  Can I replace it with modern drives, SATA 5-6 etc?

    I knew I should never get rid of my old G5's.  By the way, there is a browser still supported for the PPC, TenFourFox, if you're not using it already.  Go to the Floodgap website (they author it)  download it for free.  The only thing it doesn't support is the Flash plugin, but the browser works great. Other video types are supported.  It's based on Firefox, and runs most of the plugins and add-ons. It's very fast, and beats all other browsers on the browser compatibility and speed test.  That's now my default on my G5's.  Firefox and Safari are no longer supported.  As far as the OS, both Tiger and Leopard were solid for me.  The reason, as I stated before, was iMovie.  The version in Tiger with iLife was far superior to what Apple changed it to.  They 'dumbed it down' for the masses.  Even the newest iLife 11 on my Mac Pro quad isn't is good, in my opinion.  So Leopard should be fine for you.  It's a much larger browser in terms of sheer megabytes and disk space, but it's fine.  As far as getting an OS disc, I'm seeing Tiger for about $45.00, Leopard for $50 - 60.00 on that famous auction site.  As far as RAM, I have 8GB in my G5 2.3, but you should check Activity Monitor when you are running your apps.  See how much green slice you have left (unused RAM).  You might find you don't need eight.  A Mac Pro will grab more free RAM than a PPC machine will.  I have a hard time maxing out use of my 8 on the PPC.  Not true with the eight on my Mac Pro.  The OS doesn't hesitate to grab and use it.  You might be OK with 6GB on your PPC. More will not make you faster, as long as you still have free RAM available.  As far as backup on your resurrected machine:  look for a firewire enabled backup if can.  Use CCC (Carbon Copy Cloner) and make a clone backup.  Next time your PPC machine wipes out the hard drive, just take your Firewire drive and plug it into another PPC machine, and you can select it as your boot drive. You'll be back and running in five minutes.  You can also take the physical drive out of your enclosure, and put it in your tower to replace the failed drive, and you'll be back to where you were in less than ten minutes, OS and all.  The PowerMac has an 800 port, so you can do the 800 on the machine to an 800 port on your backup. A firewire 800 to 800 cable is only about $8.00.  It runs nice and fast through the 800 port.  I like the OWC Mercury Extreme enclosures.  They use USB, Firewire 800, and eSATA, so all your options are open.

  • Problem with Gui_download using ASC File type - japanese characters

    Hi,
    During upgrade,while downloading data for japanese characters using GUI_DOWNLOAD Function module with file type as 'ASC', the space between 2 fields data getting much wider compared to 4.6C Version ws_download Function module's  data.
    Example: the gap between first field data and second field data in ECC 6.0 is 6 characters length,but in 4.6C it is 2 characters length.
    Is there any possibility to get the results similar to 4.6c version.Please give your valueable suggestions.
    Thanks
    BalaNarasimman

    Hi Sandra
    Please find the detailed information for your questions.
    1.Internal table content before download:During Debugging,it was observed that internal table content was same in both versions.For testing,i used only brand new data(Transaction entry).
    2.Download with code Page conversion:Yes,codepage parameter 4103 was explicitly passed into GUI_DOWNLOAD Function module.Also the front end code page which is used by system is 4110 . No errors occured.
    3.System is an Unicode system only.
    4.Actually this 6 character does not refer the byte value,only the gap between 2 fields data is getting referred in ECC 6.0.Please find the below example.
    Example - File data after Download:
    ECC 6.0: Field1            Field2      (gap - 6 characters space between 2 fields data)  Using GUI_Download
    data       u0152©Ïu201Dԍu2020      EN                               
         4.6C: Field1            Field2       (gap - 2 characters space between 2 fields data) Using WS_Download
         data    u0152©Ïu201Dԍu2020  EN    
    Note:Special characters are Japanese characters:

Maybe you are looking for