cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field appearing twice

KC18
Explorer
0 Kudos
139

Hi,

In our public cloud environment, we created a custom field at sales order line item level using custom fields app. When I don't enable SAP GUI for this field, I see the field correctly and I can update it manually. However, when an API creates order, we can't see the value in this field. However, the value is stored at database level. So, we enabled the SAP GUI. Now, we see the same field appearing on screen twice. I can update different values in both fields. When order is created via API, only one field gets updated.

*********************************

Below are the steps:

1- I created a custom field at sales order line item. I didn't enable SAP GUI.

2 - I created sales order. I was able to see and updated the custom field. I was able to save order and able to see the updated value in change/display mode.

3- I created order via API. I included the custom field in the input. The order got created, however in change/display mode i couldn't see the value.

4- When we ran get call for the order, we were able to see the value of custom field in response of get call.

5-I enabled SAP GUI in custom fields app.

6-I created order via API. I included the custom field in the input. The order got created. This time, we noticed the custom field was showing up 2 times on the screen. One with no value and other with value from API.

7- I get call, we saw only one field.

*********************************

I'm not sure if there is something I missed while creating the custom field or it is a SAP bug. Can someone help?

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

DequanXu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

You can try the following:

1. **Custom Field Visibility and Enablement**:
- When you create custom fields, ensure that you have enabled their usage for all relevant user interfaces and APIs. It seems like there's a disconnect between the SAP GUI and the UI where the fields are displayed.

2. **SAP GUI Enablement**:
- Enabling the SAP GUI for the custom field could be causing the duplication on the UI if the field was initially intended for a different interface. Ensure the field is only enabled in the necessary contexts.

3. **Field Visibility in APIs**:
- When you noticed the field didn’t appear in the UI after creation via API, but it was in the database, it indicates that the field might not have been enabled correctly across all necessary UIs. Ensure the field is enabled for API usage in the "APIs" tab and check if it aligns with how custom fields should be used with API operations.

4. **Check Custom Field Definition**:
- It might be useful to revisit the Custom Fields app to ensure you haven’t configured the same custom field under two different contexts or mistakenly created two similar fields.

Best regards,

Dequan Xu