TO PRINT THE N NO.OF ROWS LIKE BELOW.

could u plz give a solution for,
                                    how  to write  a abap code for using while
                                  1
                  2                                3
4                                5                                   6
if N=3 , 3 rows should print what ever the number we present in  N  that many rows will appear as shown above.
THANKS IN ADVANCE,
D.MALLA REDDY.

Hi Malla,
This is always appreciable if someone applied his own logic , rather to ask logic from someone else.
As per your requirement I will suggest you to go through all the LOOP statement and their utility. Then for user
input use parameters and put your own logic which is most applicable to solve ur problem.
Thanks.

Similar Messages

  • Print the N. no.of rows like below.

    I need the solution for the below program,
                        How to write the abap code using while stmt.
                             1
                        2          3
                   4          5          6
              7          8          9          10
    if N=4 , 4 rows should print what ever the number we present in N that many rows will appear as shown above.
    Edited by: Matt on Nov 25, 2009 9:35 AM

    This is a question that you're likely to get in programming 101.  I.e. it looks like a student exercise.  It's not really an interesting theoretical question.
    Further - it's already been asked [here |TO PRINT THE N NO.OF ROWS LIKE BELOW.;to the third level.  What will be next - to the fifth?
    locked.

  • Printing the salary certificate in row wise

    hi gurus,
    i have developed a custom report for printing the salary details( basic,pf,hra ) as column wise how to do this as row wise..
    like this..
    basic  ---
    pf   ......
    hra .....
    how to do this ..

    Hi,
    You can create two boxes in adobe form setting properties of one as Bold and other box as non-bold.
    Then based on the value you can hide the box and make visible the other one.
    You have to choose the right event like change or exit ( if the value is got from user ) or
    during form load event if the value is passed dynamically to form.
    regards

  • Why can't I print the content of a row in the ResultSet twice?

    An exception was thrown when I tried to print it twice like this:
    while (rs.next()) {
    System.out.println(rs.getString(1));
    System.out.println(rs.getString(1));
    }Why?

    An exception was thrown when I tried to print it
    twice like this:
    while (rs.next()) {
    System.out.println(rs.getString(1));
    System.out.println(rs.getString(1));
    }Why?The real question is: why would you want to do that? ResultSets shouldn't be printed like that. MVC separation says that printing is View, and ResultSet is persistence. Better to iteration through the ResultSet once, loading the data into an object or data structure, close the ResultSet in a finally block, and then pass the object or data structure for rendering (be that printing or JSP or Swing or whatever your View is).
    %

  • How to Print Blank row in between the lsit of records/rows

    Hi,
    My Rtf output is 10 rows with 12 columns in each row, which comes form the SQL query of the RDF. Ii want to display a blank row after 9th row and before 10th row. So it would be 11 rows where 10th row should be blank. So how can i get this done through RTF syntax.
    FYI, the o/p should look like below.
    column 1 column 2 column3 ...
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    abc ac abc
    Any help is highly appreciated. Thanks much for your time and help.

    Hi,
    As far as I know, if we follow your steps: Page Layout settings > Page Setup > Print title> Sheet>Rows to Repeat at Top,  we can set the row labels to every page, please see the below image:
    We can see the row labels with page layout mode, but it does not display in Print Preview. Please try to save it as PDF or print it to see the row labels with every page.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Printing the BI Graph

    I am looking at using the BI GRaph in the demos in our system and would like to know if anyone has managed to find a way to print the graph. We would like the ability to print the results of the graph if the client wishes too.
    Thanks

    I am looking at using the BI GRaph in the demos in our system and would like to know if anyone has managed to find a way to print the graph. We would like the ability to print the results of the graph if the client wishes too.
    Thanks

  • Printing Table data: How to print the row data in 'Western Text' ?

    Hi,
    Scenario:
    I have a table containing, say 5 records. The table is placed in a sub form (Properties: Content - Flowed, Flow direction - Western Text) which is adjusted in a manner to occupy only half of the page (vertically).
    I need the records to be printed adjacent to each other i.e. after printing the first row of the table , the next record should be placed in the other half of the page and so on.
    Issue:
    The problem is that even though I have set the property (flow direction) to Western text, the data is printed one below the other as in the Top to bottom property.
    Am I missing something?
    Kindly advice how to resolve this issue.
    Please let me know if the question is anyway unclear.
    Regards
    s@k

    Hi Otto,
    Thanks a lot for your prompt response.
    yes there is plenty of space.
    I am trying to display the records of a table. I used sub forms to behave like table and body row.
    The body row sub form occupies left half the page (to make it clear, say you divide the page vertically). The other half (i.e. right half ) is blank. I have checked the box to repeat itself for each data item.
    Now after printing the first record on the left hand side, I want the second record to be printed on the right hand side and if there is a 3rd record in the table, it should be printed just below the 1st record.
    Please do let me know if still the issue is not clear.
    Kindly suggest.
    Regards
    s@k

  • How to print the rows vertically

    Hi
    how to print the results vertically, like this
    SELECT eno, ename, deptid FROM emp_asign
    WHERE ROWNUM<3
    ENO     104
    ENAME     Bruce Ernst
    DEPTID     60
    ENO     106
    ENAME     Maximus
    DEPTID     60

    well, let's start from the inside and work our way out, shall we?
    the "WITH" clause is just to alias a subquery that he used as an example. I'll assume you know that, and just put it inside the main query (and I'll use all the columns)
    select rpad(t.column_value.getrootelement(),20) || ': ' || t.column_value.extract('//text()') out
    from table(xmlsequence(xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*'))) t
    SQL> select cursor(select * from emp where rownum<4) from dual;
    CURSOR(SELECT*FROMEM
    CURSOR STATEMENT : 1
    CURSOR STATEMENT : 1
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
    3 rows selected.
    1 row selected.
    SQL> select xmltype(cursor(select * from emp where rownum<4)) from dual;
    XMLTYPE(CURSOR(SELECT*FROMEMPWHEREROWNUM<4))
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <EMPNO>7369</EMPNO>
      <ENAME>SMITH</ENAME>
      <JOB>CLERK</JOB>
      <MGR>7902</MGR>
      <HIREDATE>17-DEC-80</HIREDATE>
      <SAL>800</SAL>
      <DEPTNO>20</DEPTNO>
    </ROW>
    <ROW>
      <EMPNO>7499</EMPNO>
      <ENAME>ALLEN</ENAME>
      <JOB>SALESMAN</JOB>
      <MGR>7698</MGR>
      <HIREDATE>20-FEB-81</HIREDATE>
      <SAL>1600</SAL>
      <COMM>300</COMM>
      <DEPTNO>30</DEPTNO>
    </ROW>
    <ROW>
      <EMPNO>7521</EMPNO>
      <ENAME>WARD</ENAME>
      <JOB>SALESMAN</JOB>
      <MGR>7698</MGR>
      <HIREDATE>22-FEB-81</HIREDATE>
      <SAL>1250</SAL>
      <COMM>500</COMM>
      <DEPTNO>30</DEPTNO>
    </ROW>
    </ROWSET>
    1 row selected.
    SQL> select xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*') from dual;
    XMLTYPE(CURSOR(SELECT*FROMEMPWHEREROWNUM<4)).EXTRACT('ROWSET/ROW/*')
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17-DEC-80</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>20-FEB-81</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    <DEPTNO>30</DEPTNO>
    <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>22-FEB-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>500</COMM>
    <DEPTNO>30</DEPTNO>
    1 row selected.
    SQL> select xmlsequence(xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*')) from dual;
    XMLSEQUENCE(XMLTYPE(CURSOR(SELECT*FROMEMPWHEREROWNUM<4)).EXTRACT('ROWSET/ROW/*'))
    XMLSEQUENCETYPE(XMLTYPE(<EMPNO>7369</EMPNO>
    ), XMLTYPE(<ENAME>SMITH</ENAME>
    ), XMLTYPE(<JOB>CLERK</JOB>
    ), XMLTYPE(<MGR>7902</MGR>
    ), XMLTYPE(<HIREDATE>17-DEC-80</HIREDATE>
    ), XMLTYPE(<SAL>800</SAL>
    ), XMLTYPE(<DEPTNO>20</DEPTNO>
    ), XMLTYPE(<EMPNO>7499</EMPNO>
    ), XMLTYPE(<ENAME>ALLEN</ENAME>
    ), XMLTYPE(<JOB>SALESMAN</JOB>
    ), XMLTYPE(<MGR>7698</MGR>
    ), XMLTYPE(<HIREDATE>20-FEB-81</HIREDATE>
    ), XMLTYPE(<SAL>1600</SAL>
    ), XMLTYPE(<COMM>300</COMM>
    ), XMLTYPE(<DEPTNO>30</DEPTNO>
    ), XMLTYPE(<EMPNO>7521</EMPNO>
    ), XMLTYPE(<ENAME>WARD</ENAME>
    ), XMLTYPE(<JOB>SALESMAN</JOB>
    ), XMLTYPE(<MGR>7698</MGR>
    ), XMLTYPE(<HIREDATE>22-FEB-81</HIREDATE>
    ), XMLTYPE(<SAL>1250</SAL>
    ), XMLTYPE(<COMM>500</COMM>
    ), XMLTYPE(<DEPTNO>30</DEPTNO>
    1 row selected.
    now that we know what that looks like, we can put it in the TABLE() and make it the FROM clause
    SQL> select * from table(xmlsequence(xmltype(cursor(select * from emp where rownum<4)).extract('ROWSET/ROW/*')));
    COLUMN_VALUE
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17-DEC-80</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>20-FEB-81</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    <DEPTNO>30</DEPTNO>
    <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>22-FEB-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>500</COMM>
    <DEPTNO>30</DEPTNO>
    23 rows selected.I'm getting bored. I'm sure you can break down the remaining parts of the statement to see what they return, and how it all comes together.

  • How to Print the same field value in a single row

    Hi,
    I need to print the same field values in a single row
    For Examble
    in a table TestTable
    ID Name Value
    1 AB 120
    1 BC 150
    1 CD 130
    2 AB 111
    2 BC 112
    2 CD 113
    I need the query like if the Name contains BC and CD then i need to print like ID, BC Value, CD Value as below
    ID BC'Value CD'Value
    1 150 130
    2 112 113
    Kindly suggest me...
    Thanks in Advance
    Anu

    Hi,
    Since you're on 9i some available functionality unfortunatly isn't at your disposal.
    This should work, however, using your sample data:
    MHO%xe> create table t as ( -- generating sample data:
      2  select 1 cid, 'AB' cname, 120 cvalue from dual union all
      3  select 1, 'BC', 150 from dual union all
      4  select 1, 'CD', 130 from dual union all
      5  select 2, 'AB', 111 from dual union all
      6  select 2, 'BC', 112 from dual union all
      7  select 2, 'CD', 113 from dual
      8  );
    Tabel is aangemaakt.
    MHO%xe> select cid
      2  ,      max(decode(cname, 'BC', cvalue, null)) BC_value
      3  ,      max(decode(cname, 'CD', cvalue, null)) CD_value
      4  from   t
      5  group by cid;
           CID   BC_VALUE   CD_VALUE
             1        150        130
             2        112        113For reference and future challenges, see:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:419593546543
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php

  • How can I print contiguous rows on a Numbers spreadsheet without having to print the whole spreadsheet page?

    I frequently have a need to print a portion of a spreadsheet for a presentation, but find that I have to print the whole spreadsheet page to obtain the information I want.  When I was using Microsoft Excel I could highlight a section of a spreadsheet and print only the highlighted rows.  Is there some way that I can do this in Numbers?  Help will be appreciated.

    Numbers differs significantly from Excel in the print paradigm.  If you enable Print View using the menu item "View > Show Print View", you will see exactly how each page will print.
    A Numbers document contains Sheet.
    Sheets contains a canvas, on which you place tables, graphics, text, and media.  The canvas is continuous and is divided into pages at print time.
    If you want to print just a portion of a table, select the area, copy, the open the Application Preview, select the menu item "File > New From Clipboard"
    Then print

  • How to print the row  ,column,and particular cell in separate color

    how to print the row  ,column,and particular cell in separate color IN ALV GRID

    HI,
    Here you go good program links
    <a href="http://www.sapfans.com/forums/viewtopic.php?t=52107">How to Set Color to a Cell in AVL</a>
    <a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm">ALV Grid Coloring</a>
    Thanks
    Mahesh

  • I can't print a pdf, don't print the black letters, there is a lot of buttons like space navy ship of NASA

    1.- You gringos, NOT ALL THE WORLD IS THE GARBAGE USA, we need forums in various language, out side, there is a WORLD WITH MANY OTHER COUNTRIES, THAT SPEAK A LOT OF DIFERENT LANGUAGES.
    2.- Why I can't find a simple thing: PRINT IN WHITE AND BLACK... Is that a great thing to ask?
    We don't want a lot of options to print, we don't want print in colors, grays, combinations, etc... WE ONLY WANT ONE BUTTON: "PRINT"
    3.- It's very dificult to find the correcto combination, because you offer a lot of buttons and options...
    4.- I have 4 hours trying to print a simple pdf document... and I can't because NO PRINT THE BLACK LETTERS...
    5.- How can I to do, for a simple print of a document pdf.
    6.- You turned the printing in a trip to the moon, with a lot of buttons, options, combinations... ALL IN ENGLISH, IS VERY INSANE...
    7.- I'm very angry... now I understand to OSAMA BIN LADEN... I DON'T SUPORT THEY, BUT I WISH YOU GRINGOS WILL CHANGE YOUR BRAIN.

    I get the answer, I found the solution:
    1.- At first time, I offer my apologyzes for my offensive words against americans, and people of adobe reader.
    You are not gringos, You are Americans.
    USA is not Garbage, is a great country.
    I found a page of adobe in Spanish, and yes, there is in many other languages pages of adobe reader.
    My PDF is in spanish, thanks american people for create invents, and pages in many languages.
    I'm really sorry for september 11, it was unfair, inhuman, a tragedy. Never again the war, we love peace.
    2.- I was very angry, because I lost money, because I can't finish my work, because I can't print the PDF document.
    3.- The solution was:
    Step 1: down the most recent version of adobe reader.
    Step 2: Choose the option "advanced", and then choose the option: "print like an image".
    YA encontré la solución...
    Paso 1.-
    actualizar a la versión más reciente de adobe reader.
    descargarla, abrirla, e instalarla
    Paso 2.- Volver a abrir el documento PDF, pero con la nueva versión de adobe reader.
    Paso 3.- Ir a imprimir, pero antes de darle aceptar, ir al cuadro que dice: "AVANZADA"
    Paso 4.- Entrar a avanzada, y marcar la casilla que dice "imprimir como imagen". y darle aceptar.
    Paso 5.- presionar el botón de imprimir y listo.
    Muchas gracias por su apoyo.
    PROBLEMA SOLUCIONADO.
    El asunto, era porque no eran letras de caracteres, sino que eran una foto o imagen de letras.
    por eso era necesario escoger la casilla de imprimir como imagen, además de actualizar al nuevo adobe reader.

  • Getting the photos I print to match what they look like on my screen.

    I'm having a hard time getting the photos I print to match what they look like on my screen.  I even bought a monitor calibrator and tried changing  my color settings in Photoshop and it hasn't seemed to help.  The pictures even look different when I pull them up in The ROES program I use to order prints from.  The pictures come out really dull compared to what they look like in Photoshop.  Does anyone have any ideas on what I can do to fix this?

    There are a couple of things to note here right away.
    To get a good screen to print match the first consideration is the monitor brightness and white point temperature. The goal is a visual match to paper white.
    The calibrator will help you set this up. Spend some time to find the right settings, because it will depend on the ambient light and your whole working environment. That includes the Photoshop UI - if you use the now default dark UI, images will appear brighter than in the old light UI.
    The second thing to note is that you don't change any Photoshop color settings. The calibration and profiling is all handled automatically, once you found the right settings for white point. Just let the calibration software run through and do its thing, done. The display profile is set up as system default and Photoshop finds it there.
    Once you have a correct display of the file, you then need a correctly color managed print pipeline. If both are accurate, they will match.

  • Sap script: Printing the values got from work area in a row

    Hi ,
    I need to print the values which I m getting from a work area like
    A1     A2
    A3     A4
    and so on
    but I m getting it as
    A1
    A2
    A3
    A4.
    Any solutions to this will be highly appreciated.
    Regards,
    Vivek

    Dear vivek,
    how is your work are structure - is it only with single field ?
    In your script after the each value give an extended line comman "=" which will take first and second values for print and after the second value give "line feed" or "carriage return"  command.
    Hope this solves your problem
    Thanks
    venugopal
    Reward accordingly

  • Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO

    Is there a way to sort a PDF file with multiple pages by a specific field within the PDF? All pages have the same invoice format and i would like to sort by a field within and then print the documents. (Vendor, PO#, Date, ect.)

    When you say field, do you mean specifically a form field, such as a text field? Or is the information regular text on the page?

Maybe you are looking for

  • VALUE FLOW IN COPA

    Hi Guys Can you guys please explain me how does the values flows in COPA. If you have any documents on this, please do forward it to my email. Your prompt response to this would be highly appreciated.. Kundan Bhattarai

  • Dynamic select statement

    I have this input field called IO_TABLE and a button. When the user key in the database name into IO_TABLE and press the button, the records/data in the database will be written out. Here is my codes: REPORT  ZA_FIELD. DATA IO_TABLE(30) TYPE C. FIELD

  • Does the Apple Radio Remote work after the update?

    Anyone try it after the update? I know it didn't work before... And a side question, since there doesn't seem to be anywhere to ask...are the support forums (especially logging in) constantly crashing Safari (Mac version, desktop) for you?

  • Why can't I sync updated contacts to iPad

    iPad IOS 5.1 on iPad[1]; iMac 10.7.3  intel core duo   Contacts on iMac do not transfer updated information to iPad. Following instructions to sync on the Wi-Fi 'help' does not do it; neither does connecting iPad to iMac/select device/click Info/sele

  • Controlling area validity date

    Dear experts, Going to create controlling area but  from which year i will create controlling area. fiscal year from--- to 9999 2) need to create co master data. from which date i will create my co master data. regards VV