‎2007 Jul 12 1:22 PM
Encoding and compressing a file
Posted: Jul 12, 2007 2:10 PM Reply E-mail this post
Hello all,
My requirement is to compress a file in .gz as well as to encode a particular file in ISO-8859-1 forrmat and send it to the application server.
this is what i am doing:
DATA: l_sap_code_page TYPE cpcodepage.
CALL FUNCTION 'SCP_CODEPAGE_BY_EXTERNAL_NAME'
EXPORTING
external_name = 'iso-8859-1'
KIND = 'H'
IMPORTING
sap_codepage = l_sap_code_page
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
.
OPEN DATASET g_file_header FOR OUTPUT filter 'compress'
IN LEGACY TEXT MODE CODE PAGE l_sap_code_page.
_____________________________________________________________
in this can u tell me in which format my compressed file will be generated as well as the encoding done by me is correct or not?
and if the compressed file is not .gz type then how to make is .gz
urgent
‎2007 Jul 12 4:31 PM
Hi,
For making compress
Use class CL_ABAP_GZIP
otherwise use SM59
in the command line u can send :
POWERARC -a -c4 data.ZIP c:\sap_arc\*.*
aRs
‎2007 Jul 12 4:31 PM
Hi,
For making compress
Use class CL_ABAP_GZIP
otherwise use SM59
in the command line u can send :
POWERARC -a -c4 data.ZIP c:\sap_arc\*.*
aRs