Skip to Content
Author's profile photo Eitan Rosenberg

Mass download from solution manager

Hi,

 

Recently I am involve with a project that use solution manager .

 

We have a need for “mass download” .

 

In the forum there was a mention of this screen:

/wp-content/uploads/2015/02/screenshot_01_643978.png

 

So I debug the code and found class cl_sa_doc_factory .

 

The cl_sa_doc_factory=>get_read_url returned URL string, this string can be used in cl_http_client .

 

Program R_EITAN_TEST_60_02 (attached) demonstrate the process:

 

The program received as SELECT-OPTIONS a list of “Logical document” .

/wp-content/uploads/2015/02/screenshot_06_643975.png

 

for each “Logical document”

 

– Verify the value .

– Use cl_sa_doc_factory .

– Use cl_http_client .

– Use OPEN DATASET dataset_name FOR OUTPUT IN BINARY MODE  .

 

The result shown using function module BAL_DSP_PROFILE_POPUP_GET

/wp-content/uploads/2015/02/screenshot_07_644024.png

 

And the files:

/wp-content/uploads/2015/02/screenshot_08_643977.png

 

Regards .

Assigned Tags

      11 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Chaouki Akir
      Chaouki Akir

      Bonjour,

      a friend of me that is interested using your program is asking me : the program is downloading the objects to the application server (instruction OPEN DATASET AL11).

      ==> Is there a possibility to download the objects to the PC (presentation server) bypassing application server (AL11) ?

      Cordialement.

      Author's profile photo Eitan Rosenberg
      Eitan Rosenberg
      Blog Post Author

      Hi,

      From programing point of view it is possible .

      In FORM export_document after you have the content of your document (cdata TYPE xstring) You can apply your own logic .

      I am on windows network and I do not have to deal with AL11 stuff so I prefer the OPEN DATASE (much simpler)

      Also the program required you to know sa01loio-loio_id. You can use the program as a base to write your own program where

      you can query sa01loio based on other values or its related tables( e.g. sa01lopr,sa01phio)

       

      Regards .

      Author's profile photo Eitan Rosenberg
      Eitan Rosenberg
      Blog Post Author

      Hi,

      I am not french . But my heart is with France today. 🙁

      Be strong.

      Regards.

      Author's profile photo Chaouki Akir
      Chaouki Akir

      thank you

      Author's profile photo Ebrahim Hatem
      Ebrahim Hatem

      Hi Rosenberg,

      I think you can speak german, your name  Rosenberg,the same as  Wittenberg, Württemberg etc.

      Regards

      Ebrahim

      Author's profile photo Eitan Rosenberg
      Eitan Rosenberg
      Blog Post Author

      Hi,

      Sorry I do not speak German...

      Hebrew,English.

      Regards.

      Author's profile photo Ebrahim Hatem
      Ebrahim Hatem

      Hi,

      I have just seen the name, and I was in germany I have visites many places, Wittenberg, Baden Württemberg 🙂

      Have a nice day.

      Regards

      Ebrahim

      Author's profile photo Kuntal Nandi
      Kuntal Nandi

      Hi Eitan,

      I am also looking for same kind of functionality. I am not able to find any program here. Pardon me if I have missed anything.

      Thanks,

      Kuntal

      Author's profile photo Former Member
      Former Member

      Hi Eitan,

       

      Would you mind to share the program code here again? We can't find the attachment here.

       

      Thanks,

      Brian

       

       

      Author's profile photo Nina Ruoff
      Nina Ruoff

      Hi Eitan,

       

      I have the same request right now. I can not find the attached test Programm. Would you mind sharing it again. I would be very thankful for your help.

       

      Thanks a lot,

      Nina

       

      Author's profile photo pardha karu
      pardha karu

      Hello Nina any luck on this download? I have the same request.