12-08-2006 10:23 AM
Hi Gurus
I have 1 doubt regarding RSBDCSUB.
We will give SUBMIT RSBDCSUB with parameters
Exporting list to memory na.
What's the purpose of Export list to Memory here.
Please let me know.
Ur suggestions are highly encouragable.
Regards,
Kumar
12-08-2006 10:26 AM
the output of the list will be sent to memory
from where you can download it using the FM <b>LIST FROM MEMORY</b>
e.g
SUBMIT RSBDCSUB EXPORTING LIST TO MEMORY
USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE i_rsparams
AND RETURN.
Get the List from Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = i_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF i_listobject[] IS NOT INITIAL.
Write the List to Char Format
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = i_ascii
listobject = i_listobject
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
ENDIF.
Free the used memory
CALL FUNCTION 'LIST_FREE_MEMORY'.
Here LIST_FROM_MEMORY will retrieve from memory and
'LIST_TO_ASCI' will convert it into an internal table with the contents of the list
Hope this helps
12-08-2006 10:43 AM
Hi Domnic
Thnaks for your quick response.
But still I need some more clarification on this.
Whether the internal table use for FM listFrom Memory is fixed or what?
What it contains?
Can you please brief me some more.
Thanks a lot.
Regards,
Kumar
12-08-2006 10:57 AM
hi Sree ram
You dont need to pass anything to the internal table of FM list from memory
All you have to do is call this FM immediately after the Submit command so that the list is retrieved from memory
the FM list from memory will contain the contents of the abap list which has been sent to the memory by the Submit Command.
But this will not be able to be understood by user.
That is why we use the FM list to ascii , this will convert the abap list which we got from the list from memory FM to readable by user format.
Hope this helps
05-23-2007 11:35 AM