2009 Nov 10 2:51 AM
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
2009 Nov 10 5:55 AM
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