on 01-31-2018 1:16 PM
Hi Experts,
I have a clarification in code. In SD Module in the object "MV45AFZZ" there is some custom code to pop up a warning message if a user tries to create/modify a contract through VA41/VA42 tcodes with existing data.
This logic works when the save button is pressed.
When we press the enter button, the code is skipped and flow continues leading to saving of the data which is not the expectation.
At the point of pressing enter the SY-UCOMM value is 'SICH' and 'SY-DYNNR' value is '4001' same as for Save.
Can anyone please help.
Thanks in advance.
Hi Shyam Nandan,
"there is some custom code to pop up a warning message if a user tries to create/modify a contract
Use Authorization and allow the authorized users to use VA41 and VA42 transactions. If it is Warning Message, the message will populate in the screen, once enter button is pressed, the remaining code will execute (i.e Saving).
"At the point of pressing enter the SY-UCOMM value is 'SICH' and 'SY-DYNNR' value is '4001' same as for Save.
While 'Enter' action, the SY-UCOMM contains Null Value(' '). During 'Save' action, SY-UCOMM contains 'SICH' value.
"When we press the enter button, the code is skipped and flow continues leading to saving of the data which is not the expectation.
You can trigger Error message instead of the warning message if saving should not happen.
Regards
Rajkumar Narasimman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.