Reg mesasge mapping
HI Guys,
i have a requirement where i have a item segment which 0 to unbounded at my source and item segment which is 0 to unbounded in target...
and in the target segment i have a field FLAG...
for the last item in the source the flag should be mapped with constant value 1 for others it should be mapped to 0.
can any one please give me the UDF code....
Thanks,
Madhu
Hi ,
Use this UDF. While creating choose context not vale or Queue. Input is item
int len = item.length;
for (int i=0;i<len;i++)
if(i == len-1)
result.addValue("1");
else
result.addValue("0");
Map like this.
item----->UDF----->flag
I already tested this one. Working fine.
Thanks.
Similar Messages
-
Reg - XSLT Mapping using stylesheet exception during test
Hi experts,
I am new to SAP PI. Currently i am working on PI's XSLT Mapping using Stylusstudio.
I got error *Transformer Configuration Exception occurred when loading XSLT <name>.xsl; details: Could not compile stylesheet*.
I tried test by selecting SAP XML TOOLKIT too, then i am facing
*com.sap.engine.lib.xml.parser.NestedSAXParseException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'a' is not mapped to a namespace (:main:, row:4, col:15)(:main:, row=4, col=15) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'a' is not mapped to a namespace (:main:, row:4, col:15)*.
Kindly help me to overcome this issue.Hi,
Simply your XSLT file is not a well-formed XML. Check your syntax. You could also use the XML Tools plugin to Notepad++ to help you determine where the syntax error is precisely.
Moreover, this error "Prefix 'a' is not mapped to a namespace" might mean that you are using a tag: <a:something>, but "a" is not properly declared as a namespace, for instance like: xmlns:a="something.sap.com".
Hope this helps,
Greg -
Hi Gurus,
Can any one help me in abap mapping ,
where the source and destination nodes and the source and destination structure different and with multiple nodes.
Thanks & Regards
ShivaHi,
Blog -- /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
SDN TV demo to create and test ABAP mapiing - https://media.sdn.sap.com/SDNTV/main.asp?mediaId=128
How to guide for ABAP mapping.
https://websmp106.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&
pdf for ABAP mapping.
*https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
*https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
testing ABAP Mapping- Testing ABAP Mapping
Thanks,
Shweta -
Reg : Importing Mapping from PI 7.0 to PI 7.0 EHP upgraded
Dear Experts,
I have done few huge changes in the mapping existing in our test system which was opened for editing because of EHP upgrading of our Development system.
Now development system is EHP upgraded and Test system is plain.
Is there any way we can import the chagnes done at Test environment back into the development environment without having to redo the changes in Development environment.
I have also exported the changes as tpz file in the export path of our Test system.
Regards,
SrivatsanHi Supriya,
Thanks for your reply. The changes has huge mappings, but there are also other objects as well to be moved from the upgraded test environment to the development envieonment,
Is there any way to move all these changes through transports or Other means.
Regards,
Srivatsan -
Hi All,
I have scenario, in stock transfers from plant to depot,
1) Depot send the indent to plant in excel sheets
2) Executive at plant makes the sto( in SAP for available products and remaining will put in pending orders( makes in excel sheet).
now the requirement how to map the above scenario in SAP.
REGARDS,
RAMDear Ram,
-->In SAP you can process this scenario through Stock Transport Order(STO).
-->You can treat Depo as one of the despatching plant.
-->You can do the STO process between two plants(i.e depo and maufacturing plant).
-->You can create Stock transport Purchase order from Depo plant to the Manufacturing plant
Based on the STO PO you can deliver the products from the manufacturing plant through replenishment delivery.
-->For STO related settings go through this IMG path
SPRO>IMG>Material management>Purchasing>Purchase order-->set up stock transport order.
I hope this will help you,
Regards,
Murali. -
Hi !!
Good evening.
I am very new to CRM .
How we can map Vendors from R/3 to CRM & CRM to R/3.
There are only 5 classifications in CRM like-- Customer, Compitetor,Consumer, Prospect & COD Customer.
Then how we can map.
if it can be by T. Code --- PIVE ....
Then where i have to run the T. Code & what are the settings I have to do for that
Please guide me
Thanks & Regards
Dibyatill now no body replied to this question & I have a limit of 10 open calls
-
Hi
In Help.sap.com the following Statment is given
<b>In the case of SAP reference systems, you cannot map groups or roles to a user in the SAP reference system. You can only map a user to a user.</b>
But we were able to map a role to the SAP System and create a SAP Trans IView and it worked fine Without asking password.
So it means we cancreate a Usermapping for Roles too referencing SAP System.
Please clarify in case u have different opinion.
ThanksHi Krishna,
If you set the user managment property in your system as UIDPW and "admin,user" you can mapp user and password entering by User management->Mapping User
If you have generics users and passwords, you can assign them for groups or roles.
For SAP Systems, if each portal user has a SAP user and these users is identical you should configurate SSO using logon Tickets.
Regards. -
Hi All,
In my scenario i have 1 source message interface and 2 target interface. I am using javamapping for transformation.After transformation i need to send input file to one of the target interface based on a condition( ie file name). Can someone plese provide me with the syntax how this can be achived in java mapping.
Thanks in advance,
SivaCool
Then create Message Mapping (Mapping Program 1) can be handled u r requirement specified based on Filename / and Ur java Coding (Mapping Program 2)
Now in Interface mapping
Source Interface -
> (Mapping Program 1) -
> Target Interface
(Mapping Program 2)
this willl work for u y to code standard available function in coding and re - inventiing the wheel
Srini -
Hi All,
I have scenario where i need to split 1 input file( xml ) to n files based on one of the i/p values and post those n files in the target directory. Is it possible in the graphical mapping and if not which mapping is preferable?
Thanks in advance,
SivaHi Sivarama krishna,
we can use any mapping for splitting, basically we can do Splitting & Merging for the BPM Scenarios.
We need to prefer Graphical mapping ,it is very easy for splitting the message. we need to design BPM
BPM Steps are required for Splitting
1) RECEIVE Step: it can receive the message from sender.
2) TRANSFORMATION Step: it can split the message Or it can merge the messages.
3) FORK Step: it can dispacthes the multiple senders and multiple receivers.
4)RECEIVER DETERMINATION Step: Association of Outbound message interfaces and it can processed by single or multiple receivers.
Note: Here we can take two Receiver Determination steps.One for Sender1 and antother for Sender2
5) SEND Step: Take the two SENDER steps one for Send1 and Send2.
Regards,
Sateesh N. -
I really want to know the use of HEADER MAPPING IN IDOC based scenarios : for what purpose do we need to specify the fields
sender service:
sender party:
receiver service:
receiver party:
in header mapping,if header mapping is not specified do IDOC based scenarios works?HI,
You need not specify the header mapping in IDOC based scenarios. If its idoc to file then you have maintain adpater specific identifiers in your business system. If its file to idoc then too header mapping is not necessary.
Follow these links.
https://wiki.sdn.sap.com/wiki/display/XI/FileToIDOC
https://wiki.sdn.sap.com/wiki/display/profile/2007/05/11/FileToIDOC
https://wiki.sdn.sap.com/wiki/display/profile/2007/05/11/FileToIDOC-Part2+%28Configuration%29
https://wiki.sdn.sap.com/wiki/display/profile/2007/05/11/FileToIDOC-Part3%28StepsrequiredinXIandR3%29
https://wiki.sdn.sap.com/wiki/display/XI/StepbyStepProcedureofIDOCtoFileScenariousingBPM
Regards,
Merrilly -
Hi Guys,
I have a requirement in message mapping.......
i have a field qual in the Customized idoc and the possible valuesfor the field are .......OT,IT,UT and ST...
if the value of QUAL is OTor IT or UT then target should get created and if the value is ST then mapping should not fail and target should not get created...the message should get dropped...
any suggestions please.....
Thanks,
MadhuHello Madhu,
You can achive this using standard functions and UDF, since the standard way you need to use more elements i am specifying below the udf for this.
Select Simple Type (Value).
String rtnValue="false";
if(a.equals("OT")||a.eqauls("IT")||a.equals("UT"))
rtnvalue="true";
return rtnValue;
and map as below
QUAL->UDF_NODE->CreateIf->target_Node
or
QUAL->UDF_NODE->IFWithoutElse->target
(This assumes your target node is optional 0..1/unbound occurences)
Regards,
Prasanna -
Hi,
I'm working on multi mapping using BPM and the i'm using xslt mapping.
So can u guys post some useful links regarding multimapping using xslt mapping in BPM.
regards
jitheshthe thing in case of multimapping, internally the structure (XML) of the message looks like say eg;
<?xml version="1.0" encoding="UTF-8"?>
<b><ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1></b> <CREMAS01>
<IDOC BEGIN="">
<EDI_DC40 SEGMENT="">
<TABNAM/>
<MANDT/>
<DOCNUM/>
So in your XSLT you need to handle that nodes. Rest will be same as any XSLT mapping. -
Reg: Context mapping.
Hi All,
When we do mapping of value nodes ,there in properties we have a property called
mapping type. It has 3 options 1) collection and selection 2) collection only 3)not applicable .
what is this property?
Thanks in advance.Hi
go through links
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/a2384162316532e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/44/a2384162316532e10000000a1550b0/content.htm</a><a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/94384162316532e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/94384162316532e10000000a1550b0/content.htm</a>
thanks smitha -
Reg: Qualifier mapping in XI
Hi all,
How is Qualifier mapping done in XI.
regards
priya>
priyaraj wrote:
> Hi all,
> How is Qualifier mapping done in XI.
What is a Qualifier Mapping? We have Message Mapping , ABAP Mapping, XSLT Mapping, JAVA Mapping and the Interface/ Operation Mapping in XI/ PI. -
Reg: Value Mapping - Recommended Max Entries/Size
Hi,
Just curious to know if there is any recommendation on the max number of entries stored and retrieved in a Value Maps.
Is it suitable for storing entries in order of 5000 or 10000. Also is it effecient for retrieval from such a big Map.
Since it is stored in Java Cache, is there any limitation on the size (Number of Entries).
Anticipating your valuable inputs.
Thanks,
Sudharshan N AHi
There will be performance problem if more entries are used in Value mapping.
Value mapping replication will be better choice for huge records.
Regards
Abhijit
Maybe you are looking for
-
Are the delays in iMessage fixed in IOS 7.1 ?
For quite some time there are discussions about delays in iMessages. For me (iPhone 4S, IOS 7.0.4) iMessages started to show huge (up to 45 minutes) delays in communication with exactly one person (iPhone 4S). The problems suddenly showed up and were
-
How do I back-up my iTunes music to a CD?
I would like to put my iTunes Library onto "back-up" CD's How would I do this?
-
How can I delete songs that in my song lists but not in my iphone?
I have these songs that appears on the song list but not in the music list under my device in itune. In the iphone song list , there is a stop/ play icon next the songs' title and i need the internet connection to play these songs and I can't delete
-
No details...the question says it all.
-
How distinguish between downpayment related to a downp. request from a DP
Hi to all, please, I need to find a criteria (usable in validation or substitution ) to dinstinguish a downpayemt (F-48) from a downpayment related to a downpayment request. Any idea or suggestion ? thanks to advance. Andrew