2013 Mar 22 6:36 AM
Hi,
I was trying to upload one file in application server. I wrote the below code.
OPEN DATASET lv_app_down FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
LOOP AT pt_table ASSIGNING <fs_table>.
TRANSFER <fs_table> TO lv_app_down.
ENDLOOP.
ELSE.
In debug mode I checked that the field symbol <fs_table> has proper value with 42 columns. But after the execution the file is having only 40 columns. Any guess why this is happening..
Thanks,
Supratik
2013 Mar 22 12:57 PM
Hi Supratik,
Use Command CONDENSE before populating the data of table pt_table.
It should work then.
Thanks and Regards,
Debopriya Ghosh
Hi,
I was trying to upload one file in application server. I wrote the below code.
OPEN DATASET lv_app_down FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
LOOP AT pt_table ASSIGNING <fs_table>.
TRANSFER <fs_table> TO lv_app_down.
ENDLOOP.
ELSE.
In debug mode I checked that the field symbol <fs_table> has proper value with 42 columns. But after the execution the file is having only 40 columns. Any guess why this is happening..
Thanks,
Supratik
2013 Mar 22 7:23 AM
2013 Mar 22 7:46 AM
2013 Mar 22 7:52 AM
I have used close dataset. But still its not working. Below is the code for my subroutine
FORM f_dump_application_server USING pv_prog_name TYPE string
pt_table TYPE table.
DATA: lv_app_down TYPE string.
FIELD-SYMBOLS: <fs_table> TYPE any.
* Generating download file paths
PERFORM f_generate_phy_file USING pv_prog_name
CHANGING lv_app_down.
OPEN DATASET lv_app_down FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
LOOP AT pt_table ASSIGNING <fs_table>.
TRANSFER <fs_table> TO lv_app_down.
ENDLOOP.
ELSE.
MESSAGE s944(zmtw_fr) DISPLAY LIKE 'E' WITH lv_app_down.
ENDIF.
CLOSE DATASET lv_app_down.
ENDFORM. " F_DUMP_APPLICATION_SERVER
2013 Mar 22 8:23 AM
Hi,
Is there any seperator to identify number of columns? May be the last 2 column values are blank because of which you are not able to see.
Regards,
Swarna
2013 Mar 22 12:57 PM
Hi Supratik,
Use Command CONDENSE before populating the data of table pt_table.
It should work then.
Thanks and Regards,
Debopriya Ghosh
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |