Replacing space with some char in report display
dear friends
hw can i replacs space in report display with char .
there is disply like
site 1 site2 site3
matnr1 space 10 space
matnr 2 2 space space
site in x -axis ,matnr in -y-axis.
i want to replace this space by some char like nd or ns etc
can any one give solution....
regards
veera
hi this my condtion .....
if the first condtion satisfed i have to replace by ND
which is now mentioning as space.if send condtion satisifed having 10(na) in display
loop at it_final1.
read table it_final2 into wa_final2 WITH KEY matnr = it_final1-matnr.
IT_RESULT-matnr = IT_final1-matnr.
IT_RESULT-WERKS = IT_final1-vstel.
if it_final1-LFimg = wa_final2-vsolm.
it_result-LFimg = 'nd'.
ELSEIF IT_FINAL1-LFIMG < WA_FINAL2-VSOLM.
it_result-LFIMG = WA_FINAL2-VSOLM - IT_FINAL1-LFIMG.
ELSEIF WA_FINAL2 IS NOT INITIAL.
IT_RESULT-lfimg = IT_final1-lfimg.
else.
IT_RESULT-lfimg = IT_final1-lfimg.
ENDIF.
COLLECT it_result.
ENDLOOP.
Similar Messages
-
Replacing space with special char in reporting
I have created a calculatd Keyfigure where if the consition given in the calculated KF satisfies then it displays 1 otherwise space ,now mu user wants space to be replaced by some special charcter
Example
My ckf is like this overallscore >= 90 & Iam applying count on this
Vendor CKF
X 1
Y
Z 1
As vendor y is not satsifying the condition its showing with space now I want to replace space with some special char how is this possibleHi Priya,
You can try this: Instead of space, fill this with a 0. Then in the query properties, set the Show Zero As and give your special char, like may be *. But this will be okay if you do not have other zeros in the report...else you may need to do some VB coding.
Hope this helps... -
Filename: Replace spaces with underscores
Greetings,
I have searched the forum and online and have not found an
answer.
So posting here for assistance.
What is the proper syntax for replacing spaces in file names
with under
scores prior to cffile upload? -or- what is the best method
to accomplish
this process?
Example:
document name.doc >> document_name.doc
Thanks
Leonardyou can't change the filename before the file has been
uploaded to your
server.
upload a file using cffile.
#cffile.serverfile# variable will contain the name with which
the file
has been saved on your server.
check if the name contains any spaces using find() cf
function.
if it does, use cffile action="copy" to copy the file as a
file with no
spaces in the name (use replace() cf function to replace
spaces with
whatever you want).
[you may want to make sure prior to copying the file that
there is not
already a file with same name (with no spaces) in that
folder, otherwise
the copy action will overwrite existing file]
delete original file.
details of all the functions are in the CFML Reference. if
you do not
have one - download free from adobe.com
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/ -
Layers to files: replace spaces with underscores
How can I update the script to replace spaces with underscores on export? I assume I need to add a line somehwere between 183-195 but I don't know what it needs to be. Thanks in advance.
Where did you get the Layers to files script. Photoshop versions ship with a "Export Layers To Files.jsx" CS6 lines 183-195 look like this I see nothing about filename
var layerSetsCount = app.documents[docName].layerSets.length;
if ((layerCount <= 1)&&(layerSetsCount <= 0)) {
if ( DialogModes.NO != app.playbackDisplayDialogs ) {
alert( strAlertNeedMultipleLayers );
return 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
} else {
var rememberMaximize;
var needMaximize = exportInfo.psdMaxComp ? QueryStateType.ALWAYS : QueryStateType.NEVER;
if ( exportInfo.fileType == psdIndex && app.preferences.maximizeCompatibility != needMaximize ) {
rememberMaximize = app.preferences.maximizeCompatibility; -
Replace spaces with a + sign
Hi,
In on of my columns I have a text... I want to replace spaces with a plus (+) sign... something linke this
select
text_field,
Function_replace(text_field, " ", "+") new_field
from
table_AIt's almost that:
SQL> with table_a as (
2 select 'abc dd efg ' text_field from dual)
3 -- end of sample data
4 select text_field, replace(text_field, ' ', '+') new_field
5 from table_a;
TEXT_FIELD NEW_FIELD
abc dd efg abc+dd+++efg+
SQL> edit:
If you want to replace any number of consecutive spaces for a single + sign, then:
SQL> with table_a as (
2 select 'abc dd efg h' text_field from dual)
3 -- end of sample data
4 select text_field,
5 regexp_replace(text_field, ' +', '+') new_field
6 from table_a;
TEXT_FIELD NEW_FIELD
abc dd efg h abc+dd+efg+h
SQL> Edited by: fsitja on Mar 31, 2010 12:27 AM -
syncing hebrew notes with icloud distorts them by replacing spaces with exclamation marks. how do i fix this?
I'm syncing my iPhone 5 and my iCloud account. I open the account on my PC with a Google Chrome browser.
iPhone:
The same note on iCloud:
So.. Any ideas? -
CLOB to BLOB replacing spaces with Â
I have a CLOB that we are converting to a BLOB using DBMS_LOB.CONVERTTOBLOB and then serving it up as a file using WPG_DOCLOAD.DOWNLOAD_FILE. When you open the file, it is replacing the spaces with a Â.
Any thoughts?Most likely, the spaces in the original CLOB were not regular spaces (0x20) but rather non-breaking spaces (0xA0).
What's the target encoding used to convert to BLOB? I suppose UTF-8?
UTF-8 encodes non-breaking spaces as 0xC2A0, where 0xC2 is specifically the codepoint for "Â". So I think the tool you're using doesn't support UTF-8, or doesn't recognize the file as being properly encoded.
Edited by: odie_63 on 14 août 2012 14:26 -
Photoshop CS4 is replacing spaces in the filenames with dashes. How do I make it stop doing that?
in save for web? look at the options. probably set to unix file systems. you know that file names on the web (if that's your intended use) may not contain spaces, rigth?
-
HELP : Replacing Space with any character !
Hi !
How do I replace any spaces in a strings passed from a FORM INPUT, with a different character.
I tried doing this
String s= request.getParameters("info");
s.replace(' ','_');
But it keep giving me error.
it there any simpler way of doign this?
Thank you
KHi !
I am new to JSP,
It keep giving a null pointer exception when i use it with JSP
So i did this it work fine on the try section
and once it is in the catch section it keeps giving me Nullpointer exceptions again.
IS there any other way replacing the space with a "-" or anything..?
Thanks for your help.
here is the code
String r_space ="";
try {
r_space=value.replace(' ','+');
out.println("r_space : try " r_space "<br>");
catch(NullPointerException e) {
System.out.println("Recaught: " + e );
r_space=value.replace(' ','+');
out.println("r_space : cathc" r_space "<br>"); -
When generating layers it replaces spaces with underscores
Hi All,
I am working now with RH8, and when I am saving projects and give the name, let's say "my file.chm" it replaces the space with an underscore and the name becomes "my_file.chm". Is it possible to do anything about that?
Thank youI think that what I said means you cannot generate with spaces.
Bug? It has done it that way for several versions and I believe it is important if you are creating merged CHM help.
Submit a bug request or feature change request according to your point of view.
Please follow this link.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Issue with indicator values in report display
Hi All,
I am getting an issue with valutype #.
we have account restricted hirerarchy ,fiscal year period and Valuetype in rows .
I need to show the actuals indicator of value type 10 data in one row for each fiscal year period.But some of the key figures we are getting # data .valuetype indiator is repeating 2 times for each period.but we need to post this # values to 10.Any one have any idea how to handle this.
for example : my report is displaying like this
Account code : Fiscal Year period Value type Keyfig 1 keyfig2 Keyfig 3
CA1100 : 001.2006
10 100 22
200
002.2006
10 200 44
300
But I need the report like below
Account code : Fiscal Year period Value type Keyfig 1 keyfig2 Keyfig 3
CA1100 : 001.2006 10 200 100 22
002.2006 10 300 200 44Sirisha,
in the Query, You can filter your query to actual value i.e. 10. display KF1 and KF2 as it is coming from source. create restricted KF with restriction on account, fiscal year period and value type (= #).
you will get exact value. or while loading to cube or ods.. you can move that value to KF3 using start routine.
Nagesh Ganisetti. -
How to replace substring with a char
Hi,
Suppose i have
String x = "abcdabcd";
i need to replace string from index 1 till index 2 ( i mean the initial bc) with "T" so that x becomes
x = "aTdabcd";
is there any easier way or direct function in Java 1.3 to do that. i was checking sun website but didnt find any.
Plz guide me. thankspublic String replaceSubstring(String string, int start, int end, char c) {
return string.substring(1, start) + String.valueOf(c) + string.substring(end) ;
}Not sure if its exactly right but you get the idea (cant be arsed checking it). Honestly, try to come up with something before asking -
Help Needed - replacing space with non-breaking space on the fly
Hi,
I have a text field I'm trying to fiddle the input on. Basically I want to replace all spaces (ascii code 32) with non-breaking spaces (ascii code 160) as they are typed.
It seemed as though a KeyListener was the way to go, and I've successfully detected whenever a space is sent. I can consume() that KeyEvent, or setKeyChar to change it to another key. But I cannot see how to change it to a non-keyboard character.
Any suggestions?i think you can do smt likeDocument doc = mySwingTextComponent.getDocument();
doc.setDocumentFilter(new MyDocumentFilter());
class MyDocumentFilter extends DocumentFilter {
public void remove(DocumentFilter.FilterBypass fb, int offset, int length) throws BadLocationException {
fb.remove(offset,length);
public void insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException {
replace(fb,offset,0,string,attr);
public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attrs) throws BadLocationException {
text.replaceAll("SPACE","NB WHITE SPACE");
}asjf
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/text/DocumentFilter.html -
I have a table with names as following -
WITH T AS(
SELECT 'JOHN M SMITH' NAME FROM DUAL
UNION
SELECT 'ANDREW SMITH' FROM DUAL
UNION
SELECT 'A CARREY AND MIKE M N SMITH' FROM DUAL)
SELECT * FROM T
My Requirement is that if name is a single character, then attach a wildcard with it, if it is more than a single character followed by space,then attach single space followed by a wildcard, so the final result should be like this :-
JOHN % M% SMITH
ANDREW % SMITH
A% CARREY % AND % MIKE % M% N% SMITH
probably it will be done with regular expression, but not sure how.
Thanks in advanceAnther slightly weird way:
SQL> WITH T as (
2 SELECT 'JOHN M SMITH' NAME FROM DUAL UNION
3 SELECT 'ANDREW SMITH' FROM DUAL UNION
4 SELECT 'A CARREY AND MIKE M N SMITH' FROM DUAL
5 )
6 --
7 --
8 --
9 select rtrim(listagg( case
10 when length(word)=1 then word||'% '
11 when length(word)>1 then word||' % '
12 end
13 , ''
14 ) within group (order by aid, lvl)
15 , ' %'
16 ) newname
17 from ( select aid
18 , lvl
19 , name
20 , regexp_substr(name, '[^ ]+', 1, lvl) word
21 from ( select rownum aid
22 , name
23 from t
24 )
25 cross join ( select level lvl
26 from ( select max(length(regexp_replace(name, '[^ ]+')))+1 mx
27 from t
28 )
29 connect by level <= mx
30 )
31 where regexp_substr(name, '[^ ]+', 1, lvl) is not null
32 order by aid
33 , lvl
34 )
35 group by name;
NEWNAME
A% CARREY % AND % MIKE % M% N% SMITH
ANDREW % SMITH
JOHN % M% SMITH
3 rows selected. -
Sqlplus, error with some chars at begining of line
I have a file test.sql with:
DECLARE
x varchar(4000);
BEGIN
x := 'my test
# line error 1
@ line error 2
end of test';
dbms_output.put_line(x);
END;at sqlplus i run it like this
SQL>@test.sql
SP2-0734: unknown command beginning "line error..." - rest of line ignored.
SP2-0310: unable to open file "line.sql"
8 How can I make sqlplus ignore # and @?
Add --@ or --# does not solve my problem, because its part of a text.>
How can I make sqlplus ignore # and @?
>
It is the @ that is the problem.
Put an escape character (default \) before the @ or set a new escape char.
See SET ESCCHAR in the SQL*PLUS doc
http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve040.htm#sthref2081
>
SET ESCCHAR {@ | ? | % | $ | OFF}
Specifies a character to be escaped and not interpreted when used in a file name for
the SPOOL, START, @, RUN and EDIT commands. These special characters are
translated to the following:
■ @ in a filename will be translated to Oracle SID
■ ? is translated to Oracle Home in Unix
■ % is translated to Oracle Home in Windows
■ $ is translated to Oracle Home in certain platforms
While it is not recommended that these characters are used in filenames, if you have
legacy files that do use them, it might be useful to include a SET ESCCHAR command
in your GLogin file to implement it across your site.
If not escaped, the characters @, ?, % and $ have significance when interpreted and
cause errors for the SPOOL, START, @, RUN and EDIT commands.
SET ESCCHAR is set OFF by default.
Example
If you include the character ’$’ in your filename, then
SET ESCCHAR $
RUN MYFILE$
behaves normally.
Maybe you are looking for
-
Can you have two seperate iTunes's on one computer?
Okay, I have and love an iPod nano 4GB White English. I have Windows XP, and I have iTunes on it, but we do not have seperate User Accounts for some reason, we have individual folders. My iTunes is in my folder, our main music "jukebox" program is Wi
-
Hello all, I purchased a LINKSYS router wrt160NL, it works fine under wind.wireless.zero.config. On the installation cd is the NETWORK MAGIC program. I installed it on all my computers. No problems. Then I upgraded to the latest version 5.5.9195.0-R
-
My song's name will become some weird symbols
When I change language to english, names of my music will become some unreadable symbol. But when I change language to chinese traditional, everything will be okay. How can I fix the problem? By the way, only the songs which named in chinese or japan
-
What kind of anti-virus software works with Windows Multipoint Server 2012?
Is there any certified anti-virus software for Multipoint server 2012?
-
Hi all, I'm writing as I have this problem .... This simple JSP SHOULD print on the same page the user name if both his name and surname have been inserted in a form: <html> <head><title>Primo esempio di pagina jsp</title></head> <body> <br> <br> <fo