on 07-06-2010 5:57 AM
Hi ,
My requirement is to write an Flat file out from a Nested XML( more than 3 hirarchy).
example
<?xml version="1.0" encoding="UTF-8"?>
<root>
<grandfather>
<father>
<child>ABC</child>
<child>PQR</child>
<child>XYZ</child>
</father>
</grandfather>
</root>
After implementing adapter module , output should be
ABC
PQR
XYZ
My idea is to access the XML in adapter module and will get the node names as the parameter.
i have gone thro' all avaibale How to do 's of adapte module developement, searched SDn.. but coudn't found how to proceed
Can anybdy tell me how acess the XML inside the method
public ModuleData process(ModuleContext moduleContext,
ModuleData inputModuleData)
and how to write it in a file.
i can take care of the logic part. Just i need to know how to access the XML ( should use a parse for this , or any inbuild method?)
thnx
See a code sample here:
http://wiki.sdn.sap.com/wiki/display/XI/AdaptermoduleexampleforPI+7.1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it mandatory for you to implement an adapter module? If no, then you can even opt for MessageTransformBean....check it here:
http://help.sap.com/saphelp_nw04/Helpdata/EN/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
From the above help section refer Conversion in the Receiver Communication Channel ...a somewhat similar example is illustrated
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
If this is your requirement you can achieve this using XSLT mapping,select out mode as Text,simple XSL will work.
if you are trying with adapter module then search in sdn, you will tons of documents .
Regards,
Raj
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.