Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

CREATE_EXTERNAL_WINDOW Issue with Multiple windows

$
0
0

Hello Experts,

 

I'm using CREATE_EXTERNAL_WINDOW to call a webdynpro application giving some parameters, everything is working fine when I have to call it once, but when I've putted in a loop, it's not working anymore. My code :

 

LOOP at lt_0001 into ls_0001.

         lv_pernr1 = ls_0001-pernr .

**********************************************************************

             lv_param = lv_attest_id.

* get the URL of the called application

     CALL METHOD CL_WD_UTILITIES=>CONSTRUCT_WD_URL

       EXPORTING

         APPLICATION_NAME = LV_APPLICATION

       IMPORTING

         OUT_ABSOLUTE_URL = LV_URL.

 

     CALL METHOD CL_HTTP_SERVER=>IF_HTTP_SERVER~APPEND_FIELD_URL

       EXPORTING

         NAME  = 'ATTEST_ID'

         VALUE = lv_param

       CHANGING

         URL   = LV_URL.

**********************************************************************

         lv_param = lv_pernr1.

         CALL METHOD CL_HTTP_SERVER=>IF_HTTP_SERVER~APPEND_FIELD_URL

           EXPORTING

             NAME  = 'PERNR'

             VALUE = lv_param

           CHANGING

             URL   = LV_URL.

* open the external pop-up window

         LO_API_COMP = WD_COMP_CONTROLLER->WD_GET_API( ).

         LO_WINDOW_MG = LO_API_COMP->GET_WINDOW_MANAGER( ).

         LO_WINDOW = LO_WINDOW_MG->CREATE_EXTERNAL_WINDOW(

               URL = LV_URL

               modal          = abap_false

               has_menubar    = abap_false

               is_resizable   = abap_true

               has_scrollbars = abap_true

               has_statusbar  = abap_false

               has_toolbar    = abap_false

               has_location   = abap_false

               use_post       = abap_true

   ).

         LO_WINDOW->OPEN( ).

       clear LV_URL.

       ENDLOOP.


 

The windows were opened but no data inside (For information I'm using Word in Webdynpro (ACF))

the first window is opened correctly and all the fields filled, but the second, the third.... are empty with an ACF error :

 

ERRO|20130624185512|WD11_18280|CIOS_Word_ACF::|fp == NULL|HRESULT=-2147467259(Erreur non spécifiée)

 

 

ERRO|20130624185512|WD11_18280|CIOS_Word_ACF::|writeTmpFile|HRESULT=-2147467259(Erreur non spécifiée)

 

 

ERRO|20130624185512|WD11_18280|CIOS_Word_ACF::|writeFieldsToFile|HRESULT=-2147467259(Erreur non spécifiée)

 

 

ERRO|20130624185512|WD11_18280|CAcfControl::InvokeActiveX|Invoke of setFieldsfailed|HRESULT=-2147352567(Une exception s'est produite.)

 

 

ERRO|20130624185514|WD11_15776|CIOS_Word_ACF::|proxy->Invoke: Cette méthode ou propriété n'est pas disponible car aucun texte n'a été sélectionné.|HRESULT=-2147352567(Une exception s'est produite.)

 

 

ERRO|20130624185514|WD11_15776|CIOS_Word_ACF::|invokeMethodByName : Copy|HRESULT=-2147352567(Une exception s'est produite.)

 

 

ERRO|20130624185514|WD11_15776|CIOS_Word_ACF::|invokeMethodByName: copyNewDocument|HRESULT=-2147352567(Une exception s'est produite.)

 

 

ERRO|20130624185514|WD11_15776|CAcfControl::InvokeActiveX|Invoke of setFieldsfailed|HRESULT=-2147352567(Une exception s'est produite.)

 

Can you help please?


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>