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

FM Upload

Former Member
0 Likes
726

HI All,

I am using UPLOAD FM like this:

CALL FUNCTION 'UPLOAD'

EXPORTING

FILENAME = FILE

FILETYPE = 'ASC'

ITEM = 'xyz'

FILEMASK_MASK = ',.,..'

IMPORTING

CANCEL = V_CANCEL

TABLES

DATA_TAB = I_DATA

EXCEPTIONS

CONVERSION_ERROR = 1

INVALID_TABLE_WIDTH = 2

INVALID_TYPE = 3

NO_BATCH = 4

UNKNOWN_ERROR = 5

OTHERS = 6.

Using this FM I am trying to upload comma seperated file. But Internal table is not getting filled properly because of which program is giving dump. Could you guys please let me know which should be the format of the file and what mask ',.,..' means?

regards

Saurabh

HI All,

I am using UPLOAD FM like this:

CALL FUNCTION 'UPLOAD'

EXPORTING

FILENAME = FILE

FILETYPE = 'ASC'

ITEM = 'xyz'

FILEMASK_MASK = ',.,..'

IMPORTING

CANCEL = V_CANCEL

TABLES

DATA_TAB = I_DATA

EXCEPTIONS

CONVERSION_ERROR = 1

INVALID_TABLE_WIDTH = 2

INVALID_TYPE = 3

NO_BATCH = 4

UNKNOWN_ERROR = 5

OTHERS = 6.

Using this FM I am trying to upload comma seperated file. But Internal table is not getting filled properly because of which program is giving dump. Could you guys please let me know which should be the format of the file and what mask ',.,..' means?

regards

Saurabh

5 REPLIES 5
Read only

Former Member
0 Likes
693

Don't use UPLOAD....Use GUI_UPLOAD instead...Or even better...The OO upload service...

Greetings,

Blag.

Read only

Former Member
0 Likes
693

Hi,

I think you'd better use function GUI_UPLOAD.

best regards

Read only

0 Likes
693

I can not change the Function module. As this program is being used for years. Please let me know which file format should be used.

Read only

0 Likes
693

Hi Saurabh,

Using GUI_UPLOAD will not affect the code in any way. you can just go ahead and use the same.

Regards,

Atish

Read only

Former Member
0 Likes
693

tx