REPEATING OUTPUT IN SQL
Hi, I've a table similar to dual with only one record in it.
NAME
VISHNU
What is the query to get the output from the table for n(or 100) number of times.
desired output is
VISHNU
VISHNU
VISHNU
VISHNU for n number of times
another way using plsql ;)
SQL> ed
Wrote file afiedt.buf
1 declare
2 name varchar2(10);
3 n number(4):=&n;
4 begin
5 for i in 1..n
6 loop
7 select 'vishnu' col1 into name from dual;
8 dbms_output.put_line(name);
9 end loop;
10* end;
SQL> /
Enter value for n: 2
old 3: n number(4):=&n;
new 3: n number(4):=2;
vishnu
vishnuEdited by: newbie on Dec 28, 2011 3:11 AM
Similar Messages
-
How to repeat output billing documents
Hi Guru;
How to repeat output billing documents ; because after VF04 maintain billing due list,
all intercompany billing doucments can not be printed throught our local printer. We are using Biling type as intercompany billing and output as print.
Regards,
RajHi Raj,
Please use T-Code VF31,output from Billing
under Message Data select the output type that you need, enter the transmission medium as print and select processing mode as Repeat processing.
And in billing data mention the correct billing document for which you want repeat output.
Hope Above will resolve your problem for Repeat output for Billing Documents.
Regards,
Sandeep -
How to display output of SQL Loader in a readable format
Hi All,
We have an inbound interface wherein we are uploading data from a flat file to Oracle Applications.
The entire process is happening in a request set -
1. Loading from flat file to staging tables via SQL Loader
2. Validating Data in staging tables
3. Uploading in Oracle standard tables
User says that the log file which shows the output of SQL Loader (step 1) is not readable and they want the data in some particular format which is understandable/readable for them.
Firstly, help me understand is it possible.
Also I have heard about BAD file, can anyone tell me where is it created and by what name and can we fetch that file created ?
Any pointers would be really helpful.
Regards,
ShrutiHi
DATA :
w_i TYPE i VALUE 1,
w_temp TYPE i VALUE 1..
WHILE w_temp LE 10.
w_i = 1.
WHILE w_i LE w_temp.
WRITE :
w_i.
ADD 1 TO w_i.
ENDWHILE.
SKIP.
ADD 1 TO w_temp.
ENDWHILE.
Regards
Pavan -
Hi All,
Please help me finding the repeat output flag for prinitng the invoice. layout driver program has ITCPP and ITCPO as print control structure.
Which field contains repeat output flag.
as per that flag I have to put a msg in layout.
Regards,
Ashutosh KumarI think you need to look at NASE VERMO field for that record to check if its a repeat output
Rgds
Hema -
How to flush script output in sql developer
Greetings from a newbie,
how can I flush script output in sql developer?
regards,
ValerieFlush? You can wipe the Output pane by pressing the "Clear" icon (crayon gum): the first icon on the tab's mini-toolbar.
Does that answer your question?
K. -
Repeat Output not comming properly
hi
when i issue output and see the print prevew every thing is comming properly in the layout.
but when i click on button Repeat output button and if i issue the output again some of the data is missing in the layout can any one tell me what can be the reason
thanksHi Ram ,
You check the refresh statement and clear statement in the code.... may be that u have used one of these and ur contents get deleted when again its executing.....
Thanks & Regards
Ashu Singh. -
Layout is not proper when viewed through repeat output option
hi
when i issue output and see the print prevew every thing is comming properly in the layout.
but when i click on button Repeat output and if i issue the output again some of the data is missing in the layout can any one tell me what can be the reason
thanksit is highly probable that at the time of repeat output
some data is not passed to the form.... -
Repeat Output without edit document PO
Hi Expert,
I confused for repeat output in SRM...
How concepts repeat output when create PO in SRM?
It's posibble, if change repeat output from e-mail to print or from print to e-mail?
It's possible, if change repeat output without edit the document PO? If edit the document, the status back to awaiting approval....
Need your response ASAP
Thanks and Regards,Hi,
Please open PO document and go to something header -> output.
You can "manually" trigger PO output.
Regards,
Masa -
Hi guru's
the PO Automatic output determination-Print immediately is set with Z form attached in NACE
the Output is printed. the Changed PO is printed.
I can also have repeat output (N numebr of times) of the original PO (message line item without change indiactor) from ME22N-Messages or from ME9F
My Question:
if i select repeat output for PO message line item with change indicator, the message line item is generated but with error in processing "No fields relevant to Change". the status is red and spool does not get generated.
Has anybody come accross such a situation. Please helpHello
As u said - if i select repeat output for PO message line item with change indicator, the message line item is generated but with error in processing "No fields relevant to Change". the status is red and spool does not get generated.
See u are assigning the change indicator athough there are no Print relevant changes done in the PO, thats y spool is not getting generated, you can simply repeat the output without change indicator it will work.
Best regards
Vineet -
XML PO is getting released from SRM only when Repeat Output is performed
Dear Experts,
Extended Classic Scenario(SRM-XI-SUS) inwhich SRM and SUS have on same SRM Server 7.0 but with differentt clients.
XML communication is being happened between SRM and SUS.
PO is created and ordered from SRM but it is releasing to SUS only when Purchaser in portal is performed Repeat Output manually or can say "Process for BBP_PO_SEND_XML Is Started" only when we click Repeat Output button by purchaser in portal login.
Replicating Steps :
1. Create shopping cart by Employee, Approve by Manager and PO is created(for say : 21111).
2. Open PO (21111) by Purchaser Login.
3. Go to Header Tab then Output sub tab.
4. Then i have to click Repeat Output button then only "Processing BBP_PO_SEND_XML Badi Is Started" otherwise not.
Thanks in advance.
Regards,
Pawan KeshwaniHi,
Thanks for your reply.
I have configured Application Control Workflow correctly ( I am using Workflow without approvals for PO (BUS2201))
And in Rz20, I am getting below messege ("SHD : MTE class BBP_PO , Client 901 : No MTEs currently available*) for PO in Rz20 given below path
(CCMS monitor sets -> SAP (CEN) EnterpriseBuyer Monitors -> Purchase Order)
I am configured ESOA Architecture in XI for SRM-SUS , and my root issue is " I am not able to generate XML messeges in SRM".
Not getting any messege in SXMB_MONI in SRM.
Regards,
Pawan Keshwani -
How to get this output using sql query?
Hi,
How to get this output using sql query?
Sno Name Age ADD Result
1 Anil 23 delhi Pass
2 Shruti 25 bangalor Pass
3 Arun 21 delhi fail
4 Sonu 23 pune Pass
5 Roji 26 hydrabad fail
6 Anil 28 delhi pass
Output
Sno Name Age ADD Result
1 Anil 23 delhi pass
28 delhi passHi Vamshi,
Your query is not pretty clear.
write the select query using Name = 'ANIL' in where condition and display the ouput using Control-break statements.
Regards,
Kannan -
How to hide repeated details using SQL Query?
How to hide repeated details using SQL Query?
For Ex:
------------------------+
DEPTNO| ENAME | JOB |
------|-------| --------|
10 | JAMES | MANAGER |
10 | BLAKE | CLERK |
10 | FORD | SALESMAN|
20 | SCOTT | MANAGER |
20 | ADAMS | CLERK |
20 | KING | SALESMAN|
------------------------+
How we can display the above details in the following way?
------------------------+
DEPTNO| ENAME | JOB |
------|-------| --------|
10 | JAMES | MANAGER |
| BLAKE | CLERK |
| FORD | SALESMAN|
20 | SCOTT | MANAGER |
| ADAMS | CLERK |
| KING | SALESMAN|
------------------------+
Thanks AdvanceHi,
you can use BREAK ON DEPTNO in SQL*Plus or use LAG.
SQL> ed
Wrote file afiedt.buf
1 select nullif(department_id
2 , lag(department_id) over (partition by department_id order by last_name)
3 ) dept_id
4 , last_name, job_id
5* from employees where department_id in (30,50) and rownum <=10
SQL> /
DEPT_ID LAST_NAME JOB_ID
30 Baida PU_CLERK
Colmenares PU_CLERK
Himuro PU_CLERK
Khoo PU_CLERK
Raphaely PU_MAN
Tobias PU_CLERK
50 Fripp ST_MAN
Kaufling ST_MAN
Vollman ST_MAN
Weiss ST_MAN
10 rows selected. -
Hi SDN,
Is there is any standard function module for repeat output in the shipments(VL02N)?
Call the transaction VL02N , go to "GOTO" from the menu and choose "OUTPUT". Then select a output type and then press the button "REPEAT OUTPUT".Hello Ricky
To transform ABAP to XML you can use the simple transformation, e.g.:
DATA:
gt_itab TYPE TABLE OF knb1,
gd_xml TYPE string.
* Select data into gt_itab
CALL TRANSFORMATION id_ident
SOURCE abap = gt_itab
RESULT XML gd_xml.
You could place this coding into a function module having an IMPORTING parameter of type TABLE (generic table type). However, this generic type will not work for a RFC-enable function module.
Regards
Uwe -
How to wrap a stored procedure that outputs PL/SQL records for JDBC?
Hello everybody,
Is there an example for wrapping a stored procedure that outputs PL/SQL records and/or PL/SQL tables of records, so that it can be called from JDBC?
Since this is not possible with the Oracle JDBC driver, Oracle recommends "To wrap a stored procedure that uses PL/SQL tables, break the data into components or perhaps use Oracle collection types." (http://download-west.oracle.com/docs/cd/B12037_01/java.101/b10979/ref.htm#sthref2123)
Many thanks for any help,
Cheers, ChristophHi Christoph,
Have you tried using JPublisher, or -more easily- JDeveloper (Go to your database connection in the "Connections" pane, open the "Packages" node, right click to "Generate Java...").
These approaches (at minimum, use of jpub) will generate required PL/SQL wrapper code, including SQL Type declarations. Once these are installed in the database, you can invoke the wrapper procedures directly from Java.
-- Ekkehard -
Repeat output settings for PO reprint
Hi,
In transaction ME22, I am trying to repeat the output on my Local Printer to view the output of PO.
But as soon as I save the PO after repeating the Output, the status comes as unseccessfully processed. No spool request generated either.
Can some one explain if there is a process in SPRO by which we can restrict the print output to come out only once, and cannot be repeated.
Regards,
Chintan.Hi,
1. Once you say "Repeat Output" in PO (ME22N), click on "Further Data" button and change Dispatch time to 3 i.e. Sent with application own transaction instead of 4 i.e. Send immediately.
2. If you want it not to generate automatically everytime then goto NACT, here enter Application as "EF" and go to details of output type, here in "Default values" tab change Dispatch time to 3 i.e. Sent with application own transaction instead of 4 i.e. Send immediately.
3. Also for that Output Type change Dispatch time to 3 i.e. Sent with application own transaction instead of 4 i.e. Send immediately in MN05.
But this will change it for ME21N. Better do as per 1st suggestion.
For Spool Request;
Go to SU01, here input Ur User ID and change, here in "Defaults" tab deactivate indicator "Delete after output" and save.
Maybe you are looking for
-
Hi Experts... I am Tech. person i dont know about following.. Is there any thing like we can set Vendor status into SAP... Like 'Black Listed' , 'ACTIVE' etc... if it is there ... then in which tables the status is stored
-
AA9 & Word 2007: Creating PDF disables macros
I'm using Word 2007 with Adobe Acrobat Pro 9 and am getting a strange error. If I open a document, I can access the macros fine (I have the directory where the document template is located as my "Workgroup Templates setting). However, after I create
-
Teamviewer changing lists as navigate through pages-probl for anyone else?
Hi All, We're using R/3 4.7, ESS 50.4 and MSS 6.1.20. After much correspondence with SAP we have discovered that the teamviewer does not behave the way we thought/want it to. Basically as the teamviewer is applied on a page basis, each page gets the
-
How to publish iPhone videos on facebook?
Took a video on Iphone 4S and cannot seem to publish to FaceBook. Any ideas?
-
Regarding Dead line monitoring & Background Job
Hi Dear PMs, plz let me know regarding Deadline Monitoring (IP30) for Maint plan. Why it is requires? only for scheduling multiple plans at a time or is their any other reason? What is the meaning of, 1. Interval for Call Objects 2. Rescheduling