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: 

VA01 error message

Former Member
0 Kudos

Hi Experts,

I do have one issue.

The issue is that for example I have a text "SUDHEER" for Delivery and Billing block in VA01 Tcode..

If the enduser enter the value "SUDHEER" in Delivery or Billing Block when he saves it the message should comes as u have entered wrong text .so that the enduser undertsands that he should enter other text in Delivery and Billing Block.

I have written the code for this, but with an Error message.For this purpose the screen is unable to proceed .so i need a code how to enter another text when wrong text is placed.

If i give Information message if we save it,it will be saved so i need allow the enduser till he enters data in the Delivery and Billing Blocks correctly instead of "SUDHEER".

The code is as follows.

if

( t180-trtyp = 'H' ) and

( vbak-lifsk = 'SUDHEER' or vbak-faksk = 'SUDHEER' ) .

message e398(00) ' Wrong Entry'.

Thanks in Advance,

Sudheer.

6 REPLIES 6

Former Member
0 Kudos

Hi,

If you are working in userexit/BADI the error messages & warning messages will not work,You can only disply information messages.

Call the follwing FM's you can disply the messages as a popup.

POPUP_TO_CONFIRM or

POPUP_TO_INFORM

Refer

Regards

Kiran

Former Member
0 Kudos

Hi,

Give an information message or status message to the user but not error. After that put STOP. So that it will stop the user and allows to enter the text again. And it will not allow the user if he repeats the same SUDHEER.

Venkat.

0 Kudos

Hi Raju,

I have used STOP after giving Information Message.

But the screen exists.

But I dont want the screen to exit.It should be the same till he enters the correct information.

Any other solution for this.

Thanks for the reply.

Edited by: sudheer chowdhary on Apr 17, 2008 5:59 PM

former_member188685
Active Contributor
0 Kudos

You can do that here...

in the include.

MV45AFZB

i did that once, here you can raise the error message, place your code in the below form.

*&---------------------------------------------------------------------*
*&      Form  USEREXIT_CHECK_VBAK
*&---------------------------------------------------------------------*
*                                                                     *
*       This Userexit can be used to add additional logic for         *
*       checking the header for completeness and consistency.         *
*                                                                     *
*       US_DIALOG  -  Indicator, that can be used to suppress         *
*                     dialogs in certain routines, e.g. in a          *
*                     copy routine.                                   *
*                                                                     *
*       This form is called from form VBAK_PRUEFEN.                   *
*                                                                     *
*---------------------------------------------------------------------*
FORM USEREXIT_CHECK_VBAK USING US_DIALOG.


ENDFORM.

0 Kudos

Hi YASH.

I have relating code for this in MV45AFZZ.

And more over I dont need Error message.

It should be a message and the screen should not be saved if he saves without entering correct reason in Billing and Delivery Block.

Thanks for ur response.

Edited by: sudheer chowdhary on Apr 17, 2008 5:56 PM

0 Kudos

Hi Guys,

Thanks for all of you for your valuable responses.

I got the solution for this.

I used LEAVE TO SCREEN for this.

Now this is working fine.

Once again thanks for all of you from my side.

Cheers,

Sudheer.

Edited by: sudheer chowdhary on Apr 17, 2008 7:43 PM

Edited by: sudheer chowdhary on Apr 17, 2008 7:44 PM