on 01-06-2016 3:46 PM
Hello!
We want to use one of custom fields available for contacts. It is quite simple how that is possible when data is uploaded from a csv file. But how to enhance CUAN_IMPORT_SRV to use BOOLEAN1 field from available data structure?
Anyhow, what is the way how to provide data about contacts / interactions or other entities using service CUAN_IMPORT_SRV?
Thanks in advance,
Maris
All the fields in the ROOT tables are not exposed in the OData. You can try adding new fields (unused in standard) to the OData in SEGW. You can bring in a lot more fields to the standard OData from there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maris, Were you able to find any solution to it ?
I'm working on similar scenario. Appreciate you help here.
Thanks, Brijesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brijesh,
what I found that you have to add a custom field in "Import data" sub work-set first and then you need to open a metadata for the import service, which is <host>/sap/opu/odata/sap/CUAN_IMPORT_SRV/$metadata.
Field will appear there and can be used from that moment with the service.
Regards,
Maris
Thanks !! Maris, for the promot reply.
In addition, Just wanted to validate my understanding here.
I'm working on importing contacts and there are custome fields as well.
follwoing would be required for importing contact with custom filed :
From table prespective
As it is adviced in the inbound unterface guide to use include INCL_EEW_CUAN_CE_IC_ROOT for any custom field.
Once fields are included then transaction HPA_CLEAR_BUFFERS needs to be executed
Data integration prespective
add custom filed in 0Data as mentiond above & code.
Call the service to import data .
Thanks, Brijesh
Hey,
I used INCL_EEW_CUAN_CE_IA_IC. I see my custom fields in the section "Contacts" (using odata and a Chrome app).
<EntityType Name="Contact" sap:content-version="1">
<Key>
<PropertyRef Name="Id"/>
<PropertyRef Name="IdOrigin"/>
</Key>
<Property Name="Id" Type="Edm.String" Nullable="false" MaxLength="100" sap:label="Testo"/>
<Property Name="IdOrigin" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="OrigineContatto"/>
.....
<Property Name="C1" Type="Edm.String" MaxLength="10" sap:is-extension-field="true"/>
<Property Name="C2" Type="Edm.String" MaxLength="10" sap:is-extension-field="true"/>
<Property Name="C3" Type="Edm.String" MaxLength="10" sap:is-extension-field="true"/>
BUT what about I want to add custom fields ONLY to the interactions entity type? Which INCLUDE should I use?
Thanks
Cristina
INCL_EEW_CUAN_CE_IC_ROOT -> To enhance Contact root (CUAND_CE_IC_ROOT) alone
INCL_EEW_CUAN_CE_IA_IC -> This enhances CUAND_CE_IC_ROOT as well as CUAND_CE_IA_RT (Interactions root)
INCL_EEW_CUAN_CE_IA_ROOT -> This enhances CUAND_CE_IA_RT alone
INCL_EEW_CUAN_PRODUCT_ROOT -> This enhances CUAND_PROD_ROOT
INCL_EEW_CUAN_CE_IA_PRODUCT -> This enahnces the Product - Interactions link table (CUAND_CE_IA_PROD)
Hope this helps ...
It works! I can see the new fields in the xml of the odata get request.. but what about if I need to show them in segmentation workset?
As regards the custom fields for the contacts, I changed the view CA_C_CONTACT_INTERACTIONS (related to consumers B2B e B2C).. but there CUAN_CE_IA_RT is not joined here and thus I can't show new fields!
Hi Maris,
The structure CUAN_S_CE_IC_EXT_FAFL is used for interaction contacts in SAP hybris Marketing.
If you want to use customer specific attributes, you can add;
If you want to add master data to the interaction contact via interaction, you can use INCL_EEW_CUAN_CE_IA_IC include.
Normally, attributes added to these includes are taken into consideration automatically.
You can find more infomation in official inbound interface guide: https://goo.gl/AF6oPQ
I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hakan,
I want to use field BOOLEAN1, which is already defined in the structure, but unfortunately it is not defined in the CUAN_IMPORT_SRV metadata structure. If I make a JSON call using this field, SAP gateway replies with error, that this field is not defined.
There must be something more that structure definition in SE11, but I cannot find it in any of guides provided.
Regards,
Maris
Hİ Maris,
In the document I referenced, there's a section about additional details:
Additional Fields
Within the structures on which the entity types of the OData service are based (see Structure of OData Service CUAN_IMPORT_SRV [page 18]), you find fields with unspecified names. If you want to use these fields, for example because the available fields with specified names do not meet your requirements, you must ensure that the required additional fields are added in the Import workset of Data Management on the user interface of SAP hybris Marketing.
Does it make sense for you? It appears to me it's addressing the business requirement you have...
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.