How to SKIP a line in REPORTS 2.5 ?
Hi
I am trying to print something on a sheet which has perforations in the middle of the sheet. I need to skip the perforation line from my repeating frame which keeps printing the data. For eg. If I cross line no 11 then I need to skip one line and then start printing.
Could someone help with this one.
Thanks
Prabs
null
Hi,
Add "SKIP 1" to the BREAK command:
BREAK ON amount SKIP 1
Similar Messages
-
How to Skip/delete line under report name
Hi,
How to delete line under report name
Thanks,,Hi,
Edit The Title View and goto Format Title View just near to brush symbol ie above the word Title
Border -> Position -> None
Thanks,
Balaa... -
How to select multiple lines in reports
Hi,
how to select multiple lines in a reports and process those selected lines to other activities like BDC.
Please paste sample report here. or any demo examples . (don't paste ALV report , paste only classical report)
suppose there are 10 records in output, i want to select 3 records and process other activities like bdc.
Point will awarded.Hi ,
the o/p in ur case will be a basic list output with a check box enabled in the left .
Now say there are 10 records in the list output and i have checked 3 of them where checkboxes are enabled .
And i press a button to submit this to the BDC .
Here u need to make use of
READ LINE statement to read the records from the list output and then pass them to the BDC .
The code would be something like this
DO .
Read line index <field> where checkbox <> ' '.
ENDO.
You can have a look at the F1 help on read line . This will mkae u clear .
Hope this gives u an idea.
Regards,
Vijay. -
How to skip a line like !-- PJG STAG 4700 -- ?
I am doing a project that requires me to parse a documents.
The documents have different tags, and main text area between <TEXT> and </TEXT>, here is an example:
<DOC>
<DOCNO> FT911-3 </DOCNO>
<HEADLINE>
FT 14 MAY 91 / International Company News: Contigas plans DM900m east
German project
</HEADLINE>
<!-- PJG 0012 frnewline -->
<TEXT>
CONTIGAS, the German gas group 81 per cent owned by the utility Bayernwerk, said yesterday that it intends to invest DM900m in the next four years.
</TEXT>
</DOC>
Since the main porpuse is to read text body, so I will skip those text between tags except <TEXT></TEXT>.
I can use switch statement to skip the text between tags, but I can't find a way to skip a line like:
<!-- PJG 0012 frnewline -->
any suggestions?Let me correct my former statement for jesper1, this is SGML( Standard Generalized Markup Language)
document, early version for XML, so jesper1 are kind of right.
For freekee:
First step:
/** returns a hashmap of initialized tags
* This way we can have more than one tagstring map to the same
* tag type. For example, we might have DOCID and DOCUMENTID both
* map to the BEGIN_DOCID tag.
private HashMap initTags() {
int NUM_TAGS = 20;
Integer tagVals[] = new Integer[NUM_TAGS];
HashMap tags = new HashMap();
for (int i = 0; i < NUM_TAGS; i++) {
tagVals[i] = new Integer(i);
tags.put("<DOC>", tagVals[0]);
tags.put("</DOC>", tagVals[1]);
tags.put("<PARENT>", tagVals[2]);
tags.put("<TITLE>", tagVals[2]);
tags.put("<TL>", tagVals[2]);
tags.put("<HEADLINE>", tagVals[2]);
tags.put("</PARENT>", tagVals[3]);
tags.put("</TITLE>", tagVals[3]);
tags.put("</TL>", tagVals[3]);
tags.put("</HEADLINE>", tagVals[3]);
tags.put("<TEXT>", tagVals[4]);
tags.put("</TEXT>", tagVals[5]);
tags.put("<DOCID>", tagVals[6]);
tags.put("<DOCNO>", tagVals[6]);
tags.put("</DOCID>", tagVals[7]);
tags.put("</DOCNO>", tagVals[7]);
tags.put("<DATELINE>", tagVals[8]);
tags.put("</DATELINE>", tagVals[9]);
return tags;
second step:
/* this will read the file of documents, parse them and return a list of document */
/* objects. Could be called the document factory since it generates useful */
/* document objects that can then be indexed. */
/* Documents are created when an end of document tag is encountered. */
public ArrayList readDocuments() {
String dateline = null;
String docName = null;
ArrayList documentList = new ArrayList();
boolean done = false;
int documentID = 0;
int length = 0;
int offset = 0;
String title = null;
boolean endOfFile = false;
while (! done) {
System.out.println("Token --> " + in.sval);
/* check to see if we hit the end of the file */
try {
if (in.nextToken() == in.TT_EOF) {
done = true;
endOfFile = true;
continue;
/* now test for a tag */
switch (in.ttype) {
// where does "END_DOC" come from?
// Since: tags.put("</DOC>", tagVals[1]), so </DOC> is mapped to value 1.
// and since in the initialization: private final static int END_DOC = 1;
// in.ttype returns a int, like TT_WORD
case END_DOC:
/* when we hit the end of a document, lets create a new object */
/* to store info needed for indexing */
length = in.currentPosition - offset;
Document d = new Document (documentID, docName, title, dateline,
inputFileName, offset, length, distinctTerms);
++documentID;
documentList.add(d);
break;
/* initialize document attributes when we start a new doc */
case BEGIN_DOC:
System.out.println("Started new document");
offset = in.currentPosition;
docName = null;
dateline = null;
title = null;
distinctTerms = new HashMap();
break;
case BEGIN_DOC_NAME:
docName = readNoIndex(in, END_DOC_NAME);
break;
case BEGIN_TITLE:
title = readNoIndex(in, END_TITLE);
break;
case BEGIN_DATELINE:
dateline = readNoIndex(in, END_DATELINE);
break;
case BEGIN_TEXT:
readText(in, stopWords);
break;
/* only time we get a word here is if its outside of any tags */
case WORD:
break;
default: {
System.out.println("Unrecognized tag: "+in.sval);
System.exit(-1);
} catch (IOException e) {
System.out.println("Exception while reading doc ");
e.printStackTrace();
return documentList;
}Did I answer your question correctly? -
How to hide Bottom Line in Report ?
Hi everyone,
We are working on Reports 11gr2 64-bit.
In every report, when text is completed on a page, a horizonal line (i.e. bottom line) at the end of the every page is shown and printed unnecessarily.
But creates problem in printed stationary, specially in Cheque-printing.
Kindly advise me how to hide this bottom-line, specially in printing.
Thanks.
Dev.
Edited by: ocpdev on Apr 5, 2013 6:29 PMHI
Is these reports are developed on 11g or migrated from earlier version.
Anyhow, to test it, - create a report from scratch on 11g and run it, Also check the Footer for any Lines on it.
I hope you can identify the issue by redoing the thing for testing
Best of luck
ocpdev wrote:
Hi everyone,
We are working on Reports 11gr2 64-bit.
In every report, when text is completed on a page, a horizonal line (i.e. bottom line) at the end of the every page is shown and printed unnecessarily.
But creates problem in printed stationary, specially in Cheque-printing.
Kindly advise me how to hide this bottom-line, specially in printing.
Thanks.
Dev.
Edited by: ocpdev on Apr 5, 2013 6:29 PM -
How to skip certain lines for a txt file and insert into array
so here is my question:
i had a file to read, and it requires to input into the array starting from a certain line
example:
4
john 25 M
mary 22 F
lee 20 M
faye 10 F
faye john
mary john
mary faye
i want to insert the friend list, starting 5th line into a 2d array, which is the int from first line +1.
can someone help me with it?
i believe there is a skip method and stuff..
but just dont know how to use it
may someone tell me how to do tat?the thing is i think that takes too long and it is not efficient..
however...i just solved it with a better method
Scanner in = new Scanner (reader);
int size = Integer.parseInt(in.next());
BufferedReader insert = new BufferedReader(new FileReader(new File(input)));
String line = null;
int count = 0;
int startAtLineNo =size+1; // 0-based
while ((line = insert.readLine()) != null) {
if (count >= startAtLineNo) {
/* do stuff */
System.out.println(line);
// else ignore
count++;
thanks anyways -
Hi,
How to deal with blank rows in FCC for fixed width file?
I want to ignore these records as they will fail the message in mapping.
thanks,
Anirudh.Hi
Look this thread might help u
Blank line in receiver file adapter content conversion -
How to skip blank line (EOF char) at the end of the file while creating ?
Hi,
In my program I have to create a file in Text mode using OPEN DATASET statement. This file is being sent to a third party system for their processing. I came to know while creating the file using OPEN DATASET, one LF character is inserted end of the file resulting a blank line end of the file. Thus if my internal table contains 5 reocrds, in the created text file I can see 6 lines where last is a blank. My question is how to remove this blank line which is causing issue in the thirdparty system.
Here is the Code I have used.
TRY.
Write the file in Text Mode
OPEN DATASET lv_outpf FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE
WITH SMART LINEFEED
MESSAGE lv_msg.
IF lv_msg IS NOT INITIAL.
WRITE / lv_msg.
EXIT.
ENDIF.
LOOP AT itab_new INTO st.
TRANSFER st TO lv_outpf.
ENDLOOP.
CLOSE DATASET lv_outpf.
CATCH cx_root. "#EC No Handler
ENDTRY.an effective way to do it:
open your dataset in binary mode, transfer the records but between each record transfer the LF (or CRLF according to your need)
after the last record you don't transfer the LF -
How I skip firt page of report
When Press on Print button to print report, then it start from 1 page.
Is it possible that report start printing from the 2nd page....
Plz help if possible...
Thanks alot..I think the ans already given
How i start printing report from 2nd page
don't make forums dirty your question is still there y don't be with that only rather starting new one???
ok i tried and it's working wht i wrote in that ans(link given above)
Enjoy Oracle... -
How to show 2 lines in report from 2 other servers scom 2012
hello i want to create 2 report in one report. ex availability report of 2 servers in one chart can i do this or it is impossible?
Hi,
If you want to combine and customize two reports, you would have to go into Visual studio for instance and create your own report.
Here is a blog for your reference.
Custom Report Authoring for Beginners
http://blogs.technet.com/b/jonathanalmquist/archive/2011/01/03/custom-report-authoring-for-beginners.aspx
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Skip 1 Line in ALV report.....
Hi Experts,
I have made ALV report in which user wants one blank line after each row.
How to skip one line after each row in ALV ?
YusufHi Yusuf,
It is really a typical requirement.
There is a solution to that.
In the internal table that you are passing to the function module, append a blank line to that itself.
Like:
LOOP AT itab INTO wa.
APPEND wa TO itab3.
CLEAR wa.
APPEND wa TO itab3.
ENDLOOP.
REFRESH itab.
itab[] = itab3[].
But remember not to do sorting after that or not to pass the sorting table parameters.
If you have an extra line at the bottom you can delete that by reading the number of lines through the describe statement and delete the last row of the table.
Try this hiope this will work.
Reward points if found useful.
Thanks & regards
Abhijit -
How to skip to another line??
Can anyone tell or show me when I wrire a message I. Don't know how to skip a line to go to another paragragh I tried using space key pad but its not working how can I?
Press the return or enter key to skip a line while typing a message.
tanzim
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit -
How to read complete line displayed thru ALV report on double click? urgent
Hi guys,
An ALV report is displayed using 'REUSE_ALV_LIST_DISPLAY' and i have a requirement such that i have to read the line item on which double click is done.
I have to fetch the line item, field by field and not by characters. I have attached the function code and all using PF status.
Please tell me an approach as how to fetch the line item on which double click is done.
Points will be rewarded.
Regards
RahulHi ..
i did report with belnr , bukrs , Gjahr . which will call the transcation code FB03 displaing thedocument ...
please cut and paste the report it will work ..
REPORT zdemo_alvgrid .
TABLES: bkpf . " ekko.
type-pools: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
BUKRS like bkpf-BUKRS,
BELNR like bkpf-BELNR,
GJAHR like bkpf-GJAHR,
BLART like bkpf-BLART,
BLDAT like bkpf-BLDAT,
BUDAT like bkpf-BUDAT,
MONAT like bkpf-MONAT,
XBLNR like bkpf-XBLNR ,
* ebeln TYPE ekpo-ebeln,
* ebelp TYPE ekpo-ebelp,
* statu TYPE ekpo-statu,
* aedat TYPE ekpo-aedat,
* matnr TYPE ekpo-matnr,
* menge TYPE ekpo-menge,
* meins TYPE ekpo-meins,
* netpr TYPE ekpo-netpr,
* peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
* Build Fieldcatalog for ALV Report
form build_fieldcatalog.
* There are a number of ways to create a fieldcat.
* For the purpose of this example i will build the fieldcatalog manualy
* by populating the internal table fields individually and then
* appending the rows. This method can be the most time consuming but can
* also allow you more control of the final product.
* Beware though, you need to ensure that all fields required are
* populated. When using some of functionality available via ALV, such as
* total. You may need to provide more information than if you were
* simply displaying the result
* I.e. Field type may be required in-order for
* the 'TOTAL' function to work.
fieldcatalog-fieldname = 'BUKRS'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
* fieldcatalog-do_sum = 'X'.
* fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BELNR'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'GJAHR'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BLART'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BLDAT'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'BUDAT'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MONAT'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'XBLNR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
* fieldcatalog-do_sum = 'X'.
* fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
** fieldcatalog-fieldname = 'PEINH'.
** fieldcatalog-seltext_m = 'Price Unit'.
** fieldcatalog-col_pos = 8.
** append fieldcatalog to fieldcatalog.
* clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
* Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
* gd_layout-totals_only = 'X'.
* gd_layout-f2code = 'DISP'. "Sets fcode for when double
* "click(press f2)
* gd_layout-zebra = 'X'.
* gd_layout-group_change_edit = 'X'.
* gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
* Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
* i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
* it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
* is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
* Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select BUKRS
BELNR
GJAHR
BLART
BLDAT
BUDAT
MONAT
XBLNR up to 10 rows
from bkpf
into table it_ekko.
*select ebeln ebelp statu aedat matnr menge meins netpr peinh
* up to 10 rows
* from ekpo
* into table it_ekko.
endform. " DATA_RETRIEVAL
* Form TOP-OF-PAGE *
* ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
* Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
* Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
* Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
* i_logo = 'Z_LOGO'.
endform.
* FORM USER_COMMAND *
* --> R_UCOMM *
* --> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Check function code
CASE r_ucomm.
WHEN '&IC1'.
* Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'BELNR'.
* Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
* Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-bELNR .
SET PARAMETER ID 'MES' FIELD wa_ekko-bUKRS .
SET PARAMETER ID 'DES' FIELD wa_ekko-GJAHR .
* Sxecute transaction ME23N, and skip initial data entry screen
* CALL TRANSACTION 'FB03' AND SKIP first screen.
SUBMIT RFBUEB00
* WITH ALCUR ...
* WITH ARCHOBJ ...
* WITH ARCH_SEL ...
* WITH ARUSETYP ...
* WITH AUTBEXNO ...
* WITH AUTH_BUK ...
* WITH AUTH_LDR ...
* WITH BR_AWKEY ...
* WITH BR_AWSYS ...
* WITH BR_AWTYP ...
WITH BR_BELNR = wa_ekko-bELNR
* WITH BR_BLART ...
* WITH BR_BLDAT ...
* WITH BR_BUDAT ...
WITH BR_BUKRS = wa_ekko-bUKRS
* WITH BR_CPUDT ...
WITH BR_GJAHR = wa_ekko-GJAHR
* WITH BR_RLDNR ...
* WITH BR_SEQ ...
* WITH BR_USNAM ...
* WITH BR_XBLNR ...
* WITH EXCDT ...
* WITH P_STATS ...
* WITH STATISTK ...
* WITH STATUSD ...
* WITH STATUSL ...
* WITH STATUSM ...
* WITH STATUSS ...
* WITH STATUSV ...
* WITH TCODE ...
* WITH UNAME ...
* WITH XEMUCNV ...
* WITH XUSEAR ...
* WITH XUSEAS ...
* WITH XUSEDB
AND RETURN .
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
* Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
* Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
reward points if it is usefull ...
Girish -
How to skip first 5 lines from a txt file when using sql*loader
Hi,
I have a txt file that contains header info tat i dont need. how can i skip those line when importing the file to my database?
CheersDanny Fasen wrote:
I think most of us would process this report using pl/sql:
- read the file until you've read the column headers
- read the account info and insert the data in the table until you have read the last account info line
- read the file until you've read a new set of column headers (page 2)
- read the account info and insert the data in the table until you have read the last account info line (page 2)
- etc. until you reach the total block idenfitied by Count On-line ...
- read the totals and compare them with the data inserted in the tableOr maybe like this...
First create an external table to read the report as whole lines...
SQL> ed
Wrote file afiedt.buf
1 CREATE TABLE ext_report (
2 line VARCHAR2(200)
3 )
4 ORGANIZATION EXTERNAL (
5 TYPE oracle_loader
6 DEFAULT DIRECTORY TEST_DIR
7 ACCESS PARAMETERS (
8 RECORDS DELIMITED BY NEWLINE
9 BADFILE 'bad_report.bad'
10 DISCARDFILE 'dis_report.dis'
11 LOGFILE 'log_report.log'
12 FIELDS TERMINATED BY X'0D' RTRIM
13 MISSING FIELD VALUES ARE NULL
14 REJECT ROWS WITH ALL NULL FIELDS
15 (
16 line
17 )
18 )
19 LOCATION ('report.txt')
20 )
21 PARALLEL
22* REJECT LIMIT UNLIMITED
SQL> /
Table created.
SQL> select * from ext_report;
LINE
x report page1
CDC:00220 / Sat Aug-08-2009 xxxxp for 02/08/09 - 08/08/09 Effective Date 11/08/09 Wed Sep-30-2009 08:25:43
Bill to
Retailer Retailer Name Name on Bank Account Bank ABA Bank Acct On-line Amount Instant Amount Total Amount
======== ============================== ============================== ========== ==================== =============== =============== ===============
0100103 BANK Terminal raji 123456789 123456789 -29,999.98 9 0.00 99 -29,999.98
0100105 Independent 1 Savings 123456789 100000002 -1,905.00 9 0.00 99 -1,905.00
0100106 Independent 2 system 123456789 100000003 -800.00 9 -15.00 99 -815.00
LARGE SPACE
weekly_eft_repo 1.0 Page: 2
CDC:00220 / Sat Aug-08-2009 Weekly EFT Sweep for 02/08/09 - 08/08/09 Effective Date 11/08/09 Wed Sep-30-2009 08:25:43
Bill to
Retailer Retailer Name Name on Bank Account Bank ABA Bank Acct On-line Amount Instant Amount Total Amount
======== ============================== ============================== ========== ==================== =============== =============== ===============
Count On-line Amount Instant Amount Total Amount
============== ====================== ====================== ======================
Debits 0 0.00 0.00 0.00
Credits 3 -32,704.98 -15.00 -32,719.98
Totals 3 -32,704.98 -15.00 -32,719.98
Total Tape Records / Blocks / Hash : 3 1 37037034
End of Report
23 rows selected.Then we can check we can just pull out the lines of data we're interested in from that...
SQL> ed
Wrote file afiedt.buf
1 create view vw_report as
2* select line from ext_report where regexp_like(line, '^[0-9]')
SQL> /
View created.
SQL> select * from vw_report;
LINE
0100103 BANK Terminal raji 123456789 123456789 -29,999.98 9 0.00 99 -29,999.98
0100105 Independent 1 Savings 123456789 100000002 -1,905.00 9 0.00 99 -1,905.00
0100106 Independent 2 system 123456789 100000003 -800.00 9 -15.00 99 -815.00And then we adapt that view to extract the data from those lines as actual columns...
SQL> col retailer format a10
SQL> col retailer_name format a20
SQL> col name_on_bank_account format a20
SQL> col online_amount format 999,990.00
SQL> col instant_amount format 999,990.00
SQL> col total_amount format 999,990.00
SQL> ed
Wrote file afiedt.buf
1 create or replace view vw_report as
2 select regexp_substr(line, '[^ ]+', 1, 1) as retailer
3 ,trim(regexp_replace(regexp_substr(line, '[[:alpha:]][[:alnum:] ]*[[:alpha:]]', 1, 1), '(.*) +[^ ]+$', '\1')) as retailer_name
4 ,trim(regexp_replace(regexp_substr(line, '[[:alpha:]][[:alnum:] ]*[[:alpha:]]', 1, 1), '.* ([^ ]+)$', '\1')) as name_on_bank_account
5 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 1)) as bank_aba
6 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 2)) as bank_account
7 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 3),'999,999.00') as online_amount
8 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 5),'999,999.00') as instant_amount
9 ,to_number(regexp_substr(regexp_replace(line,'.*[[:alpha:]]([^[:alpha:]]+)','\1'), '[^ ]+', 1, 7),'999,999.00') as total_amount
10* from (select line from ext_report where regexp_like(line, '^[0-9]'))
SQL> /
View created.
SQL> select * from vw_report;
RETAILER RETAILER_NAME NAME_ON_BANK_ACCOUNT BANK_ABA BANK_ACCOUNT ONLINE_AMOUNT INSTANT_AMOUNT TOTAL_AMOUNT
0100103 BANK Terminal raji 123456789 123456789 -29,999.98 0.00 -29,999.98
0100105 Independent 1 Savings 123456789 100000002 -1,905.00 0.00 -1,905.00
0100106 Independent 2 system 123456789 100000003 -800.00 -15.00 -815.00
SQL>I couldn't quite figure out the "9" and the "99" data that was on those lines so I assume it should just be ignored. I also formatted the report data to fixed columns width in my external text file as I'd assume that's how the data would be generated, not that that would make much difference when extracting the values with regular expressions as I've done.
So... something like that anyway. ;) -
How to skip from one list to another list in interactive report?
Hi Friends,
How to skip from one list to another list in interactive report that means now i am in 7 th list how to skip 4th list ?
Or now i am in 7 th list how to skip 9th list ?
can anybody send sample code please.
Thanks in advance.hi,
at line-selection.
case sy-lsind.
when 9.
sylsind = 4.
endcase.
try like this when u r in 9th list next it goes to 4 th list
Maybe you are looking for
-
Port In/Out under Windows Vista/7
Hello! I get the error -4850 Device driver not present or not supported. The device driver needed to execute the In Port and Out Port VIs is not present. LabVIEW does not support this device driver on Windows Vista or later. usin PortIn.vi under Wind
-
Also ... I have a mac and just updated my system to yosemite 10.10.3
-
Airport express setup problem?
using express to increase range of base station.......several hours of glitches.......now appears to be working, dramatic increase in signal strength from 1 to 10 bars, but amber light still in flashing mode after many resets.........any help appreci
-
Where and when to use generics?
I'm brushing up on Java 5.0, I'm at 'generics' - I always hated c++ templates and knew they would catch up with me sooner or later... I have a fairly simple question about where and how to use them, conceptually. Am I correct in thinking that they ar
-
Problem in Transaction variant SHD0 and SE93
Hi All, I have created a transaction variant for T-code MIGO Then I have assigned this transaction variant to a T Code ZMIGO using SE93 I tested this in development. (Testing was done like this. T code SE93 then clicked on display then clicked on tes