To disable trailing 0's and replace "," (comma) by "." (Dot)
Hi,
When i display a numeric field, its displaying with trailing 0's(three) and also ','.
Eg: 15,000
Can somebody tell where i have to change this setting in SAP. I guess it is in SPRO!!
Thanks in Advance,
Ram Modugula
Hi Ram,
Use TCODE <b>SU3</b>
Select default tab and select radio button 123467.89 in decimal notation and save it.
Hope this help.
Reward if helpful.
Regrads
Sachin Dhingra
Similar Messages
-
Dear all,
I'm getteing mad with the following issue and need your help.
I'm working at a PDF-Form including a table. The Values in this table create a datamatrix. This works fine for now.
Here is my issue: The values in the table are numbers like 12.2 but also 12 or 9 but maximum two digits in front of the "."(dot). Seperation character should be a "." In Germany there is the ","(comma) instead of the "." at the number block.
For better usability it would be nice having a java script that replaces onBlur all "," with a ".". So I don't have to change the keyboard language to English.
Is this possible and if yes, how?
I am an absolutely noob on javascript, so please be patient and do not expect any specific knowledge.
What I tried (menue is translatet from the German version, I don't know if it is correct:
onBlur.replace(",", ".");
I put this in (right click on form) -> properties ->action ->
add action: on mouse exit
choose action: run JavaScript
click on "add"
Then I copied the terminus from the top in the opening window. Ready (at least this was my thought...)
It dit not work, now I nedd your help.
Thank you for your hints, your help and your time.
Adobe Acrobat XI (German) on Windows 7 64bit (also german).***************SOLVED**********************
The solution was much easier than expected:
when you open "properties" by right clicking on the form, go to "validation" NOT "action" (make sure you are in the form editing mode: "tools" -> "forms" -> "edit")
then chose "run user defined script" and click on "edit"
type in the following line:
event.value = event.value.replace(/\,/g, ".");
click "OK" and then "Close"
Then you are done. Now, when you leave the form field Acrobat checks if there is a comma and replaces it with a dot.
For me this was the easiest way to make it work.
***************SOLVED**********************
***************GELÖST**********************
Die Lösung war einfacher als gedacht.
Öffnet man "Eigenschaften" mit einem Rechtsklick auf das Formular, muss man "Validierung" und nicht "Aktionen" auswählen. (man muss im Formulareditierungsmodus sein: "Werkzeuge" -> "Formulare" -> "Bearbeiten")
dann unter "Benutzerdefiniertes Validierungsskript ausführen" auf "Berabeiten" klicken.
Im Editorfenster folgende Zeile eingeben:
event.value = event.value.replace(/\,/g, ".");
Über "OK" und "Schließen" zurück zu den Eigenschaften
Das war's. Nun ersetzt Acrobat im Formularfeld jedes Komma durch einen Punkt.
***************GELÖST********************** -
Hello All,
I want some help. Please help me.
I have comma delimited Data. When I’m converting Sting to Array, If two commas exists in between then its displaying “Zero” (because its array propriety ). Instead of that I want to display “NaN” .
Please give me any idea to replace comma to NaN. I tried with Search and Replace but it’s not giving as I expected.
Munna
Solved!
Go to Solution.Hello GerdW,
Thanks you so much for your reply.
I thought, instead of replacing trailing comma by NaN adding comma before string is more better (because to many string manipulations) But, it’s taking more execution time.
Munna
Attachments:
Search and Replace.vi 415 KB -
Find and replaced disabled in Reports 10g
Hi,
I've noticed that in Reports 10g, the 'Find and Replace' and 'Find and Replace in PL/SQL' options tool under the Edit menu cannot be accessed until you open a program unit. Is this a bug ?
In previous versions of the reports builder, I didn't have to open a program unit to bring up this tool.
My version is Report Builder 10.1.2.0.2.
Thanks.Any answer ??
-
Autocommit and Cursor commit Behaviour
Hi,
I need help to set and get the Autocommit and Cursor commit behavior attributes
in Oracle.
AUTOCOMMIT:
For DDL Statement, this attribute is set while executing the OCIStmtExecute() api
as below:-
r = OCIStmtExecute(d->svc, d->sql, d->err, 1,0,
(CONST OCISnapshot *) NULL,
(OCISnapshot *) NULL,
d->transaction ? OCI_DEFAULT : OCI_COMMIT_ON_SUCCESS);
For DML Statement, from the OCI documentation the database parameter attributes
support OCI_ATTR_AUTOCOMMIT_DDL with the values OCI_AC_DDL and OCI_NO_AC_DDL.
Since this is a parameter attribute, I couldn't set using OCIAttrSet() API.
I need help in implementing AUTOCOMMIT for both DDL / DML statements.
CURSOR COMMIT BEHAVIOUR:
Similarly, I have observed that Oracle support cursor commit behavior attributes
using OCI_ATTR_CURSOR_COMMIT_BEHAVIOR and the attribute values are OCI_CURSOR_OPEN and OCI_CURSOR_CLOSED.
I have tried setting this attribute as below:-
ub1 nCommitType = OCI_CURSOR_OPEN;
oraRC = OCIAttrSet((dvoid *)d->svc, (ub4)OCI_HTYPE_SVCCTX,
(dvoid *)&nCommitType,
(ub4)sizeof(nCommitType),
OCI_ATTR_CURSOR_COMMIT_BEHAVIOR, d->err);
This always fails with the error ORA-24315: illegal attribute type.
I need help in setting this attribute using OCI.
Another approach to set Autocommit / Close Cursor attributes:-
Oracle support SET commands for autocommit and closecursor, I have prepared
and executed these set commands using OCIStmtPrepare and OCIStmtExecute api. The OCIStmtExecute() API fails to execute the below command texts.
SET AUTOCOMMIT ON/OFF
SET CLOSECURSOR ON/OFF
Is it the right method of setting these attributes?
Thanks,
Sankar.P.Hi.
You are trying to commit "child" information before your Parent information is commited.
Can you describe how you dragged & droped your views?.
Dragged relationship views or single views?.
Can you put output log with jbo with FINEST level?.
To find a solution try next solutions:
1) Disable "strong" association between your parent-child entities. To achieve it follow next steps:
- Go to your "Assoc" that describes your foreign key.
- In "Realtionship" tab, "Behaviour" disable "Composition Association".
Image: http://1.bp.blogspot.com/-Em8NZvjOUzo/T_NQbJTcLjI/AAAAAAAAAm4/hPsDwtEhJQ4/s1600/4.png
2) Drag and Drop correct views as a Master-Detail (cascading views in your Data Control).
http://2.bp.blogspot.com/-1By5vNNGMFQ/T_NQdYzexKI/AAAAAAAAAnE/DGn7Gr0RSDw/s1600/6.png (in spanish).
In the image, drag & drop PortalwebView2 is the correct way for Master-Details tables. Probably you dragged PortalwebView1 that have dependecy to master table.
Steps that you have followed:
- Drag & Drop dependen View Object as a Master-Detail with two tables.
- Add Create operations from these views to create Rows.
- Add Commit general operation from Data Control.
Try to drag & drop Master-Detail views correctly before disable association.
PD: To try your model faster run Model project instead of your application.
Regards.
Edited by: Daniel Merchán on 30-jul-2012 12:05 -
Identify and replace a single quote in an In Parameter
Can anyone tell me the syntax for finding and replacing a single quote in a user entered string? Thanks.
Cav,
I tried this:
insert into emp values (9999,''''||'Must', 'ddd',7902, sysdate, 2000, null, 10) ;
select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-12-1980 800 20
7499 ALLEN SALESMAN 7698 20-02-1981 1600 300 30
7521 WARD SALESMAN 7698 22-02-1981 1250 500 30
7566 JONES MANAGER 7839 02-04-1981 2975 20
7654 MARTIN SALESMAN 7698 28-09-1981 1250 1400 30
7698 BLAKE MANAGER 7839 01-05-1981 2850 30
7782 CLARK MANAGER 7839 09-06-1981 2450 10
7788 SCOTT ANALYST 7566 19-04-1987 3000 20
7839 KING PRESIDENT 17-11-1981 5000 10
7844 TURNER SALESMAN 7698 08-09-1981 1500 0 30
7876 ADAMS CLERK 7788 23-05-1987 1100 20
7900 JAMES CLERK 7698 03-12-1981 950 30
7902 FORD ANALYST 7566 03-12-1981 3000 20
7934 MILLER CLERK 7782 23-01-1982 1300 10
9999 'Must ddd 7902 29-08-2005 2000 10
select * from emp where ename = ''''||'Must';
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
9999 'Must ddd 7902 29-08-2005 2000 10Hope this helps
Ghulam -
Find and replace text in multiple Photoshop files?
Hi there,
Let us say I have six Photoshop files: 1.psd, 2.psd, ..., 6.psd. All of these files contain the word “LoremIpsum” in random text layers, within each document. Is there a way I can search for “LoremIpsum” in all documents and replace it with “Dolor Sit Amet”, all in one go? This is just an example, I need to replace various words, not just one.
I have tried "batch find and replace" software (including powerful tools like Power Grep) but they do not work with psd files… Is there a javascript of external plugin for this kind of task?
Thanks!You’re welcome, advice given here is free.
If you want to donate something nonetheless you could do so over at
http://ps-scripts.com/bb/
Many of the same people used to contribute there as here and I for one have benefitted considerably from their generous advice on Scripting issues.
A Script can read (or create) txt files, but I do not have a lot of experience with this.
This might work (amend the line »var theTexts = readPref ("….txt", false);« according to your txt-file’s path):
// replace text elements in type layers;
// 2013, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
for (var n = 0; n < app.documents.length; n++) {
app.activeDocument = app.documents[n];
app.activeDocument.suspendHistory("replace text", "main()")
// the opertation;
function main () {
var myDocument = app.activeDocument;
var theTexts = readPref ("….txt", false);
var theArray1 = theTexts.slice(0, Math.round(theTexts.length/2));
var theArray2 = theTexts.slice(Math.round(theTexts.length/2), theTexts.length);
alert (theArray1.join("\n")+"\n\n\n"+theArray2.join("\n"))
for (var b = 0; b < theArray1.length; b++) {
replaceText (theArray1[b], theArray2[b])
////// reoplace text //////
function replaceText (replaceThis, replaceWith) {
// =======================================================
var idreplace = stringIDToTypeID( "replace" );
var desc22 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref3 = new ActionReference();
var idPrpr = charIDToTypeID( "Prpr" );
var idreplace = stringIDToTypeID( "replace" );
ref3.putProperty( idPrpr, idreplace );
var idTxLr = charIDToTypeID( "TxLr" );
var idOrdn = charIDToTypeID( "Ordn" );
var idAl = charIDToTypeID( "Al " );
ref3.putEnumerated( idTxLr, idOrdn, idAl );
desc22.putReference( idnull, ref3 );
var idUsng = charIDToTypeID( "Usng" );
var desc23 = new ActionDescriptor();
var idfind = stringIDToTypeID( "find" );
desc23.putString( idfind, replaceThis );
var idreplace = stringIDToTypeID( "replace" );
desc23.putString( idreplace, replaceWith );
var idcheckAll = stringIDToTypeID( "checkAll" );
desc23.putBoolean( idcheckAll, true );
var idFwd = charIDToTypeID( "Fwd " );
desc23.putBoolean( idFwd, true );
var idcaseSensitive = stringIDToTypeID( "caseSensitive" );
desc23.putBoolean( idcaseSensitive, false );
var idwholeWord = stringIDToTypeID( "wholeWord" );
desc23.putBoolean( idwholeWord, false );
var idignoreAccents = stringIDToTypeID( "ignoreAccents" );
desc23.putBoolean( idignoreAccents, true );
var idfindReplace = stringIDToTypeID( "findReplace" );
desc22.putObject( idUsng, idfindReplace, desc23 );
executeAction( idreplace, desc22, DialogModes.NO );
////// read prefs file //////
function readPref (thePath, binary) {
if (File(thePath).exists == true) {
var file = File(thePath);
file.open("r");
if (binary == true) {file.encoding= 'BINARY'};
var theText = file.read();
file.close();
return String(theText).split(",")
In this case the comma is used to split the text into Strings in Arrays, if your search/replace texts include commas you could use something else, I guess. -
Search and replace string function
Hello, I am using the "search and replace string" function and it does nt seem to work consistently for me. I am using it in a situation where I am taking an array of strings, converting this into a spreadsheet string then deleting all of the commas. Has anyone experienced the same behavior? I have searched through other posts and found other simular faults but none of the fixes worked for this. I can post the code it needed.
Thanks,
AndrewI agree that commas are often not desirable, especially if your software should also work in countries where comma is used as a decimal seperator.
Where are the commas coming from? Does (1) each element of the original array have one (or more), do you (2) use comma as seperator if you convert it to a spreadhseet string?
For (1), you might just strip out the comma for each element right in the loop. For case (2) you would simply use a different separator to begin with, of course.
Btw: you are abusing a WHILE loop as a FOR loop, because you have a fixed number of iterations. Please replace it with a FOR loop. If you use a FOR loop, LabVIEW can manage memory much more efficiently, because it can allocate the entire output array before the loop starts. For While loops, the total number of iterations is not known to the compiler. (Of course a real program would also stop the loop if an error occurs. In this case you would need to stay woth the WHILE loop. )
Do you have a simple example how the raw array elements look like. How many commas are there?
LabVIEW Champion . Do more with less code and in less time . -
Question about Find and Replace PL/SQL option in Forms Builder
Dear All
I have a small question .
I am using Find and Replace PLSQ/SQL in forms Builder ( Edit - Find and Replace PLSQL) to search any code in a form.
Let say I am searching for EMP .
Then all the places is coming where EMP is used as well as EMPloyee , EMPloyee_Desc tables also coming .
So is there any way to serach only the EMP part .If you look closely to the right of the "Find What" field, you should see a button - "Expression". This allows you to add some logic to your search. Alternatively, depending on how you code, you could just look for spaces. For example, if you are looking for EMP and not EMPLOYEE, search for EMP with a blank space before and after it (assuming you code this way) or use something like this \bEMP\b This would work for me because I code the same way I write sentences - each work is separated by spaces.
<blockquote> EMPLOYEE := EMP || ' - ID';</blockquote>
In this example, seaching for EMP with a blank space after would find what I wanted. However, if you only search for a trailing blank, you may end up also finding words like tEMP. This is where have a blank space before each word is helpful.
Other, more valuable expressions could be written to accomplish your task. Refer to the Forms Builder Online help for more information about using Expressions in the Find and Replace search window. -
Render and Replace doesn't open Soundbooth
Mac / PP CS4 (production premium)
Hi, I have a clip in the timeline and I'm right-clicking, choosing Edit in Adobe Soundbooth > Render and Replace but nothing happens.... Soundbooth doesn't open (at all) with the clip to edit. Any suggestion appreciated!
Thanks
-ScottThanks for the input...
I tried Edit Orginal (video and audio .mov file) on the file in the bin...
that opens Quicktime Player. I went into Sys Prefs, QT, and tried changing
file associations, etc.
This file I'm trying this with was recorded using OnLocation as a QT . mov
file. That's the one association I can't disable in QT which may be why
I can't open SB but not sure since nothing opens (including QT) when
trying Render and Replace
When I try Edit in Soundbooth/Extract Audio on the file in the bin, that
works as expected, creating the extracted audio files, seen in the PP bin,
and then SB opens with both files ready to be worked on.
Thanks,
-Scott
Scott Babcock
Multimedia Director
Putman Media, Inc.
630-467-1301 ext 479
[email protected]
Twitter: @scottbabcock
LinkedIn: http://www.linkedin.com/in/sbabcock
the_wine_snob <[email protected]>
04/09/09 08:08 PM
Please respond to
[email protected]
To
Scott Babcock <[email protected]>
cc
Subject
New message: "Render and Replace doesn't open
Soundbooth"
putmanmedia,
A new message was posted in the thread "Render and Replace doesn't open
Soundbooth":
http://forums.adobe.com/message/1881993#1881993
Author : the_wine_snob
Email : [email protected]
Profile : http://forums.adobe.com/people/the_wine_snob
Message: -
In the new Numbers, can I find and replace within formulas like I used to in Numbers'09?
I use Numbers with quite long formulas with reference to other tables. With Numbers'09, it was extremely useful to copy formulas and then use "find and replace" to change the terms within.
Did they remove this option? I don't seem to be able to do that with the new Version.
If it's still there, where do I find it?
If it's not there.... why would they remove it.
ThanksBasically, I use it for payroll, taxes, and so on... I have one sheet per employee (which compiles their weekly payroll). I have then different sheets which makes the quarterly taxes calculation (state and federal taxes - 941, 940, W2, disability, UI, paystubs, tracks payments and deadlines, etc... ). It took me awhile to write all of the formulas, but now it does everything for me.
When I add an employee. I have to add a sheet, but also add a line in the calculation sheets. Because all the employee sheets are the same format, all I need to do (or used to now) was to copy the line above, and just change the reference name of the employee sheet within the formula (because there are several terms that are looked up, the reference name comes several time in the formula)... changing it manually is really annoying. What was taking me a minute or so, before, now takes me about 20 minutes. (between the different sheets, there are about between 75 to 100 changes in formulas per new employee - so the "find and replace" in formula only, was extremely useful). -
How to prevent find and replace from finding linked files?
I have a bunch of ASP pages that I need to update in the same manner with Find and Replace. In order to do this, I open all the files, use Find and Replace, and choose to Replace All in the Source Code of Open Documents.
Pretty straightforward, right? Except, if I have any include file statements, such as this:
<!--#include file=" yadda yadda"-->
DW opens these files on its own, and updates THEM as well.
This is a very frustrating behavior. I have been through the Preferences several times and I'm just not seeing any way to turn this off.
I have tried Googling this problem, and have seen absolutely no mention of it.
Does anyone know if this annoyance can be disabled?
Thanks.I would try selecting the specific files in the Files tab, then using "Selected Files in Site" and see what happens.
I think DW considers related files to be "open" (since you can edit them from within the main file they are related to) when that option is turned on and the files they're related to are open. -
When I use Preview,Photo Mechanic and Pages, all JPEG or RAW images appear corrupted.
I thought my hard drive was failing and replaced it and migrated everything over but the problem still exists.
It felt as if maybe a virus was at work but I ran Sophos and found nothing.
I store images on my Drobo Raid system but when I work from my Macbook Pro I have no issues, just on the tower.
Any idea what is going on?First of all, why did you say yes to Nero Back up before researching what it does with files already on the HDD? When I install Nero, the Back Up is the first thing I disable, it is a nagging pain, there are much better backup programs available. There are several file recovery programs out there to recover deleted files, that is, if that is what happened. Also, if you haven't overwritten the files, so you should be able to find them.
-
From Premiere - Render and Replace ??
I use Soundbooth to modify my audio track from the timeline. When I'm in Soundbooth I save and return to AP but I can not here the change. Is there something I am doing wrong ? ?
is this just a single clip, or you have the entire 18min loaded in AE as comp? does this happen with new projects and all footage or just some? can you render and replace regular clips that aren't AE comps? if its just a few clips of the 18min project, can you render previews in premiere? if its just a few clips, could also render them out in AE and swap them out in premiere instead of using render and replace... or maybe temporarily disable the ae effects/layers while editing in premiere and then turn them back on when ready to export final render.
-
Help with removing a variable number using "find and replace"
Hey, I have to remove a variable number from a large number of documents.
How would I do this using "find and replace"
<text><![CDATA[Coloured 250]]></text>
250 is an example of the variable number that I will need to remove so it looks like this:
<text><![CDATA[Coloured]]></text>
Note: the text "coloured" is subject to change also.
ThanksThat's a possibilitly I'll explore. Thanks for the alternate perspective!
(5 minutes later)
Oh well, it was a good thought.
Unfortunately each line of raw original text may contain from 1 to 4 lines of final text. In other words there is no consistency in the number of backslashes (hard returns) in each line of original text, and thus, when backslashes are converted to commas, no consistency in the number of data elements in each data set.
Sadly PS variables will not handle finding a source text line that does not have data for 4 variables. So I either have to go back and add enough commas on each short line to make four individual data elements for each data set... or I simply deal with the hard returns within Photoshop.
I think I've reached the limit of automation on this process.
Maybe you are looking for
-
Our users have scanned pdf files they want to be able to search using ctrl-f. I got them to be searchable by doing a recognize text using ocr with Acrobat Professional vesion 8. They want to know if they can make the files searchable with Acrobat R
-
Trouble Connecting to WiFi since Lion Install
Since installing Lion on my Macbook Pro, I'm having trouble acquiring and maintaining connections with my WiFi signal. No such issues with my Snow Leopard/Leopard Macs, PCs, iPhone and iPad. Any ideas? Thanks, JD
-
Problem while using for first time the Repository in Des 6.0
After creating the Repository, with a new project, trying to use the process diagramer and defining the root process this message appears: RME-00224: Failed to close activity RME-00222: Failed to dispatch operation to Repository RME-00011: Operation
-
Has anybody used the microsoft JDBC 2.0 driver for sql server 2000?
Hi, Has anybody used the JDBC 2.0 driver for sql server 2000 downloadable from the microsoft website?When I try using it with WL 6.1 sp1 it says it can't load the driver.I try viewing the class file from the jar file using the jar utility it gives an
-
Do I need to uninstall Firefox 4 and start over?
Firefox 4 upgrade worked for one user on my laptop, but not the other. All the features of the upgrade work for only one user.