Message mapping in sap pi 7.3
Hi all,
I am using SAP PI 7.3. In ESR, I have declared one source data type & message type and one target data type & message type. I have also completed message mapping. But in message mapping, If I do right click on the target message type, I am getting one option "Add variable" in the context.
Can anyone tell me what is the use of it?
Thanks & Regards,
Moumita
Hi Moumita
This is mainly used to store some values in it and then use it later in the same mapping.
For example suppose there is a field which contains amount and it occurs in many times in the source structure.
So we can populate the sum of all this fields into this variable and later used that for populating any target field.
Another example is suppose we want to make an RFC look up in PI to store some data in ECC tables.
In that also we map the RFC look up function to this variable.
This variable will be not present in the map output.
Check this
SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
Similar Messages
-
HI,
We are facing a very strange problem , during runtime we are facing the below mapping problem ,
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_FILE_TO_IDOC_P~</S P:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
But when we have downloaded the XML from SXMB_MONI and tested the mapping it works fine , only in the run time we are facing this problem , funny part is the same scenario worked fine yester day itself (end-to-end).
<b>Note</b>: <b>Chche is uptodate.
Mapped all mandatory fields</b>
Regards,
VijayaHi
please chech whether the data in the input file is according to the format or not.
for this you go to sxmb_moni,take the input payload from the moni and test with that payload and you will come to lnow where is the error.
if you still have the problem please relly me back
Thanks
Rinku -
Message-Mapping transformation Error(Soap - XI - SAP)
Hi
We have a sceanio
Soap <-> XI <-> SAP
We could see the RFC return message from SAP but while trasforming that message to SOAP response ,we are getting the following error. We have manually run the response mapping program, it is executing fine.
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_GR_GetTODetails_Response_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
Could anybody please help us.
Thanks
RameshHi
Thank you so much for your promt responses. I could get great inputs from your responses.
It is the problem with the RFC return message structure. In one of the segment it was defined mandatory but the RFC is not populating that segment data.
Appreciate your help.
Warm Regards
Ramesh -
RuntimeException in Message-Mapping transformatio
Hi all,
My XI server is successfully picking up a comma separated file from an FTP server and generating the corresponding XML:
<?xml version="1.0" encoding="utf-8" ?>
<ns:CondRec_MT xmlns:ns="http://namespace-ConditionRecords">
<Recordset>
<ConditionRecord>
<Usage>A</Usage>
<Table>018</Table>
<Application>M</Application>
<ConditionType>PB00</ConditionType>
<VarKey>00000039301300-340 2 0</VarKey>
<Material>1300-340</Material>
<Vendor>3930</Vendor>
<PurchasingOrg>2</PurchasingOrg>
<Infotype>0</Infotype>
<InfoRecord>5300003218</InfoRecord>
<CondRecordNo>0000020727</CondRecordNo>
<ValidFrom>30.05.2006</ValidFrom>
<ValidTo>31.12.9999</ValidTo>
<ScaleType>A</ScaleType>
<CalculatType>C</CalculatType>
<KBETR>15.00</KBETR>
<CondCurrency>USD</CondCurrency>
<CondItemIndex>01</CondItemIndex>
<RelToPricing>X</RelToPricing>
</ConditionRecord>
</Recordset>
</ns:CondRec_MT>
But nothing is getting submitted to the receiver adapter.
The error in SXMB_MONI reads as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_file2file_mm_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_file2file_mm_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I am using a simple one to one mapping(i.e the same msg type is being used for both the outbound and inbound interface).
Pls can anybody guide me as to what can be the probable error.
Thanks in advance
Regards
NeetuHi all,
Thanks for ur prompt responses.
I followed the blog and performed testing of the mapping.
The XML with which i tried was as follows:
<?xml version="1.0" encoding="utf-8"?>
<ns:CondRec_MT xmlns:ns="http://namespace-ConditionRecords">
<Recordset>
<ConditionRecord>
<Usage>A</Usage>
<Table>018</Table>
<Application>M</Application>
<ConditionType>PB00</ConditionType>
<VarKey>00000039301300-340 2 0</VarKey>
<Material>1300-340</Material>
<Vendor>3930</Vendor>
<PurchasingOrg>2</PurchasingOrg>
<Infotype>0</Infotype>
<InfoRecord>5300003218</InfoRecord>
<CondRecordNo>0000020727</CondRecordNo>
<ValidFrom>30.05.2006</ValidFrom>
<ValidTo>31.12.9999</ValidTo>
<ScaleType>A</ScaleType>
<CalculatType>C</CalculatType>
<KBETR>15.00</KBETR>
<CondCurrency>USD</CondCurrency>
<CondItemIndex>01</CondItemIndex>
<RelToPricing>X</RelToPricing>
</ConditionRecord>
</Recordset>
</ns:CondRec_MT>
this gave the following error:
Cannot produce target element /ns:CondRec_MT/ConditionRecord. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
But when i removed the tag 'RECORDSET', it works fine and output gets genersted.
My datatype has no such field called recordset.
The adapter generates it on its on.
How do i solve this issue.
Regards
Neetu -
RuntimeException in Message-Mapping transformation
Hi all,
I am doing a soap2rfc scenario in that i have 2 message mappings are there
there are SUM1_MM and SUM2_MM
Message mapping test(SUM1_MM)
Source test
<?xml version="1.0" encoding="UTF-8"?>
<ns0:SUMOUT_MT xmlns:ns0="urn://web2rfcsum">
<NUM1>12</NUM1>
<NUM2>13</NUM2>
</ns0:SUMOUT_MT>
target result
<?xml version="1.0" encoding="UTF-8"?>
<ns1:ZSUM2NUMBERS xmlns:ns1="urn:sap-com:document:sap:rfc:functions"><NUM1>12</NUM1><NUM2>13</NUM2></ns1:ZSUM2NUMBERS>
But i have seen an error in sxmb_moni
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_SUM1_MM_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_SUM1_MM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
Please solve the problem your help is memorableHi Deviprasad,
It looks like a mapping error, test your mapping in IR with the payload from SXMB_MONI. You can refer michal's weblog on <a href="/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios to test your mapping (in real life scenarios)</a>
In other words you copy the XML message from monitoring and exectute the mapping in Integration Builder with maximal trace to get the reason.
Regards,
Abhy -
RuntimeException in Message-Mapping in E-FILING UK
Hi expert,
We attempted to submit our P35 for APSL (G5) - EOY submission payroll area, but received an error when we tried to execute the transmission to HMRC.
The error says in GG_submission :
-- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_HR_GB_EFO_EOYR_OUT_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_HR_GB_EFO_EOYR_OUT_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
We updated our Internet Explorer from IE 6 to IE 8. Thats the only update we did so far. And we also updated our HR Support Packages from HRSP49 to HRP53. Our Xi Content for SAP HR 6.00 is at level 42 and XI Content for E-Filing GB 1.0 is at level 16.01.
Is there a need to update our Xi contents? Or anything else need to be done?
Thanks.
Regards,
ThavaHi Stuart,
We've applied recommendations of SAP Note:1400735 but still we are seeing below error:
Log
TEST IN LIVE:- Tax ref. MZ00883 Tax district: 120 LONDON PRO
Mail "Communication Error" created
Sending started
No answer from Government Gateway received
com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_HR_GB_EFO_EOYR_OUT_: RuntimeException in Message-Mapping transformatio~
Data extracted and XML document created
Kindly Advice,
Thanks & Regards,
Sreedhar -
Hi all,
I am trying to test a file-file demo scenario, I am using single field and passing data in XML file with contents.
<?xml version="1.0" encoding="ISO-8859-1"?>
<INNAME>
<FirstName>
Mustafa
</FirstName>
</INNAME>
I am just mapping input and output fields, but I am getting the following exception.
Can you help me, where I am missing something.
SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MessMap_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_MessMap_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
regards,
MustafaHi,
I am not able to see any namespace declaration in your input XML, wheras normally you would have defined an interface mapping using a namespace. But, I don't know whether that is the problem here.
Can you check the TRACE message for more details. The TRACE message normally tells you the steps it has performed and where exactly it has failed.
Warm regards,
Venki. -
Error status code 400 with the description Message mapping failed
Hi,
I tried to build RFID outbound scenario using ECC 5.0, XI and AII 2.1.
When I send IDOC message:AIDOPMSG.AIDOP01 from ecc 5.0 to XI(ouput message type is OperationalIn and message mapping is OperationalInTo), i get following error:
<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
<SAP:P1>400</SAP:P1>
<SAP:P2>Message mapping failed</SAP:P2>
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>Message mapping failed</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>HTTP response contains status code 400 with the description Message mapping failed Boundary SAP_57D7D47469E09543A1EA0002CBDA0492_END could not be found</SAP:Stack>
I am using standard AUTO-ID 2.1 XI contents. If any of you have encountered such error message, then could you please help me understand the meaning and how to fix it.
thanks in advance,
Ashithi Ashit,
take a look at my weblog on how to test your mapping:
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
maybe with this you'll be able to find out the error
Regards,
michal -
Change Message Mapping / Cannot change / Pen not active?!
Hi there,
i have a Problem. I have to change a Message Mapping.
SAP sended me a Note with a Word Doc where is described what i have to change..
But in the Integration Builder Design i cannot change a mapping.. cause the PEN in the Menu is greyed out...?!
Please help
Regards
BjoernThanks
that was it -
Graphical Message mapping complexity in SAP PI 7.31 single stack
Hi All,
I have a source structure 1..unbounded
<Material>
<row> 1....unbounded
<Mat_ID>123<Mat_ID>
<Desc><text</Desc>
<uom>EA</uom>
<plant>AB</plant>
<org>XY</org>
</row>
<row>
<Mat_ID>123<Mat_ID>
<Desc><text</Desc>
<uom>ST</uom>
<plant>CD</plant>
<org>FG</org>
</row>
<row>
<Mat_ID>123<Mat_ID>
<Desc><text</Desc>
<uom>XY</uom>
<plant>DE</plant>
<org>ZX</org>
</row>
</Material>
Target Structure
<Material>
<row> ---> 1....unbounded
<Mat_ID>123<Mat_ID>
<Desc><text</Desc>
<uomdata> ---> 0 ----unbounded
<uom>EA</uom>
<uomdata>
<uomdata>
<uom>ST</uom>
</uomdata>
<uomdata>
<uom>XY</uom>
</uomdata>
<plantdata> ----> 0 ----unbounded
<plant>AB</plant>
</plantdata>
<plantdata>
<plant>CD</plant>
</plantdata>
<plant>DE</plant>
</plantdata>
<orgdata> ----> 0 ----unbounded
<org>XY</org>
</orgdata>
<orgdata>
<org>FG</org>
</orgdata>
<orgdata>
<org>ZX</org>
</orgdata>
</row>
</Material>
How do I do message mapping (preferably graphical mapping) to achieve the target structure. The values of each elements are manipulated for easiness. There are more than one fields under each node in real scenario. Please let me know
thx
mikeBeautiful..Thx...
I will try out and let you know Amit
One more request.
I have to do this mapping first and use it in receiver interfaces of ICO using an operation mapping and inbound interface as usual.
Now, I have to add 2 more inbound interfaces in the receiver interfaces and maintain order at Runtime to execute the above mapping first always and then execute the 2 additional inbound interfaces based on some condition.
The condition has to be something like this (source structure <flag> field value dependent condition)
/Material/row/flag = 'N' call the second inbound interface to execute a operation mapping
/Material/row/flag = 'N' call the third interface to execute another operation mapping
Now the complexity here is:
If the source structure is like this below
<Material>
<row> 1....unbounded
<Mat_ID>123<Mat_ID>
<Desc><text</Desc>
<uom>EA</uom>
<plant>AB</plant>
<org>XY</org>
<flag>N</flag> -- this is the flag field for the first material
</row>
<row>
<Mat_ID>123<Mat_ID>
<Desc><text</Desc>
<flag>N</flag> -- this is the flag field for the first material again
<uom>ST</uom>
<plant>CD</plant>
<org>FG</org>
</row>
<row>
<Mat_ID>345<Mat_ID>
<Desc><text</Desc>
<flag>N</flag> --this is the flag field for the second material
<uom>XY</uom>
<plant>DE</plant>
<org>ZX</org>
</row>
and so on
</Material>
The target structure for the additional 2 inbound interface are shown below
2nd inbound interface target structure
<Material>
<Mat_ID>123</Mat_ID>
<flag>N</flag> - constant value 'N'
<Mat_ID>345</Mat_ID>
<flag>N</flag> - constant value 'N'
</Material>
3rd inbound interface target structure
<Material>
<Mat_ID>123</Mat_ID>
<flag>Y</flag> - constant value 'Y'
<Mat_ID>345</Mat_ID>
<flag>Y</flag> - constant value 'Y'
</Material>
first question: how do I write a condition for checking the source structure <flag> field value for every unique material ?
second question: what would be the message mapping and operation mapping for the 2nd and 3rd inbound interfaces?
thx
mike -
Problem in message Mapping SAP PI 7.1
Hi Experts,
I have a problem in my Message Mapping,
Design: [Design|http://www.life-4-music.de/prob.jpg]
Messagemapping: [MappingTest|http://www.life-4-music.de/probII.jpg]
The Problem is, that ElementC from SourceMessage occours "0 to n" times in Element A, but I need to check every ElementC in ElementA to TargetElementA with a IF Statement.
I tried a lot of things, like change the CONTEXT of the ELEMENT or use SPLIT BY VALUE but without success.
Rgds,
SteffenHello, thanks a lot for the fast awnser. I tried this allready to change the Context of the Elements "system" in this Mapping: Changed Context
For Example in one field I check for Entry "ERP" in Source Field "system" , if "ERP" is in the first ELEMENT then it will be mapped correctly: Example ERP works
But If "ERP" is in an element below, then it doesn´t work, so it seems to be, that he only map the first occurrence of the Elements. : Example SCADA don´t work
Here is the View of the QUEUE from the don´t working Example: Show QUEUE of not working Example
maybe u have a tip for me again , because I´m allready desperate
Thanks a lot.
Rgds,
Steffen -
Error while activating any message mapping in IR: very strange
hi forum i m getting an error in IR while activating any messageMapping.
the error is too long to be posted....i m posting a few lines of that:
Internal error while checking object Message Mapping MM_sdptestFileToFile | http://sdzpoc.com.test/sdptest (ZPOC_TEST, 1.0 of zpoctest); see details (CHECK_EXCEPTION)
Internal error while checking object Message Mapping MM_sdptestFileToFile | http://sdzpoc.com.test/sdptest (ZPOC_TEST, 1.0 of zpoctest); see details (CHECK_EXCEPTION)
/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapdddd0cb0100311dca6090012799eddc6/source/com/sap/xi/tf/_MM_sdptestFileToFile_.java (No such file or directory (errno:2))
/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapdddd0cb0100311dca6090012799eddc6/source/com/sap/xi/tf/_MM_sdptestFileToFile_.java (No such file or directory (errno:2))Sudeep,
Let we try this way. I'm sure you might have some existing mapping objects in IR.
Try to change that object(Description give some name) and activate again the object.
Reply your results whether you are getting the same error.
One sec before changing the object just test the mapping and change the object.
Best regards,
raj. -
Error while activating message mapping
Hi,
We are trying to activate message mappings and getting error as CHECK_EXCEPTION and in error details its showing that usr/sap/server.........................../classpath_resolver/Map.......................no such file or directory.........
What can be the issue?We can activate all other objects(DT,MT,IM,etc)
Best Regards,
Harleen Kaur ChadhaHi
Check this thread you can find the reason for this error CHECK_EXCEPTION solved here
Activating Object in IR - Getting Null Pointer Exception
Re: mapping test error
Internal error while checking object Message Mapping...
Problem Activating Mappings in the IR
Message Mapping activation Error
Regards
Abhishek -
Message Mapping activation error-Source code has syntax errors in UDF
Hi all,
I wrote a small UDF for sum of 2 numbers:
import
udf.*
public String getsum(String a, String b, Container container) throws StreamTransformationException{
int c = Integer.parseInt(a);
int d = Integer.parseInt(b);
int e = packageDemo.getSum(c,d);
return e+"";}
In imported archives, i imported pack.jar
In D:\udf , I have packageDemo.java, packageDemo.class, aii_map_api.jar, pack.jar(has the other 3)
packageDemo.java :-
package udf;
public class packageDemo{
public static int getSum(int a,int b)
int c= a+b;
return c;
Did i miss anything?? Icant activate message mapping for 2 errors:-
1.package udf does not exist
2.Function getsum, Line 3:
cannot find symbol symbol : variable packageDemo location: class com.sap.xi.tf._xml_mm_int e = packageDemo.getSum(c,d); ^Note: /usr/sap/P7R/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd4214d3099dc11dd9470001d090e4bbe/source/com/sap/xi/tf/_xml_mm_.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: /usr/sap/P7R/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd4214d3099dc11dd9470001d090e4bbe/source/com/sap/xi/tf/_xml_mm_.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.2 errors
Edited by: NagaDurga Nannapaneni on Oct 16, 2008 1:07 PMHi ,
Think the error is coming because the content in imported archive is not being taken into message mapping at all...so package, class, method ..nothing is identified.
Can anyone suggest the solution..
Thanks,
Durga -
I am receiving errors when trying to activate my MM. I believe the issues are in one of two UDF's. These UDF's do work in another MM without error. Below are the error's and UDF's.
ERRORS:
Activation of the change list canceled Check result for Message Mapping MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE | http://wawa.com/xi/erp/pos: Starting compilation Source code has syntax error: /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map5420e070cabe11dcab4b00306ef38da9/source/com/sap/xi/tf/_MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE_.java:3291: cannot resolve symbol symbol : variable container location: class com.sap.xi.tf._MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE_ map = container.getTransformationParameters(); ^ /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map5420e070cabe11dcab4b00306ef38da9/source/com/sap/xi/tf/_MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE_.java:3293: cannot return a value from method whose result type is void return constant; ^ 2 errors
UDF's:
public String getSender(Container container){
String constant;
java.util.Map map;
// get constant map
map = container.getTransformationParameters();
constant = (String) map.get (StreamTransformationConstants.SENDER_SERVICE);
return constant;
IMPORTS: com.sap.xi.mapping.parse.dom.;javax.xml.parsers.;java.io.;com.sap.aii.mapping.lookup.;org.w3c.dom.*;
public String getSeqNum(String fileType,String objNum,String Sender,Container container){
String request = "<ns0:ZRFC_NUMBER_GET_NEXT xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><NR_RANGE_NR>" + fileType + "</NR_RANGE_NR><OBJECT>" + objNum + "</OBJECT><QUANTITY/></ns0:ZRFC_NUMBER_GET_NEXT>";
InputStream isRequest = new ByteArrayInputStream(request.getBytes());
SystemAccessor accessor = null;
String num = null;
try{
// 1. Determine a channel.
Channel channel = LookupService.getChannel(Sender, "R_RFC_ERP");
// 2. Get a system accessor for the channel.
accessor = LookupService.getSystemAccessor(channel);
// 3. Create a payload according to the data type which the adapter expects.
// Use service.getBinaryPayload() for binary payload,
// and service.getTextPayload() for text payloads.
Payload payload = LookupService.getXmlPayload(isRequest);
// 4. Execute lookup.
Payload response = accessor.call(payload);
//Parse response
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
InputStream resStream = response.getContent();
Document doc = builder.parse(resStream);
Element sequence = doc.getDocumentElement();
NodeList number = sequence.getElementsByTagName("NUMBER");
//Extract Number
num = DOMUtil.getSimpleElementText((Element) number.item(0));
} catch (Exception e) {
return e.getMessage();
} finally {
try {
if (accessor != null) accessor.close();
} catch (Exception e) {
return e.getMessage();
GlobalContainer gc = container.getGlobalContainer();
gc.setParameter("Num", num);
return num;
Any help is appreciated.
Regards,
DarrellFauver,
Just to narrow down the problem first remove the first udf and only use the 2nd user defined function. Also in the 2nd udf you have to change this line:
try{
// 1. Determine a channel.
Channel channel = LookupService.getChannel(Sender, "R_RFC_ERP");
In the above line instead of Sender you use the business service or business system where R_RFC_ERP RFC communication channel is created in Integration Directory. So you are hardcoding it first.
Once you have done this changes do save and test it once again. If this works then you can change back to original and your first udf needs to be checked.
Regards,
---Satish
Maybe you are looking for
-
?-multiple screens transparent able to see all the components in all screen
iam developing a ui , in that i have to place multiple panels or multiple containers over the content pane where as every container should be transparent , and i should able to see all the component in all the containers in the top container , help m
-
How to compile a truly independent application?
Aftre having compiled my application to a class file on my computer, I tried to run it on another machine with the same OS as mine, but with a more limited class library. Instead of starting up like it did on my computer, the following printout wa sp
-
In the knowlege base, it generally says under "analog and digital cameras: advantages and disadvantags" that the IEEE 1394 is difficult to synchronize and trigger. Why is that exactly so and how can you solve that problem in DIAdem 8.0 when you would
-
I have just been given an IMac G5 which I think is very old. Am I able to upgrade it?
iMac G5 Model Identifier: PowerMac8,1 Processor Name: PowerPC G5 (3.0) Processor Speed: 1.8 GHz Number Of CPUs: 1 L2 Cache (per CPU): 512 KB Memory: 1 GB Bus Speed: 600 MHz
-
PLEASE TEACH ME HOW TO INPORT MY MUSIC WITHOUT USING ICLOUD WICH I SUSCRIBE THINKING THAT IT COUD BE EVERYWHERE. BUT I DISCOVER THAT IT ONLY WORKS WITH A WI-FI CONECTION OR WHERE I CAN RECIEVE MY CARRIER SIGNAL. SOME PLACES I DO NOT HAVE NEITHER. HO