Example of a custom field mapping?
Ok, I admit it I am struggling here. I have simplified my example from
what I actually have.
I have a table that models a flat hierarchy
ID | START_DATE | END_DATE | CLASSNAME | FIELD1 | FIELD2 | ...
one of the objects in my hiearchy (CashFlow) has a field that is in fact
another object called DatePeriod that contains two fields startDate and
endDate.
I understand that what I am trying to do is embed the DatePeriod object
inside of the larger object when it get's persisted.
I have the following metadata set-up
<class name="CashFlow" persistence-capable-superclass="InstrumentFlow">
<extension vendor-name="kodo" key="table" value="INSTRUMENT_FLOW"/>
<extension vendor-name="kodo" key="pk-column" value="ID"/>
<extension vendor-name="kodo" key="class-column" value="none"/>
<extension vendor-name="kodo" key="lock-column" value="none"/>
<field name="accrualPeriod" embedded="true"/>
</class>
and for my DatePeriod object
<class name="DatePeriod">
<extension vendor-name="kodo" key="table" value="INSTRUMENT_FLOW"/>
<extension vendor-name="kodo" key="pk-column" value="ID"/>
<extension vendor-name="kodo" key="lock-column" value="none"/>
<extension vendor-name="kodo" key="class-column" value="none"/>
<field name="startDate">
<extension vendor-name="kodo" key="data-column" value="START_DATE"/>
</field>
<field name="endDate">
<extension vendor-name="kodo" key="data-column" value="END_DATE"/>
</field>
</class>
Every time I try to fetch a CashFlow object I get an error as KODO is
trying to select the column 'ACCRUALPERIODX.'
What am I doing wrong? Do I need to use a custom field mapping? If so
where is the documentation to help me write a custom field mapping?
A second question would be what happens if the DatePeriod object is used
in a couple of places, I don't want to tie it's persistence to the
INSTRUMENT_FLOW table.
All help gratefully received
Cheers
Matt
As you suspect, Kodo 2.x does not support embedded class mappings. Kodo
3.0 will support embedded mappings.
In the meantime, you can create a custom mapping, but unfortunately our
documentation for custom mappings is lacking right now. Given how simple
your DatePeriod object is, you're probably better off with something
simpler (and as a bonus, less bound to Kodo):
Just make your DatePeriod class and the field that holds the DatePeriod
instance non-persistent. In the class that has the (now non-persistent)
DatePeriod field, add two new persistent fields for the startDate and
endDate. Then just use internal logic to construct the DatePeriod from
the startDate and endDate. You can do this using the
javax.jdo.InstanceCallbacks methods, or just do the logic in your setter
and getter methods for the DatePeriod.
Similar Messages
-
Issue with custom fields mapping from CRM to ECC.
Hi all,
I have issues with replicating custom fields in a Service order. I have created new fields with EEWB and EEWC. Now the structure has been changed in ECC and CRM. But i have to map this fields to correct structures. Also i need some logic to apply.
But i have addressed in couple of threads about the custom function module as in user exit for FI generation.
But i didnt understand the concept of this custom function module. why is this been used?
Could anyone let me know with an good example on how this has to be acheived.
Points are highly awarded.
Kindly reply me.
Thanks,
Kiran...Hi,
Here you go,
After you create custom characteristics.
1. Do Assign category.
2. Map contents.
3. Double check your master catalog has the mapped content.
4. Publish master catalog.
As per your message, you are not having any error message during import, which tells me that you are one step to close.
Cheers, Renga -
Custom fields mapping issue of sales order replication from R/3 to CRM
Hello Experts,
I have to replicate sales orders from R/3 to CRM system (Initial and Delta)
The issue is I have custome fields in R/3 which are maintained in custom table(Z table) in R/3.
We added those custom fields in CRM customer_i table to synchronise with R/3 data.
To MAP R/3 custom fields to CRM custom fields, i have the following customization.
1. Added the custom function module in the event CRMO_200 and moved all the custom fields into interal table IT_OTHER_INFO.
2. The intrnal table IT_OTHER_INFO with data is passed into CRM standard function modules.
3. But in CRM the BADI 'CRM_DATAEXCHG_BADI' implementation does not have the input parameter of internal table TI_OTHER_INFO.
All my custom data is in internal table TI_OTHER_INFO.
Please suggest where can i map this data to CRM enhanced fields.
Regards,
Umashankar.Hello Vanessa,
Thank you so much for your reply.
I went through the Note (1053817). It is good. I understand that the custom fields should enhance in the BAPE_VBAP in R/3.
My Scenario:
Goal: Orders replication from R/3 to CRM along with Custom fields.
In R/3, all the custom fields are maintained in Z table (Not VBAK or VBAP).
All these custom fields are belongs to Item level.
In CRM, The custom fields are maintained in CRMD_CUSTOMER_I table though AET.
I need to MAP these custom fields to CRM while order replication from R/3 to CRM.
Regards,
Umashankar. -
Hi,
Is OneToOneFieldMapping in Kodo 3.x replacement for OneToOneMapping in
Kodo 2.5.x?
and is FieldMapping.isCustomNullEmbeded( ) / FieldMapping.nullEmbeded(
)replacement for FieldMapping.compareToNull( )
Thanks,
VladimirasHi,
I have next situation:
one-to-one field mapping - PC Document has PC Folder:
class Document {
Folder folder;
in some cases Document.folder can be null, but in DB schema related
field can't have null values. So, if Document.folder is null, predefined
value (for example, 99) must be stored in DB.
I used subclass of the OneToOneFieldMapping:
public class FldNANMapping extends OneToOneFieldMapping {
public final static Integer NAN = new Integer(99);
public final static String STR_NAN = NAN.toString();
public FldNANMapping (FieldMetaData meta) { super(meta); }
public String getMappingType() { return getClass().getName(); }
public Object getDataStoreValue (Object val)
Object value = getTypeMapping().getDataStoreValue(val,
getForeignKey().getPrimaryKeyColumns());
if( value == null) { value = NAN; }
return value;
public void appendIsNotNull(SQLBuffer sql, Joins joins) {
if(getInverseType() == 0)
join(joins);
if(getForeignKey().getColumns().length == 0)
sql.append("1 = 1");
else
sql.append(joins.getColumnAlias(getForeignKey().getColumns()[0])).append("
<> ").appendValue(STR_NAN);
public void appendIsNull(SQLBuffer sql, Joins joins) {
if(getInverseType() == 0)
join(joins);
if(getForeignKey().getColumns().length == 0)
sql.append("1 <> 1");
else
sql.append(joins.getColumnAlias(getForeignKey().getColumns()[0])).append("
= ").appendValue(STR_NAN);
and I've got next error:
Original Exception------------------------------------------- >
kodo.util.FatalDataStoreException: ORA-01400: cannot insert NULL into
("VFTEST"."AAA_DOCUMENT"."FLD_RSN")
{prepstmnt 3515855 INSERT INTO AAA_DOCUMENT (A_QA_USER, BATCH_NO,
COMMIT_DATE, DOC_CHECK, DOC_CHECK_USER, DOC_DESC, DOC_MOD_DATE,
DOC_MOD_UID, DOC_RSN, DOC_RSN_REF, DOC_SCAN_DATE, DOC_SCAN_UID, DOC_TYPE,
FLD_RSN, IMAGE_FILE, IMAGE_PAGES, NODE_ID, PARCEL_ID, SUB_FLD_RSN,
TASK_ID, TASK_PAR_STR, WFL_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [reused=0]} [code=1400, state=23000]
NestedThrowables:
com.solarmetric.jdbc.ReportingSQLException: ORA-01400: cannot insert NULL
into ("VFTEST"."AAA_DOCUMENT"."FLD_RSN")
{prepstmnt 3515855 INSERT INTO AAA_DOCUMENT (A_QA_USER, BATCH_NO,
COMMIT_DATE, DOC_CHECK, DOC_CHECK_USER, DOC_DESC, DOC_MOD_DATE,
DOC_MOD_UID, DOC_RSN, DOC_RSN_REF, DOC_SCAN_DATE, DOC_SCAN_UID, DOC_TYPE,
FLD_RSN, IMAGE_FILE, IMAGE_PAGES, NODE_ID, PARCEL_ID, SUB_FLD_RSN,
TASK_ID, TASK_PAR_STR, WFL_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [reused=0]} [code=1400, state=23000]
java.sql.SQLException: ORA-01400: cannot insert NULL into
("VFTEST"."AAA_DOCUMENT"."FLD_RSN")
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:592)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:152)
at
kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:964)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:813)
at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:542)
Document.field is mapped to "FLD_RSN".
What is the right way in this case?
Thanks in advance,
Vladimiras
Stephen Kim wrote:
For the former, yes. As for the second, no. You might want appendIsNull.
Vladimiras Makarovas wrote:
Hi,
Is OneToOneFieldMapping in Kodo 3.x replacement for OneToOneMapping in
Kodo 2.5.x?
and is FieldMapping.isCustomNullEmbeded( ) / FieldMapping.nullEmbeded(
)replacement for FieldMapping.compareToNull( )
Thanks,
Vladimiras
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
OTL Timekeeper Form Custom Field map to specific Element Input Value
Hello Everyone,
I have the below requirement.
1. Create a custom field in OTL Timekeeper Form. This field is based on the Element Selected on the timecard.
2. Once the Timecard is transferred to Payroll, the custom field should go to a specific input value of that element.
I know how to perform Step 1 above. But i am unable to find out how i can map the value in custom field to a specific Input value of the element.
Any inputs are appreciated.
Regards,
JayAny tips people?
Can this be achieved?
This is what i have done so far.
1. Created a new Value set for the custom field.
2. Created an alternate mapping to map the value set value to InputValue13.
3. Created the alternate name.
4. Added the alternate name to 'OTL Alternate Names' DFF.
5. Added the Alternate name to the 'Preferences'.
Testing:
1. Created a Timecard populating the custom field.
2. Timecard submitted and approved successfully.
3. I verified that the custom field value goes into attribute13 of hxc_time_attributes where the attribute category is the corresponding element (should it be against the attribute category: Dummy Element Context? If Yes, then how to do it?).
4. Then i ran the program 'Transfer Time from OTL to BEE'. This transferred the values into hxt_timecards_f, hxt_sum_hours_worked_f, hxt_det_hours_worked_f. But nowhere in these tables do i see the custom value.
Did i miss any step? I did not define anything in the 'Define Mapping Components' of Deposit/Retrieval Process because InputValue13 is already part of it unter type 'Dummy Element Context'.
5. Since it is not in hxt tables, i did not find it in pay_batch tables too.
Any guidance is appreciated.
Regards,
Jay -
CRM - BP - customer - fields mapping
hi,
is there any place (table, etc) where I can find which standard field in CRM
is mapped for which standard field in R3 for BP - customer replication ?
thank you,
Regards,
Michalhi,
I know which tables take part in that exchange
I was just wondering if there's a place where the whole mapping is shown
thanks anyway I assume there is no such place
Regards,
Michal -
Custom fields transfer using ESOA in SRM 7.0 system
Hi SRM experts,
I have a requirement where in I will have to add some custom fields in the SRM central contract as well as the replicated contract in the backend ECC. I would like to understand how to handle the SRM ,ECC and XI part of the custom field mapping development since the central contract is transferred through XML medium.
Currently I am on SRM 7.0 and ECC 6 Enh 4 using ESOA
1. any SRM and ECC badi needs to be implement ?
2. XI proxy need to modify ?
Kindly advice and provide your valuable inputs
Thanks in advance.Thanks for the information Tim,
In SRM u2013SUS system ,while transferring custom fields from SRM to SUS system we use XML OUT BADI and XML IN BADI and XI structure enhancement.
Is that same technique is available for contact transfer with custom fields to ECC using ESOA.
Thanks in advance -
Custom fields in Shopping cart at item level
Dear Experts,
We have a requirement to create the fields in the shopping cart.
Through customizing we have defined the fields and configured them. Now we could able to see the custom fields in the Shopping cart at item level. The values to custom fields must be the passed from the external Catalog after punch out.
Which BADI should we implement and am i missing anything else.
Please provide pointers to solve the issue.
Thanks,
VikasHello Vikas,
Please find the sample code below for moving catalog field to custom field.
But customer field mapping needs to be known.
MOVE-CORRESPONDING enriched_item_data_out TO ls_enriched_item_data.
wa_index = ls_enriched_item_data-line.
*--- If Customer Field of Catalog is Filled
IF ls_enriched_item_data IS NOT INITIAL.
wa_payment_term = ls_enriched_item_data-cust_field1.
wa_incokey = ls_enriched_item_data-cust_field3.
wa_incoloc = ls_enriched_item_data-cust_field1.
wa_tax = ls_enriched_item_data-cust_field5.
wa_ag_id = ls_enriched_item_data-agreement.
LOOP AT et_sc_item_data_out INTO ls_item WHERE number_int EQ wa_index.
ls_item-zpay_term = wa_payment_term.
ls_item-zincokey = wa_incokey .
ls_item-zincoloc = wa_incoloc.
ls_item-ztax_code = wa_tax.
ls_item-zag_id = wa_ag_id .
MODIFY et_sc_item_data_out INDEX wa_index FROM ls_item TRANSPORTING zpay_term
zincokey
zincoloc
ztax_code
zag_id .
ENDLOOP.
ENDIF.
regards,
Neelima
Edited by: S Neelima on Apr 28, 2011 2:09 PM -
How to map customer field to standard field using BAPI_PO_CREATE1 ?
Hi,
i am trying to transfer a customer field from SRM to ECC60 through BAPI_PO_CREATE1;
In SRM the EAN field does not exist; Thus we have created it.
While transfering the PO to ECC, we try tu use BBP_PO_INBOUND_BADI to map the SRM field to the EAN11 field in EKPO.
However, we do not find the EAN11 field in the BAPIPOITEM structure.
Steps already done :
BBP_CUFMAP
How do we map a customer field coming from an external system to an ECC standard field ?
Kind regards,
Yanninterface name is: SalesOrderCreateRequestConfirmation_In
have a look at this link to get some more details:
http://help.sap.com/esoa_erp2005/helpdata/en/44/62e384e370311de10000000a155369/frameset.htm
is that what you need? -
SRM Custom field "Unloading Point" mapped to PR and PO in Classic Scenario
Hi Gurus,
SRM 5.0 and ECC 6, Classic
We have a requirement of adding a new custom field u201CUnloading Pointu201D in Basic Data in SC.
The u201CUnloading point u201C field in SRM is to be mapped to the existing standard field u201CUnloading Pointu201D in the u201CAccount Assignmentu201D tab at the Item level .The same field should be updated for PR and PO also.
Followed the below link
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20b36c12-685f-2c10-4fb4-ba2e0b969c27?quicklink=index&overridelayout=true
By Andreas Milbredt and for PR is it updating fine.
For PO it is not getting updated.
BBP_CREATE_BE_PO_NEW--->.FILL_PO_INTERFACE1---->.
u201CMETHOD IF_EX_BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE1 u201C
In this we are updating the below structure Unloading Pont field with SRM u201CUnloading Pointu201D data.
cs_po1_document-IT_POACCOUNT-UNLOAD_PT
cs_pox_document-UNLOAD_PT = 'X'.
Still it is not getting updated.. Pls help
Thanks in Advance.
BabuHi,
further Info:
After debugging it was found that this BADI BBP_CREATE_BE_PO_NEW it triggering the below standard implementation .
BBP_CREATE_ICC_BR_PO(BAdI Implementation to Transfer Brazilian Fields) only and the BADI is of type single Use.
But we have our custom implementation added to the BADI " BBP_CREATE_BE_PO_NEW" which is not read and made inactive automatically by the system.
Let us know if this is a standard behavior and please help to proceed further.
Regards,
Suresh. -
Map Profit Center as custom field to product
Hi,
We want to map Profit Center(35 characters) to a custom field in product for some analysis. We want to map it to Custom Attribute 2 (XARLPROA2) this is a 40 character long field.
We do not want to see this field in Reports in UI. Please let us know is this the right approach or would you suggest some other field to which wecan map Profit Center.
Regards
NeelHi Neel
I am assuming that you are referring to display attribute and not navigation attribute that needs to be added to product. Yes, thats the same as adding an attribute in standard BW way.
And then, in the SPM UI you can display attributes in the contextual menu of a particular product.
But if you do need to do analysis on it then on top of adding the attribute, you need to flag it as navigation and then bring it in the following:
The respective cube(s) 0ASA_C*
Add it into the multiprovider 0ASA_MP01
Add it to the Query
Log into SPM UI and refresh all data sources (make sure that no other users are logged in at that time), log out
Clear browser cache and log back in
Create report with that nav att
Hope that helps!
Regards
Rajesh -
Hi All,
Can any one provide sample Role mappers example?
I am basically ADF developer,i am not fully aware of weblogic API.
it would be great if you guys tell me how to start or if you provide some sample links.
appreciate you help
Thanks
KTreply to your thread.
custome role maper example -
Addition of custom fields in Contract and mapping it with the fields in SRM
Hi all,
A custom field should be added to bid invitation in SRM and mapped to a custom( Z field) field which is present on the contract header screen in R/3 backend. Is it possible to map these custom fields. The custom field which is in the backend contract is a mandatory field for creating a contract in the backend. It is not getting filled so the contract is not getting created in the backend. One solution which we thought of was to create a csutom field on bid invitation and pass the value of the custom field to backend by concatenating it to any of the standard field ehich is getting passed to the backend and then splitting the standard field and retrieving the custom field value and restoring the standard field value. If you think of any solution do let me know.
Regards,
AshaHi
Pls refer to the following thread for more details
Custom fields not display in SRM5.5 Basic Data Frame
Custom fields not display in SRM5.5 Basic Data Frame
Hope it helps.
Pls reward suitable points.
Regards
- Atul -
How long does it take for the custom field created in SFDC to show up in the field mapping list? I hit the refresh field button, but it is not showing up after 5 min. Do I just need to have patience?
Hi,
What do you have to do to the field in SFDC to make it accessible so that it shows up in the Eloqua field mapping area as a field to be mapped? -
Unable to map non-custom fields in EBM
Hi ,
I have extended customer party EBO in AIA 2.4 and am using QueryCustomerPartyEBM and QueryCustomerPartyREsponseEBM in my project.
I am sending response in QueryCustomerPartyREsponseEBM from provider to EBS to requester.
When i map the response of invoke (that invokes ESB) in the requeter to the Response ABM and execute, all the customer fields from the EBM are getting mapped to ABM, but the non-customer fields are not getting mapped.
When i put an assign activity after invoke and tried to retrieve these values from Response EBM, an error came up saying that the field is empty.
But i am able to see the non-customer fields populated in response variable of invoke in requester.
Please let me know, what might be the possible reason.Please refer to "XSLT Extensibility" section, Page 99, in Integration Developer Guide.
You may find the Foundation Pack Product Documentation - Metalink Note 824495.1 at http://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=824495.1
Regards
Rohit
Maybe you are looking for
-
i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.
-
I recently had to reinstall all my system software and was able to bring back itunes libraries from backup cd's however now my iphone and appletv are no longer recognized by itunes. Is there a way to get my computer to recognize all my peripherals ag
-
Neuer PC fürs Schneiden, VFX
Hallo, ich brauche einen neuen PC für meine Videos, denn mein PC ist sehr langsam und stoppt doch zu oft beim schneiden. Was soll er können? Mein Pc soll solide und schnell sein. Er soll Programme wie Adobe Premiere, After Effects, Blender und Davinc
-
How can I export data to excel sheet using jsf ..Any components available.. Thanks in advance.
-
In adobe Encore "internal software error"
If you try to create a DVD image in adobe encore, It is not possible to create is displayed: "Volumes / Builds / Amawat / Main / XcodeProjects / AuthorCore / / / Sonic / DVDCreator / FormatL ib / Vobulator / BlockPlanner.cpp, line 217 internal softwa