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: 

Convert Warning Message into Error Message

Former Member
0 Kudos

Hi

I am working with HR functional team. We found one strange thing.

In PA30, if user tries to change any employee outside his personnel area, the sytem is throwing Warning message saying " No authorization for specifig organizational assignment exists" Message NO RP078 This is good.

But when user hit enter, the system allows him to save data even if he is not authorized. He should not allow to make changes if he is not authorized.

HOW CAN I CONVERT THIS WARNING MESSAGE INTO HARD ERROR MESSAGE?

Is there any program changes required OR is there any table we can maintain error messages?

Thanks for your help in advance!

Tejas Patel

1 REPLY 1

WolfgangJanzen
Product and Topic Expert
Product and Topic Expert
0 Kudos

Taking a look into the ABAP source code (MP000130) reveals:


module check_orgda.
  data: cho_rcode type x.
  perform check_orgda(sapfp50p) using p0001 cho_rcode.
  if cho_rcode ne rc_ok.
    cho_rcode = rc_ok.
    message w078.
  endif.
ENDMODULE.

The message is hard-coded as "warning" (w) message.

In order to change this, the coding needs to be changed.

My proposal:

replace "<b>message w078</b>" with "<b>message e078 display like 'W'</b>"

I consider this a bug - and encourage you to report this to SAP (message component "PA-PA").