‎2011 Jul 27 5:10 AM
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
‎2011 Jul 27 5:22 AM
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
‎2011 Jul 27 5:30 AM
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
‎2011 Jul 27 5:51 AM
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.