Application Development 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: 

FM Usage

Former Member
0 Kudos
155

Hi,

I am using one FM name 'TABLE_COMPRESS'. But i can't able to trace, what i need to pass as the table parameters. There are two table parameters; IN & OUT. In OUT what i need to pass as, there is no parameters reference mentioned in the FM.

Plz suggest...

Thanks

Sangram

1 ACCEPTED SOLUTION

Former Member
0 Kudos
126

Hi,

Check this sample code.

data:compressed_size LIKE sy-index,

listobject LIKE abaplist OCCURS 10,

compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,

CALL FUNCTION 'TABLE_COMPRESS'

IMPORTING

compressed_size = compressed_size

TABLES

in = listobject

out = compressed_attachment.

4 REPLIES 4

Former Member
0 Kudos
127

Hi,

Check this sample code.

data:compressed_size LIKE sy-index,

listobject LIKE abaplist OCCURS 10,

compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,

CALL FUNCTION 'TABLE_COMPRESS'

IMPORTING

compressed_size = compressed_size

TABLES

in = listobject

out = compressed_attachment.

0 Kudos
126

Thanks

Sangram

Former Member
0 Kudos
126

Hi Sangram,

Function module TABLE_COMPRESS is obsolete - do not use the FM.

Thanks.

Former Member
0 Kudos
126

Hi,

In OUT, u have to pass a Table in which the Compressed Table has to be Stored.

Regards,

Padmam.