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

Multiple - Documents Display

former_member194669
Active Contributor
0 Likes
2,330

All,

I am using fuction module ALINK_DOCUMENTS_DISPLAY to display Content server Documents.

So my question is

1. This function module have option to display only 1 document at a time. Is any other function module that can display multiple documents ?

2. Is any class available with the same functionality of the above said fm does ?

a®

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,671

Any suggestions

a®

7 REPLIES 7
Read only

Former Member
0 Likes
1,671

This message was moderated.

Read only

0 Likes
1,674

Ram,

Your suggestion will NOT work . This fm used for displaying documents from content server. If i am looping and calling fm will only display only the last document.

Sorry about not assign point(s)

a®

Read only

former_member194669
Active Contributor
0 Likes
1,672

Any suggestions

a®

Read only

0 Likes
1,674

will calling this FM in separate tasks help?

Read only

0 Likes
1,674

> will calling this FM in separate tasks help?

I didn't get your answer fully. This fm display documents from content server, so displaying multiple documents of same type say PDF.

Currently this fm have option display a single document

a®

Read only

0 Likes
1,674

Hi a®s,

I don't know of any FM for this purpose, but I think it should be possible.

For document display, SAP will always download a copy of the server content to the local SAP work directory. You can check this, if you display a document and, when open, check the directory.

Then they call the respective application (windows, excel, word) and create an OLE application to display/edit.

My idea is to download multiple files, create docking/splitter/dialogbox containers (one for for each document) and create document viewer instance in each control

C_OI_CONTAINER_CONTROL_CREATOR=>get_container_control

will get you the DOI Container, then

* initialize the SAP DOI Container, tell it to run in the container
* specified above and tell it to run application in-place
  CALL METHOD mo_container_control->init_control
    EXPORTING
      r3_application_name      = 'whatever your title is here'(001)
      inplace_enabled          = 'X'
      inplace_scroll_documents = 'X'
      parent                   = mo_excel_container
      register_on_close_event  = 'X'
      register_on_custom_event = 'X'
    IMPORTING
      error                    = mo_error.
*...
*   get document proxy
  CALL METHOD mo_container_control->get_document_proxy
    EXPORTING
      document_type  = mc_document_type
    IMPORTING
      document_proxy = mo_document_proxy
      error          = mo_error.

Refer to this document Desktop Office Integration (BC-CI). It helped me a lot when I tried to integrate an excel application.

But to be honest, I did not try more than one instance of OLE application. But I do not see any obstacles.

If this seems too complicated, you may try to call your function

DATA:
  gv_task TYPE char08 VALUE 'T0000000'.
    ADD 1 TO gv_task+1."increase  numeric part of task name
    CALL FUNCTION 'XYZ'
      STARTING NEW TASK gv_task
'

This will open a new session.

Good luck, let us know...

Kind regards,

Clemens

Read only

0 Likes
1,671

Could not find a right solution, But your suggestion helped me sort this out

Thanks

a®