This website is not affiliated with, sponsored by, or approved by SAP AG.

When does 'DP_SEND_STREAM_TO_URL' returns ERRORSTATE = -1?

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

When does 'DP_SEND_STREAM_TO_URL' returns ERRORSTATE = -1?

Postby sibrin » Thu Nov 23, 2006 5:38 am

FM 'GUI_DOWNLOAD' raises exception UNKNOWN_DP_ERROR (ASCII mode).

The root of this exception is in call
Code: Select all
                   #2 = 'X-UNKNOWN'
                   #3 = 'file://C:\myfolder\myfile.txt'.

where ERRORSTATE = -1.

What may cause the error?
OS = Win XP.
Posts: 23
Joined: Fri Feb 10, 2006 1:47 am


Postby dem411 » Mon Jul 09, 2007 3:12 pm

I am having the same problem. Doe anyone know what to do?
Posts: 2
Joined: Mon Jul 09, 2007 3:10 pm

Postby Rich » Tue Jul 10, 2007 2:05 am

I don't know about -1 but yesterday I was getting a -3. This was caused by an under score in the file name.....


Abap KC:
Posts: 7112
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool

Postby dem411 » Tue Jul 10, 2007 8:02 am

the interesting thing is, that everything works if you try to download a file from my laptop, but if executing from other machines the function is not working.
Posts: 2
Joined: Mon Jul 09, 2007 3:10 pm

Re: When does 'DP_SEND_STREAM_TO_URL' returns ERRORSTATE = -1?

Postby serteixeira » Fri Jul 04, 2008 4:58 am


Did anyone solve this problem? I'm having function GUI_DOWNLOAD raising exception unknown_dp_error when I call it in a program that creates a txt file in a server. When it's on my PC no problem. In terms of permissions everithing looks ok.


Posts: 50
Joined: Tue Dec 10, 2002 4:50 am

Re: When does 'DP_SEND_STREAM_TO_URL' returns ERRORSTATE = -1?

Postby kunalshrouty » Wed Apr 05, 2017 12:31 am


Even I also encountered the issue with DP_SEND_STREAM_TO_URL returns ERRORSTATE = -1.
I saw a lot of reasons for this issue to occur, someone said its SAPRouter issue.
Someone said I can download on local machine but not on server. etc.
And this leads to UNKNOWN_DP_ERROR exception for GUI_DOWNLOAD FM.
In my case I found that the file extension was getting unwanted special characters and hence the issue.

We are generating the file format at runtime for eg... ABC.011, ABC.022,,,,,,, ABC.998, ABC.999.
As we cross 999 and increment the serial no, the system starts appending .00* .becoz the counter is 3 digits only.
As soon as * comes in extension the issue start to come.
Hence, I can say that the UNKNOWN_DP_ERROR could occur even if the file format in filename has some unacceptable format issue.

Posts: 1
Joined: Tue Apr 04, 2017 11:42 pm

Return to ABAP

Who is online

Users browsing this forum: No registered users and 4 guests

This website is not affiliated with, sponsored by, or approved by SAP AG.