10
Generated by Jive on 2015-07-26+02:00 1 SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customer exit variables, but ... Posted by Torsten Kessler Nov 11, 2014 The original blog can be found here: ekessler.de In this blog I would like to try some clarity in the processing of exit variables (EXIT_SAPLRRS0_001) to bring. The emerged with BW 7.30 BAdI RSROA_VARIABLES_EXIT_BADI has to deal with Exit variable not exactly simplified. In addition, the BAdI is unfortunately not documented in the SAP Help. Furthermore, it has now also changed 60 with the 7.4 domain RSCHAVL of CHAR to SSTRING. All exit variables described here are used to the range of values of a report limit or expand the scope of permissions. In addition, the properties described here by Exit variables for Exit variables are to be used as part of the staging in DTP's or InfoPackages. First, however, let us first of all deal with the different types of exit variables and their processing order. 1.1 Variablentypen If I talk about exit variables I distinguish the following types of use: Ready for input Not ready for input Use for authorization or staging Ready for input variables come then to use if the user should be given the opportunity to influence the outcome report individually. The basic concept of an input-ready variables provides the user determines the value for the variable, and the value could not be changed by internal processing processes (customer exit). In section 1.3, "Overriding input values", I describe how this concept can be bypassed and the user-entered value of an input-ready variables in the customer exit can be overwritten. Reday for input variables would be processed in I_STEP = 1 and I_STEP = 3, see Section 1.2 "processing steps (I_STEP)". Not ready for input variables come then to use if the value is to be determined by rules. Here rules are often defined (implemented) in which the variable values for input-ready variables not depending on ready for input variables are determined. Not ready for input variables would be processed in I_STEP = 1 and I_STEP = 2, see Section 1.2 "processing steps (I_STEP)". Exit variables can also be used as part of authorization or to staging. At exit variables that must be considered are used here, that there is no interaction with a user is usually held. This means here is the processing order another.

Everything You Always Wanted to Know About the Processing of Customer Exit Variables But

Embed Size (px)

DESCRIPTION

SAP Business Explorer (SAP BEx):Everything you always wanted to know aboutthe processing of customer exit variables,

