2006 Jul 25 7:25 AM
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.
2006 Jul 25 7:28 AM
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
2006 Jul 25 7:38 AM
Hi sreedhar,
The Field ITAFSTAT is not declared any where in the program
and it put under Selections.
Girish
2006 Jul 25 8:28 AM
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
2006 Jul 25 8:38 AM
Hi Girish,
I am not able to get ur point "and it put under Selections"..
Can u be more specifie on this?
Sreedhar
2006 Jul 25 9:39 AM
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
2007 Aug 14 11:08 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |