‎2009 Sep 11 9:27 PM
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®
‎2009 Sep 18 2:36 PM
‎2009 Sep 14 7:10 AM
‎2009 Sep 14 7:16 AM
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®
‎2009 Sep 18 2:36 PM
‎2009 Sep 18 2:40 PM
‎2009 Sep 18 2:46 PM
> 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®
‎2009 Sep 18 4:55 PM
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_controlwill 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
‎2009 Sep 18 9:38 PM
Could not find a right solution, But your suggestion helped me sort this out
Thanks
a®