Suppress tab space
Hi All,
I'm writing following code and Im getting out as below.
I'm capturing this output log in unix. The issue is Im getting tab spaces in the output
declare
lv_SQL VARCHAR2(32000);
lv_Col VARCHAR2(256);
begin
lv_Sql := 'SELECT ''PL_CUS_DETAILS :'' || COUNT(1) CNT FROM PL_CUS_DETAILS';
EXECUTE IMMEDIATE lv_Sql into lv_Col;
DBMS_OUTPUT.PUT_LINE(lv_Col);
end
[CODE]
declare
lv_SQL VARCHAR2(32000);
lv_Col VARCHAR2(256);
begin
lv_Sql := 'SELECT ''PL_CUS_DETAILS :'' || COUNT(1) CNT FROM PL_CUS_DETAILS';
EXECUTE IMMEDIATE lv_Sql into lv_Col;
DBMS_OUTPUT.PUT_LINE(lv_Col);
end
====OUTPUT=========
cat -vt output.out
PL_CUS_DETAILS^I^I :2note: ^I is the tab space character(unix).
I have tried different options to suppress this tab space but of no use.
Plz help in suppressing these tab spaces.
Thanks & Regards,
CDPrasad
Edited by: cdprasad on Aug 16, 2010 8:18 AM
Edited by: cdprasad on Aug 16, 2010 8:18 AM
Hi Amit/David,
Executed the same in different ways.
==> MY_OUTPUT=`sqlplus -s username/password@server<< SQL_EOF
WHENEVER SQLERROR EXIT 1;
WHENEVER OSERROR EXIT 1;
SET FEED OFF
SET VERIFY OFF
SET SERVEROUTPUT ON
declare
lv_SQL VARCHAR2(32000);
lv_Col VARCHAR2(256);
BEGIN
lv_Sql := 'SELECT ''PL_CUS_DETAILS :'' || COUNT(*) FROM DUAL';
EXECUTE IMMEDIATE lv_sql into lv_col;
dbms_output.put_line(lv_col);
end;
EXIT
SQL_EOF`
==> echo $MY_OUTPUT | cat -vt
PL_CUS_DETAILS :1
==> cat test.sql
WHENEVER SQLERROR EXIT 1;
WHENEVER OSERROR EXIT 1;
SET FEED OFF
SET VERIFY OFF
SET SERVEROUTPUT ON
SPOOL ABC.TXT
declare
lv_SQL VARCHAR2(32000);
lv_Col VARCHAR2(256);
BEGIN
lv_Sql := 'SELECT ''PL_CUS_DETAILS :'' || COUNT(*) FROM DUAL';
EXECUTE IMMEDIATE lv_sql into lv_col;
dbms_output.put_line(lv_col);
end;
SPOOL OFF
==> cat call_sql.sh
sqlplus -s <<EOF
@password.sql
@test.sql
EOF
==> call_sql.sh | cat -vt
PL_CUS_DETAILS^I^I :1
==> cat -vt ABC.TXT
PL_CUS_DETAILS :1
==> nohup call_sql.sh &
==> Sending output to nohup.out
==> cat -vt nohup.out
PL_CUS_DETAILS^I^I :1The first gives output as
PL_CUS_DETAILS :1 instead of PL_CUS_DETAILS :1
The second gives output as
PL_CUS_DETAILS^I^I :1 instead of PL_CUS_DETAILS :1
but in the spool file it is same as PL_CUS_DETAILS :1
but the same thing when executed using nohup it looks like below
PL_CUS_DETAILS^I^I :1 instead of PL_CUS_DETAILS :1
Note: cat -vt is used to display nonprinted characters(tab is ^I)
There is something wrong in the way the unix stores the output.
Thanks & Regards,
CDPrasad
Edited by: cdprasad on Aug 18, 2010 9:40 AM
Similar Messages
-
How to delete tab-space in one go?
Hello,
On every paragraph on my layout, I have this unwanted tab-space.
How do you remove tab-space in paragraphs (Marked as Red) in one press without affecting the other tab-space (Marked as Green)?
I have an idea of using the Find feature but I don't know what the code for tab-space is.rapirap wrote:
I used ^t then changed it to nothing but the 5 consecutive tab-spaces get changed too.
You were in the wrong part of the find/change window. See the following screenshot:
If you are in the Text portion of the window, ^t is the code to find any tab. If you replace that with nothing and click the Change All button, it will find every tab in your search area and replace it with nothing. You can't do what you want in one step that way.
If you click on the GREP portion (as Ellis had suggested):
…the ^t code won't work, because GREP is different from Text. In GREP, \t is the code for tabs, and the ^ before the \t tells it to look for only the tabs at the beginning of paragraphs. You could hit the Change All button and it will remove all of the tabs at the beginning of paragraphs, but not the 5 tabs in a row.
That said, why do you want 5 tabs in a row? If you describe what you are trying to do, I'm sure there are much better ways to work. And you may also want to think about not using two spaces after a period. That's an old typewriter rule that hasn't been recommended since desktop publishing began many years ago. -
Office Web Apps Server 2013 - Word Web App - Problem with Tab space
Hello We have Office Web Apps Server 2013 running with SharePoint 2013. Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space.
Has anyone noticed this? Is this a bug?
-thanks
thomas
-TomYes, currently the Word Web App does not support
Tab Keyboard shortcut for editing document content .
For more information, you can have a look at
the article:
http://office.microsoft.com/en-us/office-online-help/keyboard-shortcuts-in-word-online-HA010378332.aspx?CTT=5&origin=HA010380212
http://social.technet.microsoft.com/Forums/en-US/3f5978d3-67a1-4c8c-981f-32493d72610b/office-web-apps-server-2013-word-web-app-problem-with-tab-space?forum=sharepointgeneral -
How to delete extra tab space in the flat file??
Hi all,
I have a flat file on presentation server which has 20000 records. In this file there are 16 fields and distance between each field is different and what I want is each field should have one tab space between another.
Thanks & Regards
JerryHi,
I dont want to join the fields but to seperate them with a tab space.
Regards
Jerry -
Suppressing tabs at item level in sales order
16.07.2008
Hi friends,
How do i suppress tabs like say the condition tab or the billing plan tab at item level for a Sales document type and for certain users when the user is using transaction code va02?. My requirement is certain users should not be able to change date in these tabs.
Please suggest.
Regards,
UdayHi,
You can control it through user-exit USEREXIT_FIELD_MODIFICATION in program MV45AFZZ by using following coding. You have to create database table <ztable> where you will maintain user who are not allowed to change the billing date.
tables: <ztable>
case screen-name .
when 'VBKD-FKDAT'.
if vbak-vbtyp eq 'C'.
select * from <ztable>
where user_name eq sy-uname.
if sy-subrc eq 0.
screen-input = 0.
endif.
endif.
endcase. -
Import from Word - tab space used with a Word style does not import consistently
When I import from Word using RH 10 (but this has been the case with all versions of RH that I've used) the import messes up my tab spacing in my Note style. To clarify: The Note style in my Word document has the word Note followed by a tab space and then the content of the Note. When I import a Word doc to RH, the conversion of this tab space is inconsistent (from 4-6 spaces) - it seems to depend on the length of the note and whether it continued onto a second line in the word document. Is there any solution to this? TIA.
Simply that plans change at this time of year.
I got exactly the same result and at first I wondered if it was because the document had tracked changes in it. I have seen that cause problems in the past and always recommend accepting them, in a copy document if you don't want to lose the tracking.
Accepting the changes made no difference and I would say this is a bug. Fortunately though there is a workaround that may be acceptable. Quite simply, add a full stop (period) or some other character after the number. A space will not work.
The more people who report a bug or request a feature, the more likely it is to be actioned. 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 -
How to define the tab space in the PL/SQL editor with Oracle Forms 4.5?
When I use the PL/SQL editor with Oracle Form Builder, I found the tab space is very long that affects my programs readability quite a lot. Then, I tried to use Textpad to type my program. It looks fine with Textpad. However, when i tried to 'cut and paste' my code back to the PL/SQL editor, all tab spaces (approx. 8-character) are detected and the program looks awful again ~~ Would any one help me to solve my mentioned problem?
Thanks for any advices!In 4.5 you cannot change this. In Forms 5.0 and above there is a registry value DE_PREFS_TABSIZE which allows you to set a value for the tabsize.
-
Sapscript - Paragraph Format - Tab space Issue
Hello Experts,
I'm facing issue with the Tab Space Alignment in the Paragraph Format.
I'm giving these values for a Paragraph Format Tabs:
Tab Position:
1: 0,10 CH
2 :3,50CH
3: 6,50CH
12: 76,00CH
Inspite of reducing the TAB position for 5th Tab; it is still aligning a bit far.
And whenever the Description (Field 3) is longer; all the Values are pushing towards right.
Alignment is not getting adjusted. How can I make this as Fixed?
Here's the screenshot:
Please advise.
Thanks & Regards,
SowmyaHi,
For Standard Text, Paragraph format will be applicable from Standard Styles which will be creating in Transaction code SE72 and apply that Paragraph Format to Text in Standard Text transaction code SO10 then the Paragraph format will be applicable. And transport the Created Style in SE72 to Quality and Production Systems.
Apply the Created Paragraph format created in SE72 to text by below steps:
So10>Provide text>Click on CHANGE>Click on MENU FORMAT>Change Style->Double click on STYLE created in SE72-->Apply the newly created Paragraph Format to text in So10
Edited by: Venkatmani29 on May 2, 2011 12:43 PM -
About the tab space .......
hi team,
i need small info. on the tab space ...
i have declared the paragragh format for p1 with different spaces... like
for field like kunnr, name1, land1, ort01
for p1: tab spaces
tab1 : 5 cm - left
tab2 10 cm- left
tab3 15 cm -left
p1 : &kunnr& ,,,,&name1&,,,,&land1&,,&ort01&
who it will take the tab spaces can any one explain ..........
from the name1 who it will calculate............for field like kunnr, name1, land1, ort01
for p1: tab spaces
tab1 : 5 cm - left
tab2 10 cm- left
tab3 15 cm -left
p1 : &kunnr&,,,,&name1&,,,,&land1&,,&ort01&
Hi
Dear this is not gonna work....
In scripts evry ',,' counts for tab spclly when they are in same line..here you are using two tabs i.e ,,,, for printing name1 and again printing land1 after 4th tab i.e 2+,,,, i.e. more tabs...
I think you need to create the code as like this....
p1 : &kunnr&,,&name1&,,&land1&,,&ort01&
for p1: tab spaces
tab1 : 5 cm - left
tab2 10 cm- left
tab3 15 cm -left
Reward if useful..
Cheers
Anup -
How to detect TAB SPACES?
Hi Experts,
I'm reading an external file that contains TAB Spaces via GUI_UPLOAD, I transferred it into an internal table and tried to replace the TAB spaces with my line of code below, but still it doesn't work. Below is my line of code and also the structure of the external file that I'm reading, how can I detect TABS? code CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB doesn't work.
Many Thanks in advance
LOOP at i_tab into wa_tab.
REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB IN wa_tab WITH ','.
WRITE /: wa_tab.
MODIFY i_tab FROM wa_tab.
ENDLOOP.
Structure of my external file
NAME1 Country Language NAME2
Daiwabo Information System JP Japanese 販売推進本部 ソフトウェアセンター
Hitachi Electronics Services JP Japanese DS本部 DS第2営業部 日本ユニシス様担当営業
NRI Network Communications, Ltd JP Japanese インターネット事業部
NEC Nexsolutions, Ltd. JP Japanese 資材部
Nippon RAD Inc. JP Japanese 第一事業本部 インフラ事業部
Softbank BB JP Japanese MD2/SW2/1課
Marubeni Infotec JP Japanese 商品MD2部 ソフトウェア1課
BR,
LBJ23
Edited by: LeBron23 on Jul 29, 2009 1:04 PMHi,
How you have passed values in GUI_UPLOAD FM
Check below link
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_file
* FILETYPE = 'ASC'
has_field_separator = 'X' " -----> Just set this flag and see in debugger after upload, values must be in required fields of Itab
* HEADER_LENGTH = 1
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* VIRUS_SCAN_PROFILE =
* NO_AUTH_CHECK = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
data_tab = lt_ebidclt
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Bala Krishna -
There is no facility of bullet points and tabs space I have seen in the any versions of Adobe Muse
There is no facility of bullet points and tabs space I have seen in the both versions of Adobe Muse while working with paragraph text layouts. Can anyone tell me the about it if there?
Saleem Pasha
Graphic Designer
Toronto, CanadaIt's unlikely Muse will ever have tab stops (since HTML/CSS has no concept of tab stops).
Lists and tables are both highly requested features. It's likely lists will be supported in Muse before tables, not due to prioritization, but due to the fact tables is vastly more complicated and thus more work to design, implement and test. -
Eliminate Tab spaces in Customer Text
Hi SAP Gurus,
I have a requirement.
In Smartforms/Script I pull Text from SD Invoice at header level. This text is getting copied from Customer master into Invoice. In Customer master if user enter text along with the spaces or Tabs, It disturbs the Billing output layout. Text doesn't print properly on output. Is there any code available to avoid spaces or tabs in Text so that Text can print accurately.
Thanks in advance.Hi naveen,
CONDENSE
Basic form
CONDENSE c.
Addition
... NO-GAPS
Effect
Shifts the contents of the field c to the left, so that each word is separated by exactly one blank.
Example
DATA: BEGIN OF NAME,
TITLE(8), VALUE 'Dr.',
FIRST_NAME(10), VALUE 'Michael',
SURNAME(10), VALUE 'Hofmann',
END OF NAME.
CONDENSE NAME.
WRITE NAME.
produces the output:
Dr. Michael Hofmann
Addition
... NO-GAPS
Effect
Suppresses all blanks from the field c
Example
DATA: BEGIN OF NAME,
TITLE(8), VALUE 'Dr.',
FIRST_NAME(10), VALUE 'Michael',
SURNAME(10), VALUE 'Hofmann',
END OF NAME.
CONDENSE NAME NO-GAPS.
The contents of NAME is now " Dr.MichaelHofmann ".
Since the field string NAME is interpreted and handled like a type C field, the CONDENSE statement treats it as a whole and ignores any sub-fields. The contents of the component field would therefore now be as follows:
NAME-TITLE = 'Dr.Micha'
NAME-FIRST_NAME = 'elHofmann '
NAME-SURNAME = ' '
Note
Performance
The runtime required to condense three fields is about 20 msn (standardized micooseconds). The variant ... NO-GAPS needs about 12 msn.
Regards,
Anand -
Suppress empty space in column in BEX
Hi, I have the report data like this +along with some other columns:+
retord-----salesord---itms--
qty
8000--10002--
10
blank--10002--
10
blank--10002--
10
I want to pick 1 record from my cube or how can I not show the blank spaces under retord column so that my report should be like this:
retord-----salesord---itms--
qty
8000--10002--
10
We can suppress the rows when the KF values are 0. But how can I suppress the characteristics?
Thanks,
RadhaHi Radha,
Go to Query Designer Rt. Click on Characteristic "retord",
Select RESTRICT, From left side pane of Values select "#",
Transfer to Rt. side.
Rt. Click on that "#", Select EXCLUDE FROM SELECTION.
Save and Execute.It will exclude all Blank values.
Assign points if this helps.
Rgs,
I.R.K -
Suppress leading spaces while displaying an amount field in a Smart form
Hi all,
In a smart form, I am using fields like KONV-kbetr and VBAP-netwr each of them currency type and 2 decimal places. I want to suppress the decimal places and also the leading spaces while displaying these fields in a smartform cause when this field is inserted in a sentence, a lot of gap is there between the field and the words of the sentence. I dont want to change the field length cause it can be that huge in some cases.
Please help.
Thanks ,Hi, if you would place it in a sentence, it would be an option to concatenate the text and values into one string and then condense it.
concatenate <text> <value> into lv_sentence.
condense lv_sentence.
but another way is to use codes for displaying values in smartforms:
This is from a smartforms PDF i have..
Output Options for Field Contents
Use the Formatting options to adapt the value of a field before printing it. You can enter the
relevant parameters directly behind the field name. Make sure to write the short forms of the
different options in uppercase letters. Some of the options can be combined.
General Information
The formatting options are not suited for all data types of fields (for example, for character fields
you need no exponential representation). You must distinguish between numeric fields and
character fields.
Numeric Fields
If specified, the system first evaluates the length (<length>).
If no length is specified, the system displays the value in its overall length.
The trailing blank indicates a positive sign. To suppress it, use formatting option S.
Any offset <offset> specified is ignored.
Sequence of evaluation: (<length>), sign to the left(<),Japanese date (L), suppress blanks (C),
right-justified display (R), insert fillers (F).
Character Fields
By default, the system displays the value of a field in its overall length, but truncates trailing
blanks.
Sequence of evaluation: suppress blanks (C), <offset> and (<length>), right-justified display (R),
insert fillers (F).
Overview
Formatting Options for Fields
Syntax Description
&field+<offset>& Skips <offset> places of the field value (character fields only). If the
offset is greater than the length of the value, nothing is displayed.
&field(<length>)& Sets the output length to <length>.
&field(*)& If the field is defined by a Data Dictionary type, Smart Forms set the
output length to the value specified there.
&field(S)& Suppresses the sign
&field(<)& Displays the sign to the left of the number
&field(.<nat.number>)& Limits output of decimal places to <nat.number>
&field(E<nat.number>)& Displays the field value with the fixed exponent <nat.number>. The
mantissa is adapted to this exponent by shifting the decimal
character and inserting zeros.
SAP Smart Forms (BC-SRV-SCR) SAP AG
Output Options for Field Contents
72 April 2001
&field(T)& Suppresses thousand indicators when displaying fields of types
DEC, CURR, INT, and QUAN.
&field(Z)& Suppresses leading zeros of numbers
&field(I)& Suppresses display of initial values
&field(K)& Deactivates a conversion routine specified in the Data Dictionary.
&field(R)& Right-justified display. Use this option only when specifying an
output length as well.
&field(F<filler>)& Replaces left-justified blanks in the value by the fill character <filler>.
&field(L)& Converts and a date field to a local date and displays it. The date is
then formatted using edit mask JPDAT.
Since this representation uses Japanese characters, use it in the
Japanese version of the SAP System only.
&field(C)& The system takes the field value as a sequence of words separated
by blanks. Option C shifts these words to the left and leaves only
one blank inbetween as separator. Any leading blanks are
suppressed. This effect corresponds to that of the ABAP statement
CONDENSE. -
Questions about tabs, spaces and indenting
I tried to find some information about this in the forum, but I didn't succeed (perhaps I failed at the search). My apologies if this a trivial topic, but as I'm in the learning process of programming (I started with Python and php myself, and Pascal at college) this is a new world to me.
Yesterday I was editing a txt file in Vim, and I encounter a few issues trying to print it. That's when I learned that tabbing all the way thought to format some text maybe is not a good idea. Then a guy in #Vim directed me to use spaces instead of tabs for indenting and formating the text / programs that I write, as the tab indenting is -almost- only needed by makefiles. Also he showed me than in Python programming it is suggested to use spaces as well.
I googled a bit and I found sites like this, with pros and cons about both styles. Also I found a Vim plugin (Smart Tabs) that at first sight seems quite nice, like it have the best of both worlds.
So my question here is: what should I do? Choose one style and stick with it for ever? Choose according the language? Mix up both? Without any experience on this subject it's hard to know the right way, as it seems that both styles have (strong) advantages and disadvantages.
Also, if is not too much no ask, what tab size should I work with? 8 seems a bit large, although seems to be pretty standard for some languages.
Currently I've this on my .vimrc (the relevant part, of course):
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set smartindent
Thanks in advance for any advice.Yes, I think to "choose one style and stick with it" is the most important thing.
I always use two spaces to indent because I like the way it looks. Besides makefiles, I don't use any language that forces me to use either tabs or spaces, so that's not a problem.
I really like this quote:
Linus Torvalds wrote:If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program.
(from Wikiquote) After reading that, I don't think about indentation as much anymore.
Sorry for my English. Feel free to point my errors.
"Sorry for my English. Feel free to point out my errors." ^_^
Maybe you are looking for
-
Byte data extraction and interpretation from a WAVE sound file
Hello, I'm trying to extract the signal data from a WAVE-file for further processing. Suppose the WAVE-file is in 16 bit/stereo format - then I get (8 bit) low-byte and (8 bit) high-byte for the left channel first, and then the low- and high-order by
-
I recently created a calendar event on my iPhone 5. I invited an attendee who received the event too late (approximately 36 hours later). Is there a way to verify and view when I created the event? Also, is this a common problem? Why would this h
-
What is a Siteminder's realm for?
When I configure Siteminder for SSO, I really dont know what is the realm for (or, what is its functionality in SSO)? Can somebody help give a test example which can illustrate a realm's role in SSO? Thanks !!
-
Is the apple time machine is apple machine present in all 2TB WD passport portable drive
Is the apple time machine present in all 2TB WD passport portable drive
-
Retrieve entire before update row image
I am attempting to capture the entire row in a goldengate trail file with an ascii text file format. I am able to extract my captured changes to a flat file with use of the formatascii option in the extract parameter file. I am able to get some of th