cancel
Showing results for 
Search instead for 
Did you mean: 

MII Transaction don't wait RFC's response

hakansahin
Explorer

Hi Experts,

I have a problem with MII JCO Interface. I created a transaction and added a JCO Interface and Tracer. I created a lot of transaction like this but only one doesn't work properly.

I'm testing transaction with parameter. Tracer shows response but actually RFC waiting on debug. My other transactions haven't got problem like this. Tracer shows 'Executing transaction' message and shows response when RFC is completed.

MII Server version : 15.1.6.3
MII Workbench version : 15.1.6.3



*"*"Local Interface:

*"  IMPORTING

*"     VALUE(IV_AUFNR) TYPE  AUFNR

*"  EXPORTING

*"     VALUE(EV_URL) TYPE  CHAR060

*"----------------------------------------------------------------------



  DATA: lt_view    TYPE TABLE OF zmlz_view,

        ls_view    LIKE LINE OF lt_view,

        lt_files   TYPE TABLE OF cvapi_doc_file,

        ls_files   LIKE LINE OF lt_files,

        lv_xstring TYPE xstring,

        lv_pdf     TYPE dappl,

        lt_xstring TYPE zbz_wd_doc_list_tt_xstring,

        ls_xstring LIKE LINE OF lt_xstring.



  SELECT * FROM zmlz_view

    INTO TABLE lt_view

    WHERE aufnr EQ iv_aufnr AND

          dokar EQ 'CA2'.



  IF sy-subrc EQ 0.

    READ TABLE lt_view INTO ls_view INDEX 1.



    "yeni eklendi

    CALL FUNCTION 'ZBZ_WM_FM_DMS_CONVERT_MULTI'

      EXPORTING

        iv_dokar       = ls_view-dokar

        iv_doknr       = ls_view-doknr

        iv_dokvr       = ls_view-dokvr

        iv_doktl       = ls_view-doktl

      IMPORTING

        et_xstring     = lt_xstring

        ev_application = lv_pdf.



    READ TABLE lt_xstring INTO ls_xstring INDEX 1.

    lv_xstring = ls_xstring-fxstring.



    CONSTANTS lc_input_content_type   TYPE string VALUE  'image/tiff'.

    CONSTANTS lc_output_content_type  TYPE string VALUE 'image/jpeg'.

    "CONSTANTS lc_path TYPE string VALUE '/SAP/BC/WebDynpro/SAP/Z_TIF_IMAGE_DISPLAY/TIFF.tif'.



    data lv_converted_img_xstring type xstring.

    data lv_img_cache_url         type string.

    data lo_wd_genel  TYPE REF TO zbz_cl_wd_genel.



    create OBJECT lo_wd_genel.



    "lv_converted_img_xstring = lo_wd_genel->fetch_image_mime( lc_path ).



    lv_converted_img_xstring = lo_wd_genel->convert_image(

      iv_xstring              = lv_xstring

      iv_input_content_type   = lc_input_content_type

      iv_output_content_type  = lc_output_content_type

    ).



    lv_img_cache_url = lo_wd_genel->cache_image(

      iv_img_blob = lv_converted_img_xstring

      iv_img_type = lc_output_content_type

    ).



    ev_url = lv_img_cache_url.

Accepted Solutions (0)

Answers (0)