Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

To align the misaligned data when converted to CSV format

$
0
0

Hi All,

 

I have a requirement where the output is to be displayed s ALV grid output and at the same time , a CSV file must be downloaded in the application server.

 

For this , I have populated headers separately and data into two diff internal tables. Using the below FMs , I have converted and downloaded the file.

 

FMs used :

 

1. SAP_CONVERT_TO_TEX_FORMAT - My internal table to CSV format ( for both header and data )

 

2.  GUI_DOWNLOAD - Using the converted internal table to download the file in C\Filename.csv

 

 

 

When checked the downloaded file , the header data is displayed correctly. But the data record is misaligned.

 

Header sample ------>      PERNR      PERID     FNAME     LNAME     BEGDA     ENDDA

 

Data record

Sample ------------------->    12345678   11223344      Jory                                          12.12.2012            31.12.9999

 

 

Its misaligned something like the above .

 

Pls suggest.

 

 

Regards,

Swapna


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>