‎2007 Jun 04 3:21 PM
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
‎2007 Jun 04 3:25 PM
Hi Mallikarjun,
The default file type for the FM WS_UPLOAD is 'ASC'.
It'll take the ASCII format.
Regards
Anil Madhavan
‎2007 Jun 04 3:23 PM
The default is ASC, you can find that in the function module code.
Sudha
‎2007 Jun 04 3:56 PM
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.
‎2007 Jun 04 3:25 PM
Hi Mallikarjun,
The default file type for the FM WS_UPLOAD is 'ASC'.
It'll take the ASCII format.
Regards
Anil Madhavan