2009 Apr 03 2:11 PM
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...
2009 Apr 03 3:41 PM
this is due to datatype mismatch or check all the field names present in your data tab and header table are same.
this is due to datatype mismatch or check all the field names present in your data tab and header table are same.
2009 Apr 03 3:41 PM
this is due to datatype mismatch or check all the field names present in your data tab and header table are same.
2009 Apr 03 4:00 PM
Hello,
I think you have to pass 'X' to the export param. 'DAT_MODE'.
What is the runtime error you are experiencing ?
BR,
Suhas
2009 Apr 03 4:12 PM
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,
2009 Apr 05 1:09 PM
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.
2009 Apr 05 8:40 PM
2009 Apr 05 9:49 PM
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
2009 Apr 06 7:19 AM
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.
2009 Apr 06 11:37 AM
2009 Jun 19 10:19 AM
Hello SUBRAMANIARAJA SUBRAMANIAN ,
I have similar problems.. How did you solve yours?
2009 Nov 30 9:18 AM
Hi SUBRAMANIAN
I am facing the same problem.please let me know how it got solved.
Regards,
Swetha.
2013 Nov 03 11:39 AM
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.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |