One blank line
Hi there,
I have written a package which exports some lines into a .dat file.
The below does the output.
the file exported is correct and has got all the information except for the fact that the first line starts from row number 2 in the file: i.e. the first line of the file is blank and the first row that is extracted using an sql in the package appears in the second line of the file and so on...
Can you please advise?
Thanks
BEGIN
-- Anonymous Block
BEGIN
Space := ' ';
SELECT Program_Station_Code
INTO v_Channel_Code
FROM Additional_Fields_Channel
WHERE Channel_Id = v_Channel_Id;
--Get channel type (primary or +1)
SELECT c.Channel_Name, c.Parent_Channel_Id
INTO v_Channel_Name, v_Parent_Channel_Id
FROM Channel c
WHERE Channel_Id = v_Channel_Id;
IF v_Parent_Channel_Id <> -1
THEN
-- +1's
--Check to see if any feeds setup against channel
SELECT COUNT(1)
INTO v_Day_Part_Count
FROM Day_Part Dp
WHERE Dp.Channel_Id = v_Channel_Id;
IF v_Day_Part_Count = 0
THEN
v_Start_Time_Start_Range := 540000; --06:00
v_Start_Time_End_Range := 2610000; --29:00
ELSE
SELECT Dp.Start_Time, Dp.Start_Time + Dp.Duration
INTO v_Start_Time_Start_Range, v_Start_Time_End_Range
FROM Day_Part Dp
WHERE Dp.Channel_Id = v_Channel_Id;
END IF;
v_New_Channel_Id := v_Parent_Channel_Id;
SELECT c.Network_Offset
INTO v_Duration_Offset
FROM Channel c
WHERE c.Channel_Id = v_Channel_Id;
IF v_Start_Time_End_Range >= 2610000
THEN
v_Take_Prgs_From_Previous_Day := 1;
ELSE
v_Take_Prgs_From_Previous_Day := 0;
END IF;
v_End_Time := 2610000; --29:00
ELSE
v_New_Channel_Id := v_Channel_Id;
v_Duration_Offset := 0;
v_Start_Time_Start_Range := 540000;
v_Start_Time_End_Range := 2700000;
END IF;
p_Filename := '0' || Substr(v_Channel_Code, 1, 4) || '-' ||
To_Char(v_Start_Date, 'DDMMYY') || '.dat';
l_Output := Utl_File.Fopen('TEST', p_Filename, 'w', 32767);
Utl_File.New_Line(l_Output);
FOR Each_Record IN Infosys_Cursor LOOP
v_Report_On_Date := To_Char(v_Start_Date, 'DDMMYY');
v_Adjusted_Start_Time := Tools_Pkg.Get_Time_Display_2(Each_Record.Start_Time +
v_Duration_Offset,
1,
1);
/* IF v_Adjusted_Start_Time < 540000
THEN
v_Adjusted_Start_Time := 540000;
END IF;*/
v_New_Start_Time := Substr(To_Char(v_Adjusted_Start_Time), 1, 2) ||
Substr(To_Char(v_Adjusted_Start_Time), 4, 2) ||
Substr(To_Char(v_Adjusted_Start_Time), 7, 2);
v_Mins_To_Secs := To_Number(Substr(Each_Record.Duration, 4, 2)) * 60;
v_Secs := To_Number(Substr(Each_Record.Duration, 7, 2));
v_Total_Secs := Lpad(To_Char(v_Mins_To_Secs + v_Secs), 3, '0');
v_Description := Rpad(Each_Record.Programme_Name, 30, ' ') ||
Rpad(Each_Record.Event_Description, 30, ' ');
v_Type_Description := Substr(Rpad(To_Char(Each_Record.Type_Description),
10,
1,
3);
v_Short_Channel_Name := Substr(Rpad(To_Char(Each_Record.Short_Name),
4,
1,
2);
Utl_File.Put(l_Output, Each_Record.Area_Code);
Utl_File.Put(l_Output, v_Report_On_Date);
Utl_File.Put(l_Output, '0' || v_Channel_Code);
Utl_File.Put(l_Output, v_New_Start_Time);
Utl_File.Put(l_Output, v_Total_Secs);
Utl_File.Put(l_Output, Rpad(Each_Record.House_Number, 14, ' '));
Utl_File.Put(l_Output, Space || Nvl(v_Short_Channel_Name, 'NA'));
Utl_File.Put(l_Output, Space || v_Type_Description || ':');
Utl_File.Put(l_Output, Space || v_Description);
Utl_File.New_Line(l_Output);
END LOOP;
Utl_File.Fclose(l_Output);
END;
Utl_File.Fclose(l_Output);
Utl_File.Fclose(l_Logfile);
You are doing it yourself.
l_Output := Utl_File.Fopen('TEST', p_Filename, 'w', 32767);
Utl_File.New_Line(l_Output); That new_line is creating a blank new line at the start. According to you, it's not needed.
Message was edited by:
Dave Hemming
Similar Messages
-
Blank line in text file after download
Hi all,
i am using the below code to get the 254 blank spaces at the end of the text file & it's comming correctly.
generally i am downloading 2 lines in the original program & i am getting one blank line in between these two lines.
The main thing is that i am getting this blank line when i run this program in my office computer. But i am not getting this blank line when i run this same program in my home laptop. Please suggest why this blank line is appearing & any solution ?
DATA: BEGIN OF OUTTAB OCCURS 100,
PROD_CODE(3),
LINE_DETL(2043),
END OF OUTTAB.
DATA:V_OUTPUT(2043).
DATA: space_character type c.
space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
DO 254 times.
CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
ENDDO.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
call function 'GUI_DOWNLOAD'
EXPORTING
filename = OUTFILE1
filetype = 'ASC'
TABLES
data_tab = OUTTABI don't think this is issue of ABAP. Any way just to check download the file on laptop and open same file and office computer
if file looks ok then it is OS or text editor issue.
Thanks,
AK. -
How to suppress blank line in top and end of portlet
I created one small report (portlet) however when i execute this one; i remarked there is one blank line in the top
and another one at the end of the report. How can i eliminate these lines. I need this space to be able to see
a lot of information in the same page.
I use portal 3.0.9.2After developping a lot of portlet and read a lot of TAR on metalink and a lot of message on OTN i discovered the solution.
Wnen you create one report with the wizard there is no way to erase the first line ( header ) in the result.
Second for the last line of the results ( blank line ) ; the problem is with netsacpe 4.75 ( no problem with internet explorer )
with Netscape you will see one blank line and not with internet explorer ( confirm with Oracle support )
Anyway in the place of developping one report with the wizard ; you can copy and paste your sql statement of your report
inside one dynamic page and control all you want.
I will give you one example than i created; i hope it will help other persons like me
( we need to read a lot of thing to do something really simple with portal )
<HTML>
<HEAD>
<style type="text/css">
<!--
.TabFontText {
font-family: Arial, Helvetica;
font-size: 9pt;
-->
</style>
</HEAD>
<BODY>
<ORACLE>
begin
htp.p('<table cellspacing=0>');
for c in ( select '<a TARGET="_blank" HREF="http://'||ssdw_portal.pkg_globl.
fnc_get_server_port||'/pls/portal30/docs/FOLDER/SSDW_AIDE/'||replace(item.name,
' ','+')||'">'||item.display_name||'</a>' filename , to_char(item.updatedate,'dd/mm/yyyy hh24:mi') last_updated
FROM portal30.wwsbr_all_items item ,
portal30.wwsbr_all_folders folder
WHERE folder.name = 'SSDW_AIDE'
and folder.caid = item.caid
and folder.id = item.folder_id
and item.language = 'us'
and item.name like 'GUIDE%ANG%'
order by item.name ) loop
htp.p('<tr>');
htp.p('<td bgcolor=#CCCCCC width=325>');
htp.p('<font class="TabFontText" >');
htp.p(c.filename);
htp.p('</td>');
htp.p('</font>');
htp.p('<td bgcolor=#CCCCCC width=125>');
htp.p('<font class="TabFontText">');
htp.p(c.last_updated);
htp.p('</td>');
htp.p('</font>');
htp.p('</tr>');
end loop;
htp.p('</table>');
end;
</ORACLE>
</BODY>
</HTML>
Marc Fortin
[email protected] -
Blank line is appearing in the file in GUI_DOWNLOAD
Hi all,
i am downloading two lines into the text file. i am getting one blank line in between this two line if i use the 'GUI_DOWNLOAD' FM. This blank line is not appearing if i use 'WS_DOWNLOAD' FM. Please advise why the blank line is comming between this two downloaded line. Thanks
DATA: BEGIN OF OUTTAB OCCURS 100,
PROD_CODE(3),
LINE_DETL(2043),
END OF OUTTAB.
DATA:V_OUTPUT(2043).
DATA: space_character type c.
space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
DO 254 times.
CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
ENDDO.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
call function 'GUI_DOWNLOAD'
EXPORTING
filename = OUTFILE1
filetype = 'ASC'
TABLES
data_tab = OUTTABHi Pabitra,
My unerstanding of your requirement is " you are trying to download a file to local drive using GUI_DOWNLOAD and it give a blank line between 2 data and the same using WS_DOWNLOAD is not giving any line in between the data".
I have tried the code piece you have provide with both the FM's and both downloaded the similar file i mean both downloaded the data similarly. Please see the code below
DATA: BEGIN OF OUTTAB OCCURS 100,
PROD_CODE(3),
LINE_DETL(2043),
END OF OUTTAB.
DATA:V_OUTPUT(2043).
DATA: space_character type c.
space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
V_OUTPUT = 'Please print it'.
DO 254 times.
CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
ENDDO.
CONCATENATE V_OUTPUT 'testing' INTO V_OUTPUT.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
CLEAR OUTTAB.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
CLEAR OUTTAB.
*call function 'GUI_DOWNLOAD'
*EXPORTING
*filename = 'C:\test2.txt'
*filetype = 'ASC'
*TABLES
*data_tab = OUTTAB.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = 'C:\test1.txt'
FILETYPE = 'ASC'
TABLES
data_tab = OUTTAB.
I think the Blank line which you got would be a result of Word wrap property of the notepad.
If i did not get your question correctly can you please elaborate me.
Thanks & Regards!
Praveenkumar T. -
ESS - Bank - Payment method showing blank line
Hi All,
I have two specific problem for ESS - Bank.
1. In the ESS - Bank Information, we have a requirement to restrict Payment Method for a specific condition.
If employee's current Payment method (in IT09-ZLSCH) is 'E' (BAC Transfer), then he can not choose any other Payment method in the Edit section. In order to accomplish that. we have used Badi HRPAD00INFTYUI and in the method FILL_HELP_VALUE, we have put the code to restrict Payment method to current payment method for above condition.
Sample Code:
READ TABLE help_values INTO help_values_wa WITH KEY fieldname = 'ZLSCH'.
ASSIGN help_values_wa-data->* TO <tabs>.
if pa_0009-zlsch = c_pay.
Loop at <tabs> ASSIGNING <wa_tab>.
assign COMPONENT 1 of structure <wa_tab> to <comp>.
if <comp> NE c_pay.
delete <tabs>.
endif.
endloop.
endif.
As a result, we are getting 2 drop down values. One is Bank Transfer (As desired) and one Blank Line. In debug mode we saw help_values table only contains Bank Transfer. Thus I think this Blnak line is getting added by other SAP code.
Please help me for this issue and I would like to know how I can get rid of this Blank Line.
2. In Bank, We have created two Iviews. one for Edit. and Another for New Bank Account. Both of these hit BAdi HRPAD00INFTYUI in the Back end. For new Bank Account, BAdi implementation should be skipped so that user can have all Payment methods available even if his current Payment Mehtod is Bank Transfer. We have used Decoupled Framework also.
Please let me know how can I deactivate /filter above Badi implementation for New Bank Account.Guys,
I feel, there is a SAP bug for the blank line in the web dynpro drop drown. In bank application, payment method will have a blank line entry by default. After doing a system debugging, I am sure that, this is not a back end bug. While system is binding values to frond end pick list (Dropdown box) element, it includes a blank line for unknown (to me at least) reason.
Thus, the only option to get rid of this issue is to make the field mandatory.
Can anybody reply for my second question that I have posted.
2. In Bank, We have created two Iviews. one for Edit. and Another for New Bank Account. Both of these hit BAdi HRPAD00INFTYUI in the Back end. For new Bank Account, BAdi implementation should be skipped so that user can have all Payment methods available even if his current Payment Mehtod is Bank Transfer. We have used Decoupled Framework also.
Please let me know how can I deactivate /filter above Badi implementation for New Bank Account.
Regards,
Kalikinkar -
More than 1 blank line available for input in IP-Excel based?
Hello,
We are converting a large BW-BPS application (> 200 active users) to IP.
A major requirement is the availability of the "blank screen" in Excel, similar to the BPS standard screen, where users can cut-and-paste multiple lines into it.
IP - Excel-based appears to give only one blank line available for input at the bottom of the query. Is there a setting or change available to give 20 blank lines, similar to the UPP_SET_DEFAULT_DUMMIES program for BPS?
If this is not available it would be a large drawback to converting to IP, as users require pasted-in input from other systems, or "templates" where they change just a few numbers or rows each month, etc.
Thanks,
Aaron BennerMayank, thanks for the info. I knew about the analysis item option in the web, unfortunately I'm only interested in the Excel option.
Marc, can you shed any light on this subject, as pertains to the Excel-based IP?
Thanks, Aaron -
Smartforms: Blank line is displaying in item list from page2 onwords
Hi Guys,
In Output messages(ME9K), using smartform to display list. First page layout and 2nd, 3rd .......pages layout is different.
so i defind two pages. output list displaying is correct which is more then 2 pages, but from 2nd page onwords one blank line is coming in mainwindow at items list.
2nd page i selected is mode:Page and overall page unchanged.
can you suggest me please.
Srinu.Mike,
I'd guess that you're getting an "extra value". The tenth parameter to select_list_from_lov can be set to 'NO' to suppress this but you'll want to determine why there is an extra value if you aren't expecting one.
Scott -
I am creating a blank file in which one blank line is getting created.. Is there any way to solve this...
I have below config.
Acknowledgement.fieldFixedLengths 1
Construction Mode: create
Put file: directly
File Type: textPathak,
Are you trying the whole file as blank? If yes then give a try with:
Acknowledgement.fieldFixedLengths 0
---Satish -
Grid using - GL_GUI_ALV_GRID inserting blank line
Hi experts ...
I am creating report using grid instance of class GL_GUI_ALV_GRID ...
its displaying results output table say itab[] ... I want to insert one blank line in display ...
if i append work area of type itab to itab ... in that case the column which showing amount displays 0.0
instead i want complete blank row ...
Thanks & Regards ...
AshishHi,
check this link;[Blank Row in ALV Grid Display;
hope u'll get some idea.
Regards,
Sneha. -
hi,
i created one table in the main window.
its displaying all the records.
it is having 29 records.
in the 1st page its showing 15 records and after that one blank line.
in the next page its showing rest of the record.
how can i remove that blank line from the first page.
can any one suggest me. its very urgent.
thanks.Hi,
U can handle this as follows,
don't give border to main window, in main window table must be there , then for each cell assign the border in such a way that table will have outer border only , this icons are nearby atble pattern icon , can use it.
Pls reward , if found helpful. -
Smartform, blank line inbetween TWO include texts
Dear Gurus,
IN SMARTFORMS ,
I have to include a blank line inbetween two consecutive include texts.
Please help me.
Regards,
Roshan Lilaram.Dear Matt this will not help my issue, i need a blank include text ONLY.
See for Eg, i have four include texts, inbetween each of these i put a text element as you said, then even if i am not printing anything in my second include text,this text element will be printed with a blank line,
Now as per this condition, there are two blank lines inbetween my first and third include text.
This is not right logically, In any case i need one and only one Blank line,
I hope i have made my issue more clear.
Please help me in getting a Blank Include Text.
Regards,
Roshan Lilaram. -
Data Merge - Not removing blank lines when more than one in a row
I am having the same problem as mentioned here: http://forums.adobe.com/message/2109531#2109531 That post is for some reason set as "answered" though the poster said the latest update did not resolve the issue. Has anyone found a solution to this issue?
Thanks much,I"d suggest you try running the merge WITHOUT removing blank lines, then use GREP to remove empty paragraphs. There's a pre-written saved query in the list.
Peter -
Suppress Blank Lines in RTF Template
We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
The pivot table cell uses @cell:top XML level to produce fixed number of columns.
There are two for-each-groups in the cell under the @cell tag.
Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
Is there a way to suppress blank lines in an RTF template?I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
Thank you very much. -
I am trying to display three lines of text but blank lines are being inserted between them.
I have a section on the right side of my homepage for upcoming events. It was displaying fine until I changed the data and now the three lines are displaying blank lines between each one.
Here is the code.
<h2 class="meeting"> </h2>
<h2 class="meeting"><a href="http://www.astm.org/MEETINGS/filtrexx40.cgi?+-P+TERM+D02+searchresults.frm">ASTM D02 2014</a></h2>
<img class="news-image" src="images/news/Sheraton San Diego.jpg" width="100" height="61" />
<p class="news-text">December 7-11, 2014</p>
<p>Sheraton San Diego Hotel and Marina</p>
<p>San Diego, CA</p>
</div>
ASTM D02 2014
December 7-11, 2014
Sheraton San Diego Hotel and Marina
San Diego, CA
The picture is displaying to the right but I want to get rid of the blank lines between the text. I am using Dreamweaver CS5 Version 11.0 Please help.Sorry I inserted the wrong code.
<div id="rightsideUpcomingevents">
<h2 class="upcoming">Upcoming Events</h2>
<h2 class="meeting"><a href="http://www.gulfcoastconference.com">Gulf Coast Conference</a></h2>
<img class="news-image" src="images/news/hotel_moody.jpg" width="100" height="61" />
<p class="news-text">October 14-15, 2014</p>
<p class="news-text">Moody Gardens Convention Center</p>
<p class="news-text">Galveston, TX</p>
<h2 class="meeting"> </h2>
<h2 class="meeting"><a href="http://www.astm.org/MEETINGS/filtrexx40.cgi?+-P+TERM+D02+searchresults.frm">ASTM D02 2014</a></h2>
<img class="news-image" src="images/news/Sheraton San Diego.jpg" width="100" height="61" />
<p class="news-text">December 7-11, 2014</p>
<p class="news-text">Sheraton San Diego Hotel and Marina</p>
<p class="news-text">San Diego, CA</p>
</div>
.rightside-text
{padding:0px; color:#172B61;}
.news-image {float:right; margin-right:10px; }
.news-text { padding:0px; color:#000;} -
Blank line in excel using SO_NEW_DOCUMENT_ATT_SEND_API1
Hi Experts
I have a small issue while using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1". I am sending an excel file using this function module, but in the mail, the excel has one blank row on top. My client people doesnt want it.
Is there any method where we can control this in the program. I m filling pack list like below
CLEAR i_pack_list-transf_bin.
i_pack_list-head_start = 1.
i_pack_list-head_num = 1.
i_pack_list-body_start = 1.
i_pack_list-body_num = i_lines.
i_pack_list-doc_type = 'RAW'.
APPEND i_pack_list.
DESCRIBE TABLE i_excel LINES i_lines.
READ TABLE i_excel INDEX i_lines.
i_pack_list-transf_bin = 'X'.
i_pack_list-head_start = '1'.
i_pack_list-head_num = '1'.
i_pack_list-body_start = '1'.
i_pack_list-body_num = i_lines.
i_pack_list-doc_type = 'XLS'.
i_pack_list-obj_name = 'Propose UWYR Results'.
CONCATENATE 'Propose UWYR Results' sy-datum INTO i_pack_list-obj_descr SEPARATED BY space.
i_pack_list-obj_langu = 'E'.
i_pack_list-doc_size = i_lines * 255.
APPEND i_pack_list.
CLEAR i_pack_list.
Please suggest me if there is any other alternative.
Thanks
PraveenClear i_pack_list. and then ,
Remove lines in BOLD.
READ TABLE i_excel INDEX i_lines.
i_pack_list-transf_bin = 'X'.
i_pack_list-head_start = '1'.
i_pack_list-head_num = '1'.
i_pack_list-body_start = '1'.
i_pack_list-body_num = i_lines.
i_pack_list-doc_type = 'XLS'.
i_pack_list-obj_name = 'Propose UWYR Results'.
CONCATENATE 'Propose UWYR Results' sy-datum INTO i_pack_list-obj_descr SEPARATED BY space.
i_pack_list-obj_langu = 'E'.
i_pack_list-doc_size = i_lines * 255.
APPEND i_pack_list.
CLEAR i_pack_list.
Now issue will be solved
Edited by: Harsh Bhalla on Nov 26, 2009 4:39 PM
Maybe you are looking for
-
How I fixed iTunes 5 and Updater 2005-09-23 problem
After a frustrating couple of weeks I have music back on my iPod! (BTW, I drove to an Apple store 60 miles from home and the Genius told me that if this was a major problem Apple would shortly be releasing another update to fix what this update broke
-
HT5699 security questions and answers...
hi i have a new ipod and i have forgot the securtiy questions and answers therefore i can not download any music or apps how can i sort this problem?
-
Accordion panel spry not working...
Can someone please look at this site and see what I am doing wrong? My accordion is not working on the "heaven" page, but does work on the "about" page. ??? This link is the problem page. This link, with the same accordion (on the same site) works fi
-
Adobe media encoder exports look pixelated and has artifacts.
Hello all, For the past week we've been having terriable looking videos after compressing them with premiere pro 2014 or AME CC 2014. I though it might be a key framing issue at first. When we look at the final product we have areas where pixilation
-
Issue when using broadcaster in query desinger
Hi All, we are having issues when we try to either distribute workbooks, it comes with a workbook page but nothing shows up on the page,samething when I try from query designer and try to publish it using broadcaster,the page does not show up