Skip to Content

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 .

To report this post you need to login first.

9 Comments

You must be Logged on to comment or reply to a post.

  1. 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.

    (0) 
    1. Eitan Rosenberg 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 .

      (0) 
  2. 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

    (0) 

Leave a Reply