2006 Jan 16 10:13 AM
How Do everyone.
I have written some code within the user exit for VA41
within the FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
It bascially asks for some user input. If the user
answers 'Y' I carry on as normal with the document save.
However, if the user answers 'N' how can I force the
system to reject everything the user has entered? So
that he/she can start again.
How Do everyone.
I have written some code within the user exit for VA41
within the FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
It bascially asks for some user input. If the user
answers 'Y' I carry on as normal with the document save.
However, if the user answers 'N' how can I force the
system to reject everything the user has entered? So
that he/she can start again.
2006 Jan 16 10:23 AM
Hi Andy,
The user answer 'N' will itself cancels the user inputs, and will not save anything.
If you have access to OSS , read consulting notes 7688 /
582767 / 313440 .
Check OSS 178328 It will answer all your queries
XV*** structure will hold the current values of the Sales Order.
YV*** structure will hold the previous values of the Sales Order.
For Example,
Sales Order is created with two line items say 10 and 20.
During the sales order change an item is added say 30.
XVBAP holds all the three line items(10, 20 and 30).
YVBAP holds only 10 and 20.
All the values in XV*** will be updated to the tables V*** repectively during COMMIT.
Using XV*** and YV*** you can determine the changes made for the sales order while change is processed.
Regards,
Raj
2006 Jan 16 10:41 AM
Thanks for your reply Raj but I have not explained my
problem very well. I have added some functionality where
the user can enter a contract start and end time via two
new fields I have added onto the VEDA table.
After user input if I decide the times that have been
entered are incorrect i.e. overlapping etc. I want the
system to reject everthing the user has entered, so that
they are forced to start again.
2006 Jan 16 10:43 AM
Hi,
May be you can use the following if you want the user to start all over again..
LEAVE TO TRANSACTION 'VA41'.
Hope this helps..
Sri
2007 Mar 28 8:37 AM
Hi Man,
I have requirement like when i save the contract it's looks for the following entries
1)sold to party
2)PO num
if it has entry with these combination earlier then it shuld one warning meesage stating some message. How can we acheve this.
raghu
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |