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

Encoding and compressing a file

Former Member
0 Likes
449

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

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
401

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

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
402

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