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 from INDX

Former Member
0 Likes
1,043

Hi experts,

I got a requirement to import the data from INDX table using RELID & SRTFD fields.

But how do i know the structure of the table to import the data into ITAB?

Is there any FM existing to now the structure??

Iam trying to get the data like this..


import gt_display = lt_display
       from database indx(rm) id 'BILLING'.

Pls let me know.

Ravi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
964

Hi,

Try

import gt_display from database indx(rm) id indxkey.

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
964

u should do this way...

EXPORT gt_display from DATABASE indx(ar) CLIENT sy-mandt

Read only

Former Member
0 Likes
964

Hi ravi,

1. We have to know beforehand itself.

2. U can also check help on Import Directory syntax.

This comand helps to know the structure of the content inside the cluster.

regards,

amit m.

Read only

Former Member
0 Likes
964

Hi,

The structure of fields, field strings and internal tables to be imported must match the structure of the objects exported to the dataset.In addition, the objects must be imported under the same name used to export them. If this is not the case, either a runtime error occurs or no import takes place.Exception: You can lengthen or shorten the last field if it is of type CHAR , or add/omit CHAR fields at the end of the structure.

Regards

Sudheer

Read only

0 Likes
964

Hi experts,

Now i got the structure.

Iam trying to improt data into gt_display table. Sy-subrc is showing 0.

But why iam not able to get the data? Where iam doing wrong? Any clue pls..!



data: gt_display type table of zrmsrept with header line.
data: indxkey like indx-srtfd value 'BILLING'.

import lt_display = gt_display from database indx(rm) id indxkey.

Read only

Former Member
0 Likes
965

Hi,

Try

import gt_display from database indx(rm) id indxkey.

Thanks,

Naren