Customer exit variable is somehow retaining a value and placing in filter
we have something strange occurring. We have a variable being filled via the customer exit. Some how it is placing an old value in the filter so every time we run the report we have to remove it and rerun. we tried to remove and save the workbook again but it still defaults a value in there. the code is not defaulting anything in there though. any ideas??
Immich,
For starters I'd removed the Custoemr Exit and run the query.
If it runs as expected, then I'd open your workbook which holds the query and run the query again. Are the results of the query running in the workbook the same as running the query in it's own right? They should be, if not I suspect that a filter value is being set within the workbook (not the query).
Would you validate that?
Regards
Gill
Similar Messages
-
Customer exit Variable to split single date value into a range
Hi All,
we have a requirment where user will enter a date(01/21/2010) value in the variable input screen, it should be single value and mandatory, and the query output should have data for the Preceding 24 months for all 6 Key figures. (e.g. user chooses 12/15/2009, result set is 12/01/2007 - to - 11/30/2009) summarized by month,
Our query design is as given below -
since we only have DATE value in the cube, we have added FISCAL YEAR/PERIOD in the cube and mapped DATE with time chars. Now the cube has the data stored in monthly buckets using FISCAL YEAR/PERIOD . Now we have used the variables FISCAL YEAR/PERIOD to restrict Key figures and have an offset on that to get the prior 24 periods.
Since in our requirement user wants to enter Date variable asmandatory input, we create 1 customer exit variables as a mandatory & single value variable for Date Variable, and using that exit variable we thought of passing the period of user entered date to FISCAL YEAR/PERIOD which we are using to restrict Key figures and get offset of 24 months.
Can someone please help us in passing this period vaule from inout Variable Date to Fiscal year/period using CMOD, any other ideas are also welcome
Thanks in advanceHi sateesh,
we are using DATE_TO_PERIOD_CONVERT ,but in this case if user enter's a date (01/21/2010) then we are getting output only for that date and not for the entire prior 24 months period
As per our requirment when user enter's date (01/21/2010) it should get the whole range that is entered date and 24 prior months and pass the range back to same input Variable so that in the output we get the data for entire prior 24 months
Thanks -
Customer Exit Variable in formula to get values for multiple keyfigures
Hi to all,
I have query as defined in following scenario:
CHAR_X C_KF1 (based on KF1) C_KF2 (based on KF2) u2026 C_KFn (based on KFn)
Value1
Value2
u2026
Valuem
C_KF = calculated key figure
I need to create a customer exit variable that will search through selection e.g. CHAR_X/KF1 and give some result. I need this variable for every keyfigure (KF1-KFn). Using customer exit variable is the only solution.
My question is: do I have to create formula variable (customer exit) representing every keyfigure separately (VAR1 u2013 VARn, like in below example)?
CHAR_X C_KF1 (using VAR1) C_KF2 (using VAR2) u2026 C_KFn (using VARn)
Value1
Value2
u2026
Valuem
Or is it possible to create one general formula variable since the way to retrieve the value in variable is always the same (like in below example)? In this case, how do I pass the value of the respective keyfigure to this variable?
CHAR_X C_KF1 (using VAR_X) C_KF2 (using VAR_X) u2026 C_KFn (using VAR_X)
Value1
Value2
u2026
Valuem
Thanks for your replies, points will be awarded!
CheersThat is my concern, the value of variable is not the same.
What variable should do is:
take KF1 id, go through values for CHAR_X, get back one value
This value would always be different, and also "KF" part in code of variable should be different, based on the column where the variable is being used (so, in column C_KF1 ,variable should "pick up" id of KF1, etc.).
I hope it makes it more clear. For now, I do not have the code for variable yet, I am just interested in concept whether it is possible to pass the ID of keyfigure dynamically so I can make decision how to model this request.
Thanks -
Default value of BeX customer Exit variable not Displayed in WeBI??
Hello Experts,
We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario:
1. One restricted KF is created in BeX, restricted with Customer exit variable on net Due date. And this variable is mandatory, ready for input, and Default value in calculated is user exit as current Week's Monday.
2. So, by default KF data should be restricted to Monday of current week, if user does not change this value.
3. Now, WeBI report is created on top of this Bex query, and all is working fine, i.e. we are getting variable as Prompt in WeBI, but Default value is not shown while Running the Webi Report.
So, need your inputs on the same, if default values from BeX in WeBI is supported or not? If yes, why this is happening, and how to resolve it?
Please notice, the restrcition is in KF only, it is not a separate restrcition on Net Due date in Filter area or in Defualt area of BeX
and we are on SAP BW 7.1 and BOXI 3.1 SP4.
Regards,
Vipul
Edited by: VIPUL GOYAL on Nov 23, 2011 9:44 PMHi,
See 1285993 - Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe
WebI will prompt when executed, but the default values calculated by the user exit - do not appear.
Note: If the BEx variable has property 'ready for input' set / enabled, then its WebI prompt shows ok, but no default value appears.
Cause
This behaviour expected 'by design' (in the context of the product's current limitations) as explained in the online guide below:
Please refer to Chapter 7, page 44, document link here: http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_sap_olap_universes_en.pdf
Characteristic variable > processing type > Customer Exit is "Supported, without user entry"
--> This should be understood as meaning "User will not be shown a prompt"
regards,
H -
Customer Exit variable of Query not working in View
Hi,
I have a customer exit variable in my query to calculate the last 6 month period on Calendar month. I have used 0CMONTH for the same and then using offset of 6 on its value range to get it.
Now, I have many views based on this query, which should ideally be having the same filter condition for the calendar month, but it is not happening. Although, it is working fine for the query! The views do not seem to be catching the selection correct.Hi there,
As far as I Know, yes they exist. The only difference here, is that you build a query with a selection screen, and you execute the query with some selection parameters, and therefore all customer exit variables, offsets, etc, will be read and changed at the runtime execution of the query, and you can rearrange your query visualization drilling down free char., making filters, etc. and storing that visualization in a view.
If you save your view and execute it afterwards, you'll get the same selection parameters to input, the same offsets, etc, that you have with the query, but with a visualization stored by you.
So that should have been working.
Diogo. -
Help needed in Customer exit variable
Hi Experts,
We have a scenario as below.
User enters fiscal year period.Based on the fiscal year period,entire year will be selected.
Row would contains
0fiscper3(Fiscal months from Jan to Dec)
Column contains Amount(Actual or Forecast)--There is a restricted keyfigure on amount.If value type=60 then forecast
and value type=10 then actual amount
If the user enters 002.2010 then it should give Actual values ie value type=10 for 001.2010 and 002.2010.For all values greater than 002.2010, it should give forecast values(value type=60)
Report Format.
Jan----
Actual Value(value type=10 in the column for amount)
Feb----
Actual Value(value type=10 in the column for amount)
Mar----
Forecast Value(value type=60 in the column for amount)
Apr----
Forecast Value(value type=60 in the column for amount)
May----
Forecast Value(value type=60 in the column for amount)
Jun----
Forecast Value(value type=60 in the column for amount)
Jul----
Forecast Value(value type=60 in the column for amount)
Aug----
Forecast Value(value type=60 in the column for amount)
Sep----
Forecast Value(value type=60 in the column for amount)
Oct----
Forecast Value(value type=60 in the column for amount)
Nov----
Forecast Value(value type=60 in the column for amount)
Dec----
Forecast Value(value type=60 in the column for amount)
I know that i have to create a customer exit variable for value type
But in this scenario.the value for value type may change in each row based on fisper3(month).
How can i obtain such a scenario in the customer exit
Your help will be appreciated.
Thanks,
Senoy
Edited by: senoy laxman on Feb 15, 2010 6:42 AMHi Senoy,
you have to create two customer exit variables for fiscal year period(0fiscper) as given below.
1. for actual values (value type=10), coding in cmod such that showing values less than and equal to user input values.
2. for forecasting values(value type=60,)coding such that showing values greating than user input values.
use the first varible in the first selction and the second varible in the second selection in the given below structure(use the structure in rows)
use the fiscal period user input varible in the third selection in the given structure below.
structure
selection - (Actual)-restrict with value 20 and first customer exit variable .
selection -(Forecast)-restrict with value type 60 and second customer exit variable.
Selection - 0fiscper
Add the key figure 0Amount in the columns or in rows(in the selection of second structure) as per your requirment.
hope this helps you. -
Customer Exit Variable on 0CO_AREA
Hello Experts,
I have a requirement to create a customer exit variable on 0CO_AREA to return values for 0CO_AREA based on the 0PROFIT_CTR which will be entered by user in a BW query. As CO_AREA is compounding on PROFIT_CTR, I am not sure if we can do it or not and if yes, how ?
I am not a good ABAPer so I will appreciate if some one give me more help in code writing as well..
Regards.hi Rakesh,
check the steps in 'How to Use Variables for Currency Conversion'
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
hope this helps. -
I_step = 2 : Customer Exit Variables
Has anyone had problems with i_step = 2 in customer exit variables in 2004s queries and web templates.
When the web template is first executed the call takes place directly after the variables values are entered. This works as expected.
If you return to the variable screen to change the variable values the call does not take place.
We are on SP11.
I have tested the same customer exit variable using a 3.5 Query and Web template and it works in both cases explained above.
Has anyone had a similar problem?Hi MM
Thanks for the pointer. Unfortunately this did not help.
It is interesting to note with 2 identical queries, 1 developed in the 3.5 Query Designer and the Other in the 2004s Query Designer.
Both queries have the same customer exit variable. The variable exit is called correctly on all calls (1st and 2nd) when the 3.5 query is executed.
The 2004s query does not yield the correct result in the new BI Web runtime.
Also as we have just applied SPS11 to our development system, only our Development System has been effected. Our QA and Production systems on SPS 10 are not effected.
Cheers
Ian
PS> I have submitted a OSS note to SAP.
Message was edited by:
Ian Carbonel -
Query Drilldown does not Invoke Customer Exit Variables
We have a problem with performing a drilldown in a BEx Analyzer reprot, basically the client is a Trading company and they have inter company trading. We are using the Profit Centre as one of thre u201CFree Characteristicsu201D in the query and hence we are able to drilldown on a Characterictc by Profit Centre.
We are using a couple of BEx query variables (Customer Exit variables) to determine the inter-area and extrenal area profit centres and these profit centres will be different based on the level of Hieracry node selected when the query is initially executed. For example if we assume a hierarchy with has one root node, 3 children under the root node and 2 grand-children under each of the 3 child nodes, now if we are at the root Node of the Hierarchy then every profit centre is internal and there are no external profit centres, similarly if we are at the 2nd node (i.e. one of the child nodes) then everything under that node is internal and everything in the other 2 child nodes is external and so on.
This is where the issue starts for us, since on the report if we select the the node we want to see the results for at the query rumtime (i.e. the Customer Exit Variables are invoked at I_STEP=2 and they select the other nodes of the hierarcy if any and group them into either external or internal) then the results are correct. Now if we were to drilldown, i.e. We selected the root node and we drilldown on to see for example of the child nodes then the result are not correct, this becomes apparent when we drilldown further to the grand-child nodes.
One logical explaination is that when we are doing the drilldowns the customer exit variables are not being invoked in the BEx analyzer report and hence they are not grouping the sums for the internal and external profit centres relevent to node selected in the Drill down.
Does anyone have any suggestions regarding how to make this query work properly or show the correct results in BEx Analyzer (ideally), I have considered the Workbooks option but the client does not want Workbooks.
Please let me know if there is a program etc we can customise to ensure that the Customer Exit variables logic is used when the user does a drilldown in the query or any other way to make it work.
Many Thanks
JackHi
Just to aid anyone who is thinking what to do in a similar situation, I am aware that RRI or using workbooks are a couple of good alternatives (just that these are currently not being considered by the client, hence I am asking here).. Also, if someone has Business Objects WEBI then we can satisfy the requirement by creating a new Webi Report for each of the nodes and displaying it (similar to Workbooks but much nicer and faster) or we can get the Webi to execute the variables again during the drilldown... Unfortunately the client is not using Webi either... So the solution has to be in BEx Analyzer / Query designer based...
If you have any thoughts on how I might be able to do what I want to do then please feel free, I am quite confident that I am not the 1st person to come accross this issue and someone somewhere has solved this issue.
Thanks -
Error Message : " No value could be determined for Customer Exit Variable "
Hello BI Experts ,
I have created a "ZYTD_PERIOD" Customer Exit Variable Interval Mandatory and ready for input check mark removed.
The reference character is '0FISCPER' .
I want to have YTD figures when the user enter single Fiscal Year Period for variable 0P_FPER.
So I have written below code in SE37 : EXIT_SAPLRRS0_001 and include program : ZXRSRU01
==================================================================
case i_vnam.
WHEN 'ZYTD_PERIOD'.
IF I_STEP = 2.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FPER'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW0(4) = LOC_VAR_RANGE-LOW0(4).
L_S_RANGE-LOW+4(3) = '001'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
===================================================================
After that I use this 'ZYTD_PERIOD' variable in the query .
Also I have used the variable 0P_FPER in another structure.
When I execute the query by entering the value of 0P_FPER as 010.2009 or any other value ,
I am getting below error message ,
*No value could be determined for variable ZYTDPERIOD*_
Below is details of this Error message ,
Note that I have proper Master and Text data for 0CO_AREA and 0COMP_CODE loaded into BI.
=======================================================================
Diagnosis
This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
Termination message BRAIN 632 appears:
Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
System Response
1. Operation method of SAP-Exit-Variables 0P_FVAEX or 0P_CTPCA
With queries from the CO application, both SAP-Exit-Variables look for an entry for 'controlling area'. With this controlling area from the selection screen, the SAP-Exit-Variables program reads the attributes for InfoObject 0CO_AREA (controlling area).
With queries from the FI application, the SAP Exit Variable 0P_FVAEX looks for an entry for 'company code'. With this company code from the selection screen, the SAP Exit Variables program reads the attributes for InfoObject 0COMP_CODE (Company Code).
0P_FVAEX determines the fiscal year variant (attribute 0FISCVARNT) from the attributes for 0CO_AREA (CO queries) or 0COMP_CODE (FI queries). 0P_CTPCA determines the currency type of the profit center local currency (attribute 0CURTP_PCA) from the attributes for 0CO_AREA.
2. Cause of Error
The attributes for the controlling area (InfoObject 0CO_AREA) or company code (InfoObject 0COMP_CODE) were not loaded into the BW system, or the attributes for the controlling area are not active in the BW system.
Check whether this is the cause of the error in your BW system. Display the contents of table /bi0/mco_area or /bi0/mcomp_code using transaction se16.
Application CO:
Check whether the attributes 'fiscal year variant' (field FISCVARNT) and 'profit center local currency currency type' (field CURTP_PCA) are filled in the 'A' version (field OBJVERS) for the selected controlling area. If the fiscal year variant in the OBJVERS = 'A' is empty, then the error is with variable 0P_FVAEX. If the currency type of the profit center's local currency in OBJVERS = 'A' is empty, then the error is with variable 0P_CTPCA.
Application FI:
Check whether or not the attribute 'fiscal year variant' (field FISCVARNT) is filled in the 'A' version (field OBJVERS) for the selected controlling area. If the fiscal year variant is empty in OBJVERS= 'A', then the error is with variable 0P_FVAEX.
Procedure
Using InfoSource 0CO_AREA, load the attributes for the controlling area or company code into your BW system.
Afterwards, activate the attribute changes in your BW system. To do this, use transaction rsa1, path 'Tools > Hierarchy/Attribute changes', functions button 'InfoObject list'. Choose InfoObject 0CO_AREA or 0COMP_CODE from this list, and activate the attribute changes.
=====================================================================================
Is there any special settings needed before writing BEx Customer Exit ?
I have already created a project in CMOD and assinged a proper RSR00001
and EXIT_SAPLRRS0_001 and project is active.
Any help please ....
Regards ,
AmolMy Code is as below ,
case i_vnam.
WHEN 'ZYTD_PERIOD'.
IF I_STEP = 2.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FPER'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW0(4) = LOC_VAR_RANGE-LOW0(4).
L_S_RANGE-LOW+4(3) = '001'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
ENDCASE. -
How to get the current month value for a customer exit variable?
How to get the current month value for a customer exit variable?
And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
Thanks!Hi Kevin,
Check here........
Re: Customer Exist for "From Current Date To Month End"
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
Cal month
Regards,
Vijay. -
Customer exit variable - missing values
Hello experts,
Has anyone ever encountered this problem?
We have a customer exit variable, based on 0VENDOR. In the customer exit we simply fill in a variable with the values in this master data table. By debugging we can see how the e_t_range structure gets filled in correctly with all the values in the master data, for example 2,300 values, the same values we expect to see in the report but we don't know why at some point after our code in the customer exit and in the standard code, our variable contains less values and only an incorrect number of values gets displayed in the final report.
Any ideas on this would be very much appreciated.
Many thanks in advance,
InmaHi,
Are you sure you're losing some values?
Remember that if no values exist for a master data value on the InfoCube, no line will be shown, so you could see less than 2300 lines.
You could probably try to show filter values on the query and check if they match with your e_t_range.
Regards,
David. -
Hello,
I created a customer exit variable which has to show the range between the first and last day of the previous month. The query will be executed every first of the month.
Variable is declared as: Customer exit, based on 0CALDAY, Interval, Mandatory and NOT input.
When i debug the query, it is making the calculation but its not populating my variable; when I execute the query from RSRT, the output test shows a message:
ENo value could be determined for variable ZRANGE_PREVMONTH. BRAIN 632ZRANGE_PREVMONTH
Below the code i'm using (SAP 7.4)
***Customer Exit to calculate previous month.
IF i_step = 2.
CASE i_vnam.
WHEN 'ZRANGE_PREVMONTH'.
DATA: LS_RA_SID TYPE RSR_S_RANGESID.
DATA: yyyy(4) TYPE n.
DATA: mm(2) TYPE n.
DATA: dd(2) TYPE n.
DATA: fst_date LIKE sy-datum.
DATA: fst_date2 LIKE sy-datum.
LOOP AT i_t_var_range_c INTO loc_var_range
WHERE vnam = '0DAT'.
dd = sy-datum+6(2).
mm = sy-datum+4(2).
yyyy = sy-datum+0(4).
fst_date2 = sy-datum.
IF dd = '01' AND mm = '01'.
mm = '12'.
yyyy = yyyy - 1.
ELSEIF dd = '01' AND mm <> '01'.
mm = mm - 1.
ELSEIF dd <> '01'.
mm = mm - 1.
ENDIF.
CLEAR: fst_date.
CONCATENATE yyyy mm '01' INTO fst_date.
fst_date2 = fst_date2 - 1.
CLEAR: ls_ra_sid.
ls_ra_sid-sign = 'I'.
ls_ra_sid-opt = 'BT'.
ls_ra_sid-high = fst_date2.
ls_ra_sid-low = fst_date.
APPEND ls_ra_sid TO e_t_range.
ENDLOOP.
ENDCASE.
ENDIF.Hi Fernanda,
Try this:
DATA: LS_RA_SID TYPE RSR_S_RANGESID.
DATA: fst_date LIKE sy-datum.
CASE i_vnam.
WHEN 'ZRANGE_PREVMONTH'.
fst_date = sy-datum - 1.
concatenate fst_date(6) '01' into ls_ra_sid-low.
ls_ra_sid-sign = 'I'.
ls_ra_sid-opt = 'BT'.
ls_ra_sid-high = fst_date.
APPEND ls_ra_sid TO e_t_range.
ENDLOOP.
ENDCASE.
ENDIF.
Just post here for any queries..
Regards,
Loed -
Table look up using value from customer exit variable
I have a customer exit variable, CURRMON, which the user enters in the format MM/YYYY. From this entry, I would like to do the following to calculate and display the number of business days in the selected month:
Do the following to get Business Days in month.
Use the KF "FBA Day" (CTAFBAD) from the CTA_M01 infocube and write ABAP routine.
1. Based on user entry cal month get the last calendar day .
2. Do a master data look up (CTAFBAC is the master data object), using the last calendar day from step 1.
3. CTAFBAD is the attribute of CTAFBAC so move the value of CTAFBAD to the result, and display this result
Can anyone help me with this?Hello,
You can use i step = 1 in SMOD transaction and write the code there.
l_s_range-low = sy-uname.
append ls_range to e_t_range.
regds,
Shashank -
Current filter values in Customer Exit variables
Hi!
I have a pretty hard question here that I would be impressed if someone has an answer to:
The scenario is:
I have a customer exit variable that should de dependent on the current filter setting in the query. Is it possible from within the customer exit code get information about the current filter(s)?
I know that I can access other variables values, but in this case I would like to know which values that has been filtered on within BEx (after the popup screen).
Regards
MartyYou asked for:
1. In the field I_S_RKB1D-COMPUID (or GENUNIID I'm not quite sure) you get the internal query name.
2. Look in RSZELTXREF with SELTUID = I_S_RKB1D-COMPUID.
3. The filter values have LATYP = FIX (if they are in the filter box).
4. Search table RSZRANGE with ELTUID = RSZELTXREF-TELTUID.
5. Don't wonder if this doesn't work anymore after an upgrade
Best regards
Dirk
Maybe you are looking for
-
Consuming Web service in Visual Composer
Hi All, I have impoerted a z bapi in caf service .I create a web service out of this and try to consume this in Visual Composer .When i do Test data service by right clicking onthe web service and try to execute the web service i get an error saying
-
JMS issues when migration from weblogic 9.2 to 10.3.5
We are facing some issues when migration from weblogic 9.2 to 10.3.5 In weblogic 9.2 :_ BMP Entity EJBs used in our project are read-only in nature using entity cache, below is the configuration details <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Syst
-
Help with importing library and how to authorize music to play
Recently I had to reformat my hard drive. As a result I am trying to transfer my itunes library back to the computer from the backup device. There doesn't seem to be a simple way to do this. I found an article online that suggested I could import the
-
Mapping constant block parameters in simulink to a Veristand control block
Hello, I am trying to take a simple model of a RL circuit in simulink (built a dll file) and add control of constant blocks in Veristand to dynamically change the value of R and L constant thru the Veristand Slider or Numerical indicator. I can see t
-
Do I need to ged rid of Java? How?
I have Mountain Lion OS X 10.8.2, I downloaded all updates from Apple when it recommends it. I downloaded Java before since I need the applet to access website from work. However because of the security issues about some malware I removed it using a