Hi Kranthi,
I have created classical report.
Please find below code
parameters: s_kunnr type kna1-kunnr,
S_BUKRS TYPE KNB1-BUKRS.
DATA: itab_list TYPE TABLE OF ABAPLIST.
* vlist TYPE ref to data.
"itab_list LIKE ABAPLIST.
data: begin of t_listout occurs 0,
line(1024) type c,
end of t_listout.
*xtext
data: vlist like abaplist occurs 0 with header line.
DATA: s_open_key,
X_AISEL value 'X'.
s_open_key = 'X'.
submit rfitemar with dd_kunnr-low = s_kunnr
with dd_bukrs-low = s_bukrs
* with x_opsel = s_open_key " XAISEL " XOPSEL
with X_AISEL = X_AISEL " XAISEL " XOPSEL
exporting list to memory and return
with bilalist = ' ' " with classical list
with bilagrid = ' ' " no ALV grid
with bilatree = ' '. " no ALV tree .
*Here i am extracting data from memory.
call function 'LIST_FROM_MEMORY'
tables
listobject = itab_list
exceptions
not_found = 4
others = 8.
*Here i am converting HEX value to ASCI value .
call function 'LIST_TO_ASCI'
* EXPORTING
* list_index = -1
tables
listasci = t_listout
listobject = itab_list
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.
LOOP AT t_listout.
* if you wants to separate '|' use remove statement
write: / t_listout-line.
clear t_listout.
ENDLOOP.
-