Skip to Content

Value "20190629" is too long for variable ZV03_YESTERDAY

Hi Team,

I am using input varibale to pass date and get yesterday date as below

** Input Key Date**

IF i_step = 1 .
CLEAR l_s_range.
l_s_range-low = sy-datum.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.

** To get yesterday date as per input key date**

IF i_step = 2.
READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZV01_KEYDATE'.
IF sy-subrc = 0.
l_s_range-low = loc_var_range-low - 1.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.

But when i am passing date in keydate it is executing properly, but when it comes to yesterday date it is throwing error as below.

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.