on 06-11-2008 2:02 PM
Hi everybody,
I had create a WebDybpro Abap that contain an Adobe Interactive Form, now I must store this Interactive Form into Archive Link like a PDF document.
I succeeded to save the PDF document on the archive link but after this operation, when I open this document saved, it doesn't show me the data but only the Interactive Form structure. The only data that file PDF saves are those I passed to Interactive Form during at the event initialization, but it lose all others datas that I inserted on the Interactive Form before to save.
There is one mode to save also these datas or I can store only data that I load at the initialization event?
I hope in your fast help.
Regards.
Davide.
To follow the code that I use for Archive my Interactive form like PDF document.
Salvataggio nell'ArchLink ********************************************
Ricavo il PDF Source
DATA: elem_context TYPE REF TO if_wd_context_element,
stru_context TYPE wd_this->element_context ,
item_pdf_source LIKE stru_context-pdf_source.
get element via lead selection
elem_context = wd_context->get_element( ).
get single attribute
elem_context->get_attribute(
EXPORTING
name = `PDF_SOURCE`
IMPORTING
value = item_pdf_source ).
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_zcentral_person( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
DATA: l_ref_interfacecontroller TYPE REF TO
ziwci__wdr_ess_central_person.
l_ref_interfacecontroller = wd_this->wd_cpifc_zcentral_person( ).
l_ref_interfacecontroller->store_adobe_document(
ar_object = 'ZHRDETRAZ' " Toaom-ar_Object
doc_type = 'PDF' " Toadv-doc_Type
object_id = objid " Sapb-sapobjid
pdf_source = item_pdf_source " Xstring
sap_object = 'PREL' " Toaom-sap_Object ).
METHOD store_adobe_document. ***********************************************
Converto la XSTRING del PDF in tabella binaria
DATA: l_tab TYPE TABLE OF tbl1024,
lenght TYPE i.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = pdf_source
IMPORTING
output_length = lenght
TABLES
binary_tab = l_tab.
Calcolo la dimensione del documento
DATA: doc_id TYPE saeardoid,
size TYPE i,
lineno TYPE i,
length TYPE i.
DESCRIBE TABLE l_tab LINES lineno.
size = lineno * 1024.
DATA toaom_fkt TYPE TABLE OF toaom.
CALL FUNCTION 'ARCHIV_METAINFO_GET'
EXPORTING
ar_object = ar_object
sap_object = sap_object
TABLES
toaom_fkt = toaom_fkt.
CALL FUNCTION 'SCMS_AO_TABLE_CREATE'
EXPORTING
arc_id = 'ZP'
doc_type = doc_type
length = size
IMPORTING
doc_id = doc_id
TABLES
data = l_tab.
Create link to business object
CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
EXPORTING
archiv_id = 'ZP'
arc_doc_id = doc_id
ar_object = ar_object
mandant = sy-mandt
object_id = object_id
sap_object = sap_object
doc_type = doc_type
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2.
ENDMETHOD. ********************************************************************
See also:
How to archive an adobe form?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Davide,
I have a requirement where I just need to SAP HCM Archive Adobe form in External repository.
Since you are using the archiveLink functionality.
Can you please help me how you did?? What configurations need to be maintained for this?
I am new to this. I did some Rnd on it and found that it can be achieved using HRFORM_HRF02 Business Add-In in the SET_ARCHIVE_INDEX method.
But I have no clue how to do it?
Can you please help me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.