Filtering of values from a specific field
Hi Everybody
We have a requirement where a column called "Role" will have a both numberic and character values in it.
Ex: 01 , 02 , .99 , .98 , 101 , PRM , PRS , EOS , PMS etc.
Now the user doesnt want any of these numeric values to appear in prompts where user wants to select the values while running it in a dashboard.
How can i restrict numeric values appearing for the user , so that they can only be able to see these characters instead of numeric values?
Please help me on this as this is a bit critical requirement for us to deliver.
Thanks a lot for your time on this in advance.
Regds
Mano
Hi Mano,
Within the dashboard prompt, set the SQL statement to be something like the following...
SELECT *<your role column>* FROM *<your subject area>*
WHERE *<your role column>* BETWEEN 'A' and 'Z'
JB
Similar Messages
-
How to move the value from a character field to numeric or packed decimal
Hi,
can anyone explain me on how to move the value from a character field to numeric or packed decimal.
Please help me on this. Thanks...
Regards,
Rose.Hi ,
if you use keyword MOVE u may loose the decimal and thoussan separator and if u don't want to loose them just call the FM ..HRCM_STRING_AMOUNT_CONVERT.
i doubt wherther it is HRCM or HCRM just try using *
this will suit ur requirement.
Regards,
KK -
Hi All,
I am a newbie to ABAP Webdynpro.I would liketo know how should I get the value from an input field at runtime?
Thanks,MuktaBy reading the context attribute which bound to inputfield, you can get the value.
Say you have a node called 'MAIN_NODE' and has the attribute 'INPUT_VALUE', which is bound to the Inputfield.
DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
* navigate from <CONTEXT> to <MAIN_NODE> via lead selection
LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
* get element via lead selection
LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT( ).
* get single attribute
LO_EL_MAIN_NODE->GET_ATTRIBUTE(
EXPORTING
NAME = `INPUT_VALUE`
IMPORTING
VALUE = LV_INP_VALUE ). "LV_INP_VALUE will have the value of inputfield
Raja T
Message was edited by:
Raja Thangamani -
Capture value from the input field
Hello All,
I'm new to BSP.
I have a small querry.
I have a input field.
beside this a push button.
if i enter a value in the input field and press the push button, i need to capture the value from the input field and pass it to a variable contained in a class.
i'm attaching the layout code here.
but i'm not knowing what to write in the event(on input processing)
<u><b>Layout code </b></u>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title = "Page to take the value from the screen and pass to the class "
marginBottom = "100"
marginLeft = "250"
marginRight = "100"
marginTop = "100"
scrolling = " AUTO" >
<htmlb:form>
<htmlb:tray id = "tray1"
hasMargin = "TRUE"
title = "Value Capture"
width = "350" >
<htmlb:textView text = "Enter a value"
design = "emphasized"
textColor = "negative" >
</htmlb:textView>
<br>
<htmlb:inputField alignment = "left"
id = "gv_var"
required = "true"
type = "STRING"
design = "standard" />
<htmlb:button design = "emphasized"
id = "button"
text = "SUBMIT"
onClick = "btn_click" />
</br>
</htmlb:tray>
</htmlb:form>
</htmlb:page>
</htmlb:content>
eventhandleron input processing code
DATA: event TYPE REF TO if_htmlb_data.
event = CL_HTMLB_MANAGER=>get_event_ex( request ).
IF event->EVENT_NAME = 'button' AND event->EVENT_TYPE = 'click'.
ENDIF.HI BSPian,
htmlb:inputField value = "<%= v_value %>"
id = "gv_var"
required = "true"
size = "10"
type = "STRING"
maxlength = "10"
design = "standard" />
Here u mean to say that v_value must be one more field type string. is it so ?
But i want to see the value in the same input field
id ="gv_var". i.e if i enter the value "BSPian" in the input field and press "submit" the internal processing will be done as told by u and after that ,on the screen i want to keep that value till i end that session.
i passed a variable v_value in the inputfield value but it's not working ..
regards,
deepu. -
BTM - Mapping Values to a Specific field in an OLifeExtension
Hope I am explaining this correctly...
Mapping a new field value from a source schema to target, which is XMLife. Our OlifEExtensions have not been added to the ACORD schema but the new field that I am mapping to has been defined as Party\OLifEExtension\Field A.
The current mapping logic is a BMP map, but all mapping is done with field to field direct mapping.
In my case, I am adding mapping to an existing map, but there is no actual Destination to map to, other than OLifeExtension.
Can I add destination location ie. Party\OLifEExtension\Field A in a Scripting Functoid. Is this do-able? Can I get the syntax? Inline C# or XSLT.
Any other ideas on how to map to a specific destination? Thank you!
Technically with inline XSLT you
can construct/add a field (which you don’t want to add to the schema). But the outputted XML (which you could create, after the map) would not be validated to the existing schema, as the existing schema doesn’t define the extra filed which
you added through the Inline-XSLT.
If the outputted message is not validated in any of your process like by using XMLTranmit or in orchestration. You can add the field in the map using Inline XSLT. Technically its possible but its not
the right way, you use scheme to define the structure of the XML/message. But you want to create a message which is not defined by the Schema.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful. -
How to delete values from extension collection field through importer?
Hi Experts,
We have created one extension collection field in Master Agreement.
We are able to add values to that collection field using Extension collection template CSV file through importer.
Now we have a requirement to delete values from the Extension collection field through importer using CSV file.
If anyone have template or idea please share with us.
Thanks in advance!!
Regards,
Lava.Hi Agrawal,
Thanks for you helpful information.
Regards,
Lava. -
How to get Numric value from a Char field in the database?
I have the following values in a column in Database.
COMP
GRADE
CANC
CANCELLED
Comp
Complete
INCOMP
NC
NS
85%
79
88 .... etc....
I have to take the value from this field if it is a Numeric other wise I have to ignore that value.
Please let me know how to handle this?
Thanks,
LakshmiThanks for the inputs.
Here I want to take the value if it is numeric else I
will ignore that record.
Please let me know how to validate the data for a
Numeric value.
I don't want to stop my program by throwing these
exceptions.The sample code catches the exception. At that point you can do whatever you want (set a boolean to say the value is not a number, etc.) - the program does not stop. -
How to fetch old and new value from of a field(non-key) from LOGDATA
Hello SDNers,
i m fecthing LOgdata from dbtlog table[in our case the log is not getting Updated in CDHDR and CDPOS table]
i m using the same logic as it is used in RSVTPROT
but the problem is
" IT is fetching OLD and NEW VALUE after Update from same field LOGDATA of dbtlog table BUT when i used same logic it is FEtching only OLD VALUEs,
CAN U GUYS PLS TELL ME HOW TO FECTH OLD VALUE and NEW VALUE of a PArticular field(non-key field, fecthing key field is not an issue) From LOGDATA field of DBTLOG.
thx a lot in advance
Regards
KuldeepHi,
May be this link is useful to you.
a® -
How to get values from dynamically populated field symbol
Hi all,
I am having a field symbol <fs_table> type standard table, which is getting populated dynamically.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_fieldcat[]
IMPORTING
ep_table = is_eptab.
ASSIGN is_eptab->* TO <fs_table> .
After the ALV display i am making some changes in the ALV and getting a new internal table <fst_table>,which is having changed values.
Now the problem is that i am not able to get the changed values from <fst_table> as it is not of any structure type and cant associate it with any field like we do in normal internal table and work areas like, wa-fieldname.
All the fields are dynamic.
Regards,
AnantHello Anant
You have to access to access the fields of your dynamic outtab dynamically as well.
DATA: ls_fcat TYPE lvc_s_fcat.
FIELD-SYMBOLS:
<ls_struc> TYPE any,
<ld_fld> TYPE any.
LOOP AT <fs_table> ASSIGNING <ls_struc>.
LOOP AT i_fieldcat INTO ls_fcat.
ASSIGN COMPONENT ls_fcat-fieldname OF STRUCTURE <ls_struc> TO <ld_fld>.
... " do processing
ENDLOOP.
ENDLOOP.
Regards
Uwe -
Call http service extract value from person/group field
Hi
I have a list that has people or group field.
When Runing my WF I want to get in to a variable the members of the group that is in people or group field.
I would like to extract members from group using call http action.
How can i start?
which URL should i put in "Enter the HTTP service URL"?
pleas your help.Hi,
You can use the following URL to extract the members from group
http://siteurl/_api/Web/SiteGroups/getbyname('groupname')/users
You can create a workflow variable and extract the value from the people or group field
Build the URL using as follows
[%Workflow Context:Current Site URL%]/_api/Web/SiteGroups/getbyname([%Variable: GroupName%])/Users
For more information how to use the Web Service in workflow use the following article.
http://blogs.msdn.com/b/sharepointdesigner/archive/2012/09/05/how-to-work-with-web-service-using-call-http-web-service-action.aspx
Please don't forget to mark it answered, if your problem resolved or helpful. -
JCo getting truncated value from SAP when field data type is RAW
We are trying to fetch data from a SAP-AII table by using JCo using the RFC RFC_READ_TABLE.
We are getting incomplete data when the data type of the column is RAW in a particular table.A typical case is:
Table Name: /AIN/DM_DEVCTR
Field : CLIENT Type: CLNT Length:3 Value: 100 (SAP Generated)
Field: DEVCTR_GUID Type:RAW Length:16 Value: 306F50F53805ED488DE9797AC86B5728 (SAP Generated)
Filed: DEVCTR_ID Type:CHAR Length:128 Value: KDEVICECONTROLLER (User input)
For the fields CLIENT and DEVCTR_ID we get the entire value (including blank spaces) but for DEVCTR_GUID we get only 16 characters whereas SAP-AII stores a value that is 32 characters in length. How do we fetch the actual value instead of the truncated value?
Sample code is attached.
try {
mConnection = JCO.createClient("100", // SAP client
"User", // userid
"Password", // password
"EN", // language
"SAP", // host name
"00"); // system number
mConnection.connect();
if (mConnection == null) {
System.out.println("Connection to SAP Server failed.");
mRepository = new JCO.Repository("User", mConnection);
ftemplate = mRepository.getFunctionTemplate("RFC_READ_TABLE");
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
JCO.Function function = ftemplate.getFunction();
JCO.ParameterList importParamList = function.getImportParameterList();
importParamList.setValue("/AIN/DM_DEVCTR", "QUERY_TABLE");
importParamList.setValue(";", "DELIMITER");
JCO.Table tableData = function.getTableParameterList().getTable("DATA");
JCO.Table fields = function.getTableParameterList().getTable("FIELDS");
mConnection.execute(function);
if (tableData.getNumRows() > 0) {
do {
for (JCO.FieldIterator e = tableData.fields(); e
.hasMoreElements();) {
JCO.Field field = e.nextField();
String str = field.getString();
String[] values = str.split(";");
for(int i = 0; i < values.length; i++){
System.out.println(values<i>);
} while (tableData.nextRow());
} else {
System.out.println("No results found");
mConnection.disconnect();Hi Kaanu,
You have to modify your java code.
String val = new String( field.getByteArray());
PS: Please reward points for helpful answer or problem resolved. -
How to get the values from the input field of a table
Hello Friends
I am having table having one column as InputField and rest are the textview fields
I input the data and click the button that will add them to a node.
But what is happening is it is adding the current value to all the fields replacing other filelds.
Like suppose I am having 3 rows
In column I input 10
In column 2 input 20
In column 3 input 30
Now it is setting the value 30 to all the 3 fields.
Can any one tell me the code to set 10, 20 and 30 as different value in a node as entered by me.
ThanksHi
i am your scernario as follows
Context
TN_node (value node of cardinality 0:N)
val1 (value attribute under value node)
val2 (value attribute under value node)
i have binded Tn_node to table and val1 is textview and val2 is inputfield
public void wdDoInit()
//@@begin wdDoInit()
for(int i=0;i<5;i++)
IPrivateTestView.ITN_nodeElement ele=wdContext.nodeTN_node().createTN_nodeElement();
wdContext.nodeTN_node().addElement(ele);
ele.setVa1("val"+i);
//@@end
i have a button go in which printing all the values
public void onActionGo(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionGo(ServerEvent)
for(int j=0;j<wdContext.nodeTN_node().size();j++)
//IPrivateTestView.ITN_nodeElement
IPrivateTestView.ITN_nodeElement ele=wdContext.nodeTN_node().getTN_nodeElementAt(j);
wdComponentAPI.getMessageManager().reportSuccess("-----"+ele.getVa1());
wdComponentAPI.getMessageManager().reportSuccess("-----"+ele.getVa2());
Hope this helps,
If your problem is not solved please post your code like this
Thanks and Regards,
Arun -
Searching for values in a specific field using REST Search
To conduct a Search using REST...you only have the querytext parameter which searches all fields. How can I search within a specific field using REST?
BrianYou can use the following code as an example to post a query. The example shows how to search against the title managed property. It also shows you how to bring back certain properties for viewing and refiners. You can also do the same with a GET.
function executeRESTSearch() {
var appweburl = _spPageContextInfo.webAbsoluteUrl;
$.ajax(
'url': appweburl + "/_api/search/postquery",
'method': 'POST',
'data': JSON.stringify({
'request': {
'__metadata': {
'type': 'Microsoft.Office.Server.Search.REST.SearchRequest'
'Querytext': 'title:whatever',
'Refiners': 'title,created',
'SelectProperties': { 'results': ['created','path'] },
'SortList': {
'results': [{
'__metadata': {
'type': 'Microsoft.SharePoint.Client.Search.Query.Sort'
'Direction': 1,
'Property': 'created'
'headers': {
'accept': 'application/json;odata=verbose',
'content-type': 'application/json;odata=verbose',
'X-RequestDigest': $('#__REQUESTDIGEST').val()
'success': function (data) {
var d = data.d.postquery.PrimaryQueryResult.RefinementResults.Refiners.results[0].Entries.results[0].RefinementValue;
'error': function (err) {
alert(JSON.stringify(err));
http://msdn.microsoft.com/en-us/library/office/jj163876(v=office.15).aspx
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
Need help to get the user entered value from a input field in Table in OA
I have a table in my OA page.
Here one column is there which should take in put from user.
i.e an item quantity field text input is there which should take the updated value when the add to cart link which is next column in the table. On clicking of the link I am trying to get the updated value entered by user. for the respected row for which addto cart link get clicked.
For that link I have defined some parameter through SPEL,( like this parameter name: item_quantity value : ${oa.MisibeItemSearchVO.ItemQuantity} ) which has fireaction. But when i am clicking the addto cart link I am not getting the current value entered by the user.
Can any body guide me how to get that related value for which the add to cart link got clicked.
for this when i am doing pageContext.getParameter("item_quantity"));
I am not getting the value entered by user.
please suggest me
Thanks!
SmarajeetThe below is my Vo query for item quanity i am using a dummy query "(select null from dual) as ITEM_QUANTITY"
in the below query and item type is number. and this is a messageTextINput in OA page and is maped to ItemQuantity vo attribute.
SELECT idsi.section_item_id
,idsi.inventory_item_id
,(select concatenated_segments from mtl_system_items_kfv mstk
where mstk.inventory_item_id = idsi.inventory_item_id
and mstk.organization_id =idsi.organization_id) ITEM_NAME
,(select description from mtl_system_items_tl mtll
where mtll.inventory_item_id = idsi.inventory_item_id
and mtll.organization_id =idsi.organization_id
and language = USERENV('LANG') ) ITEM_Description
,(SELECT CASE
WHEN instr(msib.segment6,'NAMED USER') > 0 THEN 'NAMED_USER'
WHEN instr(msib.segment6,'PROCESSOR')>0 THEN 'PROCESSOR'
ELSE msib.segment6
END
FROM MTL_SYSTEM_ITEMS_B msib
WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
AND msib.ORGANIZATION_ID = idsi.organization_id) LICENSE_TYPE
,(SELECT CASE
WHEN instr(msib.segment6,'1 YR') > 0 THEN '1YR'
WHEN instr(msib.segment6,'2 YR') > 0 THEN '2YR'
WHEN instr(msib.segment6,'3 YR') > 0 THEN '3YR'
WHEN instr(msib.segment6,'4 YR') > 0 THEN '4YR'
WHEN instr(msib.segment6,'5 YR') > 0 THEN '5YR'
WHEN instr(msib.DESCRIPTION,'Perpetual') > 0 THEN 'PERPETUAL'
END TERM FROM MTL_SYSTEM_ITEMS_B msib
WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
AND msib.ORGANIZATION_ID = idsi.organization_id) TERM
,(select qll.operand
FROM qp_list_lines qll
,qp_pricing_attributes qpa
WHERE qll.list_line_id = qpa.list_line_id
AND qpa.product_attr_value = to_char(idsi.inventory_item_id)
AND qll.list_header_id = 439381
AND sysdate between NVL(qll.start_date_active, sysdate) and NVL(qll.end_date_active, sysdate+1)
AND qpa.list_header_id = qll.list_header_id
AND qpa.product_attribute = 'PRICING_ATTRIBUTE1'
AND qpa.product_attribute_context = 'ITEM'
AND NVL(qpa.pricing_attribute_context,'MIXED') = 'MIXED') ITEM_PRICE
,(select null from dual) as ITEM_QUANTITY
,(select currency_code from qp_list_headers_b where list_header_id =439381) currency_code
,(select segment1 from mtl_system_items_b msib
where msib.inventory_item_id = idsi.inventory_item_id
and msib.organization_id =idsi.organization_id) PART_NUMBER
FROM ibe_dsp_section_items idsi
,ibe_dsp_msite_sct_items idmsi
,( select distinct child_section_id
from IBE_DSP_MSITE_SCT_SECTS b
connect by PRIOR child_section_id = parent_section_id
start with parent_section_id =:1
and mini_site_id =1
UNION
select distinct child_section_id
from IBE_DSP_MSITE_SCT_SECTS b
where child_section_id =:1
and mini_site_id =1
) csi
WHERE idsi.organization_id = 101
AND idmsi.section_item_id = idsi.section_item_id
AND idsi.section_id = csi.child_section_id
AND idmsi.mini_site_id = 14409 -
Read currency values from the BDCDATA field FVAL
HI All,
I have a requirement where i need to read the value of some currency from the field FVAL of BDCDATA into a currency variable.
simple assignment using = is not working because the FVAL value may contain , or . in between depending upon the user parameters.
ex: FVAL = 100,000.00 in US
and FVAL = 100.000,00 in Europe.
Is there any way we can handle this situation?
Thanks,
Prakash Pandeyyes sorry
DATA vl_dcpfm TYPE usr01-dcpfm.
DATA vl_decimal_separator TYPE char01.
DATA vl_thousands_separator TYPE char01.
SELECT SINGLE dcpfm FROM usr01 INTO vl_dcpfm WHERE bname = sy-uname.
CASE vl_dcpfm.
WHEN space.
* FRANCE 1 ...
vl_thousands_separator = '.'.
vl_decimal_separator = ','.
WHEN 'X'.
* USA ...
vl_thousands_separator = ','.
vl_decimal_separator = '.'.
WHEN 'Y'.
* FRANCE 2 ...
vl_thousands_separator = space.
vl_decimal_separator = ','.
ENDCASE.
Maybe there were new codes added recently, I don't know
Maybe you are looking for
-
Crippled software or malfunctioning hardware...ipod mystery still unsolved
My last post was removed so here is the recap: I have a 15gb "older" ipod that since the latest round of software updates no longer mounts or is recognized by my mac (or anyone elses for that matter). In trying to determine whether the problem is har
-
Full Screen viewing of images in Bridge CS3
I have Bridge CS3 on my macbook pro that I generally use when I'm on the road. Up until last week, I would use the space bar to view images in full screen mode. Now, mysteriously, pressing the space bar does nothing and I can't for the life of me f
-
Can metadata like keywords captions etc be saved in 5.04
I dont think i photo allows this. (an old toad question) so if i go to work with iphoto and type in 8000 keywords and other meta data like commonalities amongst photos after i save my iphoto information to photo library or whatever this data is not b
-
Oracle Composer pageCustomizable with jsff
We are working on Oracle Composer Resource catalog feature. We were able to integrate Resource Catalog into the ADF using Oracle Composer in a jspx page. We are using oracle composers pageCustomizable component in a jspx page as mentioned in the belo
-
when i conect my ipod to my computer is dont downlowd nothing and said thes USB DEVICE NOT RECOGNIZED ipod nonu Windows XP