cancel
Showing results for 
Search instead for 
Did you mean: 

Customer exit

Former Member
0 Kudos

Hi Everyone,

In my web application I have one query which contains variable. It is a customer exit variable. When I start the Application this variable are filled with a value from customer exit. Everything works fine. I would like to know if it is possible to call this customer exit one more time after some navigation steps were done.

Regards

Erwin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ervin,

The following values are valid for I_STEP:

· 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.

· I_STEP = 3

In this call up, 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 up again.

· I_STEP = 0

The enhancement is not called from the variable screen. The call up can come from the authorization check or from the Monitor.

Based on I_Step value user exit will be called before or after variable entry only.

Provide your requirement clearly with example. some one will help.

Srini

Former Member
0 Kudos

Hi Srini,

OK some additional explanation:

In my web application I have List Box connected with some characteristic. In this List Box we have for example 4 different values: A, B, C, D. Value A should be always chosen. It means when the user chose B and C, A should be chosen automaticly.

and now my idea with customer exit. If the user has chosen B and C, in customer exit A should be add automaticly. And here is my problem. As I could see, variable with customer exit was called only once at the beginning and not always when I change something in List Box.

Regards

Erwin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

Exit variables are buffered.

But you can refresh values by setting (command SET_DATA_PROVIDER) OFF and then ON in your dataprovider that contains this variable.

When dataprovider will be set to ON after OFF the user exit variable called and filled again.

Regards.

Former Member
0 Kudos

Hi Andrey,

I could not find command SET_DATA_PROVIDER. I found only SET_DATA_PROVIDER_PARAMETERS. It is that what you mean?

Regards

Erwin

Former Member
0 Kudos

Hi.

Exactly.

Regards.

Former Member
0 Kudos

Thx for that idea:

I created the following javascript:


function executeJS_SET_DATA_PROVIDER_PARAMETERS_R( currentState, defaultCommandSequence ){

	var commandSequence = new sapbi_CommandSequence();
	var commandSET_DATA_PROVIDER_PARAMETERS_1 = new sapbi_Command( "SET_DATA_PROVIDER_PARAMETERS" );
    var paramDATA_PROVIDER_TYPE = new sapbi_Parameter( "DATA_PROVIDER_TYPE", "QUERY_VIEW_DATA_PROVIDER" );
	commandSET_DATA_PROVIDER_PARAMETERS_1.addParameter( paramDATA_PROVIDER_TYPE );
		
	var paramINIT_PARAMETERS = new sapbi_Parameter( "INIT_PARAMETERS" );
    var paramListINIT_PARAMETERS = new sapbi_ParameterList();commandSET_DATA_PROVIDER_PARAMETERS_1.addParameter( paramINIT_PARAMETERS );
		
	var paramINITIAL_STATE = new sapbi_Parameter( "INITIAL_STATE", "QUERY" );
	var paramListINITIAL_STATE = new sapbi_ParameterList();

	var paramQUERY = new sapbi_Parameter( "QUERY", "YREWMC01_Q020" );
	paramListINITIAL_STATE.addParameter( paramQUERY );

	paramINITIAL_STATE.setChildList( paramListINITIAL_STATE );
	paramListINIT_PARAMETERS.addParameter( paramINITIAL_STATE );

	paramINIT_PARAMETERS.setChildList( paramListINIT_PARAMETERS );

	var paramTARGET_DATA_PROVIDER_REF = new sapbi_Parameter( "TARGET_DATA_PROVIDER_REF", "DP_1" );
	commandSET_DATA_PROVIDER_PARAMETERS_1.addParameter( paramTARGET_DATA_PROVIDER_REF );
		
	commandSequence.addCommand( commandSET_DATA_PROVIDER_PARAMETERS_1 );

    return sapbi_page.sendCommand( commandSequence );
}

Our query is called: YREWMC01_Q020

Data Provider: DP_1

So is this the right script? Where and when do I have to call this function??

Thanks!

Former Member
0 Kudos

Hi Andrey,

thank you for your Idee but I do not think that it is what I am looking for. If I use it all other selections will disappeard.

Dataprovider will be new initialized.

Regards

Erwin