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

Export to database index+debugging

kiran_k8
Active Contributor
0 Likes
3,555

Hi,

Can anyone here let me know how to check the values in debugging that were exported or imported to database index using Export/Import.

EXPORT itab TO DATABASE indx(aa) ID 'XYZ'.

If it is a memory id I am able to see the values that were exported to memory id in classical debugger using ABAP MEMORY option.Similarly I would like to know where we can see the values that got exported to database index using EXPORT/IMPORT.

Thanks,

K.Kiran.

7 REPLIES 7
Read only

Former Member
0 Likes
1,554

for the control data, look at table INDX. To see the actual data, import the data into the proper program/internal table from the INDX(AA).

Read only

0 Likes
1,554

Thanks Davel.

In Classical debugger,if I give INDX in the internal table option,I am seeing the structure of INDX with fields

RELID having the value CO

SRTFD having the value TAB1

CLUSTR having the value 101

CLUSTD having some long value which is alpha numeric.

At the level of debugging how can we interpret these values in INDX.Can we say that if CLUSTD is having some value means the value got exported ?

K.Kiran.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,554

Hi K.Kiran.,

I don't understand your question : in your example, you export "itab". So, if you want to know what is exported, just look at "itab".

Could you please give more details?

Sandra

Read only

0 Likes
1,554

Sandra,

My query is in debugging how to check if the values got exported to database index.Will we be not be able to see the values that got exported just as we are seeing the values of ITAB in debugging ?

Thanks,

K.Kiran.

Read only

0 Likes
1,554

No, you can't, you just have to trust the system. If there's an error, it will return SY-SUBRC <> 0 or even a dump. Otherwise, it does exactly what we see it does (or there's a nice kernel error ).

I'm also surprised that you can see the ABAP memory. In my 7.0 debugger, I can only see the SAP memory (GET PARAMETER/SET PARAMETER)

Sandra

Read only

0 Likes
1,554

Sandra,

I remember reading it somewhere that ABAP Memory/SAP Memory option is not yet available in New Debugger.

Thanks,

K.Kiran.

Read only

0 Likes
1,554

Sandra is quite correct....the INDX table rows for your index and ID entries now contain as many rows as needed to store (internal format) what ITAB contained at the time of the export. Trust the export here if you have a good return code. If you import into identical structure/table as ITAB, you will get the exact same table back.

This is completely reliable method of temporarily storing data (SAP calls this semi-persistent data) so that another program, perhaps executed at a later time and on a different APPS server in the same SAP instance, can still read the data that was in ITAB at the time of the export.