cancel
Showing results for 
Search instead for 
Did you mean: 

Get last 7 days by user exit, without restrict the range

Former Member
0 Kudos

Hi,

My task is to create a variable that shows last 7 days by default, but the range of the variable should not be restrict to 7 days, so the user can change the selection to any other day.

I know that it is possible to get last 7 days by creating a user exit code, but the problem is that it restrict the range to last 7 days, then the user can't choose a day in the last year, for example.

Is there any idea how to create this variable?

Best regards,

Mohamad.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try this out:

Instead of assigning the values for your User exit variable in the lines below the statement I_STEP = 2, code the same logic after the statement I_STEP = 1. and donot forget to define the variable as Ready for input variable.

So that we can say , we are assigning the default values for Customer exit varibale and allowing user to modify it.

With rgds.

Anil Kumar Sharma .P

Former Member
0 Kudos

Hi Anil,

Thank you for your replying.

I checked your suggestion, but it didn't work.

Regards,

Mohamad.

Former Member
0 Kudos

Hi,

Ok.

Lets do it by a work around

1) Take a Kf in to columns and Double click on it,And then drag and drop the 0CALDAY characterstic into Right hand side and then resrict it with a User entry variable.And hide this Column.And this variable should not be a Mandatory variable.And this variable sould not have any default values.Lets say this varible is VAR1.

This is used to allow the user to select different range.

2)Take your required Kf in to columns and Double click on it,And then drag and drop the 0CALDAY characterstic into Right hand side and then resrict it with a Customer exit variable.Lets say this varible is VAR2.

In the code :

You will assign the values of VAR1 to VAR2, if VAR1 is not equal to Zero.

You will assign the Current date and currebt date -7 values to VAR2, if VAR1 is equal to Zero.

With rgds,

Anil Kumar Sharma .P