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

Open Dataset - Invalid Argument

Former Member
0 Likes
997

Hi all,

I'm having the following issue.

I'm trying to copy a file from one network directory to another network directory.

Using gui_upload/gui_download i have no problem when the file does not contain a large amount of data but if the file contains a large amount of data, i'm using the "open dataset" sentence and there is where i'm having the problem.

I'm getting an

"Invalid Argument"

message when i try to create a file in the network directory.

Here is my code:

.............

OPEN DATASET p_filed IN TEXT MODE ENCODING UTF-8 FOR OUTPUT MESSAGE msg.
    IF sy-subrc <> 0.  "<- here Sy-subrc value is 8.
      CONCATENATE 'Error: ' msg INTO msg.
      MESSAGE e208(00) WITH msg. "<- here msg = 'Error: Invalid Argument'
    ENDIF.
    DO.
      READ DATASET p_fileo INTO line.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      TRANSFER line TO p_filed.
    ENDDO.
    CLOSE DATASET p_fileo.
    CLOSE DATASET p_filed.

.............

at the moment of the open dataset for output, p_filed = +

FsurbDataurbshareProyectoorionTermobarrancas-ConstrucciónValuaciones de Obra5300000030.xls+

Using another directory the "open dataset" works perfect.

What could be happening ? What can i do to solve this issue ?

I don't think is an authorization problem, because gui_download/gui_upload works fine ( with a file with a small amount of data )

Thanks a lot,

I really appreciate your help !

Hi,

check with basis if you are authorized for that directors

Regards,

Clemens

2 REPLIES 2
Read only

Clemenss
Active Contributor
0 Likes
531

Hi,

check with basis if you are authorized for that directors

Regards,

Clemens

Read only

Former Member
0 Likes
531

Hi,

- with the gui_download is the authority of your nValuaciones de Obra5300000030.xls

Regards,

Stefan