How to validate the input field data in VC using RFC FM
HI,
Could any body please give me the solution for the following issue?
When ever I enter a value in the input field of an iView, this value has to be validated from the backend BW system. Is this validation is possible using RFC function module?
If yes, please explain me.
Hi Deepak,
U can validate input fields using javascript.Write OnClientClick function for that submit button if ur using htmlb or onClick if u r using html.Refer the follows
http://help.sap.com/saphelp_nw70/helpdata/en/03/900e41a346ef6fe10000000a1550b0/frameset.htm
There are two ways to achieve ur task.
1.By checking for all alphabets.in this u need check all the alphabetic characters one by one.Refer the following
http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=ROLLA
http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
2.By using regular expressions.its very easy and a single line code.here u need to specify single expression for whole alphabets.Refer this
http://aspzone.com/blogs/john/articles/173.aspx
Regards,
Naren
Similar Messages
-
How to validate the input field
Hi,
I have a input form which is draged from input port of a RFC.
in this input form i have two input fields nad submit button.
on of this input field should always take the character values only. it should not take any numeric value
and other input field should always take numeric value only.
i.e how to validate this two input fields.
regards
srinivasHi,
U can validate input fields using javascript.Write OnClientClick function for that submit button if ur using htmlb or onClick if u r using html.Refer the follows
http://help.sap.com/saphelp_nw70/helpdata/en/03/900e41a346ef6fe10000000a1550b0/frameset.htm
There are two ways to achieve ur task.
1.By checking for all alphabets.in this u need check all the alphabetic characters one by one.Refer the following
http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=ROLLA
http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
2.By using regular expressions.its very easy and a single line code.here u need to specify single expression for whole alphabets.Refer this
http://aspzone.com/blogs/john/articles/173.aspx
Everything has been given for validating in javascript.i hope u also validating in javascript only.
For more details on "Regular expressions" search google.
Regards,
Tamil K -
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks -
How to validate the mandatory fields in the view in WDA?
Dear experts,
Iam new to WDA. i just want to know how to validate the mandatory fields in the view in WDA?please refer any documents for validating the mandatory fields.
Regards,
murthy.
Edited by: Murthy Ganti on Jul 13, 2009 2:31 PMHi,
Firstly goto view->select the element that you want to make mandatory and set the State property to required.
Secondly place the below code in the WDDOBEFOREACTION
DATA: l_view_controller TYPE REF TO if_wd_view_controller.
* Get view controller
l_view_controller = wd_this->wd_get_api( ).
* Check for mandatory attribute
cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
EXPORTING view_controller = l_view_controller
display_messages = abap_true
Regards,
Radhika. -
How to find the structure fields data in database tables?
how to find the structure fields data in database tables?
Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related. There are several other more general ABAP related forums.
-
Hello everybody,
I am designing a general purpose block in system generator. I pass the user parameters to the block through masking it. Some user parameters can change the block configuration. The input port data type, width and rate can also affect the block configuration.
The problem is that these values (input port data type, width and rate) are subject to change. So I should read them dynamically, then change the block configuration through programming the "Initialization Commands" field. But unfortunately there is no straight way to read the input port information.
There are some methods in for example the "Black Box". these are:
input_width = this_block.port('din').width;
input_rate = this_block.port('din').rate;
But these methods are not applicable to a masked subsystem.
I have tried other ways also. You can find them below. None of them worked.
Does anybody know how can I solve this problem?
Other ways I tried:
1)
design_name([],[],[],'compile')
q=get_param(gcb,'PortHandles');
get_param(q.Inport,'CompiledPortDataType')
get_param(q.Inport,'CompiledPortWidth')
get_param(q.Inport,'CompiledPortDimensions')
design_name([],[],[],'term')
2)
ssGetInputPortDataType
3)
ts = Simulink.Block.getSampleTimes([gcb '/Input'])
Today we rely on Simulink to perform parameterization of your designs in two ways:
Parameterizable Subsystems and Blocks : Parameters themselves can be MATLAB expressions that need to be evaluated for which we need the MATLAB interpreter
The very useful Rate and Type propagation or Simulink compilation that allows us to specify types & rates in one location that gets systematically propagated to all.
To truly make the HDL Netlist that is generated from SysGen parameterizable, we would have to implement some of this capability in the HDL netlist itself by:
Using Generics(VHDL) or Parameters(Verilog) - We would have to capture the bit width(type) propagation through levels of hierarchies and finally parameterize the IP itself based on this value
Since IP itself does not have this capability through generics, we would have to package a separate tcl script that updates the IP parameterization appropriately in response to top level parameters(or GUI parameters)
Interpreting MATLAB expressions and translating them into VHDL/Verilog expressions (alternatively tcl expressions of IP). In simulink, mask parameters can be passed from one level to the next. Also parameterization of a block can be composed of Matlab expressions using variables from ancestor masks & the MATLAB interpreter – so we will need to somehow capture that as well.
-
How to keep the input field from PDF Form to RTF
Hi,
I'm looking to keep the input fields from my pdf form document to Rtf so I can use them in my Rtf document.
Regards,
AlanGood day Alan,
I'm afraid that's not possible as form fields in a PDF file have no equivalent either in a Word format (.docx/.doc) or within the Rich Text Format (.rtf). That data is simply stripped during the conversion as there's no equivalent available.
Kind regards,
David
Acrobat Community Manager
Adobe Systems -
How to Validate the Text Field in JSF
Hi,
I am facing a issue to validate the text field where the below code accepts (space' ',underscore'_',pipe'|') symbol as a first character and last character.Where by it can accept in the middle.
It should not accept special characters also. Below code is working properly for special characters.
<tr>
<td width="30%" align="right"><b><h:outputText id="aAccrualType" value="Accrual Type" /> </b> <span style="color:red">*</span></td>
<td width="50%">: <h:inputText id="accrualType" value="#{accrualTypeMast.accrualType}" required="true" >
<t:validateRegExpr pattern="^[(a-z)||(A-Z)||(0-9)||(_)||(\s)||(/)]+$" />
<f:validateLength minimum="1" maximum="50"/>
</h:inputText>
<h:message for="accrualType" showDetail="true" style="color:red" />
</td>
</tr>
The thing is i dont have much knowledge in regular expression.
Is there any other way to do this.
Could anyone help me in this.
Thanks,
Ambika☺This has nothing to do with JSF.
I suggest you to read the Pattern API documentation [1]. You can easily create a small Java Application and test the regexp using String#matches() as it uses the same regexp guidelines.
public static void main(String[] args) {
String regexp = "^[a-z]+$";
String value = "foo";
boolean match = value.matches(regexp);
System.out.println(value + " matches " + regexp + ": " + match);
}[1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html -
How to change the input field's color in SE51
Hi:
I need to change the color of input fields in module pool.
I tried to modify its screen-color but it did not work.
Need your suggestion.
Regards
Shashihi,
Check this similar thread
Regarding the input field color
thanks -
How to make the input field of an uplaod button to readonly
Hi all,
I have to upload an excel file using upload button.But the problem here is i want the user to use only browse button to upload a file..but he should not enter mannulally in the input field.Is it possible to gray out the input filed but the browse button should be in active state.
Regards
Padma NHi,
I dont think you can make the readonly only for the inputfield which is part of the FileUpload UI.
I guess your issue is related with user entering invalid urls and system hangs.
Regards
Ayyapparaj -
How to read the input field value into ABAP variable?
Hi All,
i need a read the value of an input field into an ABAP variable,and i am doing this in the following way
lstring = request->get_form_field('myFlag').
here 'myFlag' is the input field name,but this is not returning me any value into lstring.
I have gone through the SDN and tried to do this.
could you please help me out to resolve this issue.
Thanks in Advance,
PraveenaDear Praveena
In which event are you putting this code. Place it in oninputprocessing event(Page with flow logic Model of coding). Then it will surely work.
Regards
Vijay.M -
How to validate the input parameters in Oracle BI Publisher reports
Hi
i am new to Oracle BI Publisher
I am using OBI for generating simple reports.
here i need validation for input parameters (Date Parameter) and also want to disable the Date filed so that user can select through the calendar component.
Here validation in the sense, the system must validate the date and alert the user with an appropriate message
Can anyone please provide me the solution in detail.
Thanks in advance
Edited by: user10185520 on Aug 26, 2008 6:15 AMI have the same task to validate input parameters with Oracle BI Publisher 5.6.3 running under Oracle eBS 10.5.10.2. My validation goes beyond of what I can do during parameter registration. I am using Data Templates.
My first logical place was the before report trigger. So, I built a report trigger which returns 'false' in case the parameters are not proper. Guess what... XMLP just returns a hard-coded message
!!Error : trigger '" + datatrigger.getName() + "' returns status as 'false'
First of all, this is a bad style to hardcode messages visible by the user (especially during French implementation). Second of all, it is not informative at all. It would be nice to change oracle.apps.xdo.dataengine.XMLPGEN.executeTrigger() to read, for example, a message from the message stack when the trigger returns 'false' and let the user read it.
Anyway, what I did was I built a special data group, decalred before any other data group, query like
select my_package.my_validation fro dual
If parameters fail the validation my PL/SQL package throws an application exception with a message. At least, in this case the error message gets available as the description of the concurrent request.
I wish the before report trigger worked!!! -
How to calcaulate the text field data
hi frnds need help,
how to find difference bet time if i taking the data from texts fields data i.e long text
i called the FM & passed the parameters
of text data but iam gettin answer as zero
i hope ur gettin my pointHi
You have to use READ_TEXT fun Module to fetch the Long text data by passing the correct paramters like OBJECT,ID,OBJECTNAME and LANGuage fields
see the doc
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
<b>Reward points for useful Answers</b>
Regards
Anji -
How to validate user input field?
I need to validate a user input field against a table. This field is not part of an EO but is used to update an attribute on an existing EO.
My question is, where would I place the sql that would validate the user input value against the table?
Is there an easy way to do this?
I'm at a roadblock and really need some help. Thank you.You can execute a sql query or a function from <your>AMImpl.java, using normal jdbc.
but I would recommend this, it is easier and cleaner approach
1. Create a VO (<your>VO) with the sql statement
Select client
from client_table
where resp_id = :1
and client= :2
2. Add this vo to the am
3. In AMImpl, get handle to the VO (this.get<your>VO1)
4. Bind params
this.get<your>VO1().setWhereClauseParams(0,current_resp );
this.get<your>VO1().setWhereClauseParams(1,user_input_value);
5. Execute the query
this.get<your>VO1().executeQuery();
6. Get the row after the query is executed
oracle.jbo.Row <your>Row = this.get<your>VO1().first();
7. Get the value of the attribute from the row
l_client = <your>Row.getAttribute("Client") ;
8. So now you have what you wanted to do with the sql.
Thanks
Tapash -
when I click on search button, I get the search result, but along with those results, I see some input fields automatically assigned the values in the search input, which should not be.
values are assigned to these fields because of controller context field values, once the values are populated these values are assigned everywhere where istle feild referring to.
How to keep the user input without changes?
Thanks!Naveen,
You set contradictory requirements: on one hand you have mapping, where values are always synchronized; on other hand you whant them to be unique.
Just break your existing mappings.
1. Create separate attributes in view context(s) if you do not need to access them in component controller or you do not need to be synchronized between views.
2. Create unique set of attributes in component controller for combination of attributes that really must be synchronized. Then map view context attributes accordingly.
VS
Maybe you are looking for
-
Offline Address Book and GAL corrupted.
I have and Exchange 2013 cluster with 3 servers all performing both CAS and MB roles. This environment was originally a 2003 server, then 2007, then 2010, and now 2013 so it has been migrated many times in the past. It seems at some point something w
-
Payment terms- Any suggestions?
Hi, I have a strange requirement and have no idea how to go about it.The company wants to collect receivables for all the sales recorded from Monday thru Friday on Tuesday from some of the customers and on Thursday from some of the customers. The cus
-
About confirmation of the rights to use the apple product photos on your website.
I would like to use apple product photos published on your website when I renew my website for new business strategy. Usually we have to recieve prior approval from copyright holder before action or publishing on the web in Korea. I love apple & prod
-
How to install oo4o in windows terminal server
does oo4o support windows terminal server 4, my computer is intel pentium 4 with 512 MB ram, but when i try to install oo4o ver 9, with client oracle 8, the windows can't appear. any one can help thanks
-
Need very large and quiet external drive for my mac mini
Hi, I already own a LaCie Bigger Disk Extreme 1TB triple interface drive. the problem though is that it is extremely loud. can anyone recommend an external hard drive as large or at least a 500 GB drive that's reliable and more importantly quiet. tha