Java mapping help
i have a scenario where i have to write a java mapping. (File to FIle scenario
i have to acess the File name and do a RFC look up in java mapping.
i have developed a class
TestProg.java
but in that i dont have main method.. so i am unble to generate the * .class* file.. can any one tell me how to create that.?
do i need to create a seperate class and create a main method inside that . and in that i need to calll TestProg.java?
The class
TestProg.java
has only one method void transform () , where i have written my logic.
Hi Sam Kumar,
Please check my response in these threads [Link1|Need help on guide of java mapping ] [Link2|Re: Read image file From JMS]
Regards,
Raghu_Vamsee
Similar Messages
-
Hi all,
I need help with java code please.
My source is a csv file and target is multiple idocs.
Source file structure is as follows:
Header (field 1, field 2, ........ field 10)
Item 1a (field 1, field 2, field 3, ......... field 180)
Item 1b (field 1, field 2, field 3, ......... field 180)
Item 2a (field 1, field 2, field 3, ......... field 180)
Item 2b (field 1, field 2, field 3, ......... field 180)
Item na (field 1, field 2, field 3, ......... field 180)
Item nb (field 1, field 2, field 3, ......... field 180)
First line is header. Second is VAT line. Third is Price line for that VAT. Now VAT and Price lines repeat. There need not be VAT line for non-European countries. So a VAT line may or may not preceed a Price line.
For example: the lines can be like:
Header
VAT1
Price1
VAT2
Price2
Price3
1) Now, it should produce 3 idocs like:
Header, VAT1, Price1
Header, VAT2, Price2
Header, Price3
2) One idoc should be created per a pair of VAT and Price lines and they will be identified by a co-relation of a particular field. So first I have to sort all the lines based on this field value. Then I have to read the lines in pairs. If no Vat line, I should just read the Price item and produce an idoc.
Can you please help me with the java code for this?
Many thanks in advance.
Ramesh.Many thanks Ram.
The reason for thinking to go for java mapping is that there is no keyfield for price line. The source file is a pipe delimited csv file. There is a keyfield for VAT line. The same field will be empty for the Price line. I am trying to ask them to at least provide a space for that field between the pipes for price line so that I can use in FCC. It looks like they can't modify the source file.
Any inputs please?
Regards.
Ramesh. -
hi all,
I've a source structure like this below in PI.
<MAT>
<doc type>pdf</doc type
<subnumber>1234</subnumber>
<id>45ABC<id>
<matno>ABCD</matno>
<filename>transaction1.pdf</filename>
</MAT>
target structure would be the same but one more field <filecontent> which is bytearray content such as content=[101, 115, 116, 13, 10, 84, 101, 115, 116, 13, 10, 84, 101, 115, 116, 13, 10, 84, 101, 115, 116, 13, 10, 13, 10, 84, 101, 115, 116, 13, 10, 84, 101, 115, 116, 13, 10, 13, 10, 84, 101, 115, 116, 13, 10, 13, 10, 84, 101, 115, 116, 13, 10, 84, 101, 115, 116, 13, 10]
<MAT>
<doc type>pdf</doc type
<subnumber>1234</subnumber>
<id>45ABC<id>
<matno>ABCD</matno>
<filename>transaction1.pdf</filename>
<filecontent>bytearraycontent</filecontent
</MAT>
And target is HTTP post for posting the above attribute names and values in the body of HTML
I am writing a java mapping program because I have to read the <filename> tag value from the incoming xml and read the file from PI server location and convert the file content to bytearray and also to map it to target structure for HTTP post. I am requesting help from java experts here in modifying the program according to this requirement. pls help
package com.usahealth.mapping;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import com.sap.aii.mapping.api.AbstractTrace;
import com.sap.aii.mapping.api.AbstractTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
public class ReadAttrMap extends AbstractTransformation {
@Override
public void transform(TransformationInput in, TransformationOutput out)
throws StreamTransformationException {
AbstractTrace trace = null;
try {
// Initialize Trace
trace = getTrace();
// Get Input Message as DOM
DocumentBuilderFactory docBFactory = DocumentBuilderFactory
.newInstance();
docBFactory.setNamespaceAware(true);
DocumentBuilder docBuilder = docBFactory.newDocumentBuilder();
Document inDoc = docBuilder.parse(in.getInputPayload()
.getInputStream());
inDoc.getDocumentElement().normalize();
// Read from PayLoad - here is where I need help to read the filename - convert it to byte array and read other xml tag values and pass to target structure for HTTP post. I am using HTTP receiver adapter for posting
} catch (Exception e) {
trace.addInfo(e.getMessage());
throw new StreamTransformationException("Mapping Exception: "
+ e.getMessage(), e);
thx
mikeIndrajit, thx again
So I believe, the java mapping has to be changed to not pass MAT for create element
// building the target structure Element target = newdoc.createElement("MAT"); - I have to remove this
newdoc.appendChild(target); - have to remove this. Element doctype = newdoc.createElement(root.getChildNodes().item(1) will be changed to item(0)
.getNodeName());
And also to add the logic for [ ]
String data = "[";
if (fileArray != null) {
for (int i = 0; i < fileArray.length; i++) {
if data = "[";
data = data + fileArray[i];
else
if (i < fileArray.length - 1) {
data = data + ",";
endif.
data = data + "]";
is this right?
thx indrajit
-mike -
Need help on guide of java mapping
HI,
I want to learn java mapping. I searched in blogs but I am not comfortable to understand. Can anyone explain me the step by step process.
Thanks,
EnivassHi enivas,
Having basic understanding about J2SE will be great help for you. Please check these links about Java Mapping step by step
Implementing a Java Mapping in SAP PI /people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
XI Java Mapping Helper (DOM) /people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
Debugging Java Mappings using SAP Netweaver Developer Studio /people/christian.drumm/blog/2008/09/30/debugging-java-mappings-using-sap-netweaver-developer-studio
Handling and Tracing Runtime Exceptions in Java Mapping /people/prasannakrishna.mynam/blog/2009/07/21/handling-and-tracing-runtime-exceptions-in-java-mapping
SAP PI Java API has changed a lot from PI7.0 to PI7.1. http://wiki.sdn.sap.com/wiki/display/XI/UsingPI7.1APIforJavamapping
Check them out in this link Javadocs Index http://www.sdn.sap.com/irj/sdn/javadocs. Blogs mentioned use old API, but once you get idea about Java mapping switching to new API will be easy. Java help is easily available on net, use Google more. Happy learning.
Regards,
Raghu_Vamsee -
Hi,
Question:
1. What is java mapping.
2. How I use java mapping/UDF in message mapping
for my below scenario
In my Request XML there are 2 fields.
In my Response XML there are 2 fields.
Field 1 of Request XML needs to be mapped directly to
Field 1 of Response XML.
Field 2 needs to be passed as paramter to java class and
java class will be give response that will be mapped to
Field 2 of Response XML.
Pls advice . It is urgent.
RegardsHi Rac,
Java mapping can be used when you have complex mapping structures.
We can do most of the times for our requirements through Graphical mapping.
When the structures are very complex to build you can go for SAX (Simple API for XML) or DOM (Document Object Model) parsers.
Message mapping internally generates DOM parser.
Java Mapping in XI
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
SAP Network Blog: Implementing a Java Mapping in SAP PI
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
Java Mapping (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
SAP Network Blog: XI Java Mapping Helper (DOM)
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
SAP Network Blog: Testing and Debugging Java Mapping
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
Thanks,
Satya Kumar.
Reward points if it is useful.. -
Hi all,
Plz suggest me any blogs on Java Mapping Concepts.
Thank you.
Regards
Krishna.Hi
check the following
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingusingDOMParser&
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
regards
krishna -
Functions used in Java mapping
hi
If anybody has worked on Java mapping, Can anybody tell me the common functions that are used in Java mapping along with some examples
Also how java mapping is more useful as compared to XSLT and ABAP mapping, when to use java mapping and some demo example on java mapping if available
Thanks & regards,
Loveena.Hi Loveena
refer these Blogs for Step-via step for java mapping
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
<b>Java Mapping (Part I)</b>
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/javaMappingusingDOMParser&
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
JAVA Mapping :If you have complex mapping in your scenarios and also some times if you have more than 100 field to map then better to choose the JAVA MApping
Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but, DOM is very processor intensive.
SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exactly easy to develop either.
DOM and SAX are APIs
In NWDS we have to develop the mapping and create jar and archieve and import it under Iported archieved in IR. this can be used in Interface mapping.
See the below links so that you can have screen shots,...
Java Mapping
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
Re: java ,abap and XSLT mapping
Re: java ,abap and XSLT mapping
Re: When to Use XSLT,Java or Graphical Mapping
mapping
Testing and Debugging Java Mapping -/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Thanks !!
Regards
Abhishek Agrahari -
Regarding Java mapping and ABAP Mapping
Hello,
If I suppose to do Java mapping or ABAP mapping, Is there any pre requisite to perform these two mappings?
If exist what they are?
How to perform them?
Thank youHello jyotsna,
Java mapping can be used when you have complex mapping structures.
We can do most of the times for our requirements through Graphical mapping.
When the structures are very complex to build you can go for SAX (Simple API for XML) or DOM (Document Object Model) parsers.
Message mapping internally generates DOM parser.
Java Mapping in XI
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
SAP Network Blog: Implementing a Java Mapping in SAP PI
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
Java Mapping (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
SAP Network Blog: XI Java Mapping Helper (DOM)
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
SAP Network Blog: Testing and Debugging Java Mapping
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
refer step by step guides for ABAP Mapping
ABAP Mapping
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=abap+mapping&adv=false&sortby=cm_rnd_rankvalue#
How to Use ABAP Mapping in Exchange Infrastructure 3.0 (NW2004)
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
SAP Network Blog: Testing ABAP Mapping
/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
SAP Network Blog: How to call XI ABAP Mapping via RFC
/people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
SAP Network Blog: XI: ABAP mapping logs - more standard = better visibility
/people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
SAP Network Blog: Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
You need to provide the name of your mapping program maually , you see it is an input box.
just provide the name of abap mapping program it will work.
and one more thing you cannot test abap mapping program in integration builer you need to test in abap only.
use tcode: SXI_MAPPING_TEST for testing abap mapping
Thanks,
Satya
Reward points if it is useful.. -
About Java mapping and java proxy
Hi
Iam new to Xi and basically iam an ABAPER.When iam dooing mappinps or proxies i cant able to understand the java pari cant (javamapping and java proxies) .I need some notes on java mapping and java proxy which is easy to do.And why do we use this java mapping or java proxy particularly when we r having abap mappipng and abap proxy.
thanks in advanceHi,
refer
Java Mapping
SAP Network Blog: Java Mapping (Part I)
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
Java Mapping in XI
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
Runtime Environment (Java Mappings) (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/bd/c91241c738f423e10000000a155106/frameset.htm
Java Mapping (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
SAP Network Blog: Testing and Debugging Java Mapping
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
SAP Network Blog: Implementing a Java Mapping in SAP PI
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
"JAVA MAPPING", an alternate way of reading a CSV file
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
SAP Network Blog: XI Java Mapping Helper (DOM)
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
Java Proxy
Java Proxy Objects (SAP Library - SAP Exchange Infrastructure)
http://help.sap.com/saphelp_nw04/helpdata/en/c5/7d5e3c754e476ee10000000a11405a/frameset.htm
Accessing Active Directory through Java Proxy on SAP Exchange Infrastructure 3.0
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10716e9f-23d7-2a10-8c8c-d2665615f8fc
Thanks
Swarup -
Hello,
Can any one explain Java mapping when I am sending PO to reciever system? And what are the necessary requirements? And what are the transction codes we will use for this?
Plz...........
Thank youHi,
Java mapping can be used when you have complex mapping structures.
We can do most of the times for our requirements through Graphical mapping.
When the structures are very complex to build you can go for SAX (Simple API for XML) or DOM (Document Object Model) parsers.
Message mapping internally generates DOM parser.
Java Mapping in XI
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=java+mapping&adv=false&sortby=cm_rnd_rankvalue#
SAP Network Blog: Implementing a Java Mapping in SAP PI
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
Java Mapping (SAP Library - Partner Connectivity Kit)
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
SAP Network Blog: XI Java Mapping Helper (DOM)
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
SAP Network Blog: Testing and Debugging Java Mapping
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
Binary Conversion in XI - Java Mapping - Code Gallery - Wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/binary%2bconversion%2bin%2bxi%2b-%2bjava%2bmapping
SAP Network Blog: "JAVA MAPPING", an alternate way of reading a CSV file
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
Difference in using java,xslt,message mapping
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
/people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
/people/venkataramanan.parameswaran/blog/2006/12/12/java-mapping-to-handle-flat-files-in-sap-xi
Thanks
Swarup -
Hi Experts,
please help me ,
How TO Use Java Mapping In XI?
Thanks
MaheshHi,
Just refer the following links for java mapping:-
1./people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs
2./people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
Regards,
Ashwin M
Reward if helpful -
Hi All,
I need Java mapping help. I will get incomming payload as following
<orders>
<matnr>123</matnr>
<qty>10</qty>
</orders>
i need to change the above payload as follows
<ns0:orders>
<ns0:matnr>123</ns0:matnr>
<ns0:qty>10</ns0:qty>
</ns0:orders>
Please help me how to achieve this using Java mapping.
Regards
VijayHi,
Dom will be quite expensive for this type of requirement since you will have to go to each element and then append the namespace.
I suggest you use SAX parser which is more efficient for such requirement.
The code is given below you can modify it according to your requirement.
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
public class SAXDemo extends DefaultHandler{
public StringBuffer sb = new StringBuffer();
public String PREFIX = "ns0:";
int count = 1;
public static void main(String[] args)
SAXDemo demo= new SAXDemo();
demo.saxdemo();
System.out.println();
public void saxdemo()
InputStream in;
try
in = new FileInputStream(new File("Input.xml"));
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(false);
SAXParser saxParser = factory.newSAXParser();
* Parse the content of the given {@link java.io.InputStream}
* instance as XML using the specified
* {@link org.xml.sax.helpers.DefaultHandler}.
* @param inputstream InputStream containing the content to be parsed.
* @param cobject The SAX DefaultHandler to use.
* @exception IOException If any IO errors occur.
* @exception IllegalArgumentException If the given InputStream is null.
* @exception SAXException If the underlying parser throws a
* SAXException while parsing.
saxParser.parse(in, this);
System.out.println(sb.toString());
catch (FactoryConfigurationError e)
e.printStackTrace();
catch (ParserConfigurationException e)
e.printStackTrace();
catch (SAXException e)
e.printStackTrace();
catch (IOException e)
e.printStackTrace();
public void startDocument()throws SAXException
public void endDocument()throws SAXException
public void startElement(String namespaceURI, String name, String qName, Attributes attrs)
throws SAXException
if(count == 1)
sb.append("<"+PREFIX+qName+" "+PREFIX+"xmlns="+namespaceURI+">");
else
sb.append("<"+name+">");
count ++;
public void endElement(String uri, String name, String qName) throws SAXException
sb.append("</"+qName+">");
public void characters(char buf[], int offset, int len)
throws SAXException
String s = new String(buf, offset, len);
buf = null;
sb.append(s.trim());
s = null;
Regards
Fariha -
Hi Guys,
Can i test my JAVA Mapping (DOM).
I create all coding as per the requirment . Is it a way that in the NWDS in can give input XML Document and test there in Eclipse before am using it in the XI Mapping.
How to pass "InputStream in" XML document and read the output.
Am bit new to JAVA programing.
If there is anyu way plz do provide me an idea , that help me in debigging well my JAVA Programing
regards
Srinivashi venkateshwarulu
check the below blogs
XI Java Mapping Helper (DOM)
The specified item was not found.
Think objects when creating Java mappings
Think objects when creating Java mappings
Testing and Debugging Java Mapping
Testing and Debugging Java Mapping in Developer Studio
reward pionts if helpfull
regards
kummari
Edited by: kummari on Jul 9, 2008 7:28 AM
Edited by: kummari on Jul 9, 2008 7:51 AM -
XI Mail Adapter: sending emails with attachment with help of java mapping
Hi ,
On trying out the scenerio mentioned in the blog, using the java mapping provided
"XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
The scenerio works just fine.
But the payload as the content of the attachment is not getting generated in proper XML format.
I suppose it's because of the replace special characters code part..
Can anyone help me state the modification required in the code.
Thanks!
Regards,
Faria MithaniIt might be a codepage issue. Is your original payload UTF-8?
-
000000000000F0011000001448MSQUAL9010000000906 *
200798438321H001 SHEN.500010/10/200723:56:55NOSP KWO4A MS*
2007984383215397 00000500000205 *
2007984383215396 00000200000205 *
200798438321C001 *
200798438322H001 SBHS.500011/10/200705:50:00NOSP AGH4A MS*
2007984383225397 00000500000205 *
2007984383225396 00000238000205 *
2007984383220012 00001480000355 *
200798438322C001 *
=============================================
Main header :000000000000F0011000001448MSQUAL9010000000906 ( relation 1:1 )
Each record ending with Start : *
Sub Header : 200798438321H001 ( relation 0:unbound )
body messages 00000500000205 ( relation 0:unbound )
Close Subheader :200798438322C001 ( relation 0:unbound )
any one could help how to write the Java mapping , am able to get the data from local folder , but error getting as a message mapping error, there is no key field values for in this message.
Probably it should be happen with Java mapping, actually I am from SAP SD back ground, can understand the ABAP.
Warm regards,
kumar.Hi,
I think file adapter is sufficient for you. Dont need any java mapping. Refer to the file adapter content conversion for sender. Identify the key fields for heading, messages and footer. Then define record set with repeating structures in it like head,1,msg,*,footer,1.
This should solve the problem.
VJ
Maybe you are looking for
-
Formula Variable with Replacement Path - drillup ref.char and still working
Hi all, I have a requirement, where formula variable (with replacement path) shouldn't work when I remove the reference characteristic from the rows. But this is not the case at the moment I have 'Brand' and 'Material' in the rows and there is 'Mater
-
Creating a directory statically in the Application Server
Hi, I need to create a directory in the application server statically (not through code), in which I later have to store and read files. Most forums talk about doing this through AL11 --> Configure. While this does create an entry in the directory li
-
Started set up on ipad. When I went to second screen, showing list of more language preferences I accidentally touched portuguese and this must have replaced the default, ticked, English option. Next screen, localisation, came up (in Portuguese) but
-
Oracle iPlanet Web Proxy Server 4.0.14 not getting started.
bash-3.00# ./start ld.so.1: parsexml: fatal: relocation error: file parsexml: symbol __RTTI__1nMXMLException_: referenced symbol not found ld.so.1: parsexml: fatal: relocation error: file parsexml: symbol __RTTI__1nMXMLException_: referenced symbol n
-
Display BLOB contents to client
I want to display the blob contents in the clients window and give him the option either to open or save the contents. I am able to read the contents from Oracle Blob Field and stored the contents in the ByteArrayOutputStream object but I am not able