Application Development 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: 

Runtime Errors GETWA_NOT_ASSIGNED

Former Member
0 Kudos
429

Iam replacing ws_download F.M with gui_download. If i give fieldnames in tables, iam getting runtime error. If i just populate data_tab tables there is no dump.

Is there any notes...

1 ACCEPTED SOLUTION

Former Member
0 Kudos
115

this is due to datatype mismatch or check all the field names present in your data tab and header table are same.

11 REPLIES 11

Former Member
0 Kudos
116

this is due to datatype mismatch or check all the field names present in your data tab and header table are same.

SuhaSaha
Advisor
Advisor
0 Kudos
115

Hello,

I think you have to pass 'X' to the export param. 'DAT_MODE'.

What is the runtime error you are experiencing ?

BR,

Suhas

awin_prabhu
Active Contributor
0 Kudos
115

Hi friend,

I think u have to check the data types of all export parmeters that are passed to FM 'GUI_DOWNLOAD'

in program with the data types of FM's(SE37) import parameters. Both should match.

OR

Uncomment all exceptions in FM 'GUI_DOWNLOAD' in program.

Now put a breakpoint just before FM in progam.

Press F8.

Press F6.

check the value of SY-SUBRC, it will give exception number(Error type).

Thanks,

Former Member
0 Kudos
115

Hi,

I tried giving dat_mode = 'X', but still it goes for dump. If i comment field names then its fine but i need the column name to be displayed. Below is the details of the dump captured.

The current ABAP program "SAPLSFES" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

In form GUI_CHAR_DOWNLOAD dump is happening which is standard one.

611 IF SY-SUBRC = 0.

612 ASSIGN COMPONENT 1 OF STRUCTURE par_field_names_tab TO <NAME>.

>>>> prc_column_name = <NAME>.

614 ENDIF.

-


DATA: fieldnames(30) TYPE c OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = w_file

filetype = 'DAT'

dat_mode = 'X'

TABLES

data_tab = itab_all

fieldnames = fieldnames

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.

0 Kudos
115

guess, u hv to check the available OSS notes.

thanq

0 Kudos
115

Hi ,

Without providing fieldnames , assign only the internal table to datatab and assign seperator in the FM .

Hope this will solve ur issue.

Br, Parthi

0 Kudos
115

Hi,

If i give WRITE_FIELD_SEPARATOR in GUI_DOWNLOAD function module, it will separate column by tabs, but i need the field name of the columns to be displayed.

IF there is suitable OSS notes , please let me know.

Former Member
0 Kudos
115

Problem is solved

0 Kudos
115

Hello SUBRAMANIARAJA SUBRAMANIAN ,

I have similar problems.. How did you solve yours?

0 Kudos
115

Hi SUBRAMANIAN

I am facing the same problem.please let me know how it got solved.

Regards,

Swetha.

0 Kudos
115

The dump is happening on the following code:

612           ASSIGN COMPONENT 1 OF STRUCTURE par_field_names_tab TO <NAME>.

>>>>           prc_column_name = <NAME>.

614         ENDIF.

The program is trying to assign component '1'...

Your fieldname table column should be called 1:

TYPES: BEGIN OF fieldnames_struct,

               1(30) TYPE c,

             END OF fieldnames_struct.

DATA: fieldnames TYPE TABLE OF fieldnames_struct WITH HEADER LINE.