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: 

how to create pr using bapi through file upload getting error / dump bulk upload

0 Kudos
360

hi ,

CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'
EXPORTING
path = P_FILE
TARGETPATH = '.\SAAAM.CSV'
EXCEPTIONS
ERROR_FILE = 1
OTHERS = 2
.
IF sy-subrc <> 0.

* Implement suitable error handling here

ENDIF.

GV_FILE = 'SAAAM.CSV'.
IF GV_FILE IS NOT INITIAL.
OPEN DATASET GV_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-subrc NE 0.
MESSAGE 'UNABLE TO OPEN THE FILE ' TYPE 'I'.
ENDIF.
DO.

READ DATASET GV_FILE INTO lv_data.


i am getting dump in read dataset or targetpath pleasse help me getting this .


thanks and regards

Mohammed Mubashir

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
161

Are you sure you want to use the relative path? (i.e. do you know what is the default folder?)

Better indicate the absolute path.

If error during Open, don't do Read.

Attach the text file corresponding to the short dump if you want some assistance.

Catch the exceptions.

Use the debugger.