cancel
Showing results for 
Search instead for 
Did you mean: 

Filter in selection window help F4 via user-exit?

Former Member
0 Kudos

Hi,

Is there a way to control the values of an F4 help selection window via user exits?

An example on what I want to try to achieve:

There is a query with a manadatory filter on 0calmonth (of a cube). The user can use the F4 help in order to see the available values. I want to show the values in reverse order (thus most recent first) and on top for only the last 2 years.

I tried this via a step 1 user exit, but that doesn't seem to work. Any suggestions?

Eddy

Accepted Solutions (1)

Accepted Solutions (1)

former_member189638
Active Contributor
0 Kudos

i_step = 1 is for populating the variable with the default value in the selection screen. What I would suggest here for you is to create a customer exit variable for 0CALYEAR and populate the current and previous year value from i_step = 2. So automatically you will get the month values of only 2 years in 0CALMONTH.

eddy_declercq
Active Contributor
0 Kudos

Hi,

I'm afraid I don't understand your answer. When I look at http://help.sap.com/saphelp_bw32/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm:

I_STEP = 1

Call up takes place directly before variable entry

I_STEP = 2

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

SInce there wasn't any variable entry yet, I don't see when step 2 will be executed nor how to achieve things with a seperate 0calyear var when one doesn't want to see nor filter on 0calyear.

Eddy

Former Member
0 Kudos

Hi There,

I'm not so sure you can control by using user exit because it's too early, even beofre i_step = 1.

But you can use read mode to control somewhat the list of values returned.

Hope this helps.

Jen

Edited by: Jen Yakimoto on Jan 29, 2011 6:29 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

User exit variables will not help.

Take a look at [this note|http://service.sap.com/sap/support/notes/1416952].

Regards.