Application Development 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: 

SO user exit

Former Member
0 Kudos

Hi experts,

Iam trying to create user exit using <b>MV45AFZB</b> for SO.

When user tries to create new sales order using VA01,

i want to check whether the <b>MATERIAL</b> is within the warranty. If the material is within the warranty, i want to give the message.Can any one tell me, for this requirement which subroutine i have to use?

FORM USEREXIT_CHECK_VBAK USING US_DIALOG

or

FORM USEREXIT_CHECK_VBAP USING US_DIALOG

or any other?

I want to check in the <b>creation mode</b>(VA01)

Reward guaranteed,

Thanks

kaki

4 REPLIES 4

Former Member
0 Kudos

u can use MV45AFZZ routine

userexit_move_field_to_vbak

check for transaction type T180-TRYTP eq 'H' only then trigger ur code.

former_member188685
Active Contributor
0 Kudos

Hi,

material is availabel in VBAP , so you can try with this

<b>FORM USEREXIT_CHECK_VBAP USING US_DIALOG</b>

Regards

vijay

0 Kudos

Hi Vijay,

If i use USEREXIT_CHECK_VBAP USING US_DIALOG, the program is not triggering in creation mode(VA01).

It is triggering in change mode(VA02).What might be the reason?

kaki

0 Kudos

Hi Kaki,

are you able to go inside the include at least while creating.

are you checking <b>T180-TRTYP</b>,

if it is not at all triggering then you can look in MV45AFZZ for suitable exits

Regards

vijay