Over-writting Customer Exit Value
Hi,
I've a "customer exit" variable 'Z1', which is allowed "ready for input" as well. Z1 is based on 0FISCPER and I set the variable to current date using customer exit in I_STEP = 1.
Based on the value contained in Z1, I calculate date ranges for two other customer exit variables 'Z2' and 'Z3' in I_STEP = 2, to make default criteria for report. And reports shows values of Z1, Z2, and Z3 in each column respectively.
As Z1 is "ready for input", it allows user to enter value and change shows in Z1 column but Z2 and Z3 still being calculated on initial value of Z1.
Please let me know how it is possible to over-write the initial value? Process flow would be: if user enters any value in Z1 it should ignore the initial values set by customer exit.
Your urgent help would be highly appreciated.
Regards,
Shabbar
Ali,
You are on the right path. Calculate the default value of z1 in i_step = 1, and then calculate z2 and z3 in i_step =2. If the user enters the value , then z1 will have the user value.
-Saket
Similar Messages
-
Help needed in writting Customer exit - ABAP Code
Hi Friends,
I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
I am using one input variable XXX to get input from user which feeds value to one of the charateristic lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2. I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
Your help will be appreciated in terms of points.
Thanks,
manmitHi Arun,
1. What should CHAR2 take - Hierarchy node variable or something else ?
--> CHAR2 is a simple charateristic
2. In your scenario - why have CHAR1 and CHAR2 ? why not have the user enter values against CHAR2 ??
--> We dont want user to enter two input as the input values for both Chars are same.
3. Did you try using a replacement path variable with the CHAR2 variable taking values from Variable on CHAR1 ?
--> In BI7.0 replacement path variable only take values from Query results. So not able to do the same.
Thanks -
Hi all,
I need your help how to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input.
in my query info object is 0CALQUARTER and variable is ZFIS_QTR.
in 0CALQUARTER fiscal quarter stored in 201301,201302,201303,201304 and 201401 format, for current fiscal quarter 201401 and (current fiscal quarter - 1 ) would be 201304.
please replay ASAP to deliver the report to client.
thanks in advance.
-- Rakesh NagpureI am Getting the same error for both the codes that i have written...
Do i Need to write sth else in the code...
Code:
WHEN 'ZVLIVELEASES'.
IF I_STEP = 2.
L_DATE = SY-DATUM.
SELECT * FROM "DSO_ACTIVE_TABLE"
INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
LOOP AT ITAB_LL INTO WA_LL.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = WA_LL-"EXPIRY_DATE".
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
Error: Error for variable in customer enhancement ZLIVELEASES -
No user input for the field on which i need to write customer exit code.
Hello everyone,
Scenario:
There are differrent lease type and there Start date and expiry date.
each lease has to return somoe returns on some basis.
selection screen has four options but none of them is date.
My understanding:
I need to get only those leases in my report whose expiry date is greater than system date/current calendar day.
I am not selecting any date field in selection screen, so i need to get value of expiry date from cube, and than compare it to current date.
So i need to write a customer exit in which i need to read date and restrict data on this expiry date.
Requirment:
Need a code for SAP exit variable which will meet the following requirment
There are the following 4 variables in the query.
1) material
2) product hierarchy
3) City
4) lease type
I need a customer Exit variable (CMOD) that will
filter the records on the basis of condition-"lease expiry date is greater than current system" and display all the records whose expiry date is greate than Sy Date (Current Date) and also if expiry date is blank.
kindly give me information on how i can write this code asap; and let me know if need more information.
ThanksI am Getting the same error for both the codes that i have written...
Do i Need to write sth else in the code...
Code:
WHEN 'ZVLIVELEASES'.
IF I_STEP = 2.
L_DATE = SY-DATUM.
SELECT * FROM "DSO_ACTIVE_TABLE"
INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
LOOP AT ITAB_LL INTO WA_LL.
CLEAR l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = WA_LL-"EXPIRY_DATE".
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
Error: Error for variable in customer enhancement ZLIVELEASES -
How to write customer exit code to get current user as default in variable
Hi guys,
I design a query which has a variable called var_employee , I also set some default values for this variable in query designer. But I would like to set the current user account who logon on (who execute the query) in the dropdownlist as default user when the variable selection screen appear. of course after that he can choose other avaiable value.
I look up some related threads, all says that this need some customer exit code, and they mention to use CMOD to create the customer exit , but I don't know the detail process, as I am pretty new on this.
The attribute of the var_employee variable is : employee(defined info object by myself) characterstic value, customer exit.
Can somebody show me the process to create the customer exit, and the apap code in detail if possbile. then I can try.
Thanks a lot in advance.
Best Regards,
BenHi,
Please have a look at:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
Krzys -
How to write customer exit for the variable
Hi Experts,
I have a requirement to create the variable, the scenaria is like this..
I need to create the variable which gives the period/year values,if yours enters the values 05.2007 then the variable should return the first monthe the year i.e.01.2007.
I hope it can be done by writing the customer exit..but iam unware how to achieve this.
Please explain me step by step and cope for customer exit to done this.
Points will be awarded
Suraj.hi Suraj,
there should variable sap exit for first month,
for customer exit, check this how to doc for steps
https://websmp210.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
your code may look like
INCLUDE ZXRSRU01 *
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'your 1st month variable'.
IF I_STEP = 2. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'your user input variable'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
L_S_RANGE-LOW+4(2) = '01'.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
ENDCASE.
hope this helps. -
Where do I write the code for customer exit variable?
Hi Gurus,
Can anyone tell me where and the procedure that I have to follow to get to the include ZXRSRU01 where I can write customer exit variable code.
I know its written in ZXRSRU01, but in my system it seems like its not active or does not exist. How do I get to start working in this include for customer exit variables?
Any help is appreciated. Thank you.
Regards
Reddyhi Reddy,
variable exit use enhancement RSR00001 not RSAP0001. EXIT_SAPLRRS0_001.
try to follow some steps in 'how to' doc related to this, and sample code may useful for you
https://websmp206.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
https://websmp206.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
INCLUDE ZXRSRU01 *
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'CUMMONTH'.
IF I_STEP = 2. "after the popup
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'MONTH'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
L_S_RANGE-LOW+4(2) = '01'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
ENDCASE.
hope this helps. -
How to Write a CUstomer Exit for a variable in BEx
Hi,
How to write a customer exit variable in bex Query designer
Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
Info Object: ZEXP_DTE (Expiry Date)
Variable on ZEXP_DTE :
ZEDTE
Type: Customer Exit
Can any one please tell me how to write a code in CMOD from this (Step-by Step)
Expiry Date > Current Cal Day
As arun said
'l_s_range-low = SY-DATUM.
l_s_range-opt = 'I'.
l_s_range-sign = 'GT'.
APPEND l_s_range TO e_t_range.'
I want to insert the above code for the above customer exit but as i am new to BW as ABAP please explain me what are the steps involved in CMOD
ThanksHi,
To write customer exit for a variable, you require Access key.
Contact your BASIS to get that.
Access Key,BASIS?
To write Customer exit,
User Exits
User Exit for Variable
/thread/809285 [original link is broken]
Hope these helps u...
Regards,
KK. -
Concatination of Two dates in customer exit Variable
HI Expert ,
I am writting customer Exit Variable to get Records from user entered Dates .
Eg. In Variable Screen of Bex report i have 2 Variable LYDate & TY Date both of them are As "Mutiple Single Value" & "Mendetory".
If we give LYDATE and TYDATE Date range as,
LYDate - 01/2013 - 06/2013
TYDate - 01/2014 - 12/2014
So I need ABAP Code which will get Value Range from 01/2013 from LYDATE and 12/2014 From TY DATE . So Query will Get data for 01/2013 TO 12/2014 (2 Years Data).
ZCALYEAR (Cusomer Exit) = LYDATE (01/2013) TO TY DATE(12/2104).
Please provide step by step ABAP Code to Achiev above issue. Points for Sure...
Thanks,
GBHi,
Some code like this will solve your issue:
CASE I_VNAM.
WHEN 'NEWVARIABLE'.
IF I_STEP = 2.
READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE WITH KEY VNAM = 'LYDate'.
If sy-subrc =0.
CONCATENATE LOC_VAR_RANGE-LOW(4) INTO L_S_RANGE-LOW.
READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE WITH KEY VNAM = 'TYDate'.
If sy-subrc =0.
CONCATENATE LOC_VAR_RANGE-HIGH(4) INTO L_S_RANGE-HIGH.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
endif.
endif.
endcase.
Regards
Yasemin...
Just realized that you need the year. Message was edited by: Yasemin ULUTURK -
Customer Exit for Calendar year/Quarter
Hi Experts,
I had a scenario as I had a Time char 0Calquarter. Based on this I need to derive the current quarter headcount and Pervious year same quarter headcount. To get the headcount I defined a counter constant '1' for each employee at cube level.
In a Query
a) Assign a system date to 0Calquarter variable in query.
b) If the variable is blank till current quarter the headcount need to display and same as previous quarter headcount.
c) If the user enters any value (say 20083) tht quarter current headcount and pervious year quarter(20073) headcount.
For the above scenarios I need to write customer exit.
Thanks,Hi Shanthi,
Thanks for u r reply.
Headcount is defined as 'constant'. when Z_COUNT Keyfigure is dran & droped in rows it'll cumulate and display the current headcount.
hope u understand the headcount.
I require the cmod logic.
Thanks -
Regarding Customer exit - ABAP Code
Hi Friends,
I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
I am using one input variable XXX to get input from user which feeds value to one of the charateristic lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2. I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
Your help will be appreciated in terms of points.
Thanks,Hi Manmit,
The following link can guide you on how to write customer exits (this has example as well)
[http://help.sap.com/saphelp_nw70/helpdata/EN/61/579b3c494d8e15e10000000a114084/frameset.htm]
Hope this helps.
Cheers,
Sumit -
Hi everybody,
Can anyone tell my doubts pls. I need to write customer exit using RSR00001 for that tell me the steps and sample code for execute query using any date variables like system date or last week etc.
i do not know the steps to write exits.
Thanks in advance
MuthuHi Muthu,
You can write the code in Tcode = CMOD
EXIT_SAPLRRSO_001
Variable should of processing type = Customer Exit.
*Current Day as Default Value
CASE i_vnam.
WHEN 'Z_DATE'.
DATA: v_date1 TYPE scal-date.
v_date1 = sy-datum.
IF i_step = 1.
CLEAR l_s_range.
l_s_range-low = v_date1.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDCASE.
Thanks,
Ram. -
Customer exit to get the result in between two fiscal periods
Hi Guys,
I have a requirement to write customer exit, in which i have to get the result for a range of fiscal periods,
that is in Between fiscal period1 and fiscal period3,
and i am getting this Fiscal period from other variable called version in which it consists of combination of fiscalperiod and text
and now i have filtered the fiscal period and stored in Final_val ( this is an interger), but how can i use dynamically this Final_val to get the results in between Final_val1 and Final_val3 ( that means if the Final_val is 2008010 then i have to get the results in between 2008011 and 2009001).
Please provide me the solution, with the possible piece of codeHi Diogo,
Here is the code
WHEN 'ZC_PVR'.
DATA: FIN_YEAR(4) TYPE C,
FIN_DATE(3) TYPE C,
FIN_VAL(7) TYPE C.
IF I_STEP = 2.
READ TABLE I_T_VAR_RANGE INTO LT_VAR_RANGE WITH KEY VNAM = 'ZC_VCS'.
IF SY-SUBRC EQ 0.
CONCATENATE '20' LT_VAR_RANGE-LOW+2(2) INTO FIN_YEAR.
CONCATENATE '0' LT_VAR_RANGE-LOW+4(2) INTO FIN_DATE.
CONCATENATE FIN_YEAR FIN_DATE INTO FIN_VAL.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = FIN_VAL.
L_S_RANGE-HIGH = ''.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
ENDIF.
which i am using for Filter the fiscal period, after this when i tried to restrict on this "ZC_PVR" vairable and set the offset like
zc_pvr 1 to zc-pvr3 under value of ranges, but i am facing an error saying the " variable may be deleted or used incorreclty",
could u plz suggest -
Customer Exit Variable not working in BO-Webi Report
Hi All,
I have created a universe based on Bex Query.
Bex query consists of a customer exit variable on Calendar year/month where in it will populate current calendar year month by default while executing the query. It works fine while executing in SAP BI Bex Analyser.
I have created a universe based on the query. For Calender year/Month i got L00, L01, LOV values in universe.
Based on the universe I have created a Webi report. I did not specify calendar year/month as query filters. While directly executing the Webi report, I get the calendar year/month variable screen. But the value for it not populated based on customer Exit code written in BI.
What has to be done to get the customer exit values in variable screen.
Thanks for your understanding.
-- SelvaSince you have customer exit variable in your bex query, it will be like a global filter in your universe.
Execute the webi report and check whether you are getting only current month data.
--- Thanks -
Customer Exit variable creation
All,
I have the follwoing requirement
Variable : Requested delivery date ( Range , Mandatory)
Rows: --- Columns
Average monday - Actual Orders
Average Tuesday --Actual Orders
Average wednesday - Actual Orders
Average thursday - Actual Orders
Average friday --Actual Orders
Based on the user entry , The query has to calculate Actual orders by different days..
I think I have to write customer exit variable. or is there any other/better solution..
thanks
srinivasHi,
We can do it by using Customer Exit code, but it requires more efforts to do teh same. For Customer EXit codes with example please see the url.
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
Thanks
Reddy
Maybe you are looking for
-
Which is better and faster in bootcamp xp or vista or 7
i have installed windows 7 by boot camp i have noticed its boot is very slow i m thinking to remove it and try xp anyway my question is which is better and faster xp or vista or 7? in bootcamp in the boot and in the normal use applications inside win
-
Oracle apps 11.5.10.2 upgradation
Hi, we are using 11.5.9 32bit oracle apps with 9.2.0.3 32bit database.This is two node architecture. One node apps and another node db tier both running on RHEL2.1 O/S. Now we are planning to migrate and upgrdate to apps 11.5.10.2 32 bit on Oracle Li
-
How to control the opening form multiple times
Greetings to all, I used Open_Form to open the form in my 'Menu.mmb'. My Question is: How we control the opening of a form from multiple times? Ex: In my menu.mmb I used OPEN_FORM.If we open the form,which was already opened ,I want to stop the form
-
Looking for a script that creates labels for linked image files in the layout
I'm working on a large book with over 650 images and I need to show the file names along with the images in layout for proofing reasons. Does anyone have a script for that does something like this? I'm working in INDD 6. Appreciate your help / sugges
-
Autogenerating reports in OBIEE
Hi, We are going to be creating a lot of pre-defined reports. These are going to be essentially the same with different KPIs and maybe dimension values. Is there any way to generate these reports rather than having to do it by hand? Is there any way