Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Exit - VA41

Former Member
0 Likes
539

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.

4 REPLIES 4
Read only

Former Member
0 Likes
500

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

Read only

0 Likes
500

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.

Read only

0 Likes
500

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

Read only

0 Likes
500

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