Application Development and Automation 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: 
Read only

getting output data of standard program into zprogram internal table

Former Member
0 Likes
1,585

hi experts....

when i run transaction iq09 with parameters "material" and "status included " i get output ....i want that output in my ztables internal table...i need only that data when i run this iq09 transaction with mention parameters...plz guide me how to get this,,,tks

hi experts....

when i run transaction iq09 with parameters "material" and "status included " i get output ....i want that output in my ztables internal table...i need only that data when i run this iq09 transaction with mention parameters...plz guide me how to get this,,,tks

4 REPLIES 4
Read only

Former Member
0 Likes
1,166

welcome to SCN

find out which program runs for iq09

copy it to your zprogram

now instead of desplaying it use it in your itab

Edited by: mayank jain on Oct 9, 2009 9:04 AM

Read only

0 Likes
1,166

but i need output of of those parameters what i pass in iq09....

Read only

Former Member
0 Likes
1,166

Check the final post of this thread and change it according to your transactions

Read only

Former Member
0 Likes
1,166

Example



data : t_list  like standard table of abaplist with header line.
DATA: BEGIN OF o_list OCCURS 0,

        output(1500)   TYPE c,
      END OF o_list.

data: char(100) ,string type string .
char = string.

*       t_ascii like standard table of
  SUBMIT rm07docs VIA SELECTION-SCREEN AND RETURN exporting list to memory.


CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = t_list
EXCEPTIONS
not_found = 1.

CALL FUNCTION 'LIST_TO_ASCI'

TABLES

listasci = o_list  " list converted to ASCII
listobject = t_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.

data : wa_olist like o_list .
data : t_olist type ty_list,
*         code added by sunil
       lt_olist type table of ty_list.

loop at o_list into wa_olist.

write your logic
endloop.

Edited by: krupa jani on Oct 10, 2009 11:16 AM