output of one program as input to another program
Hi,
I need to make a program which takes output of one program as input to another program, could any one send me a sample code for the same.
thanks
bobby
Tags:
Former Member replied
Try this code. It should work.
Regards,
Suresh
DATA: itab LIKE abaplist OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF int_ascitab OCCURS 0,
line(256),
END OF int_ascitab.
SUBMIT report1 EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = int_ascitab
listobject = itab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.