Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in downloading data to presentation server

PS_1978
Active Participant
0 Likes
624

Hi All,

I am downloading some data into presentation server by using the function module, 'GUI_DOWNLOAD'. When I execute the program, the file got generated in the presentation server successfully except the value of 1 field. This is related to customer name, where a constant <b>&#1054;&#1040;&#1054; "&#1057;&#1040;&#1053; &#1048;&#1085;&#1090;&#1077;&#1088;&#1073;&#1088;&#1102; &#1059;&#1082;&#1088;&#1072;&#1080;&#1085;&#1072;"</b> has to be passed. When i see the internal table in debugging mode, it has the correct value. but when the value is generated in the presentation server, all the above characters are converted to '#'. I think this is due to <b>Replacement Character for Non-Convertible Characters</b>. Is there a way to extract the original text <b>&#1054;&#1040;&#1054; "&#1057;&#1040;&#1053; &#1048;&#1085;&#1090;&#1077;&#1088;&#1073;&#1088;&#1102; &#1059;&#1082;&#1088;&#1072;&#1080;&#1085;&#1072;"</b> in place of '#'?

Thanks in advance,

Regards,

Phani.

Hi All,

I am downloading some data into presentation server by using the function module, 'GUI_DOWNLOAD'. When I execute the program, the file got generated in the presentation server successfully except the value of 1 field. This is related to customer name, where a constant <b>&#1054;&#1040;&#1054; "&#1057;&#1040;&#1053; &#1048;&#1085;&#1090;&#1077;&#1088;&#1073;&#1088;&#1102; &#1059;&#1082;&#1088;&#1072;&#1080;&#1085;&#1072;"</b> has to be passed. When i see the internal table in debugging mode, it has the correct value. but when the value is generated in the presentation server, all the above characters are converted to '#'. I think this is due to <b>Replacement Character for Non-Convertible Characters</b>. Is there a way to extract the original text <b>&#1054;&#1040;&#1054; "&#1057;&#1040;&#1053; &#1048;&#1085;&#1090;&#1077;&#1088;&#1073;&#1088;&#1102; &#1059;&#1082;&#1088;&#1072;&#1080;&#1085;&#1072;"</b> in place of '#'?

Thanks in advance,

Regards,

Phani.

4 REPLIES 4
Read only

abdul_hakim
Active Contributor
0 Likes
598

hi

can you plz paste ur code here so that we can give a better response..

Cheers,

Hakim

Read only

PS_1978
Active Participant
0 Likes
598

Here it is...


LOOP AT p_i_reguh INTO lwa_reguh.
        PERFORM f_fill_work_area_ing USING    lwa_reguh
                                              lwa_lfa1
                                              lwa_t001z
                                              lwa_banka
                                              lwa_zbank
                                              lv_zaldt
                                              lv_valut
                                     CHANGING lwa_file.
        APPEND lwa_file TO li_ing.
clear: lwa_reghu.
ENDLOOP. 

  IF NOT li_ing[] IS INITIAL.
    CLEAR: lv_fname.
    CONCATENATE p_lfname '' 'ING.TXT'
           INTO lv_fname.
*   Routine to generate ING bank file to presentation server
    PERFORM f_write_data_to_presen TABLES li_ing
                                    USING lv_fname.
  ENDIF.

FORM f_fill_work_area_ing  USING    p_lwa_reguh TYPE t_reguh
                                    p_lwa_lfa1  TYPE t_lfa1
                                    p_lwa_t001z TYPE t_t001z
                                    p_lwa_banka TYPE t_bnka
                                    p_lwa_zbank TYPE t_bnka
                                    p_lv_zaldt  type c
                                    p_lv_valut  type c
                           CHANGING p_lwa_file  type t_file.

* Local variables
  DATA: lv_decml(2)   TYPE c,
        lv_rwbtr(18)  TYPE c,
        lv_words(255) TYPE c.

  lv_rwbtr = p_lwa_reguh-rwbtr.

  SPLIT lv_rwbtr AT c_dot
   INTO lv_rwbtr lv_decml.

* Routine to convert digits into words
  PERFORM f_convert_digits_words USING    p_lwa_reguh
                                 CHANGING lv_words.

  IF p_lwa_reguh-rwbtr LT 0.
    CONCATENATE lv_rwbtr lv_decml
           INTO lv_rwbtr
      SEPARATED BY c_comma.

    CONCATENATE c_minus lv_rwbtr lv_decml
           INTO lv_rwbtr.
  ELSE.
    CONCATENATE c_minus lv_rwbtr lv_decml
           INTO lv_rwbtr
      SEPARATED BY c_comma.
  ENDIF.
  CONDENSE lv_rwbtr NO-GAPS.

  CONCATENATE p_lwa_reguh-vblnr
              p_lv_zaldt
              p_lv_valut
              p_lwa_t001z-paval
              text-001        " &#1054;&#1040;&#1054; "&#1057;&#1040;&#1053; &#1048;&#1085;&#1090;&#1077;&#1088;&#1073;&#1088;&#1102; &#1059;&#1082;&#1088;&#1072;&#1080;&#1085;&#1072;"
              p_lwa_reguh-land1
              p_lwa_reguh-ubnky
              p_lwa_banka-banka
              p_lwa_reguh-ubknt
****************************************************************
* Check the amount format in extracted file... ',' should be the
* decimal separator
****************************************************************
              lv_rwbtr
              p_lwa_lfa1-stcd2
              p_lwa_reguh-znme1
              p_lwa_reguh-zland
              p_lwa_reguh-zbnky
              p_lwa_zbank-banka
              p_lwa_reguh-zbnkn
****************************************************************
* Have to fill two more fields Amount in words
* & Purpose of Payment
****************************************************************
         INTO p_lwa_file
    SEPARATED BY c_tab_delim.

  CLEAR: lv_rwbtr, lv_words,  lv_decml.

ENDFORM.                    " f_fill_work_area_ing

FORM f_write_data_to_presen  TABLES   p_li_ing
                              using   p_lv_fname.

* Local variables
  DATA: lv_msg(50) TYPE c,
        lt_datatab TYPE STANDARD TABLE OF t_file.

* Function module to generate file on presentation server
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = p_lv_fname
      confirm_overwrite       = c_x
    TABLES
      data_tab                = p_li_ing
    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.
ENDFORM.                    " f_write_data_to_presen

Regards,

Phani

Message was edited by:

Sivapuram Phani Kumar

Read only

PS_1978
Active Participant
0 Likes
598

Solved it on my own

Read only

Former Member
0 Likes
598

Could you please post your solution? I am having similar problems and was wondering what you did to resolve this.

Sandra