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: 

Exception condition "BAD_DATA_FORMAT" raised.

Former Member
0 Kudos
206

I am getting dump and message is like " Exception condition "BAD_DATA_FORMAT" raised.".

please suggest how to proceed.

8 REPLIES 8

nirajgadre
Active Contributor
0 Kudos
136

Hi,

In which transaction you r getting the dump ?

describe the problem in brief.

Edited by: niraj gadre on Dec 8, 2009 6:48 AM

0 Kudos
136

I am getting dump while executing report ie while uploading data from presentation server into internal table.

0 Kudos
136

In this program i has to upload data into internal table with tab delimited format , code is like below

is it correct

CALL FUNCTION 'F4_FILENAME'

  • EXPORTING

  • PROGRAM_NAME =

  • DYNPRO_NUMBER =

  • FIELD_NAME =

IMPORTING

file_name = p_upld.

l_file = p_upld.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = l_file

filetype = 'ASC'

has_field_separator = 'X'

TABLES

data_tab = t_prgstatus.

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
136

>

> CALL FUNCTION 'GUI_UPLOAD'

> EXPORTING

> filename = l_file

> filetype = 'ASC' "<<<<<<<<<<<try to change this to DAT, and see

> has_field_separator = 'X'

> TABLES

> data_tab = t_prgstatus.

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

i changed to DAT then also its not working

0 Kudos
136

then check the deceleration of t_prgstatus, some where alpha numeric/ numeric values are not allowed..

former_member156446
Active Contributor
0 Kudos
136

Check this discussion

Former Member
0 Kudos
136

Hi ,

For FM GUI_UPLOAD, the data type of filename should be STRING.

Check the data type of your variable.