Help for Modifying the Code for display a 7 column table

Hi,
Is someone can help me to modify that code I have a 7 colomn table and as many row as their is results?
Right now, All my result are in a 1 colomn table and and 1 row,
thanks,
Roseline
DECLARE
  vtemp  varchar2(4000) DEFAULT ' ';
BEGIN
  htp.p('<HTML>');
  htp.p('<HEAD>');
  htp.p('<TITLE>DISQUES C</TITLE>');
  htp.p('</HEAD>');
  htp.p('<BODY>');
FOR idx IN
    SELECT DVD_ID, NomFichier,
           row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
           row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
      FROM elements
     WHERE PROJET_ID = 1
  ORDER BY DVD_ID ASC, rna ASC
      loop
        IF idx.rna = 1
        then
          htp.p('<TABLE>');
          htp.p('<TR>');
          htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
          htp.p('</TR>');
          htp.p('<TR>');
        end IF;
        vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
        IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
        then
          htp.p(vtemp);
          vtemp := ' ';
        end IF;
        IF idx.rnd = 1
        then
          htp.p('</TR>');
          htp.p('</TABLE>');
        end IF;
      end loop;
htp.p('</BODY>');
htp.p('</HTML>');
end;

Sorry:
I have a table contening PROJECT ID, DVD ID and FILES NAME (NomFIchier) that are on the DVD.
In my page result, I want the list of the DVD from a project with the following formatting ( 7 columns table), using PL/SQL.
1 DVD can contain from 5000 files
ex:
Ex:
select DVDNAME, NomFichier  fromTABLE where project = 2
*85*
2635080     2636608     2637084     2637091     2637092      2637093     2637147  
2637152     2637153     2637154     2637155     2637156      2637157     2637164      
*86*
2639497     2639498     2639502     2639504     2639505     2639506     2639507  
2639508     2639509     2639511     2639512     2639519     2639521     2639522        
*******     *******     *******     ********    *********    ********    ******** With this code following code,
DECLARE
  vtemp  varchar2(4000) DEFAULT ' ';
BEGIN
  htp.p('<HTML>');
  htp.p('<HEAD>');
  htp.p('<TITLE>DISQUES C</TITLE>');
  htp.p('</HEAD>');
  htp.p('<BODY>');
FOR idx IN
    SELECT DVD_ID, NomFichier,
           row_number() over(partition BY DVD_ID ORDER BY NomFichier  ASC) AS rna,
           row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
      FROM elements
     WHERE PROJET_ID = 1
  ORDER BY DVD_ID ASC, rna ASC
      loop
        IF idx.rna = 1
        then
          htp.p('<TABLE>');
          htp.p('<TR>');
          htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
          htp.p('</TR>');
          htp.p('<TR>');
        end IF;
        vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
        IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
        then
          htp.p(vtemp);
          vtemp := ' ';
        end IF;
        IF idx.rnd = 1
        then
          htp.p('</TR>');
          htp.p('</TABLE>');
        end IF;
      end loop;
