on 07-26-2006 7:00 PM
Hi - I am trying to create conditions for interface determination but do not see the Message structure in order to write the XPATH rules on? can you help
m
Hi madhu,
I have not done this myself, but you can get helpful pointers here...
http://www.w3schools.com/xpath/xpath_operators.asp
Do keep giving it different params, and I guess it should work.
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prashant / Others - Still having trouble..but I want to understand basic function..
I have an XML coming line this..
<Parent>
<Child1>
<Name>n1</Name>
<Address>a1</Address>
</Child1>
<Child2>
<Name>n2</Name>
<Address>a2</Address>
</Child2>
.
.
.
</Parent>
Based on say Address1, I want to direct one CHILD to mapping <b>X</b> and another to <b>mapping Y</b>, can this be done using interface determination. Will interface conditions go through each record and assign mapping interfaces accordingly or ONLY LOOKS AT FIRST RECORD?
I actually tested interface determinatin as below
> Put one interface mapping for a condition
> Put second interface mapping for the exactly opposite
I had a file with 2 records. First satisfying first mapping and second satisfying second mapping condition
When I ran the interface, the first one ran with both records while second mapping was never called!! This means this condition only looks at first occurrence
How do I fix this? I can put it inside the mapping in an user defined function but when I do that, the output will be created with blanks and give a mapping error
m
Maddux,
<i>Will interface conditions go through each record and assign mapping interfaces accordingly or ONLY LOOKS AT FIRST RECORD?</i>
This cannot be done using Interface determiantion.
the option would be to do a 1: N ( multi mapping ) during your Graphical Mapping. Write the condiotion on which the message will be split into any of the target message.
Look at this blog,
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Regards,
Bhavesh
Thanks Bhavesh.. This is a special case.. I use UDF to memory manipulate all incoming records at the same time. If they come 1 at a time, the process will not work.
However, I now was able to put mutually exclusive filters in both the mappers. However, this is waht is happening..
> When the IDOC on target side does not have any mappings, because the root element has 1 occurence, it always goes out to the adapter with
<?xml version="1.0" encoding="UTF-8" ?>
<IDOC_NAME />
This results in SYSFAIL error on the IDOC adapter side. How can this be suppressed..
It will be great if this works
Hi Madhu,
I think BPM+ XSLT mapping can do this. Not sure though.
cheers,
Prashanth
P.S Please mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
Try these links...
http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml ( See IDOC reductions)
cheers,
Prashanth
P.S Please mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Madhu,
You can delete the imported objects & re-import the IDOC or
also try to reimported the structure in IDX2.
You can use the report IDX_RESET_METADATA to delete the structure
Also, check ur XML for validity
Hope this helps you!
cheers,
Prashanth
P.S Please mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
I think this error is due to a problem either in your source file or your mapping. When the IDOC is to be sent to the destination system, it expects the first tag to be <IDOC begin = > , but I dont think that is happening in your mapping.
Check your mapping again
cheers,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maddux,
Double click on SYSFAIL in SMQ2, and paste the error here.
cheers,
Prashanth
P.S Please mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
XI Error ATTRIBUTE_IDOC_METADATA.IDOC_ADAPTER: Que..
<b><u>.. This is what I found in the trace on MONI</u></b>
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
<SAP:P1>MSGGUID 10A0A466D22C7D46853CBD345D731C8E: Tag found instead of tag IDOC BEGIN=</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error: MSGGUID 10A0A466D22C7D46853CBD345D731C8E: Tag found instead of tag IDOC BEGIN=</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I am using External definition because I will not multiple IDOCs created. So, I change the <b>IDOC</b> element to minOccurs=0 and maxOccures =unbounded. This is OK.. But when I map, as I said show before, the <b>IDOC root element</b>, which is the <b>name</b> of the IDOC itself stands out as
<?xml version="1.0" encoding="UTF-8" ?>
<%IDOC_NAME% />
Hi Madhu,
Which structure?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.