方法一:
data:list_tab type table of abaplist.
data:vlist(300) type c occurs 0 with header line.
submit rm07mlbs with matnr in m_matnr exporting list to memory and return.
call function 'LIST_FROM_MEMORY'
tables
listobject = list_tab
exceptions
not_found = 4
others = 8.
call function 'LIST_TO_ASCI'
exporting
list_index = -1
tables
listasci = vlist
listobject = list_tab
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.
方法二: