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

IMPORT tab = it_itab FROM DATABASE indx(aa)

Former Member
0 Likes
433

IMPORT tab = it_itab FROM DATABASE indx(aa)

Hi everyone,

I'm currently tracing one of the program of our ABAP consultant.

Can anybody explain to me the code below, I wonder how it_itab table being filled up by data.

TYPES: BEGIN OF t_itab,

flag(1) TYPE c,

kunnr TYPE kna1-kunnr,

END OF t_itab.

DATA: it_itab TYPE STANDARD TABLE OF t_itab,

v_client = sy-mandt.

CONCATENATE sy-repid

sy-mandt

INTO v_id.

IMPORT tab = it_itab

FROM DATABASE indx(aa)

TO wa_idx

CLIENT v_client

ID v_id.

best regards,

glenn

IMPORT tab = it_itab FROM DATABASE indx(aa)

Hi everyone,

I'm currently tracing one of the program of our ABAP consultant.

Can anybody explain to me the code below, I wonder how it_itab table being filled up by data.

TYPES: BEGIN OF t_itab,

flag(1) TYPE c,

kunnr TYPE kna1-kunnr,

END OF t_itab.

DATA: it_itab TYPE STANDARD TABLE OF t_itab,

v_client = sy-mandt.

CONCATENATE sy-repid

sy-mandt

INTO v_id.

IMPORT tab = it_itab

FROM DATABASE indx(aa)

TO wa_idx

CLIENT v_client

ID v_id.

best regards,

glenn

1 REPLY 1
Read only

Former Member
0 Likes
388

Hello,

IMPORT tab = it_itab FROM DATABASE indx(aa), is a operation related to data clusters in the database. First a data object will be stored in the cluster database using EXPORT ITAB to DATABASE statement and the data cluster is read using the IMPORT ITAB FROM DATABASE statement.

Have a look at this standard SAP help document

[http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm]

Vikranth