2024 Feb 26 5:30 AM
Hello Gurus,
I want to Compress the string value before storing in DB table to save disk space. Currently I am using cl_abap_gzip=compress_text & cl_abap_gzip=compress_binary to compress string, but I don't see great results . Could any one please suggest , is there any other Compression mechanism available in S/4HANA ? Thanks.
2024 Feb 26 1:59 PM
2024 Feb 27 3:49 AM
2024 Feb 29 12:08 PM
2024 Feb 27 2:27 PM
2024 Feb 26 4:25 PM
2024 Feb 27 3:38 AM
HI @RaymondGiuseppi . Its Transparent Table and Field type string.
2024 Feb 27 2:58 PM
You should not be allowed to compress a string field, look for some binary type such as RAWSTRING, but handle the compress/uncompress at every read/write statement.
Using an export/import you can use the COMPRESS option, and uncompress will be automatic.
2024 Feb 27 6:49 PM
@RaymondGiuseppi Currently I am using rawstring to store compressed format. I have doubt on uncompress. How to uncompress back to string.
2024 Feb 28 3:29 PM - edited 2024 Feb 28 4:31 PM
If you used method COMPRESS_TEXT before write, then use DECOMPRESS_TEXT aftrer read (CSEQUENCE can be C or STRING, XSEQUENCE can be X or XSTRING. DDIC RAWSTRING is XSTRING)