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 Commad

Former Member
0 Likes
1,015

Hi all,

I have an IMPORT statement as below,

IMPORT

INDXT

INDXN

EXTRACT_KEY

SELECTION

CSTAT FSTAT RSTAT ITAFSTAT

VARIABLES

UNIT_TAB

G_ARCHIVE_FLAG

G_ARCHIVE_OBJECTS

VARIATION VARIATION_REP VAR_ENTRIES

I_GRIX_SELP

I_GRIX_RSD

X_SELTAB_0

S_SELTAB

G_T_XMESG

G_T_SMESG

OUT2_DIR OUT2_BLOCKS

%6-KOKRS

%6-GJAHR

%6-PERBV

%6-PERBB

%6-VALU

%6-VERP

%6-AUFGR

_6-AUFGR

%6-KSTAR

_6-KSTAR

FROM DATABASE GREP(GL) ID GREP_KEY.

This is working Fine in 4.6c but its giving the following Error in Ecc 6.0

"=field" or "to Field" is expected after "ITAFSTAT"

Tell me how can i modify the syntax.

thanx,

Girish.

Hi all,

I have an IMPORT statement as below,

IMPORT

INDXT

INDXN

EXTRACT_KEY

SELECTION

CSTAT FSTAT RSTAT ITAFSTAT

VARIABLES

UNIT_TAB

G_ARCHIVE_FLAG

G_ARCHIVE_OBJECTS

VARIATION VARIATION_REP VAR_ENTRIES

I_GRIX_SELP

I_GRIX_RSD

X_SELTAB_0

S_SELTAB

G_T_XMESG

G_T_SMESG

OUT2_DIR OUT2_BLOCKS

%6-KOKRS

%6-GJAHR

%6-PERBV

%6-PERBB

%6-VALU

%6-VERP

%6-AUFGR

_6-AUFGR

%6-KSTAR

_6-KSTAR

FROM DATABASE GREP(GL) ID GREP_KEY.

This is working Fine in 4.6c but its giving the following Error in Ecc 6.0

"=field" or "to Field" is expected after "ITAFSTAT"

Tell me how can i modify the syntax.

thanx,

Girish.

6 REPLIES 6
Read only

Former Member
0 Likes
959

Hi,

Is ITAFSTAT is an internal table? if so u need to give the target internal table name. The structures of both sould be same.

syntax:

import itab to jtab........

itab and jtab should have same structures..

Sreedhar

Read only

0 Likes
959

Hi sreedhar,

The Field ITAFSTAT is not declared any where in the program

and it put under Selections.

Girish

Read only

0 Likes
959

Girish,

An F1 on the IMPORT statement should give you some info. It seems like that syntax for the import statement has now changed, and you have to specify a field name = f1 and so on.

Otherwise you can use the IMPORT FROM DIRECTORY option. As I said, F1 help has all the documentation on the same.

Hope this helps.

Sudha

Read only

Former Member
0 Likes
959

Hi Girish,

I am not able to get ur point "and it put under Selections"..

Can u be more specifie on this?

Sreedhar

Read only

Former Member
0 Likes
959

Hasi Girish

Check the Import Statement as Bellow

Program 1

report zImport_0001.

data: itab type table of string with header line.

field-symbols: <fs> type table.

itab = 'This is the line 1'. append itab.

itab = 'This is the line 2'. append itab.

assign itab[] to <fs>.

export <fs> to memory id 'ZRICHTEST'.

submit zrich_0002 and return.

Program 2

REPORT zImport_0002 .

data: itab type table of string with header line.

field-symbols: <fs> type table.

data: wa type string.

assign itab[] to <fs>.

import <fs> from memory id 'ZRICHTEST'.

loop at <fs> into wa.

write:/ wa.

endloop.

Regards

Sreeni

Read only

Former Member
0 Likes
959

Hi,

I see that you refer to GREP which is the table where report writer data is stored. Can you tell me if you used this to read report data stored as an extract. If you have can you post an example much appreciated.

Best Regards,

Dennis