Hi friends ,
the following code not working after SP11 upgrade -
SUBMIT zrsusr002
USING SELECTION-SCREEN 1000
WITH tcode = 'ZCIDDCM'
WITH listmark = 'X'
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.
RAISE not_found.
ENDIF.
What we are trying -
The code will find out all the valid users for specified transactions and stores the generated ALV report in memory. The LIST FROM MEMORY function will recall this exported data back into listobject (of type structure ABAPLIST).
Being a standard code, the code should work fine and retrieve the ALV list into listobject. However, it fails when it try to import the list output back from memory. To be noted that, the same code was working fine before SP11 upgrade.
I raised OSS Note and got the reply - to use "Submit....to spool" instead of "Exporting LIST to memory" . I tried the following -
SUBMIT rsusr002
USING SELECTION-SCREEN 1000
WITH tcode = 'SE38'
WITH listmark = 'X'
TO SAP-SPOOL
SPOOL PARAMETERS pri_params
WITHOUT SPOOL DYNPRO
AND RETURN.
But it is generating the spool and i want all the user list in a table. Not able to get exact systax which can work . PLEAS HELP. Thanks in advance