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

Reg: default file type when using 'WS_UPLOAD'

mallikarjun_vaja
Participant
0 Likes
451

Hi,

Iam using FM 'WS_UPLOAD'.

my doubt is : If u don't specify FILE TYPE ....what is default file type it is going 2 take.

Regards

Vaja

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
430

Hi Mallikarjun,

The default file type for the FM WS_UPLOAD is 'ASC'.

It'll take the ASCII format.

Regards

Anil Madhavan

3 REPLIES 3
Read only

Former Member
0 Likes
430

The default is ASC, you can find that in the function module code.

Sudha

Read only

0 Likes
430

Hi Sudha,

thanks for ur answer.

Plz look into this.

I have program with internal table declared as below with 2 fields.

when i specify the input file using FILENAME = P_FILE.....

the input file has only one field values(i.e. only matnr values).

So, I am getting error : "unable to load input file".

so my query is Can i specify input file with only matnr values and download into internal table (ITAB_MATNR--which has 2 fields)

DATA: BEGIN OF ITAB_MATNR OCCURS 0,

MATNR LIKE MARA-MATNR,

COUNT TYPE I,

END OF ITAB_MATNR.

CALL FUNCTION 'WS_UPLOAD'

EXPORTING

FILENAME = P_FILE

  • filetype = ftype

TABLES

DATA_TAB = ITAB_MATNR

EXCEPTIONS

CONVERSION_ERROR = 1

FILE_OPEN_ERROR = 2

FILE_READ_ERROR = 3

INVALID_TABLE_WIDTH = 4

INVALID_TYPE = 5

NO_BATCH = 6

UNKNOWN_ERROR = 7

GUI_REFUSE_FILETRANSFER = 8

OTHERS = 9.

IF SY-SUBRC <> 0.

MESSAGE E699(PP) WITH 'Unable to load input file' P_FILE.

ENDIF.

Read only

Former Member
0 Likes
431

Hi Mallikarjun,

The default file type for the FM WS_UPLOAD is 'ASC'.

It'll take the ASCII format.

Regards

Anil Madhavan