cancel
Showing results for 
Search instead for 
Did you mean: 

ABPA code to compress table into a table of fixed-length strings

Former Member
0 Kudos
179

Hi all,

I need to compress a large, sparse table into a table of fixed-length strings in my ABAP code, and then uncompress it. Is there a standard format or facility to do this? I seem to remember a function that does this, but any other hints would be appreciated.

Thank you in advance,

Sunny

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

For example, given a table like:

Column0 Column1 Column2

-


-


-


abc C !@#&@

P

def $*(

Compress it into a table consisting of one column of fixed-length strings, like:

Column0

-


0abc1C2

!@#&@01

P20def1

2$*(

..and then uncompress it back out to the original table.

Sunny

Former Member
0 Kudos

Hi Sansanee,

u can try FM -> TABLE_COMPRESS and TABLE_DECOMPRESS

Hope ti will help u.

Regards,

Ankur

Former Member
0 Kudos

Hi Ankur,

Thank you for your reply. I am using SAP.NET connector and I found two functions below but I am not sure which one is the TABLE_COMPRESS:

GET_TABLEBLOCK_COMPRESSED_RFC GET_TABLE_BY_KEYLIST_COMPRESS

Sunny

Former Member
0 Kudos

Can you give a small example on what you want to do. I couldn't understand from the description.