Skip to Content
0
Former Member
Nov 26, 2007 at 01:48 PM

VALIDATION OF ENTRIES MADE IN MANUAL ENTRY PROCESSING TYPE VARABLE

21 Views

I have created a Manual Entry Processing Type Variable for entering value date for the conversion of amounts from a source currency to a target currency.

In order not to accept future dates into this variable, I want to be able to check the value entered against SY-DATUM. Can I really use the Customer exit "EXIT_SAPLRRS0_001" to code this validation routine.

Below is a code that I have tried but which does not appear to work:

Can any one help ??

*

  • Program Code To Control user input for input date variable CSCVDAT

  • DATE ADDED: 20/11/2007

  • AUTHORS: V. ACOLATSE

*

*

  • CSCVDAT is a characteristic variable that copies value entered in characteristic

  • variable created on the 0CALDAY InfoObject CSCVDAT contains the user's requested Date of translation

*

when 'CSCVDAT'. "variable name is CSCVDAT

CLEAR: l_s_range,

e_t_range.

if i_step > 2. "Call takes place directly before variable entry

IF l_s_range-low GT SY-DATUM. "Future data was entered

MESSAGE 'INVALID CONVERSION DATE' TYPE 'E'.

ENDIF.

ELSE.

exit.

endif.

  • End Of Changes V. ACOLATSE

*

*********************************************************************************************************************

when others.

endcase.