SOFFICEINTEGRATION In Background
HI all,
I am implementing Office integration with templates similar to example SAPRDEMO_FORM_INTERFACE.
Everything works ok, but my problem is that I want it to run in background, activated by event CREATED of BOR DOCUMENT.
Event is raised but I have problem with following code because container is not created in backgorund.
CREATE OBJECT CONTAINER EXPORTING CONTAINER_NAME = 'CONTAINER'. CALL METHOD CONTROL->INIT_CONTROL EXPORTING R3_APPLICATION_NAME = text-BAS INPLACE_ENABLED = inplace INPLACE_SCROLL_DOCUMENTS = 'X' PARENT = CONTAINER REGISTER_ON_CLOSE_EVENT = 'X' REGISTER_ON_CUSTOM_EVENT = 'X' NO_FLUSH = 'X'. CALL METHOD CONTROL->GET_DOCUMENT_PROXY EXPORTING DOCUMENT_TYPE = DOCUMENT_TYPE REGISTER_CONTAINER = 'X' IMPORTING DOCUMENT_PROXY = DOCUMENT
Any idea about how to create control in batch mode?
Thanks!!
Regards.
Urtzi.