on 05-19-2006 8:54 AM
Hi Experts,
Created a BEx variable "ZSLEVEL" as Customer Exit. Now I want to do some validations on user inputs in selection screen.
I want to restrict user, for entering out of range value for that particular variable.
Example if Variable range is 0-100, and if the input value is less/greater. Popup message should force user to enter correct value.
I tried changing the standard function for Reporting Variables. But my control is not going to the code and nothing is happening on the screen,
Please let me know if I am missing anything
I tried following steps.
CMOD Transaction.
FUNCTION EXIT_SAPLRRS0_001.
INCLUDE ZXRSRU01 .
CASE I_VNAM. " Variable name
when 'ZSLEVEL'.
If I_STEP = 3.
Code
End If.
Please help in solving this.
Hi,
I hope, the system is executing your code. But you can not see the effect if you would have not coded statements like append( or Modify) after your logic.
So check it out.
With rgds,
Anil Kumar Sharma .P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Brinda,
you mean you set or put a break-point and
when debugging, the code not executed ?
the sample code like following,
also try to de-activate project (CMOD) and activate again.
hope this helps.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
IF I_STEP = 3.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'MONTH'.
IF LOC_VAR_RANGE-LOW(4) LE 1998.
CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
EXPORTING
I_CLASS = 'RSBBS'
I_TYPE = 'I'
I_NUMBER = '000'
I_MSGV1 = 'Year <= 1998 not allowed'.
RAISE no_replacement.
ENDIF.
ENDLOOP.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.