cancel
Showing results for 
Search instead for 
Did you mean: 

Order of Processing in I_STEP=2

Former Member
0 Kudos
114

Hi all

Does anyone know how to change the processing order for the Variable User Exit during I_STEP=2? I have 4 variables in my query of which 2 are hidden and populated in the Exit.

The variables are:

Calendar Year/Month

Org Unit

KeyDate

Employee

I want to derive the KeyDate first based on the Calendar Year/Month. I then want to derive a list of Employees based on KeyDate and OrgUnit (this is for authorisations).

When I run the query in debug mode (RSRT) the Employee variable is always processed before the Key Date.

Any help would be appreciated.

Thanks

Chami

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

According to SAP, the system chooses the sequence to fill the variables randomly and there is unfortunately no possibility to change this behaviour by standard functionality.

They suggested to write a small program which derivates the value from e.g. variable1 and holds this value for variable2. This should allow you to use dependencies for the filling of variables in i_step=2.

Former Member
0 Kudos

Hi Chami,

You can play with the variable sequence in the query properties.

Best regards,

Eugene

Former Member
0 Kudos

Hi Eugene

Those two variables are hidden (as they are populated in the user exit) and do not appear in the query properties.

Thanks for your help.

Chami

Former Member
0 Kudos

Hi,

In any programing language the "WHEN' statement is sequential. That means what ever the variable's code placed first is executed first. So keep the code for variables in the order , in which you want to execute.

with rgds,

Anil kumar Sharma .P

Former Member
0 Kudos

Hi Chami,

I understand this. What I meant is - if you change the sequence of these two vars that are in the query property, it's possible that sequence of population of another 2 vars in the user exit may change.

Best regards,

Eugene

Former Member
0 Kudos

Hi Eugene

I have tried this, but the sequence of the 2 other variables does not affect the order of the two hidden variables.

Thanks

Chami

Former Member
0 Kudos

Hi Anil

The sequence of variables in the WHEN statement does not affect the processing order of the variables. No matter which order I place the code, the Key Date is always processed after the Employee variable.

Thanks

Chami

Former Member
0 Kudos
Former Member
0 Kudos

Hi Govind

That help link talks about the Variable Customer Exit in general and does not mention the processing order of I_STEP=2.

Thanks

Chami