Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: How can I import Marketing Leads incl. products

$
0
0

Currently the Excel Upload Framework could only support a Flat Table and could not handle the association. But there are some scenario where relational data needs to be uploaded. But in cases where the association is going to have finite cardinality, upload could still be achieved using the framework. The A2X Service needs to be adjusted to handle the association in the uploaded data as well as the template needs some adjustments.

Assuming that the A2X service is extended, let us consider the example where a single marketing lead has an association with many Products. The number of products associated with each marketing lead (cardinality) is a finite number. The existing MarketingLead template has to be extended such that each marketing lead has an association of upto 5 products ( just for example). Further, considering each association is described by "ProductID" and "ProductDescription", the below steps have to be followed.

In order to view the xml schema of the template, you can use the Edit XML Schema in the Tools Addin and edit the schema SAP_BYD_MAIN.

1) Add the new schema elements to the structure corresponding to the node where the new fields belongs to in the service.

In the example the element "Product_1" is added under "ManageMarketingLeadIn".

The number of elements to be added similarly depends on the association cardinality.

In this case five elements of name Product_1,Product_2,Product_3,Product_4 and Product_5 are to added similarly.

If you observe the type of element it happens to be "ProductFlatType" which is again a flat data for the framework.

2) After adding the schema elements, now provide the definition for the ProductFlatTypeas below


Note : Please note that the type for the elements namely xs:int and xs:string in the above example are only for demo purposes.

3) Any transformations to the newly added elements has to be added below the tag<Transformation direction="in">in the schema.

4) Once the above schema changes are done, please save your changes and automatically the added elements will be visible in the template as shown below.


 

5) Please map these elements of the schema to the appropriate columns in the template and the modified template is now ready for use.


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>