Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get the result of a standard program

A program gives an ALV table that I would like to use in a specific program.

I try to use the SUBMIT EXPORTING LIST TO MEMORY AND RETURN solution but without success.

All standard program can be used with this solution ? If not is it possible to get the result of a report in a internal table ?

Here is my test code for LIST TO MEMORY :

DATA : export TYPE abaplist  OCCURS 0 WITH HEADER LINE.

SUBMIT rhthist0 EXPORTING LIST TO MEMORY AND RETURN
  WITH pchplvar EQ '01'
  WITH pchotype EQ 'P'
  WITH pchobjid EQ '07000132'
*        WITH pchsobid IN pchobjid
*        WITH pchseark eq pchseark
  WITH pchobeg  EQ '19000101'
  WITH pchoend  EQ '99991231'.
*        WITH pchtimed eq pchtimed
*        WITH pchbegda eq pchobeg
*        WITH pchendda eq pchoend.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject       = export
* 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.

I get a dump which said that there is noting in MEMORY.

Thanks,

Anthony.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question