on 2023 Sep 19 5:15 PM
Hello Experts,
For Opportunity products, we have available the button "Add" which opens a new screen:

In this screen we have a custom field with a custom OVS attached (based on the standard Opportunity BO, which allows the user to select only the Products already saved in the respective Opportunity):

So in this case, the OVS displays products 10, 20 and 30.
But when a user is entering an invalid value, for example 70, we receive this SAP standard error message:

I searched for KBA Notes and also C4C blogs, but I couldn't find anything how to catch and threat this error in a more user friendly. Also I tried in PDI to check the value entered by user, but the debugger/events are not triggered when the user press either Enter either Add button.
Is there any possibility to avoid this SAP standard error and to raise a custom error message like "Please check the value entered... etc" ? Other suggestions/ideas are much appreciated.
I look forward your experts opinion, thank you very much!
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried also to use drop down instead of OVS, but it is not possible on a standard UI this functionality. Also an EC which contains this field as dropdown cannot be added in the respective screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Elena,
Such an error can be caused by either a frontend or backend issue.
If it's an SDK field, please raise a ticket to the component "AP-RC-BDS-LM". For a KUT field, please send it to the component "AP-RC-UIF-FLX".
The support team will catch and analyze the log to determine what caused the error. Then, we will propose a suggestion to correct it.
Best regards,
Alan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alan,
Thank you for your support.
It is an SDK input field which has a custom OVS assigned. The error is caused by entering directly an invalid value in field "Parent Product" (value which is not also present in OVS).
For example, the OVS displays only values 10, 20 and 30, but the user is writing 40. Than the error appears.
Is possible to solve this in a custom way?
Thank you again!
Hi Elena,
It's my pleasure.
Could you reproduce the error and check if there is the error detail appears on the Console window?
For how to open the console window please refer to How can I find the console window on my browser.
Besides, can you share more details about what is mentioned as "the OVS displays products 10, 20 and 30"? Attaching screenshots of it would be helpful.
Steps to reproduce the error:
1. In Cloud For Customer open any Opportunity and navigate to Products table
2. As example, this Opportunity already has 3 products, identified on Lines 10, 20 and 30 (other Opportunities can have only 1 or 10 products). In this Products tab, press the button Add:

3. A new screen of type pop up is displayed, where the field Parent Product is mandatory and has an OVS attached (the value help marked with red arrow):

4. Open OVS, it displays the products from this Opportunity (10, 20 and 30):

5. The user doesn't choose any of the options displayed by OVS, instead he manually enters an invalid value, like 70 (this value is not valid because there is no Line 70 in the Products):

6. Error 500 is displayed - because this value is invalid, and this is the error cause
7.Console error displays a Post operation fail (which is expected, since we are trying to create a product for an invalid Parent ID):

The field Parent ID is a custom field. When we create new products and this field is mandatory, means that we also have to choose a valid parent for that product... this parent can only be one of the products saved already in this Opportunity.
In this example, since there is no product with ID 70, we cannot create a new product which has Parent 70.
Thank you very much for your support 🙂
| User | Count |
|---|---|
| 2 | |
| 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.