cancel
Showing results for 
Search instead for 
Did you mean: 

How to import vehicles?

Former Member
0 Kudos

Helle there!

I've enabled the vehicle vertical in C4C to manage vehicles (Products > Vehicle Management). Using the UI I can create vehicle normally, it seems like an extension of the individual/registered product. Now I need to import thousands of vehicles and these are my options:

1) Import via migration template:

  - It doesn't exists. An incident was open but nothing could be done.

2) Import via custom web services:

  - It can't be done. The error "The alternative key or one or more business object elements are not released for PSM" appears in all operatios. In addition, there isn't queryByElements query and I can't create alternative key in xbo.

3) Create a custom BO with all information needed and populate via XML file input or custom webservice, after that, in beforeSave or using MDR, create Vehicle by code:

  - It doesnt' work. The Create() method of Vehicle doesn't do anything. I can't fill basic information such as VIN, Product and Customer that belongs to IndividualProduct.bo.

4) Import as Individual/Registered Product using standard mechanisms and in beforeSave create the respective Vehicle by code:

  - It can't be done. IndividualProduct.bo belongs to Foundation deployment unit and Vehicle to CRM. Apperantly I can't use Vehicle.Create() and even if it's possible I don't know how to do it.

Any suggestion?

Thanks in advance.

Alexandre.

Accepted Solutions (1)

Accepted Solutions (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Alexandre,

I assume the main obstacle in your apporaches are that you want to create / maintain the only AlternativeKey of the BO Vehicle: ID.

This element is not write-released. It will be determined by the system.

You propably need to provide an InstallationPoint too.

Bye,

   Horst

Former Member
0 Kudos

Hello Horst!

Thanks for the reply!

We have an incident in SAP about the Vehicle BO and how to manipulate it. This BO has some limitations and they are working on it. Soon they will release a hotfix. Will be possible to integrate, query and update the object correctly.

Thanks again,

Alexandre.

Answers (0)