Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

STAD + Schedule

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.