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 internal table

Former Member
0 Likes
1,043

Dear Experts,

I need a solution for importing from an internal table.

Two variables I_EXP01 and I_EXP02 containing an xml stream have been exported to the database using the following syntax

and depending on the size of I_EXP01 and I_EXP02 two or more entries are created in table LTEX.

EXPORT

L_SAPRL

I_EXP01

I_EXP02

TO DATABASE LTEX(LT)

ID LS_LTEXKEY.

But now i have a few entries of table LTEX in an internal table and they need to be imported from the internal table.

What would be the syntax to import from internal table so that after importing I can de-serialise the data from XML to ABAP.

Thanks & Regards,

Ashwini

3 REPLIES 3
Read only

Former Member
0 Likes
699

Try this and let me know if it works:

IMPORT

L_SAPRL

I_EXP01

I_EXP02

To

L_SAPRL1 (same type as above)

I_EXP011 (same type as above)

I_EXP021 (same type as above)

FROM DATABASE LTEX(LT)

ID LS_LTEXKEY.

if it is not working. try using seperate statements for each internal table and see.

Thanks,

Venkatesh.

Edited by: venkatesh333 on Jul 27, 2011 6:23 AM

Read only

Former Member
0 Likes
699

Hi Venkatesh,

The data that I want to import is no more in the database table but present only in an internal table.

So I will not be able to use the syntax 'FROM DATABASE LTEX(LT) ID LS_LTEXKEY' but I require a syntax relevant to 'importing from an internal table'.

Thanks & Regards,

Ashwini

Read only

0 Likes
699

Hi,

Sorry, i may not have understood your question, but if you already have the data in an internal table, why can you use it directly?.

Thanks,

Venkatesh.