Customer Exit in Query Designer
Hi,
I have to build a query in QD 7.0 which schould cotain the Countries (Hierarchy) in the Rowes and Revenue % in the Columns.
I have to show the revenue% in three catagory: >30%, 10-30% and <10% with sum for each catagory, somehow like this:
Greater than 30%
usa 40%
can 31%
sum
Between 10-30%
IT 20%
CA 21%
sum
Less than 10%
DE 9%
FR 8%
sum
Total sum
I know that can be done with Customer Exit, but can any one tell me how to do it und how should the Customer Exit look like. I have not too much experience ABAP, or may be some one has another idea.
Thanks for any help in advance
Hi Martin,
Why you want to go for customer exit ??
I hope that revenue %ge is a calculated key figure. And you have to place Revenue depending on its value under proper column. Is this what u are luking for ?
If so then u can create busckets for the 3 categories and place the revenuce of particular country under proper category without using customer exit.
Create 3 different calculated key figure namely >30%, 10-30% and <10%.
write below formula; for e.g in <10 %
(revenue < 10) * revenue
(Im taking into consideration that revenue is a calulated key figyure)
Will help u in more better way once u clear your requriement.
Thanks
Dipika
Similar Messages
-
Urgent - Related to generic customer exit for Query
Hello Experts,
We have a query whose selection screen has two user input variables, plant and fiscper. Let say user enters 001 plant adn fiscper 0012007. We have about 100 rows for this selection. Each row has three date fields D1, D2 and D3. we have requirement that out of these 100 records only those records which meet the condition that D1 falls between D2 and D3 should be displayed as query result, others should be ignored.
Is there any generic customer exit (Like we have customer exit to manipulate virtual keyfigures) that gets called before query result is displayed where we can play around with the query result before it gets displayed? I am not talking about user exits for customer exit variables.
Please throw some light on this.
Thanks
SundarHello Sundar,
You can use conditions for the requirement mentioned.
Create a Contition on date D1 with operator "Between" and instead of hardcoding the values for the condition use variable entries.There you can create a variable with Customer exit type - to get in the selected range of dates between D2 and D3.
Thanks
Sam -
Customer Exit in query on aggregation level
Hi,
I try to have variables filled with a customer exit.
The coding of the customer exit is correct, this have been tested in queries on multiproviders.
Unfortunately it is not working when these variables are used on level of aggregation levels.
What I would like to achieve:
We have some planning queries on aggregation levels. Different users can plan on the same query (and aggregation level), but not for the same set of data. Therefore the query should be restricted to the authorized values. Unfortunately we can not switch to the new authorization concept (analysis authorizations) yet, but we already need this functionality very soon.
The customer exits are the only possible option. Unfortunately it seems that the customer exits are not being executed when the variables are used in queries on aggregation levels.
The variables are not ready for input and should be filled in I_STEP = 2
Is this normal? If so, is there a work around?
Thanks in advance for quick replies!
Kind regards,
BartHi,
You can debug your query by putting the break-point in your exit code and execute the query in RSRT. This way you will be able to find if your customer exit is actually being called or not. If it is being called then there can be some logical problem with your code due to which the variable values are not getting populated.
Regards,
Deepti -
Customer exit for query variable to calculate amount since 1998
Hi Experts,
I am trying to fetch the expenses since 1998 till last fiscal year in Bex Query.
I have created a variable ZFYRVAR1, processing type customer exit, Interval, Mandatory. I unchecked 'Variable is ready for input' box. There is no 0CALYEAR in the infocube. We have 0FISCYEAR and 0FISCPER in the InfoCube.
We wrote following code to populate the variable. It is throwing a warning message.
Value " is too long for variable ZFYRVAR1.
The column remains empty and nothing is populated. Can somebody tell me whats wrong with the code. I also defined another variable instead of l_year. like
zyear like /bi0/pfiscyear-fiscyear. but same error.
Any help is appreciated.
data: l_s_range type rsr_s_rangesid.
data: l_year(4) type n.
case i_vnam.
l_year = sy-datum+0(4).
l_s_range-high = l_year - 1.
l_year = 1998.
l_s_range-low = l_year.
clear e_t_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
append l_s_range to e_t_range.
endcase.Hi Sheo,
Hope the sample code below helps you. You can debug it in RSRT to be sure.
DATA: L_S_RANGE TYPE rsr_r_rrrangesid.
DATA: l_yearh(4) type c,
l_yearl(4) type c.
IF I_STEP = '2'.
if i_vnam = 'ZFYRVAR1'.
*Please check your user profile to make sure l_year is in the format YYYYMMDD.
l_yearh = sy-datum(4).
l_yearh = l_yearh - 1.
l_yearl = '1998'.
l_s_range-high = l_yearh.
l_s_range-low = l_yearl.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
exit.
endif.
ENDIF. -
Every value of an InfoObject as input for a customer exit in Query
Hi,
I have a Query which shows a contract number in rows and an amount in columns. Now I want an additional key figure in columns which should be filled through a customer exit. This exit should read from another DSO an additional amount for every contract number (that means every contract number per row should be used as input for the where statement of the DSO select).
Can anyone tell me if this is possible and which is the best way to realize this?
Thanks and greetings,
Sebastianyou cannot have customer exit for such requirement
then use virtual KF concept
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c?quicklink=index&overridelayout=true. -
HI Guys,
I require support regarding the customer exit.
My requirment is i am having a query which has following columns.
calmonth salesvalue
04.2006 1234444.00
05.2006 2323233.00
i wanted to include one more column additionallly as follows :
calmonth salesvalue Prevyear_sales_value
04.2006 1234444.00 4545545.00
05.2006 2323233.00 8787788.00
kindly provide me the codes in exit variable ....
thank you.
regards
GiriHi priya,
i will explain step wise what i did.
1. I created customer exit variable ( ZG_VAR3). for 0calmonth
2. I created variable ZINPUT as general variable.
3. used CMOD
4. selected the exit - EXIT_SAPLRRS0_001
5. writtent the following code.
WHEN 'ZG_VAR3'.
IF i_step = 2.
DATA: L_S_RANGE TYPE RSR_S_RANGESID,
LOC_VAR_RANGE LIKE RRRANGEEXIT,
LV_CALDAY TYPE SY-DATUM,
LV_FISCYEAR like T009B-BDATJ,
LV_CALMONTH TYPE /BI0/OICALMONTH,
LV_YEAR(4) TYPE C,
LV_MON(2) TYPE C.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZINPUT'.
LV_calmonth = LS_T_VAR_RANGE-high.
LV_YEAR = LV_CALMONTH+0(4).
LV_MON = lv_calmonth+4(2).
LV_year = lv_year - 1.
concatenate lv_year LV_mon into LV_calmonth.
l_s_range-low = LV_calmonth.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDIF.
kindly let me know what is wrong ..... -
How can I find out in which queries that the variables that are defined in the customer exit ZXRSRU01 are used? Thanks
you should be able to go into table rszglobv and type in the variable name and select the id for you variable using se12.
Then use this id and go into table rxseltxref put this id in the field teltuid and laytp = var and objevers = A . The technical names of your queries will be displayed
Then use table rszcompdir and give it this technical name to get the english name.
Hope this helps.
Richard -
How and where to create SAP Exit or Customer Exit in query variable
Hi,
I have to create a date variable in BEx and it should always contain default value as SY-DATUM i.e. current date.
I dont have 0CalDay in any of my data flow,also I am not supposed to add 0CALDAY.
If so,where i can write that exit.
Thanx in advance.Actually,what my requirement is...
I will not filter any characteristic based on this sy-datum instead I will use that variable value in formulae.
For ex: in my selection,i mention As of date = today's date..then inside the quer designer,a formula will calculate No.of days=As of date-Due date,where "As of Date" is nothing but the date which i have enterd in my selections.
please let me know any solution -
CLIENT EXIT Variable Query designer.
Hi Experts,
I need some information about this.
Does anybody have any tutorial about this or know where can i get it? Saphelp would be ok too, but i can't find anything about this there.
Thank-you!OK, let's try if [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5] will help you.
There are additional directions to other documents in this PDF.
Sample code can be found in [BW Expert|http://www.bwexpertonline.com/downloads/Hong-Bitra%20User%20Exit%20Code%20Download.doc] which I found [here|http://www.bwexpertonline.com/downloads.cfm?session=] -
How to identify what customer exit variables are used in which query?
Hi all,
When i happened to check the CMOD transaction code i can find a list of customer exits are used. But i want to know what are those customer exist are used in which query? can anyone let me know the procedure of identifying it.
Thanks a lot
Poojahii pooja
check the foll links
Very Urgent: Customer Exit Variable
customer exit variable
MIssing Authorisation for customer exit variable query
Authorization variable or customer exit variables
if it is helpful assign points
thanks. -
Terminate:Activity failed; there is no back end error log. - Query Designer
Hello all,
Has anyone encountered this erro before while using query Designer. I am trying to drag an infoobject in the rows section and I get this STOP error in message section at the bottom.
Terminate: Activity failed; there is no back-end error log [A006(R9E)]
Diagnosis
An error occurred in the back end.
System Response
An error occurred in the back end for which there is no error message. You cannot continue to work.
Procedure
Exit the Query Designer and correct the error on the back end.
Then start the query designer again.
Procedure for System Administration
I dont get what is going wrong here,
Thanks,hi,
There may be some problems with the connectivity in the box which you have logged in or in the excel properties itself. Try to login again and see if the problem is resolved else contact the BASIS or admin.
Thanks,
vrrp. -
Combine two reports in query designer
Hi experts,
i want to ombine two reports which are using key figure with sap exit in query designer
in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
to calculate due and not due in two columns
in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
now i have requirement like this
not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
or
not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
thank youHi,
Have you tried APD?
You can combine them using workbook or from a multiprovider query. APD is another option. Have a look at these APD docs:
In APD, you can take input from two queries, then combine them and load to another object (DSO).
[Analysis Process Designer |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/413ba6c1-0d01-0010-1980-ec450e30f23c]
[AGSAP NetWeaver 7.0 Application Process Designer|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b06c3f96-ed4f-2a10-1693-f2c76a39988f]
Let me know where you r stuck...
Regards,
Ashish -
BEx Query Designer - Customer Exit
Hello All,
I have a requirment to create USER customer exit.
User will enter the value of Month(ex, 02, 03...) and Year (ex 2010,2011 ...) with two different prompt screen.
Now i have to return back a date back to a RKF based on following senario:
1) If month and year is current month and current year than return back current date to the perticular RKF Date.
2) If month and year is not current month and current year then return back the last date of the month and year entered.
Thanks & Regards
NishantHI,
Just restrict the RKF with a CMOD variable and write the CMOD code as follows (sample):
assume your month and year variables are as follows: VAR_MON and VAR_YEAR
DATA: L_S_VAR LIKE RRRANGEEXIT.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: V_MON TYPE C LENGTH 2.
DATA: V_YEAR TYPE C LENGTH 2.
DATA: V_MONTH TYPE /bi0/oicalmonth.
DATA: V_CURR_DATE TYPE SY-DATUM.
DATA: V_DATE TYPE SY-DATUM.
when 'variable_name'.
if i_step = 2.
READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'var_mon' INTO L_S_VAR.
IF SY-SUBRC = 0.
V_MON = L_S_VAR-LOW.
ENDIF.
CLEAR L_S_VAR.
READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'var_year' INTO L_S_VAR.
IF SY-SUBRC = 0.
V_YEAR = L_S_VAR-LOW.
ENDIF.
V_CURR_DATE = . "Current date
"Check for the values
if V_MON eq V_CURR_DATE+4(2) AND V_YEAR eq V_CURR_DATE+0(4).
V_DATE = SY-DATUM.
else.
CONCATENATE V_YEAR V_MON INTO V_MONTH.
"call some function module to populate the last day of the above month (V_MONTH)
"and populate the above obtained value into V_DATE.
"see if you can use this SG_PS_GET_LAST_DAY_OF_MONTH
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-LOW = V_DATE.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
Regards,
Joe -
Customer exit variable in Report designer
Hello,
I have created one Customer Exit variable ( variable ready for input) for one of the characteristics in a query. However, when i execute this query in Report designer, the selection variable is not appearing. It is just taking the variable value from Exit, eventhough the variable is ready for input.
Is it a standard behavior or am i missing anything ?
RaviHello,
First check your variable is included in the report desinger or not
if it is included in Filters, use the T-code RSRT2 and execute. You should get a variable screen.
Debug your query here.
Hope it is useful.
Thanks,
Ashok -
Understanding complex query with selections(customer exit variables)
Hi experts,
I am trying to understand one query having a combination of selections and BEx variables in it.
In Characteristic Restrictions panel of Query Designer:
we have some CHARs restricted by means of authorisation variables
In Default Values panel:
some other CHARs without any filters
In free CHARS panel
some characteristics
In Rows panel:
some more chars that were placed in Default values panel
In Columns panel:
Formula YTD on selection YTD
Formula Monthly on selection Monthly
Selection on YTD characteristic(hidden)
Selection on Monthly characteristic(hidden)
Selection XX(in definition,I saw selection on YTD Keyfigure and a characteristic variable VAR1(i-step=1) filled with customer exit..this variable picks up right version of Master Data...our system has many versions of master data,one for each year)
Selection YY(in definition,I saw selection on Monthly key figure and the same characteristic variable VAR1 we used in Selection XX)
When I execute this..I see one variable popup which asks for values for year and version of master data...I enter master data version for that year and the year....I see the result...
Now I tried to experiment to learn...I deleted Selection XX and Selection YY and tried to execute....a variable popup asking for year...I enter year and tried to execute..it throws message---'Value for variable VAR2 cannot be determined'......
I couldnot understand this error because VAR2 is a customer exit characteristic variable defined in CMOD...ITS NEVER USED IN THIS QUERY...but defined in CMOD to pick up correct version of Master data..its defined in such a way that it picks value depending upon VAR1 varaible....both variables function is same...its just that VAR1 works on i_step=1 and VAR2 works on i_step=2 plus dependent on VAR1....
Can anyone understand why I am seeing error about VAR2 when its never used in Query....??
Thanks for your inputs....Hi Vikram,
I am unable to find VAR2 anywhere in query designer....Can it be like that its hidden?
Thanks and Rgds,
SChand
Maybe you are looking for
-
I just shot photos with my new Canon t3i in RAW. How can I open and edit them in PS8.0?
-
Email button works in preview mode but not when published to PDF
I thought I had cracked everything but - I have set preferences to email results to a specific address. In preview mode this works and outlook is opened with all the details. Once I have published to Acrobat 9 pdf - there is no response to the email
-
Problem in dragging a ebook from Adobe to my Kobo Glo
Hello I purchased a e-book from a provider I already used, downloaded and opened in trhu Adobe Digital Editions and I cannot drag it into my authorized Kobo Glo. last time, It was simple and easy. The error message says that it is not possible to cop
-
CTM Run failing with TSV_TNEW_PAGE_ALLOC_FAILED runtime error
Hi, While doing the CTM run,system is giving the memory dump with run time error TSV_TNEW_PAGE_ALLOC_FAILED. I understand this is because memory constraint and possible recommendation to either increase the Memory or reduce the master data selection
-
Can BPM visualize business process at runtime?
I am new to BPM. I am wondering if it can visualize the business process at run time so that the user knows what is going on. A use case would be in a document approval process, where a document needs to be approved by multiple people in different ph