Mapping N to 1 fields
Hi ,
Currently, i have scenario like N..1 mapping
Source field :
i have segment E1ADRM1 ( occurence 0..99 )in that two field partner_id and partner_q.
target Field : I1NPT00 (0..1)
i have PHSHTO and PHSOTO
my condition is if partner_q has pass value "WE" than value is pass to PHSHTO
my condition is if partner_q has pass value "AG" than value is pass to PHSOTO
on target side there is occurence 1..1.
i developed logic , it's working fine, but the problem is if first condition satisfy
than it will not ask for second conditions.
like i have two E1ADRM1 segment , first segment contains "WE" and second contains "AG" but if first condition satisfy it will not ask for second:
While i required in every repeting segment, it;s check conditions...
waiting for positive reply.....
regards
Bhaumik
but E1ADRM1 segment is repeit
<E1ADRM1 SEGMENT="">
<PARTNER_Q>WE<PARTNER_Q>
<ADDRESS_T/>
<PARTNER_ID>1001<PARTNER_ID>
</E1ADRM1>
<E1ADRM1 SEGMENT="">
<PARTNER_Q>AG<PARTNER_Q>
<ADDRESS_T/>
<PARTNER_ID>1002<PARTNER_ID>
</E1ADRM1>
i want to map these field to I1NPT00 (occurence 1..1)
in that there is two fields like
PHSHTO
PHSOTO
So if partner_q is equals WE pass partner_id
So if partner_q is equals AG pass partner_id
So i write function and write logic also but E1ADRM1 is diffrent node , that;'s why it i am confuge
I hope that i explain my question properly ,
and also waiting for all positive reply
Similar Messages
-
How to map lookup main table field in another main table using MDM 7.1?
We created a new SAP MDM 7.1 repository with multiple main tables. The first main table is called ProductMaster table which contains Products information. The ProductCode is the primary key and the only display field for the table during data loading process. The second main table is ProductByRegion table which has a main table lookup field ProductCode and a RegionId field. These two fields (ProductCode and RegionId) combine as the PK for this main table. Both main tables have key mapping enabled.
I was able to load ProductMaster table using Import Manager. But Iu2019m having trouble to load data into ProductByRegion table using MDM Import Manager. Although I have met all the 5 requirements below (excerpted from MDM Import Manager Reference Guide P.222), the ProductCode wonu2019t show up on the destination value pane. If I mapped all productCode to NULL field, ProductCode wonu2019t load. If I u2018Addu2019 all ProductCode to Destination Value pane, the Import Manager added duplicated rows to Product Master table while only loading 1 record to ProductByRegion table. I canu2019t get ProductCode show up in Matching Destination Field list. When I checked ProductMaster records in MDM Data Manager, I right-clicked on one of records, chose Edit Key Mappings, it didnu2019t show anything. However, if I right-clicked on one of those duplicated rows, Edit Key Mapping shows remote system and key correctly.
Where did I do wrong? How can I fix the problem?
Thank you for help in advance.
From: SAP MDM Import Manager Reference Guide:
Mapping to Main Table Lookup Destination Fields
Import Manager handles main table lookup fields (Lookup [Main])
differently than other MDM lookup fields. Specifically, Import Manager
does not display the complete set of display field values of the records
of the underlying lookup table. Instead, the values it displays for a main
table lookup field are limited by both the key mappings for the lookup
table and the values in the source file.
Also, Import Manager does not automatically display the values of a
Lookup [Main] destination field in the Destination Values grid when you
select the field in the Destination Fields grid. Instead, for a main table
lookup field value to appear in the Destination Values grid, all of the
following conditions must be met:
u2022 The lookup table must have key mapping enabled
u2022 The lookup field must be mapped to a source field
u2022 The source field must contain key values for the lookup table
u2022 The destination value must have a key on the current remote system
u2022 The destination valueu2019s key must match a source field value
NOTE ►► The current remote system is the remote system that was
selected in Import Manageru2019s Connect to Source dialog (see
u201CConnecting to a Remote Systemu201D on page 416 for more information).
VickyHi Michael,
Thank you very much for your response. I'm new to SAP MDM, I need some clarification and help regarding your solution.
I did use two maps to load ProductMaster and ProductByRegion separately. Here were my steps:
1. create main table ProductMaster with key mapping enabled at the table level and set ProductCode as unique and writable once (primary key).
2. create a map to load ProductMaster record from a staging table located an oracle database. But Key mapping didn't show anything when I looked at them using Data Manager.
3. create main table ProductByRegion with a lookup field looking at ProductMaster table. This field and RegionId combines as a unique field for ProductByRegion table.
4. create a map to load ProductByRegion table. But ProductCode records only shows on the source pane not destination pane and can't be mapped properly.
My questions:
1. How can I "Ensure that you add key mapping info for all ProductMaster records" besides enabling Key Mapping on the table level?
2. How can I define a concatenation of ProductCode and RegionId as a REMOTE KEY"?
Thanks a lot for your help!
Vicky -
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; -
Retreive IDOC number and map it to a field in Target XML
Hi Experts,
IDOC to file scenario
I have a requirement where I have to retreive the number of the IDOC generated and map it to a field ID in the target XML.
Do i have to use a UDF for this? can ne one pls explain?
Regards,
TejaHi Ravi,
You dont need use a UDF for this.
this is a very simple requiremen.
You can get the IDOC number from source IDOc
under EDI_DC40 node field name DOCNUM.
This DOCNUM fielsd will contain the IDOC number
Map this DOCNUM field from source IDOC to target XML structure. -
JDO : how to map a byte array field correctly
Could someone please provide an example on how to correctly map a byte array field in a PCClass.
The field should be mapped to a BLOB field in my Dictionary project.
The checker keeps throwing errors during the enhancement process. Tried all sorts of combinations of xml in my jdo and map file (using the dtd) but I still haven't found the solution. The compilation works fine though, it is only the checker that complains.You're already in a PDF open in Acrobat (not the free Adobe Reader) and you've made a new PDF? Which you want to save to disk and reopen?
-
Dears,
I have a BAPI based interface and I need to map or filter one field of its IDoc.
Is it possible to set a fixed value at BD64 transaction or any other transaction?
The external system sends the field with valid values and I need to change them to zero.
The BAPI used in the interface is standard so I was hoping that would be possible to change the value without changing the BAPI.
Interface: HR-PDC
Message Type: HRCC1UPTEVEN
Basic Type: HRCC1UPTEVEN01
Segment: E1BPCC1UPTEVEN
BAPI: Object PTMgrExtPExpenses, method Insert (Function HR_CC1_TIMEEVENT_POST).
Field: TIMEID_NO
Thanks in advance!
Best Regards.
Anaer Lima"Not" is not yet implemented, but it is one of our top 10 requested features. So fear not, we'll be adding it. It's not the top item on the list, however, and it is not exactly inexpensive (as there are not just a few ways of using it). So I can not
yet provide an estimate regarding when it will show up.
But without a doubt, we won't be omitting no aspects of nothing except none of the features other than what we didn't implement for nobody. Not.
- Chris -
COPA- How to seggregate when 2 condion type are mapped to one copa field
Hi,
I have a scenario, wherein 2 Billing condition records PDIF & PR00 mapped to one copa field.
Going forward, I can map each of them to different copa fields, then is their a way to correct past data?
These 2 condition records have diffrent billing types.
If I go to CE1XXXX table, I have an option to pull data according billing types.
CE4XXX Segment table being a higher level table, I can't extract data per billing type.
Realignment and Reorganizing copa data doens't seem to address the fix.
Looking for some good suggestions.
Thanks,
Parimala.Hi,
From what I think, it is probably not possible and best not to correct the past data in this case. Technically, will you have any idea as to how to break this data, and based on what weightage, percentage or conditions? And how many years back are you going to correct the data?
I can suggest that you correct the data by reversing the old data out (by posting in opposite figures), put in the new mapping, and repost the data again. However, in this case, you'll lost the history of the posting and it will take a lot of time to identify the data and re-post.
It's best to use the mapping from a logic break onwards, such as going forward in a new fiscal year... it's probably going to cost a lot of effort in re-educating the users, and correcting the reports, but it might be more effective from IT point of view.
Hope this helps.
Cheers,
Gimmo -
Unable to map two date IO fields
Hi gurus
I am new to sap BI. I have a functionality to find difference between two date values using replacement path.
My flat file contains fields like Plant , material , created on , changed on ,amount.
While creating Cube, I have dragged and dropped OCALDAY , OCALMONTH2 and OCALYEAR in Time dimension.
Now while creating transformations I am unable to map the two date fields. Could somebody let me know how to achieve this.
Points will be rewarded.
regardsHi
Actually I am trying to understand replacement path functionality from the below link.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705734f2-4e85-2e10-2ebf-891d0110de74?QuickLink=index&overridelayout=true&51552492481778
I am creating a flat file in the same format as given in link.
Based on ur suggestion I changedon field changedon as DATS type and placed it in characteristic Infoobject catalog.
Now I map createdon field with OCalday and then changedon field with OCalday but it won't work.
My question is , should I create fields createdon and changedon as two separate KeyFigure infoobjects?
If any routine is to be written could u please elaborate on it?
regards
krishna -
Mapping of Business One Field names to SAP R/3 Field Names
Hi experts,
We are downgrading from SAP R/3 to SAP Business One. I am having difficulties in mapping the SAP R/3 fields to Business One fields. Hope you could help me by providing the field names in R/3 linked to Business One field names.
Thank you very muchHi,
I have ever used SAP R/3 and I knew that there is a feature to export data from SAP R/3 to excel.
I suggest export it first if you want to migrate data from R/3 to SAP B1. The data in the excel file could be used to enter into data transfer workbench (DTW) excel template file. DTW is an addon to import data into SAP B1 database system.
You could open this folder :
C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates
after full installation of SAP B1 (begin from server tools, server application, application client, SDK, DI API, DTW).
To know more about the column template definition and location in SAP B1, you could use SDK help center file. This file is only available if you installed the SDK. This helpfile could be used to know the fields name and meaning in all SAP B1 tables
Rgds, -
Mapping the R/3 Fields with InfoObjects
Hi Guru's,
I am working on CO-PA Datasource, i have the r/3 fields from which i have to map the info objects in BI. I found all the relevent infoobjects, but few left without mapping.I tried to find these fields from tcode:se11/rsosfieldmap but i cannot find these fields here also. Can anyone help me in searching the infoobjects for the following fields:
PAOBJNR,PASUBNR,HZDAT,KURSKZ,RKESTATU,PAPAOBJNR,PAPASUBNR,FRWAE,KURSF,KURSBK,COPA_AWORG,COPA_BWZPT,COPA_AWSYS,COPA_AWTYP .
Thanks in Advance.
Points are Assured.
Expecting Quick response, as i have to deliver the object immediately.
Rgds,
ZakirHi,
Search with the description of the field in infoobjects if not found then find the same in BI content, once you find the infoobject cross check with length and type of chars etc...
Regards
Prasad Nannuri -
Mapping of R/3 fields with SAP BI Infoobjects
Hi All,
In R/3 there are tables related to different business like sales, mm, fico etc.
In the tables there are fields.
Now I want to map fields of R/3 to BI Info objects. Is there any way I can map. I want enitre list of r/3 mapped to sap bi
Example :
Tech Field in R/3 Desc. of Tech Field Tech Name of Infobject in SAP BI Desc of Infoobj.
VKBUR Sales Office -> Maps to -> 0SALES_OFF Sales Office
Please let me know
Thanks,
MadhavHi Madhav,
The issue seems to be related to BI. Post your question in BI forumns.
Thanks, -
Mapping between r/3 fields to infoobjects in bw
Hi
Plz help.
There is a table which will give info on datasource regarding which r/3 field is mapped to which bw infoobject. which is the table which will furnish that kind of info.
Thanks
RegardsRSOSFIELDMAP.
Infoobject field -> BW field
FIELDNM -> SAP Field
Regards,
Gunjan -
Mapping of Tax Form Fields to the PDF Tax Form
Hi,
Can anyone tell me how to see the mapping betw the Tax Form fields and the Tax Form in pdf format. For example in Quarterly State Unemployment form, I have a Tax Form field T003. How can I map this field to a particular field in the Tax Form in pdf format ?
Thanks And Regards,
Somdeb Banerjee.Hello Somdeb,
To use the Tax form field say T003 in PDF, there check box 'Form Processing Indicator' should be checked then only the field is available in PDF to be linked. Detailed documentation on how to use is available in 'Service.sap.com/hrusa'>Year end 2008> Year end reference materials-->' new! SAP ERP 6.0: 2008 U.S Tax Reporting w/ PDF-Based forms '
With Regards,
S.Karthik -
Select distinct records in Mapping with no Key field (all fields can vary)
Hi Experts,
Let me take an example (not the actual requirement but same scenario) to explain the problem where I need your help to get best possible way to resolve. This has to be achieved in mapping, don't have other options as its part of complex end 2 end scenario.
I have following input XML:
<Employee>
<Details>
<Id>123</Id>
<Name>ABC</Name>
<Role>Manager</Role>
<Area>Bangalore</Area>
</Details>
<Details>
<Id>123</Id>
<Name>ABC</Name>
<Role>Manager</Role>
<Area>Pune</Area>
</Details>
<Details>
<Id>123</Id>
<Name>ABC</Name>
<Role>Advisor</Role>
<Area>Bangalore</Area>
</Details>
<Details>
<Id>123</Id>
<Name>ABC</Name>
<Role>Manager</Role>
<Area>Bangalore</Area>
<Details>
<Id>143</Id>
<Name>ABC</Name>
<Role>Manager</Role>
<Area>Bangalore</Area>
</Details>
</Employee>
The output XML is:
<Employee>
<MainRec>
<Id>123</Id>
<Name>ABC</Name>
<table name = 'Roles'>
<record>
<Id>123</Id>
<Role>Manager</Role>
<Area>Bangalore</Area>
</record>
<record>
<Id>123</Id>
<Role>Manager</Role>
<Area>Pune</Area>
</record>
<record>
<Id>123</Id>
<Role>Advisor</Role>
<Area>Bangalore</Area>
</record>
</table>
</MainRec>
<MainRec>
<Id>123</Id>
<Name>ABC</Name>
<table name = 'Roles'>
<record>
<Id>143</Id>
<Role>Manager</Role>
<Area>Bangalore</Area>
</record>
</table>
</MainRec>
</Employee>
As you can see from the example above, here I want to populate only distinct records under table, but there is no key fiield to ditunguish. Any of the 3 fields (Id, Role,Area) can vary and between 2 records if all of these fields are same then its duplicate else select it. So in above XML just discard the 4th record from the source XML and populate all others. Each record has to be checked against all other records all 3 values (ID, Role, Area). Only when none of the records have exactly the same values, populate it.
Also records with different ID come under different table node. Hope my requirement is clear, if not please let me know, i will try to explain better.
I thought of creating a UDF to achieve this but not able to decide how to match it to the output message here.
Best Regards,
PratikHi,
For the main record, I think you only need to check for each unique ID, e.g
Id --> removeContext --> sort:ascending --> splitByValue:valueChanged --> collapseContext --> MainRec
For the record, however, you need to create a UDF that will filter out the duplicate values. For this, the UDF sample mentioned here contained multipleResult lists
Id --> removeContext --> concat: : --> concat: : --> UDF --> splitByValue:ValueChanged --> record
role --> removeContext --> / / \ --> Id
area --> removContext -------------> / \ --> role
\ --> area
Context type UDF
Arguments: input
Result: IdResult
Result: roleResult
Result: areaResult
Vector temp = new Vector();
for(int a=0;a<input.length;a++){
if(!temp.contains(input[a])
temp.add(input[a]);
for(int a=0;a<temp.size();a++){
String tmp = (String) temp.get(a);
/*split according to field */
IdResult.addValue(tmp.substring(0,tmp.indexOf(":")));
roleResult.addValue(tmp.substring(tmp.indexOf(":")+1,tmp.lastIndexOf(":")));
areaResult.addValue(tmp.substring(tmp.lastIndexOf(":")+1,tmp.length()));
note: Id and record will both be using the IdResult list.
Hope this helps,
Mark -
Mapping problem for date field
Hi XI Friends..
In my file to idoc scenario..
i have field date value :2006-10-10T14:10:10
i have convert the above field into two fields idate :20061010
itime:141010
i used substring datetransfer functions..
but in static test of message mapping ..i am getting value for itime as 021010
if we give before 12:00:00 its converting properly..after 12.:00:00 its taking 12hr format only..
please guide me..
regards
ramHi Ram,
Is this still a problem?
I think the hint will also work in this case:
sourcefield --> replaceString(sourceField/constant[T]/constant[]) --> TransformDate(yyyy-mm-ddHH:MM:SS --> HH:MM:SS) --> targetFieldTime
sourcefield --> replaceString(sourceField/constant[T]/constant[]) --> TransformDate(yyyy-mm-ddHH:MM:SS --> YYYYMMDD) --> targetFieldDATE
Daniel -
Trying to map between KE30 - Value Field - GL Account
Hi,
Had a question and am unsure what forum to post so I am poting a few places.
I am working with the KE30 Report. My manager has created a report to get to the Contribution margin. When the KE30 Report is run, I get colums such as Labor, Std OH, FX etc.... these are the Value fieds.
The value fields are made up of formulas and these formulas are such as A-B+C.... and A, B and C are made up of various GL Accounts....
The question is what code do I use too see the mapping from GL account all the way to the value field? Can anyone help
Thanks,
MMy issues is Value Field KVMAEK updated for every invoice. This is a duplication
1.In the case of goods produced in-house VPRS and Cost estimate both post to CO-PA.
2.KVMAEK comes from Cost Estimate.
3.In the CO-PA document we have an extra entry to value field VVMAT (in addition to KWMAEK).
kindly advice
Thansk
Sunitha
Maybe you are looking for
-
I made a video with my Cannon Powershot camera and tried to upload it to my computer using the Album Starter (which i have done NUMEROUS times in the past successfully) and all of the sudden it will NOT work. IT says "CAnnot obtain files from this de
-
Deauthorizing broken computers: I'm getting grumpy here |
With three kids' computers and two computer of my own my family usually has our full 5 authorized itunes computers at all times. So I've just had my second dead computer within 12 months and guess what: can't be deauthorized. It's dead, inaccessible
-
Adding chapters while preserving the original file size and type.
Gone are the days of easily adding chaps in FCP7. FCPX is here- chapters are gone!. Now enter Compressor 4. When exporting from Compressor am I ultimately going to end up with an additional file with new settings? I have followed the Compressor ma
-
Where on this site can I download the Collaboration Suite Release 2 for win
I can't found Oracle Collaboration Suite Release 2 for Windows on your site
-
I am trying to set up my playbook. I registered my blackberry on line today. When I attempt to use the name and password that I set up via my new playbook I get and error that the username and password do not correspond to a valid BlackBerry ID.