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

On calling va02 warning message based on material.

Former Member
0 Likes
2,015

I have a requirement where on entering material in VA01/ VA02 some warning message should be appeared.

So i have used enhancement point  VBAP_MATNR_PRUE_TEIL2  in include FV45PF0V_VBAP_MATNR_PRUE_TEIL2.

Now when i input material no and qty in VA01 it gives m warning message as required and allow me to save order.

Now my requirement is when i again open same order for edit through VA02 same message should appear.

Same enhancement point is getting triggered through VA02 but materials already there in order not coming so not giving warning message as required.

So is there any other enhancement/exit to achieve the requirement.

Thanks in advance!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,761

Hi,

try MV45AFZB with Form = USEREXIT_CHECK_VBAP.

Regards, Dieter

I have a requirement where on entering material in VA01/ VA02 some warning message should be appeared.

So i have used enhancement point  VBAP_MATNR_PRUE_TEIL2  in include FV45PF0V_VBAP_MATNR_PRUE_TEIL2.

Now when i input material no and qty in VA01 it gives m warning message as required and allow me to save order.

Now my requirement is when i again open same order for edit through VA02 same message should appear.

Same enhancement point is getting triggered through VA02 but materials already there in order not coming so not giving warning message as required.

So is there any other enhancement/exit to achieve the requirement.

Thanks in advance!!

8 REPLIES 8
Read only

SimoneMilesi
Active Contributor
0 Likes
1,761

Hi,

if the check is ok to be setted on save, you can implement USEREXIT_SAVE_DOCUMENT_PREPARE in MV4AFZZ.

Read only

0 Likes
1,761

This won't work, I need message just on entering to VA02 not after clicking on save.

Read only

Former Member
0 Likes
1,762

Hi,

try MV45AFZB with Form = USEREXIT_CHECK_VBAP.

Regards, Dieter

Read only

0 Likes
1,761

I wanted to display error message on entering to VA02 on existing lines matching my conditions.

Also there is logic which populates few items based on history, so i don't want checks on new VBAP.

Requirement is like when enter to va02, if there is any lines with matching criteria message should be displayed.

Read only

0 Likes
1,761

Then you can use, always in MV45AFZZ the USEREXIT_READ_DOCUMENT.

It's triggered when you enter a document and press enter, before showing the dynpro,and you got both VBAK and XVBAP filled.

Read only

0 Likes
1,761

Using this exit it do checks required but stays on same selection screen...

not displaying next screen where all items are listed.

Read only

0 Likes
1,761

i implemented a popup in this userxit (CL_SALV_TABLE as popup indeed) on customer system and, once i confirm it, i'm redirected to main screen.

Without knowing your code, i cannot try to replicate on my system to check

Read only

0 Likes
1,761

i need my message on main screen not on prvious screen