![]() We have to help the new developer to have it easier as we in the past This is the reason why I started to write blogs (I do not like to write, but it is important that we share our deep knowledge). I like the graphical mapping tool and the “display Queue” option.īut I see a big gap in case of Mapping quality.ĭoes they really know what they are doing or is this only a LuckyPunch? I realized that we have a big gap in the PI developer world about understanding of XML structure and meaning of queue context. So the important hint from my side is: do not forget “try and catch”.Īs PI trainer for SAP education Germany and Switzerland. My intention with this blog is that PI developer should know what they are doing and in case of UDF it is very important to cover “error cases” as well. Yes with “B2B add on” or Seeburger you will have nice UDF collection.īut this is not available for all developer. SimpleDateFormat sdf = new SimpleDateFormat(“yyyyMMdd”) ĭate date = sdf.parse(var1,new ParsePosition(0)) InputStream inp = SOAPOutPayload.getContent() The conversion rate is available under the Field Name ConversionRateResult */ * Parse the SOAPPayload to get the SOAP Response back. ![]() SOAPOutPayload = accessor.call(xmlpayload) Parse this to get the response field out. XmlPayload xmlpayload = LookupService.getXmlPayload(inputStream) InputStream inputStream =new ByteArrayInputStream(payload.getBytes()) SystemAccessor accessor = LookupService.getSystemAccessor(channel) instance the channel to invoke the service.Ĭhannel channel = LookupService.getChannel(“”,BS,CC) (the format number PI function throws errors, so this function helps to avoid mapping error) ![]() SysName = (String) System.getProperty(“SAPSYSTEMNAME”) ĭynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION) DynamicConfigurationKey key1 = DynamicConfigurationKey.create(“http:/”+”/sap.com/xi/XI/System/File”,”FileName”) Sample: If qualifier of each position has value XY then value the Text of sub segment should be used. Sometimes the target structure has 3 Elements which are relevant for one target field. How to combine different hierarchies or levels (useOneAsMany and formatByExample) Sometimes a FixValue Table is better than equalS Please be care full by using these 3 functions. Most solutions I saw have used CopyValue or “RemoveContext” in combination “CollapsContext”. Target Element should only appear one time but source element is multiple. Maybe “MapWithDefault” or change Context can help! So please notice: the two input “Queues” must have same number of values and same structure (ContextChanges). ![]() It looks easy but I saw a lot of garbage in the past. (…and in this blog you can copy and paste the UDF code… ) IF Function All other approach is trail & error with LuckyPunch resultīelow you will find a summary of the most needed actions from my point of view.If you know how the target queue must look like then you can start with development.99,9% of all mappings can be done by using graphical mapping tool.We all know that the graphical tool looks very easy.īut to get a waterproof mapping and not only a LuckyPunch success you really need to know how it works. This is only a proposal and my experience, this should not mean that there is no other solution.īut maybe it is helpful for some PI developer without SAP Mapping Training or deep experience. This blog should give you some examples how the graphical mapping can be done without bad results. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |