on 12-04-2012 6:29 AM
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
Hi KKP,
Can you please try clearing the content of all the internal tables and structures after FP JOB CLOSE.
Rgds,
Nitin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 = ' ' ).
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.