on 11-23-2016 6:18 PM
I gave up doing this dynamic reading and did using field mapping. Thank you for your attention and help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wilson!
If you need to send contents of your table as XML structure, why not to create Data/Message types for that table, define interface with operation using that maessage type and generate ABAP sender proxy in your source system?
In ABAP code you just fill structures of source message with your table's data and call the generated proxy class's method to send message to PI.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wilson!
Your error message is self-descriptive. It says that module processor couldn't find "MessageTransformBean" module. Check your communication channel where this module is used.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
i change the module adapter to:
1localejbs/ModuleProcessorExitBeanLocal Enterprise Beanexit2localejbs/StrictXml2PlainBeanLocal Enterprise BeanconvertModule configuration:
convert dataRec.fieldSeparator *
convert singleRecordType dataRec
exit JNDIName deployedAdapters/com.sap.aii.adapter.sftp.ra/shareable/com.sap.aii.adapter.sftp.ra
I don't see any errors, but my XML is like a payload, do you know how i convert to XML (generate in abap)?
Hi Evgeniy....
I convert the internal table in XML and try create a file in sftp, but i send a string....i don't know how i convert a input string in XML.
ex.:
Input :
<?xml version="1.0" encoding="UTF-8"?> -<ns0:MT_TEST_COM xmlns:ns0="urn:hrsolutions:vagas.com:1.0"> <LINE><?xml version="1.0" encoding="utf-16"?><asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"><asx:values><TAB><item><AREARH_DEPART>TESTE</AREARH_DEPART><CENTROCUSTO>1233</CENTROCUSTO></TAB></item></asx:values></asx:abap></LINE> </ns0:MT_TEST_COM>
But the correct is:
output:
<?xml version="1.0" encoding="UTF-8"?> -<ns0:MT_TEST_COM xmlns:ns0="urn:hrsolutions:vagas.com:1.0">
<?xml version="1.0" encoding="utf-16"?><asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<TAB>
<item>
<AREARH_DEPART>TESTE</AREARH_DEPART> <CENTROCUSTO>1233</CENTROCUSTO>
</TAB>
</item>
</asx:values>
</asx:abap>
</ns0:MT_TEST_COM>
thanks
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
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.