on 03-19-2008 9:03 PM
How can I extract data from an interactive Adobe from into internal table using ABAP code. Can anybody send me some sample code and/or documentation on it?
Thanks in advance.
Hi Dean,
If we represent your table as XML you will got something like this .
<TABLE>
<RECORD>
<FIELD1>...</FIELD1>
<FIELD2>...</FIELD2>
</RECORD>
<RECORD>
<FIELD1>...</FIELD1>
<FIELD2>...</FIELD2>
</RECORD>
...
...
...
<RECORD>
<FIELD1>...</FIELD1>
<FIELD2>...</FIELD2>
</RECORD>
</TABLE>
So you have to code this to process it .
DATA XML_NODE type ref to IF_IXML_NODE.
DATA l_ref_node_list TYPE REF TO if_ixml_node_list.
DATA l_ref_subnode_list TYPE REF TO if_ixml_node_list.
DATA l_ref_child TYPE REF TO if_ixml_node.
DATA l_subnode_child TYPE REF TO if_ixml_node.
DATA v_nodesindex type i.
DATA l_count type i.
DATA v_count type i .
data v_name type string.
xml_node = xml_document->find_from_name( name = 'TABLE' ).
l_ref_node_list = xml_node->get_children( ).
* L_REF_NODE_LIST will contain all subnode of the current node
WHILE v_nodesindex < l_ref_node_list->get_length( ).
l_ref_child = l_ref_node_list->get_item( v_nodesindex ).
* You will get the node <RECORD>.
l_ref_subnode_list = xml_node->get_children( ).
* You will get number of child of the node <RECORD>.
clear v_count.
while v_count < l_ref_subnode_list->get_length().
l_subnode_child = l_ref_subnode_list->get_item( v_nodesindex ).
v_name = l_subnode_xhild->get_name().
* You will got the name of the node then you have to code the process for it
endwhile.
ENDWHILE
Of course if you XML structure is more complex you can do the same while using recursivity . If you need i can give you a sample code for it.
Best regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dean,
U can get the data of interactive form into the context node of the view, to which u've binded the datasource property of the form. and then wherever you want your data, assign it through the attributes of the node in context.
Hope this helps,
Regards,
Amita.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dean,
This blog takes you through the process of uploading an offline pdf, that fetches the data from pdf to abap internal.
/people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
I guess it'll help.
Regards,
Amita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dean
Have a look this [article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d]
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.