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

Dowload Internal Tables

Former Member
0 Likes
633

Is there a way that, in the middle of a debugging, I can download an internal table? I need to watch all data and try to reproduce the logic in the program, but without data, this is imposible

TIA

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
601

Sure, in debug mode, double click on your internal table, then choose "Go To"-->"Display Data Object"->Structure Editor. You will now see the internal table displayed as a list. To get the entire list, CLick Object->Display entrie list.

Now you can use the SYstem->List->save->local file, to download to your PC.

Regards,

Rich Heilman

Is there a way that, in the middle of a debugging, I can download an internal table? I need to watch all data and try to reproduce the logic in the program, but without data, this is imposible

TIA

4 REPLIES 4
Read only

Former Member
0 Likes
601

For timeebing u can use the below code to Download the internal table to text file.

You can comment it after u check the data.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename =

'C:\Documents and Settings\P.Ramu\Desktop\RDI1.txt'

TABLES

data_tab = i_rdidata

EXCEPTIONS

file_write_error = 1

no_batch = 2

gui_refuse_filetransfer = 3

invalid_type = 4

no_authority = 5

unknown_error = 6

header_not_allowed = 7

separator_not_allowed = 8

filesize_not_allowed = 9

header_too_long = 10

dp_error_create = 11

dp_error_send = 12

dp_error_write = 13

unknown_dp_error = 14

access_denied = 15

dp_out_of_memory = 16

disk_full = 17

dp_timeout = 18

file_not_found = 19

dataprovider_exception = 20

control_flush_error = 21

OTHERS = 22

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Regards,

Prakash.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
602

Sure, in debug mode, double click on your internal table, then choose "Go To"-->"Display Data Object"->Structure Editor. You will now see the internal table displayed as a list. To get the entire list, CLick Object->Display entrie list.

Now you can use the SYstem->List->save->local file, to download to your PC.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
601

Hi,

Try this...This might work.

When you display the internal table..Then

Goto->Sturcuted editor..Then go to System -> List -> Save -> local file.

Thanks,

Naren

Read only

Manohar2u
Active Contributor
0 Likes
601

If you are in 4.7, while in debug mode by selecting internal table. Click Ctrl+F11.

Regds

Manohar