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

display error message + get input field

Former Member
0 Likes
2,412

Hi,

I am using the user exit 'EXIT_SAPLF051_002' ( park/simulate and save for FB60 transaction) to display error message (type E) when a supplier has no banking data .

the error message is displayed as required, but all the fields are grey and the user cannot modify the input data in the standard FB60 screen .

How to display a blocking message in this case (user exit) and allow the user to change and correct the input field .

PS: i dont want the types messages 'I' or 'W 'because they are not blocking messages .

Any Help

Many thanks

7 REPLIES 7
Read only

jayesh_gupta
Active Participant
0 Likes
1,452

Hi,

You may display a popup message to the user.

Regards,

Jayesh

Read only

jayesh_gupta
Active Participant
0 Likes
1,452

Use function module POPUP_DISPLAY_MESSAGE to display the message in a popup.

Regards,

Jayesh

Read only

Former Member
0 Likes
1,452

Hi,

You can make use of the below type of code.

MESSAGE < your message> TYPE "S" DISPLAY LIKE "E".

OR

MESSAGE S<message no.> WITH <message text element> DISPLAY LIKE "E".

After the message , please check that particular input field for further process.

Code for the check will be like below.

CHECK <banking data field>.

So make sure to use both the message part and check part.

Hope this may help you.

Regards,

Smart Varghese

Read only

Former Member
0 Likes
1,452

Hi,

Try this

MESSAGE 'Hi' TYPE 'I' DISPLAY LIKE 'E'.

Read only

Former Member
0 Likes
1,452

thanks for your helps:

I have tested all the solutions you had proposed, but it's still not working.

in fact, with your solutions i can display the error message , the screen is not grey (its ok), but the invoice can be saved or parked (it's not ok), the requirement is to display error message, to block saving or parking and allow the user to change input data.

best regards

Read only

0 Likes
1,452

Hi,

That is why I pin pointed you to use the CHECK <field name>. ( This will stop the further process unless not initial )

Why because the SUCEES message will proceed the program , So after the message, Check the required field for validation or initiality.

In the first reply I documented the omportance of the use of CHECK after the message. I think you missed out that part.

Please read my first reply fully.

Regards,

Smart Varghese

Read only

Former Member
0 Likes
1,452

Hi,

How about using *MICK_MESSAGE_ADD' thsi Functuion module?

Regards,

Pravin