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

regarding MB5b

Former Member
0 Likes
856

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

5 REPLIES 5
Read only

Former Member
0 Likes
790

Hii

Can you give the detail structure of list_tab.

Read only

0 Likes
790

Hi Gurus,

Pls help for above scenario.

Read only

0 Likes
790

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 .

Read only

0 Likes
790

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 ....

Read only

0 Likes
790

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.