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

New Contract User Exit?

Former Member
0 Likes
602

Is there a user exit that is executed whenever a new contract is created using VA41? I'd like to clear a memory id whenever a new contract is created.

Currently, if I create a new contract in VA41 and then cancel that, it'll bring me back to the VA41 initial screen. If I try it again, the memory id does not clear. I believe it only clears when I restart VA41.

I would like it to behave as follows:

1. Select the document type.

2. Choose create.

3. Clear the memory id.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

I would use userexit_read_document & userexit_refresh_document.

To be on a safe side - I would free your memory in both userexits.

these userexits are in main program sapmv45a (open in SE80, expand subroutines, you'll see these forms userexit_* there).

Is there a user exit that is executed whenever a new contract is created using VA41? I'd like to clear a memory id whenever a new contract is created.

Currently, if I create a new contract in VA41 and then cancel that, it'll bring me back to the VA41 initial screen. If I try it again, the memory id does not clear. I believe it only clears when I restart VA41.

I would like it to behave as follows:

1. Select the document type.

2. Choose create.

3. Clear the memory id.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
579

hi,

u have the following exits available

EXIT_SAPMV45A_002

EXIT_SAPMV45A_003

EXIT_SAPMV45A_004

EXIT_SAPMV45A_005

check the interface if OK for ur requirement.

hope it helps...

reward if useful...

Read only

Former Member
0 Likes
579

EXIT Program : MV45AFZA.

Write the clear statement here.

Read only

Former Member
0 Likes
580

I would use userexit_read_document & userexit_refresh_document.

To be on a safe side - I would free your memory in both userexits.

these userexits are in main program sapmv45a (open in SE80, expand subroutines, you'll see these forms userexit_* there).