04-17-2008 12:52 PM
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.
04-17-2008 1:05 PM
04-17-2008 1:05 PM
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.
04-17-2008 1:24 PM
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
04-17-2008 1:18 PM
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.
04-17-2008 1:26 PM
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
04-17-2008 3:12 PM
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