Limit Field input to "1", "2" or "3"
Thanks in advance for any help,
I have a form that is performing calculations and I need the input fields to be limited to the numbers "1", "2" and "3". I currently have Number formatted to "0" decimal places and the validate range set from 1 to 3. This will Change an entry such as "1.2" to "1" but when this number is calculated as an average, the "1.2" is acutally being calculated.
I need a way to keep anyone from inputing ANYTHING other than 1,2, or 3.
Thanks again!
You can do it with a text field, but it's more cumbersome. You can use this as the custom validation script for the field:
event.rc = event.value=="" || event.value=="1" || event.value=="2" || event.value=="3";
if (!event.rc) app.alert("Invalid value!");
Similar Messages
-
Possible to rate limit console input?
I built a tool that allows us to input device information such as IP, VLAN, etc, etc and this tool builds the entire config file that can be pasted into a switch/router. The problem is that when I start getting down near the banner and motd sections, the console cannot keep up with the input and it drops lines of input.
Is there a way to rate limit the input when large configs are pasted into con 0?I built a tool that allows us to input device information such as IP, VLAN, etc, etc and this tool builds the entire config file that can be pasted into a switch/router. The problem is that when I start getting down near the banner and motd sections, the console cannot keep up with the input and it drops lines of input.
Is there a way to rate limit the input when large configs are pasted into con 0? -
How to make 'Overall Limit' field as display only in ME22/ME22N
Hi,
I want to make the 'Overall Limit' field as display only in transation ME22/ME22N (only for Service Items).
I can make the field display only for ALL Service Items by going to:
SPRO u2013 IMG - Material Management - External Services Management - Define Screen Layout
and making the 'Overall Limit' display only for PT1 (Blanket Items). But this also stops any entry into this field even for creation of Purchase Orders! When I try the same thing for ME22 (Change Purchase Order) it does not work.Hi
You can make it greyed out like this:
Go to materials management -> external service management -> define screen layout -> copy field selection key ME22 -> enter new key as ME22N -> choose category of field selection to 2 -> click on value limit -> make overall limit as display.
Then for Tcode ME22N, this field will be greyed out.
Thanks -
Grey out 'Overall Limit' field in ME23N/ME23
In ME23N (ME23), the 'Overall Limit' value of (Limit) Purchase Orders within the Limit tab can be amended even though the Purchase Order has been created and released. Once the Purchase Order has been released the 'Overall Limit' value needs to be locked unless the Purchase Order has been un-released.
Can someone tell me how this can be done?
JohnHi John,
please check also the note 672719 question 2 related to this issue. The system behavies the same in case of PO's. Unfortunately the field selection settings in transaction ML90 do not have an effect on this behaviour.
Additional information:
If you are working with the release (approval) procedure for purchasing
documents, the expected value serves as the basis for a release strategy applied
to this document, not the overall limit field.
Best regards,
Edit -
User Exit for validating overall limit field and expected limit field-ME2xN
Dear Gurus,
Can you please suggest me any user exit or BAdi to validate the overall limit field and expected limit field in transaction ME2xN.
Or any other way to to achieve this functionality in ME2xN.
Our Requirement is while raising a service PO in the Limits tab the 'Overall limit' should be same as 'Expected Value', at present the user can enter overall limit greater than 'Expected Value'.
Regards,
Priyank Joshithis will not work. you cannot add another structure (AUFK) on top of CEBAN. all characteristics have to be of one structure and since you want to release a PR it has to be CEBAN. before attempting to program something around that why do you not go to tx. OLME -> PR -> Release Strategy -> With Classfication -> Release Strategie and run it in a simulation mode. you will then see how it reacts.
there's a white-paper on service.sap.com explaning in detail release-strategies. it's a good one and a good read too! -
Day Limit Field in the Terms Of payment
hi,
may i know how to use the day limit field in the terms of payment maintenance with some real live examples?Hi Raja,
The concept of day limit is to divide the Terms of Payment (TOP) in to different intervals
I will give you an example of that
As you know you mantain TOP in the customer master data
Suppose for the same customer you want the baseline date will be different in different time interval of the month
1) Invoices which are raised in the first 15 days of the month you want to have the baseline date as 15th of the next month
2) Invoices which are generated in the last 15 days of the month for the same customer you want the baseline date should be the 30th of the next month
So in this way you can have different baseline dates for a customer for the same TOP
Regards
Pratiksha
Please assign pouints if helpful -
How to inactive "Credit Limit" field under "Payment Term" tab of BP Master
Hi,
Can anyone tell how to inactive "Credit Limit" field under "Payment Term" tab of BP Master Data in BP module? I'd prefer to revise SAP SP (store procedure)...
Thanks in advanceHi Michelle,
You could use the sample codes available while installing the SDK setup.
like in this path C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET
Add this code under SBO_Application_ItemEvent which will disable the field.
If (pVal.FormType = 134 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.Before_Action = False) Then
Dim oforms As SAPbouiCOM.Form
Dim oitems As SAPbouiCOM.Item
oforms = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
oitems = oforms.Items.Item("85")
oitems.Enabled = False
End If
Note that the above is only a sample code and you have to track other events as well to disable this field like in add mode, browsing records
If you need help with SDK, post it in SDK forum.
Regards,
Vijay kumar
SAP Business One Forums Team -
I/O field (input field) xyz has no accessible label ?
I have a selection screen which has several radio buttons as the code below. I checked code by using code inspector and it issued error messages "I/O field (input field) xyz has no accessible label". How do I fix this? thanks
SELECTION-SCREEN BEGIN OF BLOCK status
WITH FRAME
TITLE text-006.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS dy_ofn LIKE rihea-dy_ofn FOR TABLE diaufk.
SELECTION-SCREEN COMMENT 3(11) text-001 FOR FIELD dy_ofn.
PARAMETERS dy_iar LIKE rihea-dy_iar FOR TABLE diaufk.
SELECTION-SCREEN COMMENT 16(10) text-002 FOR FIELD dy_iar.
PARAMETERS dy_mab LIKE rihea-dy_mab FOR TABLE diaufk.
SELECTION-SCREEN COMMENT 29(10) text-003 FOR FIELD dy_mab.
PARAMETERS dy_his LIKE rihea-dy_his FOR TABLE diaufk.
SELECTION-SCREEN COMMENT 42(10) text-004 FOR FIELD dy_his.
SELECTION-SCREEN COMMENT 52(10) text-005 FOR FIELD selschem.
PARAMETERS selschem LIKE tj48t-selid FOR TABLE diaufk.
SELECTION-SCREEN PUSHBUTTON 73(5) p_addr USER-COMMAND addr
FOR TABLE diaufk.
PARAMETERS dy_adrfl NO-DISPLAY FOR TABLE diaufk.
SELECTION-SCREEN COMMENT 79(30) ad_icon FOR TABLE diaufk.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK status.Hi,
If an input field is located next to a selected radio button and its label, you must show this field as being ready for input.
o If an input field is located next to a non-selected radio button and its label, you must show this field as inactive. Chapter 3.4 discusses why this is necessary.
u2022 Do not place more than one element on the right of the label. If more than one element is placed after the label, then screen readers cannot read the following relationships correctly:
o Relationship between a checkbox and a label
o Relationship between a radio button and a label
o Relationship between an input field and a label.
Also, Please go through this document:
http://www.sapdesignguild.org/resources/Accessibility_Guideline_ABAP_external_Version.pdf -
Is possible to give a 5V input to the umi 7764 connector blick for the limit switch inputs
I am using a umi7764 connector block for my 7344 controller. My motion control hardware provides me a 5V output in case the limit switches are enabled. But the umi 7764 connector block connections for the limit swithces are in such a way that it doesnt get any input, instead it has to be directly connected to the limit switches.Is there any way to come around this problem so that the limit switch inputs read the 5v given out by my motion control appplcation
If your drive has individual outputs for the forward, reverse, and home switches, then you could connect these to the their respective terminals on the UMI. You will need to either disable limit functionality on one component (controller or drive) or make sure the limit behavior for the devices does not conflict with each other. It probably is best if the controller handles the limits, but this will depend on your application.
If the drive only has one output to indicate that one of the switches has been activated, then you have fewer options. In this case, you should probably just use the limit protection on the drive and poll that single output with another input on the UMI.
Regards,
Brent R.
Applications Engineer
National Instruments -
Making field input editable after giving error msg from table event 01
Hi All,
I have a requirement of giving error msg and making that row or the particular field input editable by writing code in table event 01 i.e before saving any record in a z-table i have to chk some condition for a column value and if that condition fails then i have to give error msg and make that column input editable.
I have created a routine for event 01 and written the code to give error msg. But my problem is that column is not becoming input editable. Could you pls tell me how can i make that field editable?
Thanks in advance.Hi Piyali,
Use SET PARAMETER & GET PARAMETER ID .
You will get it.
Best Regards,
Pravin -
Prevent User from Editing the Credit Limit Field
Hi
I would like to find out if there is a way to restrict user that has full authorisation to BP Master Data from changing a specific field on the Master Data.
The scenario is that we allow an user to edit BP Master Data but would like to prevent the user from changing the credit/committment limit fields as it has financial risk and only managers can do so.
If there any way within the stand SAP authorization that can achieve this requirement?
BR,
JimmyHi Jimmy,
This would not be achievable through standard authorization. You may try SP_Transaction_Notification instead. Search within forum, there are many threads discussing this SP.
Thanks,
Gordon -
Limit when input mail address list to "TO" field in Delivery function of BI
Hi all,
I am deploying BI Publisher for my partner. I have troubled when put mail address list to "TO" field in Delivery function in BI Publisher. May be serverlet had limted it. I know that I can write a address mail list directly to DELIVERY_PARAMETERS in XMLP_SCHED_JOB which has BLOB type.
But I am thinking that, If i buy license of BI Publisher, how i can do it earsier?
Thanks all.
Please send your solution to my email: [email protected]
Edited by: user6064593 on Jul 23, 2009 1:03 AMHi vlp,
You can achive it with BAdI:CRM_ORDER_FIELDCHECK. Actually I've implemented the similar case with this BAdI. This BAdI is called many times because it always works when any field is changed. So you should restrict the timing your logic works.
Regards,
Masayuki -
Dear Experts
I have a problem on basic set up of the system.
My question is: If the maximum length of a field is 20 charcters, can I limit users to enter a maximum of 10 characters in stead of 20? If so, how to do it ? I would like the solution that could be applied to all fields that require user input
Thanks for any response
Regards
EltonHi
Use this code : I have written for the Item Name same way u can use for Card Name by changing the code little bit:
Declare @ItemName nvarchar(100)
if @object_type = '4' And (@transaction_type ='A' Or @transaction_type = 'U')
Begin
Select @ItemName = ItemName from OITM Where ItemCode = @list_of_cols_val_tab_del
if LEN(@ItemName) > 10
Begin
Set @error = -1
Set @error_message = 'Item Name can not be more than 10 characters'
End
End
Giri -
Overall limit field is to be display or supressed in case of service PO
dear sir,
i making service purchase order using the service master record number .In item details limit tab is there , in this overall limit is there , i want to supressed or display this field.Whether it is possible, if yes where i can do setting so that in case of particular purchase order document type , with service no entered and in limit tab , overall limit is only in displayed form or either gets supressed.
thanks & regards
shailendradear sir ,
i am working in SAP 4.7 version , according to your reply i follow the path describe in mail
spro-mm- external servicesmanagement - define scree layout following sccreen come
Field sel. key ME21 Description Create purchase order Cat. of field sel. 2
Fld.sel.1 ......................................................................
Fld.sel.2 ...................................................................... -
Version to be invoked only for overall limit field in service PO
Hello,
I have service PO where we get the Limits tab in Item Level.
In the Limits tab we have
Overall limit and Expected value
Normally , release statergy is based on the expected value But the client requirement is to change based on the Overall limit. I have found the enhancment and added the required code and now Release statergy works based on the overall limit.
But what i face issue here is Version is invoked for Both the fields. I just want version to be trigered only if there is a change to Overall limit
How can we acheive this in ?
SenthilHi Senthil,
You should check Transaction SWEC and if there is a condition defined there for object EINKBELEG and BUS2012. If it is there remove it and your release strategy will work based on your enhancement on overall limit. Also could you please share the code what to did in the enhancement.
Thanks
Ramki
Maybe you are looking for
-
A debugger has been detected Unload the debugger and try again
Just purchased a new iMac. Have set up Windows to run a few games. All fail to start & the message above comes on screen. Any ideas anyone?
-
My ipad has just up and lost all movie playback and sound any ideas??
My ipad has lost all video playback, and has no sound. I can't even listen to iTunes. I have videos of my kids I can't watch, and my kids can't watch you tube on the ipad, what could be the problem.
-
Difference between Business Events and Complex Event Processing
Dear All, Can anyone let me know the difference between Business Event -> http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/obe_intro.htm#CHDIBHBE and Complex Event Processing->http://docs.oracle.com/cd/E21764_01/doc.1111/e14476/overview.ht
-
Shopping cart disconnect is ruining my business!!
Situation #1:Buyer put 3 items in his cart and tried to request combined shipping and eBay would not allow it. I told him to use the shopping cart on eBay.ca instead or to "commit to buy". He then responded that he was on eBay.ca and that it wouldn't
-
Where can i find my back up in my computer
where can i find my back up