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

Replacement Function module for Table_compress.

Former Member
0 Likes
661

Hi,

I got following Function module table_compress and i have to replace it i know the replacement function module but not getting how to pass parameters can any one make a look on it and help me out.

FORM list_store USING mode TYPE c.

DATA: list_item_c LIKE list_item OCCURS 10.

DATA: BEGIN OF obj_tab OCCURS 5,

name(30),

programname(10),

END OF obj_tab.

obj_tab-name = 'LIST_ITEM_C'. APPEND obj_tab.

obj_tab-name = 'T_FIMSG'. APPEND obj_tab.

obj_tab-name = 'BUCHUNG'. APPEND obj_tab.

*

CATCH SYSTEM-EXCEPTIONS

import_mismatch_errors = 1.

IF mode = 'E'.

CALL FUNCTION 'TABLE_COMPRESS'

TABLES

in = list_item

out = list_item_c

EXCEPTIONS

OTHERS = 4.

IF sy-subrc = 0.

EXPORT (obj_tab) TO DATABASE indx(al) ID stor_nam.

ELSE.

ENDIF.

ELSE.

IMPORT (obj_tab) FROM DATABASE indx(al) ID stor_nam.

CALL FUNCTION 'TABLE_DECOMPRESS'

TABLES

in = list_item_c

out = list_item

EXCEPTIONS

OTHERS = 4.

IF sy-subrc = 0.

ELSE.

ENDIF.

ENDIF.

ENDCATCH.

IF sy-subrc NE 0.

  • MESSAGE i600 WITH 'Fehler bei Import / Export'(005).

ENDIF.

2 REPLIES 2
Read only

Former Member
0 Likes
514

Hi,

I got following Function module table_compress and i have to replace it i know the replacement function moduleis CL_ABAP_GZIP. but not getting how to pass parameters can any one make a look on it and help me out.

FORM list_store USING mode TYPE c.

DATA: list_item_c LIKE list_item OCCURS 10.

DATA: BEGIN OF obj_tab OCCURS 5,

name(30),

programname(10),

END OF obj_tab.

obj_tab-name = 'LIST_ITEM_C'. APPEND obj_tab.

obj_tab-name = 'T_FIMSG'. APPEND obj_tab.

obj_tab-name = 'BUCHUNG'. APPEND obj_tab.

*

CATCH SYSTEM-EXCEPTIONS

import_mismatch_errors = 1.

IF mode = 'E'.

CALL FUNCTION 'TABLE_COMPRESS'

TABLES

in = list_item

out = list_item_c

EXCEPTIONS

OTHERS = 4.

IF sy-subrc = 0.

EXPORT (obj_tab) TO DATABASE indx(al) ID stor_nam.

ELSE.

ENDIF.

ELSE.

IMPORT (obj_tab) FROM DATABASE indx(al) ID stor_nam.

CALL FUNCTION 'TABLE_DECOMPRESS'

TABLES

in = list_item_c

out = list_item

EXCEPTIONS

OTHERS = 4.

IF sy-subrc = 0.

ELSE.

ENDIF.

ENDIF.

ENDCATCH.

IF sy-subrc NE 0.

  • MESSAGE i600 WITH 'Fehler bei Import / Export'(005).

ENDIF.

Read only

0 Likes
514

Go to se24

Give the class-display-Menu goto-Documentation-to component.

Please read it.