cancel
Showing results for 
Search instead for 
Did you mean: 

Intaractive Form Not clearing the content

kumar_kiran2
Participant
0 Kudos

Hi All,

I have a created a adobe form,via calling program, its working fine for one document.if i have more than 1 document then it is displaying previous document data not the current document.

Thanks,

KK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi KKP,

Can you please try clearing the content of all the internal tables and structures after FP JOB CLOSE.

Rgds,

Nitin.

kumar_kiran2
Participant
0 Kudos

Hi Nitin,

Thank you verymuch for your reply, i tried that option but no luck,

the below code i am using can you help me where i am doing wrong.

Or any other method i have to use.

thanks in advance

   

CLEAR: ls_return, gy_xstring.
       CALL METHOD lt_document->if_ex_hrhap00_smartforms~get_output_info_with_data
         EXPORTING
           flt_val       = c_flt_val "'ZASM_STANDARD_AP' "ly_flt_val
           s_document    = ls_document
*      output_type   = ' '
         IMPORTING
*      s_output_info = ls_output_info
           pdf_xstring   = gy_xstring
*      pdf_length    = li_length
           s_return      = ls_return.
       APPEND gy_xstring to gy_xstring1.


CLEAR: g_html_container,g_html_control.
CREATE OBJECT g_html_container
     EXPORTING
       container_name = 'CC_PDF'.

   CREATE OBJECT g_html_control
     EXPORTING
       parent = g_html_container.

* Convert xstring to binary table to pass to the LOAD_DATA method
   REFRESH lt_data.
   LOOP at gy_xstring1 INTO gy_xstring.
     CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
       EXPORTING
         buffer     = gy_xstring
       TABLES
         binary_tab = lt_data.
     APPEND LINES OF lt_data to lt_data1.
     REFRESH lt_data.


APPEND LINES OF lt_data1 to lt_data.
* Load the HTML
   CONCATENATE sy-datum sy-UZEIT '.PDF' INTO lv_url.
   CALL METHOD g_html_control->load_data(
      EXPORTING
        type         = 'application'
        subtype      = 'pdf'
      IMPORTING
        assigned_url         = lv_url
      CHANGING
        data_table           = lt_data
      EXCEPTIONS
        dp_invalid_parameter = 1
        dp_error_general     = 2
        cntl_error           = 3
        OTHERS               = 4 ).
*  BREAK-POINT.
* Show it
   CALL METHOD g_html_control->show_url( url = lv_url
     in_place = ' ' ).

kumar_kiran2
Participant
0 Kudos

Hi Gurus,

any one pls help me on this?

thanks,

KKP

kumar_kiran2
Participant
0 Kudos

Solved my Self.

using CALL FUNCTION 'ABAP4_COMMIT_WORK'.

Thanks.

Answers (0)