2009 Apr 20 9:13 AM
Hello Gurus,
I have a small problem while extracting the data from the standard report RM07MLBD.
I used below logic to save that some values in my internal table. But it is showing values in Hexadecimals.
SUBMIT RM07MLBD 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.
Please help regarding this issue.
Regards,
Naganjana.P
Hello Gurus,
I have a small problem while extracting the data from the standard report RM07MLBD.
I used below logic to save that some values in my internal table. But it is showing values in Hexadecimals.
SUBMIT RM07MLBD 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.
Please help regarding this issue.
Regards,
Naganjana.P
2009 Apr 20 9:41 AM
2009 Apr 20 10:26 AM
2009 Apr 20 10:34 AM
Use this code ..
clear : list ,txtlines.
refresh : list , txtlines.
call function 'LIST_FROM_MEMORY'
TABLES
listobject = list
EXCEPTIONS
not_found = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
call function 'LIST_TO_ASCI'
EXPORTING
LIST_INDEX = -1
WITH_LINE_BREAK = ' '
IMPORTING
LIST_STRING_ASCII =
LIST_DYN_ASCII =
tables
listasci = txtlines
listobject = list
exceptions
empty_list = 1
list_index_invalid = 2
others = 3
.
loop at txtlines.
write :....
endloop.
regards ,
Kumar .
2009 Apr 20 10:52 AM
Hi Kiran,
Thank u very much for u r valuable suggestions.
how to declare this internal table.
Can u explain me pls.
tables
listasci = txtlines
listobject = list
exceptions
empty_list = 1
list_index_invalid = 2
others = 3
.
loop at txtlines.
write :....
endloop.
I need only material number, Stock available, storage location, Plant only these fields i want ....
2009 Apr 20 11:11 AM
Hi ,
The below code is not working properly. It is going dump. Pls go through this program..
REPORT ZN_DELIVERY.
DATA list TYPE TABLE OF abaplist.
data: list_tab1 type standard table of abaplist with header line.
*
*tables:mard,mkpf.
*
data:begin of txtlines occurs 0,
matnr type mara-matnr,
erfmg type mseg-erfmg,
werks type mard-werks,
lgort type mard-lgort,
end of txtlines.
clear : list ,txtlines.
refresh : list , txtlines.
SUBMIT RM07MLBD EXPORTING LIST TO MEMORY
AND RETURN.
call function 'LIST_FROM_MEMORY'
TABLES
listobject = list
EXCEPTIONS
not_found = 1
others = 2.
if sy-subrc = 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
call function 'LIST_TO_ASCI'
tables
listasci = txtlines
listobject = list
exceptions
empty_list = 1
list_index_invalid = 2
others = 3
.
loop at txtlines.
*write :....
endloop.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |