Skip to Content
1
Former Member
Jan 20, 2011 at 11:08 AM

Submit and get the internal table details

7643 Views

Hi,

I have to submit and get the output of the submited report in to the internal table, I have written small test program plz let me know your throughts .

data: ss_matnr type mara-matnr.
data: itab_abaplist type standard table of ABAPLIST initial size 0.
select-options : s_matnr for ss_matnr.
data: itab_mara type standard table of mara initial size 0.

submit zset_submit with s_matnr in s_matnr exporting list to memory and return.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    LISTOBJECT       = itab_abaplist
 EXCEPTIONS
   NOT_FOUND        = 1
   OTHERS           = 2
          .
IF SY-SUBRC <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

The total number of record counts are same in the output table of the submited report and Itab_abaplist.But I think I have to make the output into understandable format so that I can use it.

Also please let me know if there is any other way for getting the itab result.