What is the difference betn i step=2 and i step=3 in variable user exit EXIT SAPLRRS0 001

fog911811發表於2012-10-29

Can anyone tell me the difference between i_step=2 and i_step=3 in variable user exit EXIT_SAPLRRS0_001?

Thanks for any help in advance

Urmi

Yahoo! India Matrimony: Find your life partneronline.

------------------------------------------------------------------------------------

Hi there,

If the enhancement being used is RSR00001; in the function module exit EXIT_SAPLRRS0_001, there is no exception that is defined=2E Any idea, how to raise an exception in that case, to validate the data entered on the selecton screen popup as mentioned below (for i_step =3D 3)

Thanks & Regards,
Urmi
urmi_saphelp@yahoo=2Ecom
------------------------------------------------------------------------------------
Check the following internet address:

http://help.sap.com/saphelp_bw32/helpdata/en/f1/0a 5a2ee09411d2acb90000e829fbfe/frameset.htm

The enhancement RSR00001 (BW: Enhancements for Global Variables in
Reporting) is called up several times during execution of the report. Here,
the parameter I_STEP specifies when the enhancement is called up.

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.
----------------------------------------------------------
Urmi,
i_setp 2 is used to calculate the variable value for query execution
based on user input. Here you will have to add your value(s) to
e_t_range itab. It is similar to i_step 1 with the only difference being
that for i_step 1 you do not have any reference to populate the default
whereas in step 2 you have a user entry to calculate the value for the
query execution.

i_setp 3 is used only to validate if the user entry for the variable and
to raise exception
-------------------------------------------------------
Urmi,

code in your case statement under the include program. That is a local

exception and variable specific.


for example,

CASE I=5FVNAM.

WHEN 'ARPAN'"

CODE HERE .....

ENDIF.

Hint : try to make it modularized so that you can handle it better later.

Also follow the other ABAP rule.
-------------------------------------------------------------

I currently don't seem to be able to use SAP BW User Exits to set the default value for parameters which a WebI report prompts for.  A simple example is listed below but in general I'd like to understand how to get the value proposed by a SAP BW user exist to appear as the default for WebI.  I think the problem is in defining the universe on top of the BEx Query.

 

--

 

When running a report I need to default fiscal period to the current fiscal year to date e.g. set it to 01.2009 to 03.2009. The user can then change these values if say they want to report on periods 01.2009 to 02.2009.

 

With SAP BW BEx I would use a user exit variable and determine the from and to values. I've done this in the BEx query and I am now trying to get the same report reporting using WebI but when it prompts me for fiscal period on executing the WebI report no default values appear (blank).

 

I'm using SAP BI 7.0 with Business Objects Web Intelligence XI 3.1

 

I've been trying any number of different settings for "delegate" etc. when defining the universe but can't get user exits which determine the default, which a user can then overwrite to work.

 

Thanks.

-----------------------------------------------------------

hi,

 

when you are using a EXIT variable it does not have the option to set the default value in the variable itself.

 

When you use the EXIT variable for from and to values those values should show up in the list of values for the prompt in Web Intelligence - assuming the EXIT variable is configured to be "ready for input"/

 

Ingo

--------------------------------------------------------------

Hi Ingo,

 

yes is how I expected it to work. 

 

If I restrict a characteristic in Filter/Characteristic Restrictions

- using query variable with processing type 'user entry/default value'

- set to 'variable is ready for input' and

- set a default value

Then this appears no problem as the default value for the WebI prompt variable when I create a WebI on the universe created on the BEx query.

 

However, if I restrict a characteristic in Filter/Characteristic Restrictions

- using a BEx query variable with processing type 'customer exit'

- set this to 'variable is ready for input'

- use ABAP code in the user exit (I_STEP = 1) to set the default value

Then as a BEx query run via BEx analyser it works fine and the default value appears but if I create a WebI on a universe created on this query the prompt which appears is blank.

 

Any suggestions?  Or should this be working and there is an issue with the version of universe desinger / Web Intelligence.  Is there anything you need to do in universe desinger other than create the universe from the BEx Query e.g. clicking on delegate.

------------------------------------------------

hi,

 

when you use the EXIT variable there is no default value anymore - you only create a list of values.

 

the list of values gets created automatically. what you could do is to set the default value in the filter in the universe.

 

Ingo

------------------------------------------------

Ingo,

 

yes - I can see the default value is not available when using an exit variable - instead you use ABAP code to propose the default value.  This is what I am doing but this list of default values (a single range in my case of first period in current fiscal year to current period) is what does not appear on the prompt screen in WebI.

 

I can't use a fixed default e.g. '01.2009 to 03.2009' either in the query or in universe as I want to be able to default a selection of up to the current fiscal period whenever the report is run but allow users to change that selection.

-------------------------------------

Hi,

 

to put it in simple terms: In the query designer there is no defalult value for an exit variable and therefore you won't see a default value on the BusinessObjects side. the values that you generate will show up in the list of values for the parameter in the report.

 

Ingo


 

 

相關文章