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: 

Message error on user-exit MV50AFZ1

Former Member
0 Kudos

Hi!

I need to send a message error on user-exit MV50AFZ1 (VL01N), but I can't, because when I use BAPI_DELIVERYPROCESSING_EXEC for create deliveries, it will abort my program.

My program try to create many deliveries together, when occurs a message error, I don't know what order is the problem!!

Thanks,

Tatiana

1 ACCEPTED SOLUTION

valter_oliveira
Active Contributor
0 Kudos

Hello.

In the exit, use a condition like:


IF sy-tcode EQ 'VL01N'.
  MESSAGE E000(...)
ENDIF.

This will avoid the error in BAPI execution.

Regards,

Valter Oliveira.

5 REPLIES 5

valter_oliveira
Active Contributor
0 Kudos

Hello.

In the exit, use a condition like:


IF sy-tcode EQ 'VL01N'.
  MESSAGE E000(...)
ENDIF.

This will avoid the error in BAPI execution.

Regards,

Valter Oliveira.

0 Kudos

Hello Valter!

There is a message error (message e000(...)) in the exit MV50AFZ1. When I use BAPI for create deliveries, occurs this message and abort my program:

Message class: VR

Message number: 555

Do you know how can I solve this problem?

Thank you!

0 Kudos

Hi tatiana,

Has I said, I think that you just have to change the exit, using that IF condition I mentioned. This will make the error message to be thrown only if you are in tcode VL01N, not running the BAPI.

Both (tcode VL01n and BAPI) pass that exit.

Regards,

Valter Oliveira

0 Kudos

Valter,

I need to show the message error using BAPI too. But when I execute BAPI_DELIVERYPROCESSING_EXEC, the message error that I put in the exit didn't return in a table RETURN. It will appear in an abort message popup (VR-555). I think that error message should return in a table RETURN, but it didn't happen.

I don't know what I can do.

Thanks so much.

0 Kudos

hello tatiana,

u want the message in standard bapi return table , but it will not reutrn automatically in the table either u have to change the code to insert into tables or instead use information message instead of error message

m.a