Skip to Content
author's profile photo Former Member
Former Member

Upload/Download in application server

Hi All,

1) Is it possible to download integer/float data into application server ?

2) I want to download any table data to application server . but the problem is that i am passing table name at run time.

So, if table contains integer/float values, then i will have to convert it into character first and then will have to write to application server .

How can i do this...since the structure of file to be written is changing each time..

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 18, 2008 at 03:58 PM

    hi there..

    In this scenario I would suggest you to use field-symbols.

    Snippet:

    DATA : lf_buf TYPE string,
               lf_line TYPE string,
        co_line_feed TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    
        FIELD-SYMBOLS : <fs_record> TYPE ANY,<fs_comp> TYPE ANY.
        LOOP AT p_final_table ASSIGNING <fs_record>.
          DO.
            ASSIGN COMPONENT sy-index OF STRUCTURE <fs_record> TO <fs_comp>.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
            lf_buf = <fs_comp>.
            IF sy-index = 1.
              lf_line = lf_buf.
            ELSE.
              CONCATENATE lf_line lf_buf INTO lf_line SEPARATED BY c_sep.
            ENDIF.
            CLEAR lf_buf.
          ENDDO.
          CONCATENATE lf_line co_line_feed INTO lf_line.
          APPEND lf_line TO p_output_file.
          CLEAR lf_line.
        ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 04:13 PM

    Hi,

    Thanks for the code..

    I will try this logic...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.