cancel
Showing results for 
Search instead for 
Did you mean: 

Order Save and validation

Former Member
0 Kudos

Hi Experts,

I have requirement in Web UI, I need your guidance.

I need to validate the data in web UI when the return sales order is Saved. when there is insufficient data in (one field - no data ) the order we need to give pop up message with options to Proceed or Dont proceed with Save.

Business dont want it to be a mandatory field or a error message in alerts.

I am looking for code/suggestion to achieve Dont proceed with save option to get back to old state and user can enter the data.

I am looking for something like when we select back button after modifying data we get a pop to save , no save or cancel ( When we select Cancel it will stay in the order and can modify the data ).

We need this option when user clicks save button.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

former_member214667
Contributor
0 Kudos

Hi Ramki,

You can make use of the following method of component controller class to open a confirmation popup:

IF_BSP_WD_WINDOW_MANAGER~CREATE_POPUP_2_CONFIRM( )

You can do a where-used on this method to find out how this can be used. Basically you can call this method from the enhanced EH_ONSAVE( ) method and call save or revert methods based on the selection made in the popup.

Regards,

Shiromani

Former Member
0 Kudos

Hi Shiromani,

Thank you for the reply, I have code for popup.

I am looking for functionality to retain in the order to edit when dont proceed option is selected in the popup.

Right now When user select one of the options in the popup, it is saving the order and has to select edit to change the data.

I am looking for something where user can stay in the order and edit the data to continue after popup , Standard Save functionality has to be cancelled.

Answers (0)