htp.p('</BODY>');
htp.p('</HTML>');
end;I have the following result
85
2635080      2636608      2637084      2637091      2637092      2637093      2637147      2637152      2637153      2637154      2637155      2637156      2637157      2637164      2637169      2637170      2637172      2637173      2637202      2637203      2637213      2637214      2637215      2637216      2637217      2637218      2637219      2637220      2637234      2637235      2637236      2637237      2637239      2637240      2637241      2637242      2637244      2637246      2637247      2637249      2637250      2637251      2637252      2637253      2637257      2637263      2637266      2637269      2637270      2637274      2637276      2637279      2637284      2637290      2637291      2637292      2637293      2637294      2637295      2637296      2637301      2637303      2637304      2637305      2637306      2637311      2637320      2637322      2637324      2637331      2637333      2637336      2637352      2637353      2637354      2637358      2637359      2637360      2637361      2637362      2637363      2637364      2637371      2637378      2637383      2637384      2637385      2637386      2637387      2637388      2637391      2637392      2637395      2637400      2637405      2637412      2637418      2637419      2637423      2637443      2637446      2637453      2637461      2637470      2637483      2637484      2637485      2637494      2637502      2637506      2637507      2637519      2637532      2637536      2637537      2637539      2637540      2637541      2637544      2637553      2637554      2637555      2637557      2637575      2637578      2637579      2637580      2637581      2637582      2637583      2637587      2637588      2637589      2637590      2637591      2637592      2637593      2637594      2637595      2637597      2637604      2637605      2637606      2637611      2637619      2637628      2637629      2637630      2637631      2637632      2637633      2637637      2637645      2637647      2637648      2637650      2637651      2637657      2637658      2637659      2637661      2637662      2637668      2637674      2637676      2637677      2637679      2637680      2637681      2637684      2637685      2637686      2637688      2637689      2637691      2637692      2637694      2637696      2637700      2637701      2637702      2637703      2637704      2637705      2637706      2637707      2637722      2637725      2637741      2637749      2637751      2637752      2637753      2637762      2637764      2637771      2637777      2637779      2637781      2637783      2637785      2637789      2637793      2637809      2637810      2637811      2637812      2637823      2637827      2637836      2637837      2637838      2637845      2637850      2637854      2637855      2637857      2637858      2637859      2637860      2637861      2637866      2637867      2637870      2637874      2637875      2637876      2637877      2637878      2637879      2637880      2637881      2637884      2637885      2637886      2637887      2637891      2637892      2637893      2637894      2637895      2637897      2637898      2637899      2637900      2637901      2637902      2637904      2637906      2637907      2637908      2637909      2637913      2637914      2637916      2637917      2637918      2637919      2637920      2637921      2637923      2637926      2637928      2637929      2637930      2637933      2637935      2637936      2637937      2637939      2637940      2637941      2637942      2637943      2637949      2637950      2637951      2637952      2637954      2637955      2637958      2637965      2637967      2637969      2637970      2637971      2637973      2637978      2637985      2637986      2637987      2637990      2637991      2637992      2637993      2638001      2638002      2638005      2638007      2638009      2638016      2638018      2638020      2638023      2638027      2638029      2638033      2638034      2638035      2638036      2638039      2638043      2638044      2638045      2638046      2638048      2638049      2638052      2638053      2638055      2638057      2638058      2638063      2638064      2638065      2638067      2638068      2638069      2638072      2638076      2638080      2638081      2638082      2638083      2638084      2638087      2638089      2638096      2638097      2638098      2638099      2638100      2638101      2638102      2638103      2638105      2638106      2638108      2638110      2638113      2638117      2638118      2638120      2638121      2638122      2638124      2638126      2638128      2638134      2638135      2638136      2638137      2638139      2638140      2638141      2638143      2638146      2638147      2638148      2638149      2638150      2638151      2638152      2638153      2638154      2638155      2638157      2638159      2638167      2638168      2638172      2638173      2638174      2638175      2638181      2638184      2638185      2638187      2638192      2638193      2638198      2638199      2638200      2638202      2638203      2638205      2638207      2638208      2638209      2638210      2638211      2638212      2638214      2638218      2638219      2638220      2638221      2638223      2638230      2638232      2638236      2638243      2638245      2638246      2638247      2638248      2638258      2638264      2638265      2638268      2638279      2638280      2638281      2638283      2638284      2638287      2638305      2638309      2638310      2638311      2638312      2638316      2638317      2638318      2638319      2638321      2638324      2638330      2638331      2638332      2638333      2638334      2638335      2638336      2638337      2638338      2638339      2638340      2638341      2638342      2638344      2638347      2638349      2638352      2638353      2638364      2638372      2638374      2638376      2638379      2638390      2638391      2638392      2638393      2638394      2638395      2638402      2638405      2638407      2638414      2638421      2638422      2638429      2638430      2638432      2638434      2638438      2638442      2638444      2638457      2638467      2638469      2638474      2638478      2638479      2638480      2638484      2638486      2638488      2638489      2638491      2638506      2638507      2638508      2638510      2638511      2638512      2638513      2638514      2638515      2638516      2638517      2638518      2638519      2638520      2638521      2638522      2638523      2638525      2638527      2638529      2638530      2638531      2638532      2638536      2638537      2638563      2638564      2638567      2638568      2638569      2638618      2638628      2638629      2638634      2638644      2638647      2638649      2638653      2638658      2638666      2638671      2638675      2638677      2638679      2638680      2638685      2638687      2638689      2638691      2638692      2638693      2638694      2638695      2638696      2638697      2638699      2638701      2638702      2638703      2638704      2638705      2638706      2638707      2638709      2638710      2638711      2638712      2638713      2638714      2638720      2638721      2638725      2638726      2638728      2638731      2638732      2638736      2638737      2638739      2638740      2638741      2638744      2638745      2638747      2638748      2638753      2638754      2638755      2638756      2638757      2638760      2638763      2638764      2638768      2638777      2638781      2638782      2638783      2638791      2638793      2638795      2638796      2638798      2638799      2638801      2638810      2638811      2638813      2638814      2638815      2638816      2638817      2638818      2638832      2638833      2638834      2638835      2638836      2638846      2638847      2638848      2638849      2638850      2638851      2638852      2638854      2638855      2638857      2638858      2638859      2638860      2638861      2638862      2638864      2638866      2638867      2638868      2638869      2638870      2638872      2638873      2638874      2638876      2638883      2638884      2638885      2638893      2638895      2638900      2638923      2638927      2638928      2638929      2638931      2638932      2638935      2638936      2638937      2638939      2638942      2638943      2638949      2638952      2638954      2638955      2638956      2638957      2638958      2638959      2638960      2638961      2638962      2638968      2638976      2638978      2638979      2638980      2638983      2638984      2638986      2638988      2638994      2638995      2638998      2638999      2639001      2639002      2639003      2639006      2639011      2639012      2639013      2639014      2639016      2639017      2639018      2639024      2639025      2639030      2639036      2639038      2639039      2639043      2639045      2639046      2639049      2639055      2639057      2639064      2639066      2639067      2639068      2639069      2639072      2639074      2639076      2639079      2639080      2639081      2639085      2639086      2639092      2639098      2639099      2639100      2639101      2639103      2639104      2639105      2639106      2639107      2639109      2639110      2639111      2639112      2639125      2639128      2639129      2639131      2639132      2639133      2639134      2639137      2639138      2639139      2639144      2639146      2639148      2639149      2639159      2639162      2639164      2639165      2639167      2639177      2639179      2639186      2639187      2639188      2639191      2639196      2639197      2639204      2639205      2639208      2639214      2639217      2639218      2639220      2639221      2639223      2639224      2639225      2639226      2639227      2639230      2639236      2639237      2639238      2639239      2639241      2639242      2639246      2639248      2639260      2639262      2639263      2639264      2639270      2639271      2639292      2639293      2639296      2639298      2639299      2639300      2639302      2639303      2639304      2639305      2639306      2639307      2639308      2639309      2639311      2639315      2639316      2639317      2639319      2639321      2639322      2639323      2639324      2639325      2639326      2639327      2639328      2639329      2639330      2639331      2639333      2639336      2639338      2639339      2639341      2639342      2639343      2639344      2639345      2639346      2639348      2639349      2639350      2639356      2639358      2639359      2639360      2639361      2639362      2639364      2639365      2639367      2639368      2639369      2639370      2639373      2639374      2639376      2639378      2639379      2639381      2639386      2639387      2639388      2639389      2639391      2639394      2639396      2639397      2639398      2639400      2639401      2639404      2639405      2639406      2639409      2639410      2639411      2639412      2639419      2639423      2639426      2639427      2639429      2639434      2639437      2639440      2639446      2639448      2639450      2639457      2639465      2639466      2639467      2639468      2639469      2639472      2639473      2639474      2639475      2639478      2639485      2639486      2639487      2639488      2639489      2639491      2639492      2639495
86
2639497      2639498      2639502      2639504      2639505      2639506      2639507      2639508      2639509      2639511      2639512      2639519      2639521      2639522      2639523      2639525      2639527      2639530      2639542      2639543      2639552      2639553      2639554      2639555      2639559      2639560      2639561      2639563      2639564      2639565      2639567      2639574      2639575      2639578      2639579      2639581      2639582      2639584      2639585      2639586      2639587      2639588      2639589      2639591      2639595      2639596      2639597      2639598      2639599      2639605      2639618      2639621      2639623      2639624      2639627      2639628      2639637      2639638      2639639      2639644      2639647      2639648      2639649      2639650      2639654      2639658      2639662      2639665      2639669 I have some sample date here:
http://www.developpez.net/forums/attachments/p57656d1263922095/bases-donnees/oracle/pl-sql/html-affichage-tableaux-conditions/testcase.zip/
I want to know if it's possible to achieve what I want based on the code here.
I'm working on Application Express 3.1.2.00.02
thanks!!
Roseline

