Question:
Hi All,
I have one query like this, I want to assign system date(current date) to my variable ,but there is no user input for that variable.
Plase any body give me suggestion How can i do it....
Thanks & Regards
Venki
Answer:
You can use the standar variable 0DAT from Business Content.
If not, you can create your own variable of type user-exit and assign th value SY-DATUM in your code.
You'll find examples on how to program user-exit variables in previous posts. Use the Search function.
Regards.
Answer:
Hi,
Thanks.....
Actually I written code like this....
my variable name is 'ZSYS_DAT'
WHEN 'ZSYS_DAT'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = sy-datum.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
but when i run the Report it is not system date to ZSYS_DAT....
could you please tell me where i am doing mistake.....
Answer:
Hi,
Thanks.....
Actually I written code like this....
my variable name is 'ZSYS_DAT'
WHEN 'ZSYS_DAT'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = sy-datum.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
but when i run the Report it is not system date to ZSYS_DAT....
could you please tell me where i am doing mistake.....
Answer:
In this source code section I cannot see any error. Ensure that the variable name is correct in query definition and is ZSYS_DAT.
Ensure also that you execute your code for i_step = 2.
Try to debug if problem persists.
Regards.