How to select a particular InfoProvider based on variable in BEx Query
Hi,
The MultiProvider is built on InfoProvider 1, 2 & 3 and a variable on 0CALMONTH. If the 0CALMONTH is CURRENT month then it should get the data from InfoProvider 1 & 3 only, otherwise it should be from InfoProvider 2 &3. How could I accomplish it, please?
Thanks,
Venkat.
Hi Abhishek,
Do I have to create a Customer Exit processing Type variable ZINFOPR for 0INFOPROV and User Entry Type variable ZCALMNTH for 0CALMONTH where the user enters the Cal Month? Do I have to write user exit like the below:
WHEN 'ZINFOPR'.
IF i_step = 2. "after the popup
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZCALMNTH''.
CLEAR l_s_range.
CLEAR e_t_range.
L_YEAR = sy-datum+0(4).
L_MONTH = sy-datum+4(2).
CONCATENATE L_YEAR L_MONTH INTO w_calmonth.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-high = w_infoprov3.
if w_calmonth = loc_var_range-low+0(6).
l_s_range-low = w_infoprov1.
else.
l_s_range-low = w_infoprov2.
endif.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
Could you please check and correct if it requires any changes.
Thanks,
Venkat.
Similar Messages
-
Dear fellow developers,
I'm trying to edit an existing variable using BEX query, so that it can allow multiple input selections.
As you can see in the screenshot attached, the option is selectable during creation.
However, during editing of an existing field, this field (Details -> Basic Settings -> Variable Represents) is not selectable.
Does anyone knows why, and how to remedy this?Yes you can do it at the table level.
Go to SE11 enter table name as RSZGLOBV.
Enter the technical name of variable in VNAM field..You need to change the value in VPARSEL column.
Please make sure to get the where used list of this variable so that you can know the impact,if something goes wrong.
Also change it in DEV and then transport across the landscape.
PS:Same thing has been described in this blog as well
Changing BI variable parameters
Regards,
AL
Message was edited by: Anshu Lilhori -
How to create variables in Bex query
Hi all,
can anyone please explain how to create the variables and how many types of variables in Bex Query.
Thanks in advance
JamesHi James,
You can create variables in the BEx Query by right clicking on your characteristic and then selecting Restrict. A pop up window will appear. On the left side of the pop-up window, right click on a white space and then select New Variable. The Variable Wizard will then appear - you can now create your variable acording to your specifications. For more info on variables, please click on the link below:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
Hope this helps,
Juice -
How to remove pound symbol # and preserve leading zeros in BEx Query
Hi,
I have two questions regarding the display in BEx Query.
1. How can I remove the pound symbol # for blanks in BEx Query?
2. How can I preserve leading zeros? At the moment, value "001" will be displayed as "1". But I need the leading zeros.
Thanks.
JoonHi ,
You can apply these settings in Bex query designer.
If you need to remove pound symbol jsut make a new formula and use NODIM function you will find this function under data functions.
So NODIM(Your price keyfigure) this will remove the Pound symbol.
For # just find out against which characterstic you are getting # then go to default values panel there you will find all your characterstic which you are using in report---Rt click -Restrict-single valuesdirect input-#-Move to selection(That forward arrow)--select that # and choose exclude from selection (That red square icon).
And yes for leading zeros check out this thread
Leading zeros not displaying
Hope it helps you.
Regards,
AL
Edited by: AL1112 on Jun 9, 2011 1:43 PM
Edited by: AL1112 on Jun 9, 2011 1:47 PM -
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. -
How the Drill down functionality works if the source is Bex Query
Dear All,
How the Drill down functionality works if the source is Bex Query through the query browser in Dashboard 4.1
Please let me know process.
Thanks
Regards,
SaiHi sai,
Drill down can be done by two ways.
1. you need to bring all the data in one shot to the spreadsheet and then by using the components you can achieve it. Below given link explains in detailed about that.
Filtering Through Combo Box
2. you can use different set of query to pass the value from one set to another to fetch the data using the prompt. please check the below which explain them.
Difference between "When value Becomes & When value Changes"
Revert any clarification required on this.
--SumanT -
How to select a particular layer in AE?
Hi,
I want to select a particular layer in Timeline. Is it possible to select a layer if I have the AEGP_LayerH? I searched in AE_SDK_guide but did not find any function in LayerSuite.
Any ideas?
Thanks,
Dheeraj.Thanks Shachar. I checked the collectionSuite but got confused as to how to add items to collection and when to delete the collection. I will try again.
-
How to select a particular row in a JTable?
I want to select a particular row in a JTable. i.e something like
table.setSelectedRow(arg)how can i do it.You can use
table.getSelectionModel().setwhateverIsInTheAPI(...)
depending on your selection mode.Thanx,
but i don't want to change the selectionMode, i
want to select a particular row thro program.
This is like list.setSelected(index) in
JListThe original poster was pointing you in the right direction. You have to use the SelectionModel when you want to work with the selected indexes of a JTable. It will return a ListSelectionModel, which will be an instance of DefaultListSelectionModel unless you implemented your own. Refer to the API for the appropiate method(s).
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/ListSelectionModel.html -
How to select a particular row in grid?
I am trying to generate a user defined CFL form which should work exactly as system CFL. Using Matrix takes minutes to load the query's output so I m using grid instead and passing the query as a parameter to datatable. is there any way to select a particular row in grid through SDK ? for matrix , it cud be written like 'matrix.selectrow(). doesn't seem to have such property for grid. Any help on this will be appreciated.
Thank you..hi
oGrid.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single;
oGrid.Rows.SelectedRows.Add(pVal.Row);
i think that will help you
Regards,
Rajesh Saini -
How to select a particular node in a tree?-want suggestions urgent
i've to make a tree showing "c:\" folder structure of the system. Initially i'm adding the folders in c:\ only tothe tree. And i'm adding the subfolders when ever i select a particular folder. I'm opening the subfolders and inner subfolders of it and so inside like that. now i'm closing the window . i want the tree to reopen with the previously opened level when ever i again run the program. On closing i'm storing the last selected node using tree.getMaxSelectionPath() . And on reopen i'm setting it as tree.setSelectionPath(tree.getMaxSelectionPath()).
But it is not opening the entire path. it is opening uptop one level only. what to do. Needs suggestion urgently.
Thnaks for suggestons.Hi again,
I am sorry, I cannot help in another way than looking at the documentation, because I have currently no JDK available here. If expandPath(...) doesn't work, you can try to get all the nodes of that path and expand them from the root node downwards, perhaps that will work.
greetings Marsian -
User Exit Variable for Infoprovider based on month characterstic in query
Hi,
I am financial reporting with reports created on a mulit-provider over a plan & Actual cube. Along the top of the report is a structure which has amongst other restricitions a column for each month, i.e columns 1 to 12.
Currently we are in month 9, so the report should show data from the Actual infoprovider for months 1 to 9, but data from the plan infoproviders for 10 to 12. My question is how should the variable be coded for the infoprovider which will return a value based on the month characteristic in each columns selection. I understand how I can look at say the current system date, derive the month and return the plan/actual value for the correct infoprovider based on the current month. But I need to create a variable which will look at the month value which is in each column selection in the query itself.
Many thanks,
Richardwe recently had this kind of reporting requirement. only difference being week instead of month.
you need to create 12 variables for actual month columns and 12 for budget.
now you will write a code to address all the variables. in following format :-
when var1. "suppose var1 represents month 1 of actual columns
1. derive month from date.
2. if month <= i_vnam+3(1) "get the number from var and compare
set the variable value as the month number of that year for e.g
concatenate year i_vnam+3(1) into l_s_range-low
else
set the variable value way back in past which will not have any data.
above logic will cause values in following fashion
if this month is 3 and year is 2008
var1 = 200801
var2 = 200802
var3 = 200803
var4 = 199001
var5 = 199001
etc.
In the query all columns will be set with the property = hide if not values are present. so if 199001 is set in the variable then it will be collapsed.
same way logic for variables in budget column can be written which will set all the month variables which are less than
current month to 199001 (just in reverse fashion of above mentioned logic.) -
RRI? How to call ITS URL and pass field value from Bex Query.
I am doing RRI from query to webaddress,
i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
jump is working from portal(from bex query ivew).
but i want to pass value(shopping cart value) to above url and want to skip first screen.
i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
i tried the diffrent combination of url and field assignment as like below:
1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
assigned field: GS_HEADER-OBJECT_ID
but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
I have seen the source code of that url(inital screen and after entring the value to that screen) too.
how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
Thanks and regards,
Dushyant.Declare the gv_orderid in modulepool program.
And Declare the parameter as import parameter in smartform.
CALL FUNCTION lv_form
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
i_input = gv_orderid
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5 -
How to create Text Variables in BEx Query Designer
How can i create Text Variables in Bex Q.D.
I am able to create characteristic variables
but i can't find option to create text variables.
What's the requirement to create Text variables in Bex Q.D.
When i try to create Text variable for 0calDay.. the variable type is characteristic by Default and disabled.
How can i create text variables related to 0CalDay with which i need to work in Customer Exit.Hi,
You have to create characteristic variable processing by Customer Exit by considering 0CalDay as a Reference Characteristic
After creation of the above variable, you restrict your KF with the above created variable.
Now you can create a Text variable for the description of your KF. This way it works...........
Regards,
Suman -
How to concatenate two fields CSKS-KOSTL & CSKT-LTXT in BEx Query?
Hi,
I have a requirement to concatenate two fields CSKS-KOSTL (Cost Center) and CSKT-LTXT (Cost Center Text) and show them as one field in the BEx query.
I do not know what to do, so please help me out.
Thanks in advance.
Regards
HarmanHi Harman,
If cost center is a masterdata, it can have its own text..i doubt why do u have 2 different fileds..
Anyways if its a masterdata object maitaining its own text, then in the query properties under Display tab select Key&Text option this give you both key and text values in the output.
If its two different fileds then its better to use concatenate in the transformation.
Regards,
Geetha -
How to select a communication channel based on a field in the message?
Hi All,
In my scenario - Sending system will send one country field in the message ,I have one receiver system which has different folders for different countries.
I have created separate communication channels for separate countries.
Now at runtime based on the country field in sender message I need use the channel respective to that country.
How should i achieve this?
Please help.Hi,
Say you have 3 countries - I would suggest:
1) Create 3 services - each for one country
2) Create 1 CC's under each of these services
3) In your Receiver Determination ->Configured Receivers -> Condition field --- put in the condition (by choosing the field from the input that has the country code)
4) Against each condition, choose the respective service for that country
5) Complete the Interface Determination - (by calling the same mapping in all three Interface Determination)
6) Complete the Receiver Agreement by choosing the appropriate CC created as in Step 2)
1) and 2) are basically for ease of use. If you need to identify the Service or CC - this would be user-friendly.
If you dont want to create 3 different services - you can still not do Step 1 and continue from Step 2.
Regards,
Balaji.M
Maybe you are looking for
-
Print a Bitmap to a chosen printer
Hello all, One of our customers, has an implementation where some user data are stored as bitmap images on a server. Right now, the user can view those images and then choose to save them on the local PC . Those images are shown at SAP using the ABAP
-
How do I preset a title text style in Final Cut Pro X?
I want to use the same title stye again and again in Final Cut Pro X - font size, style, color. Final Cut Pro is happy to have me "Save a Preset to Library", but then I never see it again. When I go to the dropdown menu, all I get is Apple's list
-
My Neat Image plug-in is crashing Photoshop Elements 6 under Mac OS 10.9
Any other people with problems? Any suggestions?
-
How to change the color to JScroollBar?
Hi All I have a applet with his look an feel set to Metal, in the applet I used a JScrollPane but I need to change the color only to the ScrollBar. But I don not how. Can anybody can tell mi how to do this I will appreciate your response
-
Mail for Exchange - special characters (umlaut) in...
Hi, I have several usernames with german umlaut-characters (ü, ä, ö, ß). These usernames are not able to logon within Mail for Exchange. Is there any hint? M4E 1.06 E60 3.0633.09.04