How to restrict values of characteristics in Bex
Hi All,
I want to restrict values for a particular characteristics starting from ZABC* in Bex without writing CMOD ABAP code
For Ex
ZABC123
12656
ZABC234
So in the report o/p shd be
ZABC123
ZABC234
Hi Roshan,
I don't understand well your issue, but I will try to answer to you with two possible solutions anyway.
You can use the variable not in the characteristic filter but in each index. For example, if you have two indexes to be displayed in your column structure, try to filter them with the characteristic value variable. In this case you can probably see all of the characteristic values but for only ones that start from ZABC* you can see KFs values.
According to an another my supposition, you can use an exception (there is a dedicated tab when you restrict your characteristic). You can find more informations reading the following link:
http://help.sap.com/SAPhelp_nw70/helpdata/en/43/21b4cd14cd06f4e10000000a422035/content.htm
Hope it helps.
Best regards.
Simone.
Similar Messages
-
How to restrict values of Dimensions in Webi report prompt
Hi
I need to create a WebI report for a set of Business users. We have several thousands of Agencies. Business Users want to see only the agencies they work with (about 100) in the prompt. This way they need not go through thousands of agencies they dont work with. I tried to use List Of Values option but that didnt give me desired result. Please let me know how to restrict values in prompt to few values from the n number of values available in database.
Thanks in advance.Hi,
there is no such step-by-step!
I would encourage you to consult documentation and search for terms 'row level restriction' in the help guides.
Practice makes perfect
Good luck
H -
How to restrict values displayed using a select-options
Can someone please tell me how to restrict values displayed using a select-options.
Example- in my table I have 100 entries. However when the user will click on the required field- I want to be display only 25 options based on a given value of another field in the table.
Thanks,
Mahesh.get the screen value for the selectd field using the fm
DYNP_VALUES_READ.
for that value filter the internal table values and pass the table to f4 help of the field.
below code will help u
write the f4 help for the field.
At Selection Screen on value request *
F4 help for Corporate
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CORP.
Get Corporates for selected division
PERFORM GET_CORP.
PERFORM F4HELP_CORP.
*& Form GET_CORP
Get the corporates for the selected division
There are no interface parameters to be passed to this routine
FORM GET_CORP .
Table for conglomerate
DATA:
LT_CONG LIKE STANDARD TABLE OF FS_CORP,
Fields of current screen
LFS_DYNPREAD TYPE DYNPREAD,
Table for current Screen fields
LT_DYNPREAD LIKE STANDARD TABLE OF LFS_DYNPREAD.
LFS_DYNPREAD-FIELDNAME = 'P_DIV'.
APPEND LFS_DYNPREAD TO LT_DYNPREAD.
Get selection screen value for division
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-REPID
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = LT_DYNPREAD
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
IF SY-SUBRC EQ 0.
READ TABLE LT_DYNPREAD INTO LFS_DYNPREAD INDEX 1.
IF SY-SUBRC EQ 0.
P_DIV = LFS_DYNPREAD-FIELDVALUE.
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
REFRESH T_CORP.
Get the conglomerate for the selected division
SELECT KUNNR " Conglomerate
FROM KNVH
INTO TABLE LT_CONG
WHERE HITYP EQ C_HITYP
AND VKORG EQ C_VKORG
AND VTWEG EQ C_VTWEG
AND SPART EQ P_DIV
AND DATAB LE SY-DATUM
AND DATBI GE SY-DATUM
AND HKUNNR EQ SPACE.
IF SY-SUBRC EQ 0.
SORT LT_CONG BY KUNNR.
DELETE ADJACENT DUPLICATES FROM LT_CONG
COMPARING KUNNR.
Get the corporates for the selected conglomerates
SELECT KUNNR " Customer Number
FROM KNVH
INTO TABLE T_CORP
FOR ALL ENTRIES IN LT_CONG
WHERE HITYP EQ C_HITYP
AND VKORG EQ C_VKORG
AND VTWEG EQ C_VTWEG
AND SPART EQ P_DIV
AND DATAB LE SY-DATUM
AND DATBI GE SY-DATUM
AND HKUNNR EQ LT_CONG-KUNNR.
IF SY-SUBRC NE 0.
CLEAR: SSCRFIELDS.
MESSAGE I531(0U) WITH TEXT-005.
STOP.
ENDIF. " IF SY-SUBRC NE 0
ELSE.
CLEAR: SSCRFIELDS.
MESSAGE I531(0U) WITH TEXT-004.
STOP.
ENDIF. " IF SY-SUBRC EQ 0
ENDFORM. " GET_CORP
*& Form F4HELP_CORP
F4 help for corporate
There are no interface parameters to be passed to this routine
FORM F4HELP_CORP .
F4 help for corporate
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'KUNNR'
DYNPPROG = 'Z_EXCESS_USAGE'
DYNPNR = '1000'
DYNPROFIELD = 'P_CORP'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = T_CORP
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
Do nothing
ENDIF. " IF SY-SUBRC EQ 0
ENDFORM. " F4HELP_CORP -
How to restrict value of materila in a PR created from PS to 1 Rupee
Hello Gurus,
While creation of material PR from P, system is picking value either info record or material master. How can we restrict value of materila in a PR created from PS to 1 Rupee?
NagarajHi,
On costing variants(OPL1)->valuation varient u can define which would be picked for planing, there give top priority for "Plan price 1"
To get plan price 1, you have to update on material master(mm02) on costing 2 tab as 1 rupee for all required materials.
hope this would help
regards,
SL -
InfoView - How to Restrict values of Month Dimension Combo Box
Post Author: alexrox
CA Forum: Publishing
Product: Business Objects Enterprise XI R2
Version: XI R2
Patches Applied:
Operating System(s): Linux RHEL 4 x86
Database(s): Oracle 10gR2
Error Messages:Steps to Reproduce:
Hello, we are using Business Objects Enterprise XI R2 in the company I work, and we are facing a problem in some web intelligence reports.Our BO version is in Spanish, so maybe I do not translate some BO terms properly into English.
We have the "Time" class in the Universe we use, and in that class, we have the "month" dimension.
When we create some reports in InfoView, we can use the "month" dimension to display the results of that month (dragging and dropping that dimension in the "Analysis Context" Area).
The user can choose values in the "month" dimention through a combobox in the "analysis context" area. The problem is that Infoview allows the user to select the value "all the values" of that dimension, I mean, all the months, so that the results of the report are according to the "automatic aggregation" calculated of the values of that dimension (all the months).
But, we do not want to allow the user to select that value (all the values) of that dimension, because it causes that the report displays incorrect results (we have some percentages that have incorrect values in the aggregation, for example). I hope that you understand the problem I have tried to explain.
My question is how can we restrict so that the combo box (of the month dimension at the analysis context area ) does not allow to select "all the values"?
Is it possible? If so, do we have to make a change in the universe or is it a restriction of the web intelligence repport?
Thank you very much!
Alejandro Usero RuizPost Author: jsanzone
CA Forum: Publishing
Alejandro,
In your posting, quote "(we have some percentages that have incorrect values in the aggregation, for example).", I'm wondering if you are calculating the percentages within your universe or not? I.e. do you have a universe object that in essence is doing the math? If so, I might suggest that you not do it this way (even though in total aggregation calculations this will produce a valid result), but in disaggregate calculations (during the users "slicing and dicing") the percentages are not re-calculated by the BusObjects tool because it thinks that the data it received from the SQL output is good to go, and this is where the incorrect values in the aggregation start to show up. We had this problem too, so we ceased from calculating at the universe level and built a local variable to the report, thus BusObjects will recalcuate the percentage properly for each level of aggregation that user selects. The downside to this approach is that every report that has percentage calculations will require the local variable to be built for that report. Even users who build their own reports will have to build their own local variable to compute the percentage for their reports. The upside is that the calculations will be correct every time. -
How to restrict value set to a certain responsibility
A group of users need access to add values to a value set. We dont want them to access all available value sets. So how can I restrict the responsiblity to access only one value set? can we create a function or something and pass the value set name? or does it need form personalization?
Thanks.I don't think it's possible adding parameters to the form function. So, you would need to use form personalizations or add some code to the CUSTOM.pll. Another possibility would be to use lookups instead of value sets. Lookups can be restricted using form function parameters.
Hope it helps. -
How to restrict values and apply condition for a characteristic in a query.
Hi,
I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
So i have two questions.
1. How to bring two fields in the query for the same characteristic.
2. How to achieve the condition in a characteristic for second customer class field mentioned above.
Could somebody help me in solving this?
Thanks in advance,
SomenathHi Somenath,
you are absolutely right;)
Besides the Third step
Try to add two new Selections to your Structure as
New Selection1 -> Set the Customer Class value to fix 'PV'
New Selection2 -> Set the Customer Class value to fix 'CV'
<b>you have to add</b>
New Selection3 -> Set the Customer Class value to fix 'IT'
New Selection4 -> Set the Customer Class value to fix 'OT'
Fourth step
Hide these four selections
Fifth step: Add a new formula to your Structure
(Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
Hope it helps
Gabor
ps: experts maybe suggest easier way... -
How to infer values in characteristics of material
Hi Experts
I am trying to infer a characteristic (manufacturer name) based on another characterisitc (manufacturer number) for material master. I have done the following steps:
-created the characteristic (single value, Additional Value ticked, Not Ready for Input ticked)
-created the function (with manufacturer number as input parameter)
-created the function module for the above function
-created the dependency (type Procedure)
-assigned my dependency to the characteristics
-added the charateristics to a class
All these above objects are in Release/ active status.
In the dependency editor, I have put the following code to call my function/ function module Z_MFRNR_NAME
FUNCTION Z_MFRNR_NAME
(ZZ_MFRNR = $ROOT.ZZ_MFRNR,
ZZ_MFRNR_NAME = $SELF.ZZ_MFRNR_NAME).
In the function module, I am using CUOV_GET_FUNCTION_ARGUMENT (to get manufacturer number from table QUERY) and CUOV_SET_FUNCTION_ARGUMENT (to set manufacturer name in table MATCH).
The problem is that when I assign my class to a material in MM01/MM02, the function module is not called (I have a BREAK-POINT) hence the manufacturer name is not populated in the characteristic.
If I change the characteristic manufacturer name to 'Ready for Input' and try to enter a value manually, I hit my break-point but the manufacturer name returned by the function module is still not populated on the characteristic and I get a message 'Inconsistent values inferred for characteristic Mfr Name'. I checked the details of this message and it tells me that the value I entered manually and the value returned by the function module are incompatible with each other. This indicates that the function module is working fine as it is returning the manufacturer name.
Can someone please explain:
1. Why is the function module not called in the first place when the class is assigned to a material ie when there is no manuall entry to the characterirstic?
2. When there is manual entry and the function module is called, why doesnt the characteristic pick the value retured by the function module?
Am I missing something here.
Thanks in advance
FarooqHi,
Found the problem, I was assigning my dependency to the wrong characteristic. It should have been assigned to the Manufacturer number (inferring characteristic) rather than the Manufacturer name (inferred characteristic).
Farooq -
How to restrict values in one prompt based on value from another prompt
Hi
I have a requirement as follows. I have two fields (objects)
program code
contract number
one program code can have several contract numbers.
I need to provide prompts on Program code and contract number. when user selects one program from the prompt on program code then contract field should only show contract numbers belonging the program user selected.
Please let me know how to bring this functionality in Webi report.
Thanks in advance.Hi
if ur requirement is in query level its impossible.(i mean whn u click on programcode then u have to display in contract at query level)
if you want to display at report level then
The two objects Program and contract have a mapping then place a program object in query filter and use operator equal to and select prompt and run the query then it will ask you to select program .whn on choosing it you will get filtered contract numbers for that program in report level . There no need to use prompt for contract numbers object .
Hope this helps u
Thanks
sunil
Edited by: K.sunil on Nov 7, 2011 9:30 AM -
Hi ! How is an infocube created in DP? How are the values populated ?
Hi !
Thank you so much for the reply!
Could you please explain:
1) How is an infocube created in Demand Planning?
2) How to store values for Characteristics and Key figures ?Hi,
Basically Info cube is created in to APO-BW..If you want to store the data of planning area in to Info Cube..then you have to create whole data extraction process..see the steps below..
1. Create data source under the planning area. T-code: /n/sapapo/msdp_admin..Click on planning area. Go to extras select data extraction tool. Create data source, test it & replicate it in to APO BW..
2. Go to RSA1..create Infopackage under the data source & enter appropriate planninf version in selection criteria.
3. Create Application component in Info Source modelling..Then create info source under the application by coping data source..so automatcially all the info objects will come in to info source.
4. Create transformtion between IS & DS.
5. Create Info Area in infoprovider modelling..Create Info cube, in that you need to add all the info objects (Char, Key figure, Time Char) same like info source.
6. Create transformation between IC & IS.
7. Create data transfer process.
8. Now you can able to extract data from planning area.
Regards
Sujay -
How to restrict the particular value in BEx?
HI,
I have added particular dimension in query prompt. While refreshing i got more value in particular dimension. How to restrict the the value in bobj or bex?
Here i attached the screen shot. Please find the attachment.Hi Mani,
Please make sure of your requirement. If you are using only one single query for multiple reports then i strongly recommend the below criteria or else it better to restrict the value in the BEx itself if you have no other reports on the same BEx query.
If you are trying to restrict a report to a default prompt value then use equal to in query filter prompt or you can also restrict them to list of values i.e multiple values.Please follow as per the screens below. I am mentioning two ways.
Method:1
Step 1: Click on Prompt Options(Blue Questionmark Symbol)
Step: 2 : Click on the Values after you check the prompt properties options as shown below.
Step 3: Search for values if they are keys by checking the "Search in keys" or else not required.
Method 2: Here is another Easy way is Just give the input in the value box as shown below.
Let me know if you need any further help.
Regards,
Naveen -
Linking the restrictions on different characteristics by OR in BEx query
Hi ,
Can anyone suggest on how a Bex query can be bulit in which the restrictions on different characteriastics are combined by OR .
For eg. select * from infoprovider where plant = '3001 'or distibution channel = '05' .
The usual way of resticting different characteristics goes with AND combination between the characteristics in Bex.
Working out through conditions is also not possible as characteristics have to be combined with OR not keyfigures.
Regards,
Narasimha.Hi,
This can be done. Try the follwoing.
Create 3 RKF/Selctions.
RKF1 --> Restrict on Plant 3001, Include the required base key figure
RKF2--> Restrict on Distribution Chnnel 05, Include the required Key Figure
Now create a CKF1 = RKF1 + RKF2, display the CKF in query.
If you have case where Plant is 3001 and Dist channel is 05 abd this also be displayed then above calculation will give you twice as base key figure which will be incorrect, In rest of the cases only one RKF will fetch the value so it will be correct.
Now to over come this create one more RKF3
RKF3 -- Restrict Plant 3001, Dist Channel 05 and base key figure,
Create one CKF2 on this
CKF2 = 0-RKF3
Now you have to change the CKF1's definition
CKF1=RKF1+RKF2-CKF2
Display CKF1 in report
I hope it will help.
Thanks,
S -
How can we remove the commas from the Formula value in SAP BW BEx query
Hi All,
How can we remove the commas from the Formula value in SAP BW BEx query
We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
Regards
Venkat.Do you want to remove the commas when you run the query on Bex Web or in RSRT?
Regards -
How to update bind variable and restrict values in a Model Driven LOV?
Hi Guys,
Using JDev 11.1.1.2.0
I've recreated an excellent Frank Nimphius article about restricting values derived from a model driven LOV (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/44-restrict-lov-169186.pdf)
But my bind variable isn't updating. Deleting the bind variable gets me the entire LOV. Activate the code below and insert a bind variable into the where clause like Frank says and I get nothing back. Bind variable is blank. Any ideas? Code wasn't supplied with the article. It seems simple enough but the bind variable isn't updating in the SQL, even though the updated value shows up here...
public void onLovLaunch(LaunchPopupEvent launchPopupEvent)
BindingContext bctx = BindingContext.getCurrent();
BindingContainer bindings = bctx.getCurrentBindingsEntry();
FacesCtrlLOVBinding lov = (FacesCtrlLOVBinding)bindings.get("DepartmentId");
lov.getListIterBinding().getViewObject().setNamedWhereClauseParam("deptId","60");
System.out.println("lov name: " + lov.getName().toString());
System.out.println("lov Param Attrs: " + lov.getListIterBinding().getViewObject().getNamedWhereClauseParams().getAttribute("deptId").toString());
System.out.println("lov View Object: " + lov.getListIterBinding().getViewObject().getName().toString());
System.out.println("lov IterBinding: " + lov.getListIterBinding().getName().toString());
}Gets me ...
lov name: DepartmentId
lov Param Attrs: 60
lov View Object: _LOCAL_VIEW_USAGE_lov_model_queries_EmployeesView_DepartmentsView
lov IterBinding: DepartmentIdList_2That's a good idea, but it's still not working. Here is how I implemented it. It might be different from your suggestion as I'm still pretty new to this.
I have a recursive tree table. You select a node. You then click a button which calls the listener below. "findParents" is a method call to the AppModuleImpl class and it finds all parent nodes of your selection. "restrictPartBomLOV", also of the AppModuleImpl class, then modifies the model driven lists' View Object (partBomLOV) to exclude those parent node values.
The resulting model driven LOV on the popup should be updated, yeah? But it still isn't udpating. If I manually type in the updated Where clause in PartBomLOV.xml query tab, it works, but it doesn't programmatically.
public void insertPopupFetchListener(PopupFetchEvent popupFetchEvent)
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("findParents");
parents = (List)operationBinding.execute();
operationBinding = bindings.getOperationBinding("restrictPartBomLOV");
operationBinding.execute();
public void restrictPartBomLOV(List parents)
ViewObjectImpl vo = getPartBomLOV();
String wcl = "";
Object[] p = parents.toArray();
for(int i = 0; i < p.length; i++)
if (i == 0)
wcl = wcl + "PNUM <> '" + p.toString() + "'";
else
wcl = wcl + "AND PNUM <> '" + p[i].toString() + "'";
vo.setWhereClause(wcl);
System.out.println(vo.getWhereClause().toString());
vo.executeQuery();
Edited by: LovettWB on Nov 11, 2010 11:23 PM -
How to restrict a user typing a custom value in the dDocAccount field.
I have dDocAccount field drop down pre-populated with 2 values - Dept1, Dept2. However, user can able to type any other values (say Dept3) in the account text box and checkin a doc from WCC UI. How to restrict user from entering custom values?
As an alternate solution - for time being i have the above account field is set as hidden using rule. I am trying to derive the account value from another one field's value (say Departments field with values Dept1, Dept2). I tried below code and found working:
Department is a custom field created as option list with values Dept1, Dept2
Under the Rules, for the field dDocAccount, is derived field checked and added below code
<$dprDerivedValue=#active.xDepartment, getValue("#local","dOption")$>Hi,
If Department is a custom metadata then you should access it like xDepartment(as any other custom metadata), not dDepartment.
I know it is also possible to change the HTML that is generated for the dDocAccount field, to add javascript validation and so on, maybe this approach plus some additional JS and HTML twists and you should get it working(via component development).
Hope it helps,
Vlad
Maybe you are looking for
-
How do I add a new folder in Mail
I only have the usual inbox, drafts & deleted folders in my mail box. How do I add more folders to allow me to manage my mail?
-
I can't remember my iPhone password
Iphone is disabled, and I can't remember my password.
-
P55-GD65 takes long time in BIOS before booting
Did a search on "long boot" but nothing relevant. Sorry if this has been already covered. First MSI board after two Giga-bytes: P55-GD65 Core i5-650 2x Corsair XMS3 DDR3 (DDR1333), total 4GB ATA133 HDD SATA DVD-RW MSI R4550 graphics card Windows XP S
-
Hi We have found many MIGO entries with document date prior to purchase data and many invoice document date prior to MIGO date. Auditors have objected to it and would like to know whether SAP does not have any option to control this. Please let us kn
-
How do I enable already installed adobe flash?
My computer is equipped with adobe flash, but I am directed to download adobe when I try to play games; such as zynga poker. How can I enable the program?