09-05-2008 10:57 AM
Hi friends,
As a part of Daily Routine,one of my task is to run tcode STAD and give away all the details of users to my boss..But my BASIS admin has asked me to develop one automatic way of doing this rather than doinf it manually daily..How can i do this..
Thanks,
Gaurav
09-05-2008 11:01 AM
You can SUBMIT the Program for STAD and download the output as follows.
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.