Skip to Content
-3

How to get URL text data into internal table in Background mode(Batch Job)

Feb 27 at 10:28 AM

119

avatar image
Former Member

How to get URL (.TXT) data into Internal table in Background mode is there any FM for this i have tried FM 'DP_GET_STREAM_FROM_URL' but its not working in background

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
Feb 28 at 06:03 PM
1

FM HTTP_GET? Not sure though what exactly you mean by "URL text data". Please make sure to use the accurate terminology.

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Jelena,

Thanks for the reply,

I mean URL Contains Text file which needs to be downloaded into SAP internal table ,by using FM : DP_GET_STREAM_FROM_URL ,m getting URL data into internal table in foreground mode but in background mode i m not getting URL data into internal table .

so is there any way for it ?

0

To "download a file" we use FTP (which has been covered exhaustively on SCN). Using HTTP we can access the content, which is not the same as "download a file". URL is just an address that can be used for both protocols.

There seems to be a lot of confusion here. Only when you have a good understanding of what the task is exactly then you can find the best solution.

0

Jelena told you : HTTP_GET. Or class CL_HTTP_CLIENT, that's the same. Search the web for more information.

1
Former Member

Thank you Jelena and Sandra.

Sure will check.

Regards,

Suhel Sheikh

0
Blesso Joshua Arulraj Feb 27 at 11:34 AM
0

You can not achieve it by DP_GET_STREAM_FROM_URL, due to program run it in background.

But you can fetch the file from FTP.

Create one FTP and define it in SAP and fetch the file and then data from FTP folder.

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Arulraj,

thanks for your quick reply.

can u please share some doc. /link for FTP definition n all if u have ,so that i can achieve the above requirement.

Thanks & Regards,

Suhel Sheikh

0

There are TONS of threads and wiki about this!
You should be proactive and look for them before asking people to do it for you

0
Former Member
Simone Milesi

Hi Simone,

i am not asking any one to do the work for me,

i just asked if he can help me with some doc.(if available).i know that every one is busy in there own task.

and right there may be many threads about the issue but i haven't found the proper one so i asked here.

Regards,

Suhel Sheikh

0