2008 Dec 02 11:17 AM
hi,
im using user exit LMR1M004 to export some variables which are imported in user exit RGGBS000. It works fine wherever there is only one line item. However this import-export doesnt happen line by line. After all line items are exported the second user exit imports the values , so it loses the variables of first line item and fetches values of second line item for both lines.
How do i overcome this problem ?
Bye
2008 Dec 02 11:25 AM
Hi,
use internal table to hold the data.
Pass this internal table to a memory ID and export it.
Then import the same at the other end.
Check the sample code.
DATA : BEGIN OF ITABY OCCURS 0,
.......
......
END OF ITABY.
EXPORT ITABY TO MEMORY ID 'ABC'.
at other end use
DATA : BEGIN OF ITABY OCCURS 0,
.......
......
END OF ITABY.
IMPORT ITABY FROM MEMORY ID 'ABC.'
Let me know if you have any queries.
Regards,
Raj
2008 Dec 02 11:25 AM
Hi,
use internal table to hold the data.
Pass this internal table to a memory ID and export it.
Then import the same at the other end.
Check the sample code.
DATA : BEGIN OF ITABY OCCURS 0,
.......
......
END OF ITABY.
EXPORT ITABY TO MEMORY ID 'ABC'.
at other end use
DATA : BEGIN OF ITABY OCCURS 0,
.......
......
END OF ITABY.
IMPORT ITABY FROM MEMORY ID 'ABC.'
Let me know if you have any queries.
Regards,
Raj
2008 Dec 02 11:34 AM
hi raj,
thnx for ur prompt response. However i dont have the internal table ready .....i mean my user exits exports lines one by one. So probably i need to store the lines in table and export once all lines are stored in table . That would require that the records in table should be static. I mean between calls to user exit it should remember the previous lines. How do i make my internal table static so that previous lines are remembered ?
Kindly help.
Bye
2008 Dec 02 11:43 AM
Hi,
Declare a string variable in your internal table.
pass all the values to that string.
use LOOP statement. Also use append statement within LOOP.
Remaining syntax will remain same as mentioned in my previous reply.
Regards,
Raj