on 02-07-2007 7:35 AM
Dear all,
I am trying to use the graphical mapping tool for a task that looks quite simple, but I do not suceed. I have two very similar structures (please see below) which basically only differ in an constant value in target structure.
Can you please help, I already tried to adjust communalities (all items are (0...1) and the repeating structure <G1> and <item> are defined as (0...unbounded)), all field tapes are string.
I will appreciate any hints.
Best regards
Acram
This ist the initial structure:
<Message_Type_File_Upload>
<DatenTypFlach>
<G1>
<F1>Key Field</F1>
<F2>Date</F2>
<F3>Servername</F3>
<F4>PercentageF4>
</G1>
<G1>
<F1>Key Field</F1>
<F2>Date</F2>
<F3>Servername</F3>
<F4>PercentageF4>
</G1>
.....
</DatenTypFlach>
</Message_Type_File_Upload>
and I am trying to map it to this structure:
<Target_Structure>
<DATASOURCE>this is the constant value</DATASOURCE>
<DATA>
<item>
<ZKEYFIELD> </ZKEYFIELD>
<ZDATTE> </ZDATTE>
<ZSERVERNAME> </ZSERVERNAME>
<ZPERCENTAGE> </ZPERCENTAGE>
</item>
<item>
<ZKEYFIELD> </ZKEYFIELD>
<ZDATTE> </ZDATTE>
<ZSERVERNAME> </ZSERVERNAME>
<ZPERCENTAGE> </ZPERCENTAGE>
</item>
.....
</DATA>
</Target_Structure>
just wanted to assign reward points correctly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear all,
a lot of hints, I now tried again and mapped each field of the initial structure to the fields in the target structure- I also tried all possible combinations, but still only the constant values are shown in the test environment.
I think the problem is more likely in the structure or deals with cardinalities or communalities. When display the queue for each mapped field I either get SUPPRESS entries or empty queues.
Best regards
Acram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Acram,
U have been fighting a lot on this ...
There are already a lot of suggestions for u So I just thought not to suggest but i will share my understanding
The MMapping is a java program which runs from ur Root to the last leaf and compare it with matching target element and insert the value of source to target
using XPATH .
So in ur case all the target structure is getting created (u can check thisin MONI) but the values are not getting copied from source , mean the Mapping program is not getting the path properly ( the BAPI structure is not properly pointed Or the context is not properly !!)
Or the changes ur doing are not getting updated .
If this is the case u can save and activate the mapping and do a test
Regards,
Kavitha
Acram,
If structure is nt getting created mean for the source element the Corresponding target element position is not matching Bapi seems to be deeply nested
Are there any fields before ur data fields whose occurrence is 1 (mandatory )
Check for mandatory fields in the target if not required supress them
Regards
Kavitha
Hi Arcam,
Please map <DatenTypFlach> to </DATA> and <G1> to <item>.
please reward points
Thanks
Sreeram.G.Reddy
Message was edited by:
Sreeram Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
okie map a constant(c) with no value to <DATASOURCE>
<DatenTypFlach> to <DATA>
<G1> to <item>
<F1> to <ZKEYFIELD>
<F2> to <ZDATTE>
<F3> to <ZSERVERNAME>
<F4> to <ZPERCENTAGE>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear all,
I have done all this before and checked again now, but without any result only the constant is displayed in the result area (while using the test tab) and when I test the whole process only the constant value is transferred to the Receiver BAPI.
But thank you all for your answers.
Best regards
Acram
Hi,
Map as per below
G1 (0...unboundde)-> item -(0...unboundde)>
F1 - ZKEYFIELD
F2 - ZDATTE
F3 - ZSERVERNAME
F4 - ZPERCENTAGE
Regards,
Venu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Acram,
1) after createing a test-message in the test-tab return to the design tab.
If you now display a mapping in the lower area you can right-mouseclick > <b>show queue</b>.
This is a >kind of debugging<
2) sometimes is helps to save your MM and open it again.
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You have to map G1 with Item which are unbounded.Try it now...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.