06-02-2009 9:24 PM
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
06-02-2009 11:00 PM
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.
06-02-2009 11:00 PM
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.
06-03-2009 1:32 PM
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!
06-03-2009 1:58 PM
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
06-03-2009 3:53 PM
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.
06-04-2009 6:00 AM
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