Citation preview

  • Generated by Jive on 2015-07-26+02:001

    SAP Business Explorer (SAP BEx):Everything you always wanted to know aboutthe processing of customer exit variables,but ...

    Posted by Torsten Kessler Nov 11, 2014The original blog can be found here: ekessler.de

    In this blog I would like to try some clarity in the processing of exit variables (EXIT_SAPLRRS0_001) to bring.The emerged with BW 7.30 BAdI RSROA_VARIABLES_EXIT_BADI has to deal with Exit variable not exactlysimplified. In addition, the BAdI is unfortunately not documented in the SAP Help. Furthermore, it has now alsochanged 60 with the 7.4 domain RSCHAVL of CHAR to SSTRING.

    All exit variables described here are used to the range of values of a report limit or expand the scope ofpermissions. In addition, the properties described here by Exit variables for Exit variables are to be used aspart of the staging in DTP's or InfoPackages.

    First, however, let us first of all deal with the different types of exit variables and their processing order.

    1.1 Variablentypen

    If I talk about exit variables I distinguish the following types of use: Ready for input Not ready for input Use for authorization or staging

    Ready for input variables come then to use if the user should be given the opportunity to influence theoutcome report individually. The basic concept of an input-ready variables provides the user determines thevalue for the variable, and the value could not be changed by internal processing processes (customer exit). Insection 1.3, "Overriding input values", I describe how this concept can be bypassed and the user-entered valueof an input-ready variables in the customer exit can be overwritten.

    Reday for input variables would be processed in I_STEP = 1 and I_STEP = 3, see Section 1.2 "processingsteps (I_STEP)".Not ready for input variables come then to use if the value is to be determined by rules. Here rules are oftendefined (implemented) in which the variable values for input-ready variables not depending on ready for inputvariables are determined.

    Not ready for input variables would be processed in I_STEP = 1 and I_STEP = 2, see Section 1.2 "processingsteps (I_STEP)".Exit variables can also be used as part of authorization or to staging. At exit variables that must beconsidered are used here, that there is no interaction with a user is usually held. This means here is theprocessing order another.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:002

    Therefore, it must be ensured here that combinations as ready for input, mandatory and no default value(Default value) that cause a variable dialog is needed. Process of staging (DTP, InfoPackage) are usuallyscheduled processes in place that are executed by background-users.

    Variables of usage authorization and staging are processed only in I_STEP = 0, see Section 1.2 "processingsteps (I_STEP)".1.2 Processing steps (I_STEP)Exit variables depending on the usage and purpose in one or more steps, the I_STEP's processed. In thesection "Dependencies for Variables of Type Customer Exit" the SAP Help the I_STEP's are briefly explained.The description in the online help is unfortunately incomplete and omitted entirely on examples. Therefore, I willbriefly explain each step again using examples.

    1.2.1 Authorization and Staging (I_STEP = 0)In I_STEP = 0 exit variables are processed in the authorization and are used in staging. Figure 1.1 shows theuse of an exit variables within the authorization. For the processing of exit variables within the entitlement onlythe I_STEP = 0 is traversed.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:003

    Figure 1.1: Exit variables within the authorization

    Figure 1.2 shows the use of an exit variables in staging the example of selection within an InfoPackage.

    Figure 1.2: Exit variables within the Staging

    1.2.2 Initialization (I_STEP = 1)The I_STEP = 1 is used for initialization of variables and exit is run separately for each exit variable. In thefirst stage the input-ready variables and then not ready for input variables are processed, see Figure 1.7. (Theorder could be differ, depends on the release (here BW 7.31 SP06)!)Figure 1.3 shows a typical example of initializing an input-ready variables. The variable is initialized with thecurrent month of last year.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:004

    Figure 1.3: Initialization

    1.2.3 Derivation of variable values (I_STEP = 2)

    The I_STEP = 2 is used to derive the values for the non-input-ready variables Exit. Again, the variables areprocessed separately analogous to I_STEP = 1. To derive the values for non-input-ready variables Exit allpreviously detected variable values in the parameter I_T_VAR_RANGE available. In section 1.3, "Overridingvalues entered" I describe as well as input-ready variables can be processed here.

    Figure 1.4 shows how the current variable (examination of the variable name is not shown here), the value isderived based on the value of the variable ZTKE_MONTH.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:005

    Figure 1.4: Derivation of variables

    1.2.4 validation (I_STEP = 3)

    The I_STEP = 3 is used to validate all recorded variables. In I_STEP = 3 all previously recorded values in theparameter I_T_VAR_RANGE are testing and validation.

    The I_T_VAR_RANGE parameter contains only the variables that contain a value. That is here are the onlyvariables included:

    value set by default value or value set by an implementation (I_STEP = 1 or I_STEP = 3) or user entered a value in the variable dialog

    In I_STEP = 3 can not be changed, the values of the individual variables. It is possible to generate messageswhich would be display with the report-result or the variable dialog. In the event that the validation of thevariables means that it makes no sense to run the report by throwing an exception (RAISE EXCEPTION) toprevent the report is run. The exception means that the user re-enters the values in the variables dialog.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:006

    Figure 1.5 shows the values for the two variables ZYEARFROM and ZYEARTO determined and thencompared as in I_STEP = 3. If the FROM value greater than TO value of a message is issued and using theRAISE statement wrong_value prevents the report is run. The user has the opportunity to correct the value inthe variable dialog.

    Figure 1.5: Validation - Customer Exit

    Figure 1.6 shows similar to the example in Figure 1.5, as in the object-oriented context to run the report can beprevented. The exception must be thrown here in the object-oriented context.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:007

    Figure 1.6: Validation - BAdI

    1.3 Execution Order of I_STEP

    Figure 1.7 shows the sequence in which the individual's I_STEP under a BEx reports. I distinguish the twophases:

    Prparation (preparation phase) and Validierung (Validation Phase)

    The I_STEP's the preparation phase are run before the variable dialogue and I_STEP's validation phase willonly go through if the values of the input-ready variables change in the variables dialog.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:008

    Figure 1.7: Processing of exit variables (I_STEP's)

    That is the calling SAP standard processing procedure initially assumes that the user accepts the defaultvalues of the variables dialog without changing. In this case, the validation phase is not run again!

    The process steps of the validation phase will only go through if the values in the dialog variables werechanged by the user.

    1.4 Processing of process variables Exit

    With BW 7.3 the BAdI RSROA_VARIABLES_EXIT_BADI was introduced and presented to the customer exitEXIT_SAPLRRS0_001. The blog Coexistence of BAdI RSROA_VARIABLES_EXIT_BADI and Customer-ExitEXIT_SAPLRRS0_001 shows how the BAdI and the customer exit behave in a BW 7.3 system.

    Figure 1.8 shows the individual processing blocks which are executed as part of the variable processing of exitvariables.

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:009

    Figure 1.8: Variables processing

    The standard processing process first checks whether an active BAdI implementation by TypeRSROA_VARIABLES_EXIT_BADI is available. As a filter value here, the technical name of the InfoObject isused on the exit variable based currently being processed. From a technical perspective, this test is performedwithin the function block RRS_VAR_EXIT via GET BADI.

    The blog New BAdI RSROA_VARIABLES_EXIT_BADI describes the manufacturing process of the BAdI's inthe details.

    1.5 Overriding input values

    The basic principle for input-ready variables was initially that user entered values can not be overwritten. Aninput-ready variable is not processed by default after the variable dialog as a single variable.

    In I_STEP = 3, the variable can indeed be validated but not be changed. If it is determined during validationthat the user entered value is not meaningful, in the I_STEP = 3 is a message that the user generated

  • SAP Business Explorer (SAP BEx): Everything you always wanted to know about the processing of customerexit variables, but ...

    Generated by Jive on 2015-07-26+02:0010

    informed. In addition, an exception will be thrown. The exception ensures that the variables dialog appearsagain.

    With the introduction of the parameter E_CHECK_AGAIN (see Note 1272242 - Renewed Variablenverprobungin I_STEP = 2), the concept was canceled. The parameter allows the developer to the user-entered value of aninput-ready variables after the variable dialog in I_STEP = 2 to overwrite as needed.

    As described in Section 1.2 "processing steps (I_STEP)" input-ready variables only in I_TEP = 1 and I_STEP= 3 processed, the value only in I_STEP = 1 changes (initialiesiert) can be. To ensure that an input-readyvariables in I_STEP = 2 is again processed must be in I_STEP = 1 for this variable is the export parametersE_CHECK_AGAIN (E_CHECK_AGAIN = 'X') are set. If the parameter is set E_CHECK_AGAIN so this is readyfor input variable is processed into a not ready for input variables in I_STEP = 2 analogous to the variablesdialog.

    1296 Views Tags: abap, bex, bw, business_intelligence, abap_objects, bex_queries, bex_variable,sap_business_explorer_(bex)

    Hareesh kumeraFeb 13, 2015 9:51 AMGood document