Application Development 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: 

Regarding RSBDCSUB

sreeramkumar_madisetty
Active Contributor
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

It's Answered.