Similar Messages

  • BAPI_SERVNOT_MODIFY_DATA for modify the vendor for as per notification.

    hello friends,
    i want to modify vendor data in tcode IW52.
    for that i am using bapi BAPI_SERVNOT_MODIFY_DATA here they r displying so many tables among them i have tried to use all them , but i acn not find real thing so will any one help me in this.
    i want to modify vendor data element VIQMEL-QMCOD.
    THANKS
    RAJAN.

    SOLVED BY SELF

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • Pls help me to modify the query for performance improvement

    Hi,
    I have the below initialization
    DECLARE @Active bit =1 ;
    Declare @id int
    SELECT @Active=CASE WHEN id=@id and [Rank] ='Good' then 0 else 1 END  FROM dbo.Students
    I have to change this query in such a way that the conditions id=@id and [Rank] ='Good' should go to the where condition of the query. In that case, how can i use Case statement to retrieve 1 or 0? Can you please help me to modify this initialization?

    I dont understand your query...May be below? or provide us sample data and your output...
    SELECT *  FROM dbo.students
    where @Active=CASE
    WHEN id=@id and rank ='Good' then 0 else 1 END
    But, I doubt you will have performance improvement here?
    Do you have index on id?
    If you are looking for getting the data for @ID with rank ='Good' then use the below:Make sure, you have index on id,rank combination.
    SELECT *  FROM dbo.students
    where  id=@id
    and rank ='Good' 

  • Would like help with treeset ,the codes that using for sorting, please ?

    hi every body. i faced a problem while writing this program, everything worked properly except this one. The program is related to Jframe and it asks the user to add three labels , three text field , one text area and three Jbuttons which are add sort and exit. i could deal with add and exit but sort, i couldn't do it properly because i don't know the codes that should be added in actionperfomed?
    These codes are :
    package gui;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import javax.swing.JButton;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import sun.misc.Sort;
    import domain.Student;
    public class StudentFrame extends JFrame {
          * This method initializes btnAdd     
          * @return javax.swing.JButton     
         private JButton getBtnAdd() {
              if (btnAdd == null) {
                   btnAdd = new JButton();
                   btnAdd.setBounds(new Rectangle(13, 135, 59, 27));
                   btnAdd.setText("Add");
                   btnAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                        btnAddClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnAdd;
         protected void btnAddClicked() {
              // TODO Auto-generated method stub
         String name = txtName.getText();
         String id = txtID.getText();
         String age = txtAge.getText();
         Student s = new Student(name , id , age);
         txtArea.setText(String.valueOf(s ));
          * This method initializes btnSort     
          * @return javax.swing.JButton     
         private JButton getBtnSort() {
              if (btnSort == null) {
                   btnSort = new JButton();
                   btnSort.setBounds(new Rectangle(95, 136, 62, 25));
                   btnSort.setText("Sort");
                   btnSort.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             btnSortClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnSort;
         protected void btnSortClicked() {
              // TODO Auto-generated method stub
          * This method initializes btnExit     
          * @return javax.swing.JButton     
         private JButton getBtnExit() {
              if (btnExit == null) {
                   btnExit = new JButton();
                   btnExit.setBounds(new Rectangle(173, 134, 61, 23));
                   btnExit.setText("Exit");
                   btnExit.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             System.exit(0); // TODO Auto-generated Event stub actionPerformed()
              return btnExit;
          * This method initializes txtName     
          * @return javax.swing.JTextField     
         private JTextField getTxtName() {
              if (txtName == null) {
                   txtName = new JTextField();
                   txtName.setBounds(new Rectangle(79, 11, 60, 23));
              return txtName;
          * This method initializes txtID     
          * @return javax.swing.JTextField     
         private JTextField getTxtID() {
              if (txtID == null) {
                   txtID = new JTextField();
                   txtID.setBounds(new Rectangle(73, 55, 65, 26));
              return txtID;
          * This method initializes txtAge     
          * @return javax.swing.JTextField     
         private JTextField getTxtAge() {
              if (txtAge == null) {
                   txtAge = new JTextField();
                   txtAge.setBounds(new Rectangle(74, 96, 61, 24));
              return txtAge;
          * This method initializes txtArea     
          * @return javax.swing.JTextArea     
         private JTextArea getTxtArea() {
              if (txtArea == null) {
                   txtArea = new JTextArea();
                   txtArea.setBounds(new Rectangle(138, 5, 154, 128));
              return txtArea;
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        StudentFrame thisClass = new StudentFrame();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
          * This is the default constructor
         public StudentFrame() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
              return jContentPane;
    }Edited by: hypocrisy on Apr 26, 2009 6:51 PM

    There are three actionPerformed in that program.One for add Jbutton , Sort , and Exit
    the codes that i have added for add button after action performed are
    String name = txtName.getText();
    String id = txtID.getText();
    String age = txtAge.getText();
    Student s = new Student ( name , id , age);
    System.out.println(s);
    the codes for Exit button to make it works properly was :
    System.out.println(0);
    But when i came to Sort Button and i tried to enter many codes but it didn't sort properly so would you like to help me with the right codes :)

  • I forgot the code for my iPhone to access the Home screen I do , please help me try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    I forgot the code for my iPhone to access the Home screen I do , please help me
    try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    Hello polo-angulo,
    I apologize, I'm a bit unclear on the nature and scope of the issue you are describing. If you are saying that you are getting an error code (3004) when you try to restore your iPhone (because you could not remember your passcode), you may find the information and troubleshooting steps outlined in the following articles helpful:
    Resolve iOS update and restore errors in iTunes - Apple Support
    Get help with iOS update and restore errors - Apple Support
    Sincerely,
    - Brenden

  • HT201209 I entered the code for an app. Put my apple id after the code. Dialogue box said downloading, but no app to be found. Pls help. Thx

    I entered the code for an app. Put my apple id after the code. Dialogue box said downloading, but no app to be found on my iPad 3. Pls help. Thx

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Unfortunately she has been misdirecting folks with that update bug link for far too long.
    Candidly, when you see the Apple ID for a stranger appear in the Mac App Store (MAS) on your Mac regarding an update for an app that you haven't bought, it is a notice that you have a pirated app that you got from an outside source. Some trial version or a "free" version is actually a MAS version that someone has cracked and is distributing.
    Finding a pirated app
    All MAS apps have a MAS receipt in their app bundle. Check any app acquired from the MAS. Right click on the app's icon in your Apps folder and choose Show package contents. In the Contents folder is a _MASReceipt folder and in that folder is the coded MAS receipt. It has the Apple ID of the MAS account that bought/acquired the app from the MAS. It is that receipt that the MAS uses to alert you that an app has an update. There would not be a notice of an update with someone else's Apple ID showing in the MAS on your Mac, if there was not an app with a receipt from this person's account somewhere on your Mac.
    Download the free app FindAnyFile (FAF);
    http://apps.tempel.org/FindAnyFile/
    This app is easier to use and seems to be more powerful than Spotlight. Open FAF and in the box type _MASReceipt and press Find. It should come up with a list of every app on the Mac with a MAS receipt. Compare the apps with receipts in FAF's list with your purchased apps list in the Mac App Store. The odd app out should be the pirated app.

  • Where is the code for the collapse button in the default SAP iview layout?

    I need to eliminate the collapse/restore button displayed on each iView tray. I was looking at the default layout component (com.sap.portal.layouts.default) but I could not find the code for the tray.  The code for "FullWidth.jsp" (this file that implements the "FullWidth" component) is below:
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
    <lyt:template>
        <hbj:content id="myContext" >
            <hbj:page title="Portal Page">
                <lyt:container id="column1"  />
            </hbj:page>
        </hbj:content>
    </lyt:template>
    as you can see, there is no reference to the tray tags.
    note: I am familiar with how to create a new iView tray using the new Layout Tag Library (from blog below)
    EFP: Layout Tag Library
    , but I want am not interested in this approach... All I want is to modify the EXISTING tray.

    Hi,
    may be it's helpful for you.
    http://blog.flexexamples.com/2010/05/18/changing-the-background-color-of-a-disabled-spark- textarea-control-in-flex-4/
    Regards
    -Bechar

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

  • Please Help me fix the css for font colors in this menu!

    I have finally figured out how to make my drop down menu work, but I need some help troubleshooting this code. I have fiddled with the code for several hours and have still been unable to fix it. My issue is that I have been unable to distinguish between the top level links and the dropdown menu links. I want the dropdown menu links to be a light cream color. However, they are being displayed as the same color as the hover color.
    Here is the webpage loaded online: www.theriveroverlook.com/Trial.html
    If you hover over "Accomodations", you will see the issue. The green color of the hovered links is also being displayed in the lower level menu. This makes them unable to be read easily and presents a problem.
    Here is applicable css code:
    body {
               width:1170px;
               height:1300px;
               background-image:url(BackgroundImage.jpg);
    background-repeat:no-repeat;
    padding-left:0px;
    padding-right:0px;
    padding-top:0px;
    /* BEGIN HORIZONTAL DROP-MENU */
    #navcontainer {
              margin-left:0px;
              padding-left:0px;
              margin-top:200px;      
              background-image:url(MenuBarFINAL.png);
              background-repeat: no-repeat;
              height: 192px;
                          width:1170;
    nav {
                           font-size:22px;
                           font:"goudy-bookletter-1911";
                           font-weight:500;
              text-align: left;
              padding-top: 65px;
                          margin-left:0px;
                          padding-left:0px;
    nav ul ul {
              display: none;
    nav ul li:hover > ul {
              display: block;
    nav ul {
                                  margin-left:0px;
              padding: 0 0px;
              list-style: none;
              display: inline-table;
    /*Top level nav spacing, listing*/
    nav ul li {
              float: left;
                           margin-left:0px;
    nav ul li:hover a {color:#060;}
    nav ul li:active a {color:#300;}
    nav ul li:visited a {color:#900;}
    /*top level text display*/
    nav ul li a {
              display:inline;
              text-decoration: none;
                          color:#55390e; 
    ul.accomdrop a {
              color:#fbf1cc;
    #accomdrop {
                      background-image:url(dropdownpng.png);
                                  margin-top: 13px;
                                  width: 155px;
                                  padding-bottom: 69px;
                                  background-repeat:no-repeat;
    nav ul ul li {
                                  font-size:18px;
                                  font-weight: 100;
              float: none;
                          color:#e4ddc8;
    #home {
              margin-left: 75px;
    #accom {
              margin-left: 35px;
              width: 120 px;
              padding-right: 25px;
    #holston {
              padding-top: 10px;
              padding-bottom:10px;
              padding-left: 17px;
              word-wrap:normal;
              text-align:center;
              width:120px;
    #tennessee {
              padding-top: 10px;
              padding-bottom: 15px;
              padding-left:17px;
              word-wrap: normal;
              text-align:center;
              width: 120px;
    #french {
              padding-top: 8px;
              padding-bottom: 10px;
              padding-left: 17px;
              word-wrap:normal;
              text-align:center;
              width: 120px;
    #amenities {
              margin-left: 15px;
              width: 110px;
    #packages {
              margin-left: 285px;
              width:120px;
    #packdrop {
              background-image:url(dropdownpng2.png);
              margin-left:-35px;
              margin-top: 13px;
                                  width: 155px;
                                  padding-bottom: 80px;
                                  background-repeat:no-repeat;
    #romance {
                        padding-top: 5px;
              padding-bottom:8px;
              padding-left: 2px;
              word-wrap:normal;
              text-align:center;
              width:150px;
    #golf {
              padding-top: 15px;
              padding-bottom:12px;
              padding-left:2px;
              word-wrap:normal;
              text-align:center;
              width: 150px;
    #photo {
              padding-top: 5px;
              padding-bottom:13px;
              padding-left:2px;
              word-wrap:normal;
              text-align:center;
              width:150px;
    #cook {padding-top: 7px;
              padding-bottom:10px;
              padding-left:2px;
              word-wrap:normal;
              text-align:center;
              width:150px;
    #fish {padding-top: 10px;
              padding-bottom:10px;
              padding-left:2px;
              word-wrap:normal;
              text-align:center;
              width:150px;
    #directions {
              margin-left: 20px;
    I really appreciate any help you can give me! Sometimes, you stare at something so long that you can't see the obvious problem before you!
    Jaime

    See if this helps:
    http://alt-web.com/DEMOS/CSS-Multi-colored-drop-menu.shtml
    Nancy O.

  • How to add add the code for the MouseEvent.CLICK event

    Could anyone help me who is a beginner please?
    I'd like to know step by step how to do the following
    instruction.
    I am trying to add a link to my flash.
    I drew a shape on the stage, select it and transform it to
    movie clip (hit F8 or right-click on it and select "Convert to
    symbol" from the popup menu or use the main menu: Modify ->
    Convert to symbol). I resized it as the same size as my stage, then
    make it transparent.
    Then I am supposed to do the following in order to create a
    link.
    "add the code for the MouseEvent.CLICK event that would open
    a url using the navigateToURL() function."
    But I just don't know how to. Could anyone tell me step by
    step approach please?
    Thanks in advance.

    Yes, click the frame where you have the button on stage and
    open the actions panel. paste the script in, and make sure whatever
    instance name you gave the button, you plug into the script. Also,
    the function declaration should be like so:
    function callFunction(e:MouseEvent):void{ <-- 'e' can be
    anything you want, it could be 'kfjeiwajfkd' for that
    matter.

  • Am i the only one who when trying to enter the code for creative cloud activation ?

    I give up,i have been trying to activate a 3 month subscription for CS6 from Staples and every time i try the code it will not work.  I have used the chat live and spent about 3 hours already going nowhere.  I do not like talking on the phone to some help desk overseas and the only thing i think left to do is to return the junk.

    I tried all that and even took a picture of the numbers and blew them up so a blind person could read them and had 3 others read them off.  A simple way to fix the problem is get someone on Adobes staff to find a font that most people can read from whatever product the stick it to.
    John McDonough
    Date: Wed, 1 Aug 2012 18:33:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Am i the only one who when trying to enter the code for creative cloud activation ?
        Re: Am i the only one who when trying to enter the code for creative cloud activation ?
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hey John,
    Not sure if it helps or not, but I know sometimes with codes like that its really hard to tell certain characters apart, O - like in Oscar versus 0 - number and number 1 versus lowercase L like in Lima.
    Might test entering it both ways if you have any suspect characters?
    -Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4592955#4592955
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4592955#4592955. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • Problem in triggering the code for CO02 User Exit

    Hi,
    I am using the code for the Tcode CO02 (User Exit) and i am facing a problem that when i am using the code as a normal program it is executing fine and displaying the pop up window and showing the data in it.
    But when i am using that code in the USER EXIT code it is not trigerring that pop up window.
    I am using the enhancement:-
    *PPCO0007 * - Exit when saving production order
    And the include in which i am writing the code is :-
    INCLUDE ZXCO1U06
    plzz provide me guidelines for solving this problem.

    hi ,
    i am using the following: -
    Enhancement No.  ->  PPCO0007 (Exit when saving production order)
    When i click on the enhancement the following is displayed:-
    Function exit  ->   *EXIT_SAPLCOZV_001 *
    When i double click the function exit  the code i had written in the following include:-
    INCLUDE ZXCO1U06
    plzz tell me whether i am doing it right or worng?

  • Need help with a activation code for Adobe Acrobat X Standard for my PC,, Don't have older version serial numbers,  threw programs away,  only have Adobe Acrobat X Standard,  need a code to unlock program?

    Need help with a activation code for Adobe Acrobat X Standard for my PC, Don't have older Version of Adobe Acrobat 9, 8 or 7. 

    You don't need to install the older version, you only need the serial number from your original purchase. If you don't have them to hand, did you register? If so, they should be in your Adobe account. If not you really need to contact Adobe, though it isn't clear they will be able to do anything without some proof of purchase etc.

Maybe you are looking for

  • IPhone to speaker-wire speakers.

    I'm not really a 'speaker guy' I know how to take two pieces of wire and plug my big speakers into the standard dvd surround sound player and all that. But I had a rather interesting idea today that I am sure someone else has thought of before. I hav

  • Displaying pdf from file system in OA framework pages

    Hi, If anyone could help me with this I would be very grateful. We have a number of pdfs containing sensitive information, held on our Unix file system in directories not publicly available. I want to create an OA framework page which takes the name

  • Best use of framework events in application architecture

    Hello, I apologize in advance if this is not the appropriate forum to be posting about Flex framework questions.  I considered the Cairngorm forum, but thought the question applied more broadly to all flex frameworks. That, and it seems that the Cair

  • How to use distinct in a expression??

    I need get distinct fields of a consulting use toplink. but my consulting is a little complex, and use many class, and return many repeated fields. how i can do this, use experession in a toplink. i need only two fields of this consulting.

  • Can anyone recommend good html protection software

    Hi all Does anyone know of a good html protection program or extension? I need to stop text & images being copied off my web site by disabling copy & save as from the right click menus, disable screen grabs, disable selecting blocks of text etc. I've