4

Change the value of header UDF in Sales Order on button click using SDK

 1 year ago
source link: https://answers.sap.com/questions/13873107/change-the-value-of-header-udf-in-sales-order-on-b.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
15 hours ago

Change the value of header UDF in Sales Order on button click using SDK

76 Views Last edit 57 minutes ago 2 rev

I have added a new button on a system form (Sales Order form), with the caption "Mark as Reviewed".

When the form is in UPDATE mode or OK mode and the button is pressed, I want to set the header level UDF field U_Status (which is of alphanumeric type) to the text "Done" using SDK, and save the form, without requiring the user to click on the Update button manually.

Do I have to update the header UDF using the UI element, or is there a way I can do it using DBDataSource or DI API?

Any code example will be very helpful.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK