SFP Replacing 0 with Spaces
Hi,
I have fields in a table in a form created using SFP. When these fields have 0 or 0.0 I do not want to print any values, I just want a space to print. I've tried numerous attempts using PATTERN without any success. The fields in the interface defines these fields numeric and/or decimal.
Any help would be appreciated.
Helen
Hi,
Take a variable of type c with length same as your original variable (If original variable have 10 charactes and two decimal with sign then declare new vriable text_new of type char13).
Note : this TEXT_NEW should be declared in global definition of smartform type char13.
Now take a program logic just befor this text being printed and assign value to this new variable and in program logic write a condition
clear text_new.
text_new = original_value " assigned original value
if text_new is initial.
text_new = space.
endif.
Now print this new variable.
It should definitly resolve your issue.
Please try and confirm.
Regards,
Umang Mehta
Similar Messages
-
Warning:Null charecters(00H) contained in the file was replaced with spaces
Hi,
i am creating dat file in that at the end of each line i am adding 10 spaces(i.e 00a0) and end of line charecter, than sending to FTP server, but when i am opening file it is giving warning message : Null charecters(00H) contained in the file was replaced with spaces . Pls help me.
Regards,
Manoj
Edited by: manoj kv on Oct 27, 2011 7:07 AMHi,
Instead at end of each line add a constant of type char with length 10. And then do a carriage return. Check if you still get the error.
Regds,
Madan... -
Hi expert. replace . with space
HI expert.
I want to replace '.' with space . so I proceed below.
itab is composed to two feilds.
date1 type char10
date2 type char10
the field's values are '2011.01.01'.
REPLACE ALL OCCURRENCES OF REGEX '\b(.)\b'
IN TABLE ITAB WITH SPACE
RESPECTING CASE.
result.
date1 : '2011010120'
date2 : '110101'
but I want the result below.
date1 : '20110101'
date2 : '20110101'
what should i do?
please help.Hi Jake,
Using convert date to internal as mentioned by Zafar is a good idea, i don't see how this concerns the no of records, do update the post if you have a special requirement/concerns about using that FM.
Anyways the other way to do it using the offsets,
data: l_data type char10 value '2011.01.01',
l_date2 type char10.
concatenate l_data+0(4) l_data+5(2) l_data+8(2) into l_date2.
or
l_date2+0(4) = l_data+0(4).
l_date2+8(2) = l_data++5(2).
l_date2+8(2) = l_data+8(2).
Regards,
Chen -
Suppress Underscore and replace with Space in FR
Hi
Hyperion Financial Reporting 11.1.2.1
In the excel, with a Essbase add-in, we have an option as Suppress--->Underscore Characters
This will eliminate the Underscore and replaces with a space
I want to know if the same functionality exists in the FR Studio
Any insight would be much appreciated
Regards
Tejo jagadeeshSorry, I misread your question. I thought it would be doable though Conditional Format: http://docs.oracle.com/cd/E17236_01/epm.1112/fr_user/ch10s02.html
Something like this:
If Member Name > Dimension > contains > _ > Format Cells > Replace >
But then it replaces the whole member with space which I believe is not something you are looking for.
One other option is to have another alias table in your database and select the new alias table in FR. I know this is an option for Essbase. I am not so sure about other db connections.
Cheers,
Mehmet -
Find and Replace with space or tab
Hi,
I have a text file that has commas separating values. I saved it as a csv, but am not getting the results I need with the csv file. I'd like to replace the commas with a space or a tab.
I know how to use find replace, but I do not know how to indicate these non-printing characters. I tried the ascii code   for space, but i simply get that string of characters replacing my commas.
ANy help?
ThanksKW,
You didn't say what program you were using for the Find and Replace, but I'd suggest that Pages would be your best bet. Spaces can be typed-in directly, and several other non-printing characters can be inserted from a drop-down menu.
The Insert drop-down seems to be available only in Pages, as opposed to Numbers and TextEdit.
Jerry -
Part of String replace * with space
Hello,
I am trying to come out with 0915 SCWB FU from the BS1
564529*5*201311110915*SCWB FU as part of a case statement where a record startd with BS1, any help with be much appreciated.
Regards
JoSELECT RIGHT (col,12) FROM tbl
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Replacing unauthorized characters with space
Hi friends,
There is a set of authorized characters. The authorized characters are
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<space>
If any character other than these characters should be replaced with space.
For example, "I like foot-ball" should be changed to "I like foot ball"
"Where are you?" should be changed to "Where are you"
"red / blue" should be changed to "red blue"
I use Oracle 11.2.
Thanks in advance!Using regular expression you can do this.
SQL> with t
2 as
3 (
4 select 'I like foot-ball' str
5 from dual
6 )
7 select str
8 , regexp_replace(str, '[^a-z0-9[:space:]]', ' ', 1, 0, 'i') new_str
9 from t;
STR NEW_STR
I like foot-ball I like foot ball
You can read more about regular expression from the document.
Using Regular Expressions in Oracle Database
Message was edited by: Karthick_Arp
Edited the Pattern after seeing franks post. -
Hi,
Note : I am using SAP 4.6
Task : Replace Comma with space
Problem : Not able to replace comma with space
I have task where I have to write result file to application server, when I am writing string to application server it is separating by comma, for example if you take below statement it is dividing by space that means in first column PO and then ITEM etcu2026.
MOVE 'PO ITEM is not there in table EKPO' TO W_RECORD_OUT-ERROR_MSG.
so to resolve this situation I have used below code for now, I know I can use
REPLACE ... ALL ENTRIES but this statement is not working in SAP 4.6
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
CONDENSE W_RECORD_OUT-ERROR_MSG.
appreciate if somebody can help me.
Thanks
sarathHi,
Please check the below code.
REPORT YSAT_TEST.
Data: Var1(40) type c value 'Test1,Test2,Test3,Test4'.
break-point.
REPLACE ',' WITH space INTO Var1. " It will replace only first occurrence
replace all occurrences of ',' in var1 with ' '.
CONDENSE Var1 no-gaps.
write: var1. -
Padded zeros which is removed need to be replaced by spaces
Hi Friends,
My requirement in XI is : Padded zeros which is removed need to be replaced by spaces.
for removing padded zeros I used the UDF:
int i = Integer.parseInt(a);
return (Integer.toString(i));
It is working fine.
Please help as how to go abt in coding : whatever zeros get taken off , need to be replaced with spaces.
Thanks in Advance,
Meghna.Hi Raj,
According to the logic given by Henrique, its working. But the point to the noted is that :
The number of spaces need to be equal to the number of zeros removed, where it not happening in this case.for the below Ex when applied it returned ' 12345' instead of ' 12345'.
For ex. source field is '000012345' then the target field need to be ' 12345'.
the Type declared in the data type for the receiver field is integer with length 15.
Is it possible to move the field value to the right justified, so the the padded zeros code when applied will automatically load spaces.Becoz the code written for removing zeros contains String due to which it is left justified i think.
The code written for removing zeros is :
int i = Integer.parseInt(a);
return (Integer.toString(i));
please suggest in this regard.
Regards,
Meghna.
Edited by: meghna swaraj on Feb 27, 2008 6:05 PM -
Replace multiple space characters with a single space
Hi,
Oracle 11g R2.
Looking for a way to replace multiple space characters in a row with a single space. For example, the text "abc abc" should look like "abc abc". I tried toying with replace, but it only works for the case of 2 spaces. Need a solution for the cases where there could be 2 or more spaces.
select replace(column1, chr(32)||chr(32), chr(32)) from tableaHi,
If you had to do this without regular expressions, you could use:
SELECT REPLACE ( REPLACE ( REPLACE (str, ' ', '~ ')
, ' ~'
, '~ '
) AS new_str
FROM table_x;assuming there is some sub-string (I used '~' above) that never occurs right next to a space.
However, unless you're uisng Oracle 9 (or earlier, which you're not doing) you don't have to do this without regular expressions. As you can see, the way Solomon showed is much simpler. -
I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with %20 - how can I change this?
Click on the below link :
https://get.adobe.com/flashplayer/otherversions/
Step 1: select Mac OS X 10.6-`0.`0
Step 2 : Safari and FIrefox
Then click on " Download Now" button. -
In Each field space should be replaced with @ symbol in DME File
Hi,
I configured DME file it good, but client wants in each field SPACE should be replaced with @ symbol
i created new DME file with DMEE transaction code
here it example
we have a bank account number filed length is 20 Digits but bank account no is 15 digits only remaing 5 filelds should be replaced with @ symbol
Kindly advice me on this
Thanks in advance
Regards
KumarHello,
i could follow the link below. More or less my requiremnt is same
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=201066680&focusedCommentId=247136560&#comment-247136560
Howeevr, the changes in my requirement are
The location field has to be populated with account name and the address of that account. In this scenario, i have the acoount name from the same page, but the account address is stored in account. i need to retrieve the data from account and append it with the account name and display it in location.
Please help me on this.
REGARDS
CHANDRAKANT KULKARNI -
Replacing # with blank space in Bex Analyser
Hi All,
Can any one help me out in replacing # values in Bex analyser with blank space.
I tried with the macro:
Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
' First Query in the workbook
If queryID = "SAPBEXq0001" Then
' Selects the area where the report query is rendered
resultArea.Select
'Replace "" with 0
Selection.Cells.Replace What:="", Replacement:="0", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, MatchByte:=True
End If
End Sub
Means I have include the macro to the Excel, but still it is not working.
If this macro is the correct solution, then may be I am not using it properly(in the sense I'm not calling with proper syntax).
Please provide me with the solutiuon to get rid of this problem.Hi,
We are using BEX 7.0.
I got a macro code which is working. The code is as follows.
Dim resultArea As Range
Set resultArea = varname(1)
Dim c As Range
For Each c In resultArea.Cells
If c.Value = "#" Then c.Value = " "
Next c
This works fine but the problem is that this macro code should be added each and every time when the query is run.
Can any one suggest me where the code can be added in Bex Analyzer itself, so that when the query is run the above macro runs along with it and removes the #.
Thanks and Regards,
Geetha. -
Replacing multiple spaces with another character
i need to replace multiple spaces with another char in a string
my code is
Dim text as String="a bit much a little much" Dim arr As String() = text.Split({" "c}, StringSplitOptions.RemoveEmptyEntries)Dim newtext As String = String.Join(" ", arr) MsgBox(newtext)
it returns to "a bit much a little much "
But i want to replace only long spaces with "=" as "a bit much =a little much"
How can i do that?This version uses two spaces to split the string and then trims any additional single spaces. It returns "a bit much = a little much".
Dim text As String = "a bit much a little much "
Dim parts() As String = text.Split({" "}, StringSplitOptions.RemoveEmptyEntries)
Dim newText As String
If parts.Length = 2 Then
newText = parts(0).Trim & " = " & parts(1).Trim
End If -
Preventing Discoverer Admin replacing underscores with spaces on refresh
Hello,
On refreshing a Business Area, Discoverer Administrator will automatically replace underscores with spaces for any new items/folders to be incorporated. I would prefer this not to happen i.e. the names should retain the underscores. I haven't found any way to do this from within Discoverer Admin - are there some registry settings that I can tweak or is it just not possible,
Thanks in anticipation,
Kevin.Hi,
Well, you could try using a eul_trigger$refresh_new_column trigger. I must admit I have never tried this, but the details are in the documentation (http://download.oracle.com/docs/html/B13916_04/appendix_b.htm#sthref2417).
Rod West -
Powershell (Replacing White Spaces with a comma)
The object property values output tends to be tabular with varying white spaces between each column. I’m looking for a script that will allow me to:
Output the object property values to a file
Remove all white spaces encountered (regardless of the number of spaces)
Replace the spaces with one (1) comma
Replace isn’t the answer unless I literally define each instance of spaces and I can’t find any discernable documentation on using Regex…
-- formattting the output doesn't help either...
Any guidance / help would be appreciated
RoderickLet's say I ran the PowerShell command below:
Get-ClusterResource -Cluster ClusterName | Where-Object {$_.Name -like "SQL Server (*"}
The output would be something along lines of what you see below.
I typically output the result set to a csv file, strip the header, replace the spaces with a single comma, and bulk import the data into a SQL Server table for reporting.
Basically, I'd like a "dynamic way" (not replace with the literal space count between double quotes) of getting rid of the spaces between the columns and replace the spaces with a single comma.
Name State
Group ResourceType
SQL Server (SRV101O) Online SRV101o SQL Server
SQL Server (SRV301O) Online SRV301o SQL Server
SQL Server (SRV201O) Online SRV201o SQL Server
SQL Server (REMSRV101O) Offline REMSRV101o SQL Server
SQL Server (REMSRV301O) Offline REMSRV301o SQL Server
SQL Server (REMSRV201O) Offline REMSRV201o SQL Server
SQL Server (REMSRV401O) Offline REMSRV401O SQL Server
SQL Server (REMSRV501O) Offline REMSRV501O SQL Server
SQL Server (SRV401O) Online SRV401O SQL Server
SQL Server (SRV501O) Online SRV501O SQL Server
Maybe you are looking for
-
Problem in Executing Command Line
Hello all, I am trying to execute the Perforce command lines through LabVIEW System Exec. These commands are working propery when directly entered in the command prompt, but through LabVIEW it is not working properly. "P4 client -i <E:\template.t
-
Hi, I need to create a secure key using a string end encrypting it using MD5 and after is RSA, I found a couple of MF to create the MD5 key but I can't find whow to encrypt it now using RSA. Any idea? I'm in Mexico City and here is a treasury require
-
Contacts - Changing names of groups
How do I add a group name or change a name.
-
What does "restrict" mean in Solaris 10 man pages ?
Hi everyone, On Solaris 10 programming man pages I see the "restrict" word used quite often. What is its meaning ? It wasn't there in previous releases. Is it documented anywhere ? Excerpt from select(3c) man page: int select(int nfds, fd_set *re
-
I lost my personal folders in the mailbox
I lost my personal folders in the mailbox?? how can I recover I had yesterday??