Target Field Mapping E1EDK03
Hi Mapping Gurus,
my scenario is flat file (fixed length) to IDoc (inbound)
Source Structure is
- Recordset (1..unbounded)
-- POHeader (1.1)
--- Date1
--- Date2
I need to map the Date1 and Date2 fields to 2 occurrences of E1EDK03 segment each having different qualifiers
Target Field:
IDOC (1..unbounded)
E1EDK03
--IDDAT ("022") --> Date1
E1EDK03
--IDDAT ("002") ---> Date2
How can I achieve this using graphical mapping only?
I searched the forums and i'm still a little confused with context handling, so kindly help me out
I need to map the Date1 and Date2 fields to 2 occurrences of E1EDK03 segment each having different qualifiers
IDOC (1..unbounded)
E1EDK03
--IDDAT ("022") --> Date1
E1EDK03
--IDDAT ("002") ---> Date2
You may even need to implement a if-logic to map Date1 to 022 and Date2 to 002.
Similar Messages
-
6 IF-THEN and OR conditions for one target field mapping
Hi Mapping experts,
I have a validation condition involving 2 source fields and 1 target field only, however the number of conditions is 6 (OR)
Source Fields:
TYPE
PONUM
Target Field:
BELNR
If TYPE = 1st value then BELNR = PONUM substring (0, 8) 0=start position, 8=character count
OR
If TYPE = 2nd value then BELNR = PONUM substring (2, 8)
OR
if TYPE = 3rd value then BELNR = PONUM substring (4, 8) .......... up to the 6th Validation Condition.
When I do this using graphical mapping only (multiple IF-THEN and OR's) the validation is successful only on the 1st IF-THEN statement, then it passes the substringed value to the 1st OR function..... When I "Display Queue" the 1st OR function the substringed value is taken as null (or:in1 <null>) Is this because OR function is expecting Input as "True or False" value only and not a string value?
For my requirement above, can I achieve this using graphical mapping only? or do I have to use UDF for this?
If it's better to use UDF for this, would anyone give me a jumpstart on the code? (I have no experience yet in UDFs)
Thanks, and hoping that somebody will respond accurately and completely.Create UDF with two inputs as TYPE & PONUM and use bleow code there..
String out = "";
if( TYPE.equals("1"))
out = PONUM.substring(0,8);
return out;
else if( TYPE.equals("2"))
out = PONUM.substring (2,8);
return out;
else if( TYPE.equals("3"))
out = PONUM.substring (4,8);
return out;
else if( TYPE.equals("4"))
out = PONUM.substring (4,8);
return out;
else if( TYPE.equals("5"))
out = PONUM.substring (4,8);
return out;
else if( TYPE.equals("6"))
out = PONUM.substring (4,8);
return out;
return "";
Note: change the substring range as per your need in above code.
Now do your mapping as shown below
TYPE ------>|
| -----> UDF ---> BELNR
PONUM----->| -
One (src)to many(target) field mapping
Hi,
I am new to XI.Is one to many field mapping possible in XI?
Plz send me the links with examples.Hi,
Yes it should be possible.
Follow this links
http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm -
i am having a source structure like
<a>
<b></b>
<c>
<1></1>
</c>
</a>
and target structure like
<x>
<y></y>
<z>
<9></9>
</z>
</x>
with
1. ofcourse the roots mapped to each other
2. an the element b is mapped to element y
3. element c is mapped to z
4. sub element 1 is mapped to sub element 9.
The minOccurs for c, z, 1 and 9 =0.
However, while execution of this mapping with the source element c missing in the payload a 'Cannot produce target element' error is encountered.
Can any one help find out why is this error being encountered when both the source and target feilds along with their subfields are optional (i.e. with minOccurs=0)?ok there seems to be some confusion
my source structure is like
<a>
<b></b>
<c>
<1></1>
</c>
</a>
and target structure is like
<x>
<y></y>
<z>
<9></9>
</z>
</x>
and the mapping is as follows
a is mapped to x
a>b is mapped to x>y
a>c is mapped to x>z
a>c>1 is mapped to x>z>9
and both c and z have cardinatlity 0 to unbounded.
In this case if my source message does not have the element c, its processing leads to the said mapping error.
Edited by: diptee s on Mar 14, 2010 4:51 PM -
Hi,
I'm trying to use the LSMW. What is the fastest way to maintain the source field and relationship?? Is it possible to define the source field and length in a text file and load it in the LSMW??
Regards,
KitHi Kit,
u can create source fields in faster way.
menupath
In the 3rd step i.e., Maintain source fields
source fields -> table maintenance
here u can fill all the fields at a time.
u can also maintain the fields in a file and copy and paste them in the Table maintenance .
In 5th step i.e., Maintain Field Mapping and Conversion Rules
Extras -> Auto field Mapping
Now u get the auto field mapping setting pop-up.
click ok.
Now u Get the auto field mapping proposel pop-up.
Here check Target field and Source field and click on Accept proposel push button for all the fields.
with this the source and target field mapping are done automatically.
reward if helpfull
raam -
In XI Mapping multiple fields mapping to single target field.
Hi Friends,
In XI Mapping multiple fields mapping to single target field.
For example my requirement is :
Source Fields:(This RFC BAPI Structure)
Empno 0-1
EmpName 0-1
Address 0-1
Taget Field is:
Details 0-1
The above three fields passed to the Details Field. Here i am using Concat function
But i have one query on that on,Every field having "line Break" required.
Can you please help me out above this requirement.
Thanks in Advance,
Sateesh N.If you want a line break between the three fields, then try
passing a,b,c to the udf and in the udf you would have
return a+"\n"+b+"\n"+c; -
Message-Mapping: Use same RFC lookup for different target fields
Hello,
I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
The input parameter (=source field value) would be the same.
Thank you for your advice!Exactly.
Here is a UDF example I have that you could adapt to your needs.
Set
public String setCounter(String a,String b,Container container){
/* Store values in global datacontainer
a: mapping value and return valueparameter
b: name for stored value parameter
GlobalContainer myGlobalContainer;
myGlobalContainer = container.getGlobalContainer();
myGlobalContainer.setParameter(b.toUpperCase(), a);
return a;
Get
public String getCounter(String a,Container container){
//write your code here
GlobalContainer gc = container.getGlobalContainer();
if (gc.getParameter(a) != null) {
return String.valueOf(gc.getParameter(a));
} else {
return "1"; -
Mapping Issue. Parsing problem to target Fields based on condition.
Hi All,
File to Idoc scenario.
My file looks like below.
HD 89650 28/01/11 "Presciber tan"
AF "disc-rsn"
RK "007287001" A
KE disc-code "007287"
KE addr-num "001"
DF fax-num ""
DF in-out "I"
DF phone-2 "23221"
AF "drs"
RK "007287" A
KE dr-num "00221"
KE addr-num "001"
DF affil "OPSM"
DF rec-stat "A"
DF phone-2 "12444"
AF "disc-rsn"
RK "dr-addraddress-1 17287|1EN" A
KE disc-code "008287"
KE field-name "address-1"
KE element " 1"
DF in-out "I"
DF phone-2 "1232"
DF post-code "3109"
DF provider-num "5349201J"
DF rec-stat "A"
T 24
I need to capture and create target segments only for the values "AF "disc-rsn"".And pass all the relavant rows (RK,KE,DF...) which are under "AF "disc-rsn"" to the target fields.
I'm struggling to parse the value to the output structure as RK,KE,DF will be present under anywhere like "AF drs", "AF disc-rsn" etc.
I'm able to create the target segments (2 Zdisc segments as 2 "AF disc-rsn" present in the file), but unable to parse the field values to the target fields.
Ex: DF phone-2 is present in 8th, 15th,22nd row. I need to pass only 8th and 22nd rows to the target fields.
After content conversion, My Source XML looks like below.
<?xml version="1.0" encoding="utf-8" ?>
- <MT_DiscountDetails>
- <HD>
<KeyField>HD</KeyField>
<HDRow>89650 28/01/11 "Presciber tan"</HDRow>
</HD>
- <AF>
<KeyField>AF</KeyField>
<AFRow>"disc-rsn"</AFRow>
</AF>
- <RK>
<KeyField>RK</KeyField>
<RKRow>"007287001" A</RKRow>
</RK>
- <KE>
<KeyField>KE</KeyField>
<KERow>disc-code "007287"</KERow>
</KE>
- <KE>
<KeyField>KE</KeyField>
<KERow>addr-num "001"</KERow>
</KE>
- <DF>
<KeyField>DF</KeyField>
<DFRow>fax-num ""</DFRow>
</DF>
- <DF>
<KeyField>DF</KeyField>
<DFRow>in-out "I"</DFRow>
</DF>
- <DF>
Is there any way I can acheive my mapping based on the above condition?? Kindly suggest me.
Thank you for your time.
Regards
DeepthiNot required. Using Java function. Solved the issue.
-
Issue in mapping the same source and target fields
Hi All,
I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
What I want to know is there any possibilty of solving this issue without installing an updated java version ?
Regards
Vinay P.I've faced the same for many times and all of that were due to Java version.
1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
Then, last shot should be downgrade your Java version.
The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
Tks. -
Message mapping not generating target fields
hi
iam doing jdbc--->rfc (bpm) created a one2one message mapping to import rfc table.
thanks in advance
sriHi Sri Rao,
Since you have created a one to one mapping, it would be required to map all the fields in your target message to ur source fields. In case there r some target fields which do not relate to your source field, map it onto a constant. This is all that is required to be done from what i understand from your query. In case there r further problems send the source n target data structure n i will be able to help you out better.
Cheers,
Christina -
Send Multiple field values to Single Target field in Message Mapping
Hi,
My Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping.
We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
Is there any way to simplify this requirement or we can use any UDF for this,kindly suggest.
Regards,
Madhu>>>We can use Concat function,but more that 15 fields are there.If using concat,the mapping will be complex.
I don't think it's complex but just that it occupies more mapping area
Just write a simple UDF - a one line code and pass all your input variables.
return var1+var2+var3+var4+...+var15; -
Display queue for Target field in Message Mapping
Hi Folks,
If i check my Target Field (DT_Req) (Display queue) in Message Mapping, I am getting 2 values like ie [] that means ....in my test result in MM, i should get 2 times DT_Req field.
Is it right?
Plz give some idea how this display queue works on each field?
Thanks
Prabaharan
Edited by: Prabaharan on Sep 10, 2008 12:22 AM
Edited by: Prabaharan on Sep 10, 2008 12:24 AMHi,
In my scenario occurrence of that
target field is 0...unbounded
and in my display queue.. Initially it is
suppress, [], suppress, suppress, suppress,suppress,suppress,suppress,suppress,suppress, [],suppress
in my result i could get only one DT_req field.
Plz throw some idea on this?
thanks -
Mapping isssue for two fields must be checked and passed to target field
Hi all
I am using IDOCS, ORDERS05, in which i have shipment country in header level and Item level,
so in my mapping i must check if i shipment exist in item level , if it exists it should pass to target field, and if doesnot exist it should pass the header level data , is it possiable in graphical mapping , please help me
thanking you
Sridhar>
sridhar loganathan wrote:
> Hi all
> I am using IDOCS, ORDERS05, in which i have shipment country in header level and Item level,
> so in my mapping i must check if i shipment exist in item level , if it exists it should pass to target field, and if doesnot exist it should pass the header level data , is it possiable in graphical mapping , please help me
> thanking you
> Sridhar
yes.
lets call the item level shipment as itemshipment and the header level as headershipment.
the logic will be;
itemshipment
|
itemshipment --- *exist* *if -- then* - TargetField
|
*else* - headershipment -
Changing names of mapping target fields for import
Is there a way to change the names of some of the target fields that are used to map imported lists? Some of the have names like "Person Attribute 1", etc-- we need to make those names more meaningful.
The answer to your question would be in the oracle implementation guide Appendix D - Oracle Marketing List Import Field Reference
HTH -
Reading Target field Values in Mapping Runtime
Hi all,
I have a requirement ,
source target
A X
B Y=X+Z+W
C Z=X+Y
D W
Kindly can some one help me,how this can be achived in mapping?Hi,
are you sure about that ?
B Y=X+Z+W
C Z=X+Y..... so Z=X+X+Z+W !!!!! so 2X = -W... (in mathematic)
does "+" is "add" or "concatenate"?
Else as X comes from A, W comes from D... in your mapping use the sources A and D, and do not try to use your targets... Or if you have have to the same value, reuse the rule ! and point it to two target fields
regards
Mickael
Maybe you are looking for
-
Writing email: doesn't fit in screen
After updating to ios 4.0 on my 3GS I noticed that when I'm writing an email & I get to the end of a line the whole email shifts to the right for about 2 letters (which makes the first word of the email shift off screen to the left). The words don't
-
Can I download an apple device usb driver to my windows 7
is it possible to download an apple device usb driver to my windows 7
-
This site *****.. want to know why??
well.. i have been trying to download the new itunes for about 3 days now.. and this site WILL NOT finish the download.. what the **** gives anyway apple...now i can see if a few times it doens't finish.. but i have tried like 250 times now.. and tha
-
I have installed Yosemite, lost all battery power.
I have installed Yosemite, it works fine on power supply, but shuts down as soon as I unplug as if there is no battery installed at all, can I switch back to Mavericks, that worked fine?
-
Change the way parametes are chosen in webi
Hi experts, Weare having the following problem, in our QAS server, when we right click on a crystal report, select program and them parameters, we get the following screen [QAS Parameters|http://a6.sphotos.ak.fbcdn.net/hphotos-ak-ash4/395199_10150539