Skip to Content

How to know if an IndividualProduct already exists in SAP ByDesign?

Hello experts,

I'm working on an application (developped by using SAP Cloud Applications Studio) that creates IndividualProduct objects into SAP ByDesign. From what I could see until now, creating an IndividualProduct that already exists will raise no errors, because SAP ByDesign already controls duplicate entries. Apparently, the SerialID is checked for that. However, I would like to implement a specific notification if such a thing happens.

When I create an IndividualProduct in my code, I perform the following steps:

- I create an InstallationPoint

- I create an InstalledObject from that InstallationPoint

- I create an IndividualProduct with its details (ServiceProcessInformation...)

- I activate the InstallationPoint

- I activate the IndividualProduct

I know that somewhere after creating the IndividualProduct, there's something raising that this IndividualProduct already exists. I can see the following message being displayed in the application and tracable in the debug mode: "09:19:09 [1:I] Trace LOG :: ERROR > The product registered (100280986)7P85122901 for the serial 7SP022856 already exists!"

So my question is, is there any variables/properties/attributes that can be used to assess that the IndividualProduct already exists and perform an action? I don't even know how to retrieve the LOG ERROR message above.

Any helps would be greately appreciated.

Thank you in advance.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 17, 2018 at 12:17 PM

    Hello Frédéric,

    Do you have any other identification for the IndividualProduct you want to create?
    Something which can be used to query or even direct retrieve an existing instance?

    . Horst

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.