cancel
Showing results for 
Search instead for 
Did you mean: 

Formula variable with replacement path

Former Member
0 Kudos

HI ,

1. Is it possible to use "Customer exist- without user entry variable in the formula variable with the replacement ?

2. if I use two variable for a same time char in one report (one is User entry variable and the other is customer exit variable for calculating current system date), then how it will work ? (User entry variable is there in the "Char restrictions" section and the customer exit variable is customer exit used in formula variable)

Thanks in Advance.

Thanks

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member182516
Active Contributor
0 Kudos

1. Is it possible to use "Customer exist- without user entry variable in the formula variable with the replacement ?

Yes. use I_step=1

I_STEP = 1

Call takes place directly before variable entry. Can be used to pre populate selection variables

I_STEP = 2

Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.

I_STEP = 3 In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.

2. if I use two variable for a same time char in one report (one is User entry variable and the other is customer exit variable for calculating current system date), then how it will work ? (User entry variable is there in the "Char restrictions" section and the customer exit variable is customer exit used in formula variable)

Yes you can use both the variable of time char to restrict a characteristic but that should not be used on single characteristic.

You can use the sys defined 0date on one field and the customised one Zsydatum on other char.

Regards

KP

Former Member
0 Kudos

HI KP,

Thanks for you reply,

I tried to use the Customer Exit variable (Without User Entry) in the formula variable with replacement path using "By Variable" Option. But that customer exist variable is not available there.

But for the same customer exist variable (With User Entry) is available.

0Dat - Current system date, This is also not available in formula variable

Please check in your system if possible and kindly help me to understand about this...

Regards

Rajesh

former_member182516
Active Contributor
0 Kudos

I'm not talking about the user entry option i'm talking about the variable ready for input or not.

Hey create a formula variable with replacement of type Customer exit -- there you will find the option variable ready for input deselect that check box.

variable 0Date is not formula variable its a variable provided by SAP to pick the system date. or you can check for other variable with sap exit as well which give us system date or create you create a new varaible with customer exit which pics the current system date.

Use the below code to get the system date

WHEN 'ZSYSDATE'.

IF I_STEP = 2. "after the popup

L_S_RANGE-LOW = SY-DATUM.

L_S_RANGE-SIGN = 'I'.

L_S_RANGE-OPT = 'EQ'.

APPEND L_S_RANGE TO E_T_RANGE.

ENDIF.

regards

KP

Edited by: prashanthk on Oct 11, 2010 12:08 PM

Answers (0)