Need to Verify Logic

Dear Experts,
I am trying to get me the totals from CATSCO by Pernr and WORKDATE. I have created a pseudo code and i would appreciate if someone can validate it. The thing is that i need the logic to exit without it going in an endless loop. WORKDATE is basically my selection criteria where the user selects a from and to and i need this piece of validation in my code.
I am not a programmer so this might look very programmatically correct :).
I would appreciate any help.
Thanks,
R
Data: Total_Direct Type i VALUE 0,
      Total_Indirect Type i VALUE 0,
      Total_Percentage Type i VALUE 0,
      Counter Type i VALUE 0.
Counter = 1.
While Counter <> 0.
IF CATSCO-RPROJ EQ '' AND CATSCO-RAUFNR NE ''.
Total_Direct = CATSCO-CATSHOURS.
ENDIF.
IF CATSCO-RAUFNR EQ '' AND CATSCO-RPROJ NE ''.
Total_Indirect = CATSCO-CATSHOURS.
ENDIF.
Counter = counter + 1.

Hi,
Try this..
<b>* Declarations.</b>
  TYPES: BEGIN OF TYPE_CATSCO,
                  PERNR         TYPE CATSCO-PERNR,
                  WORKDATE  TYPE CATSCO-WORKDATE,
                  CATSHOURS TYPE CATSCO-CATSHOURS,
               END OF TYPE_CATSCO.
  DATA: LT_CATSCO          TYPE STANDARD TABLE OF TYPE_CATSCO.
  DATA: LT_CATSCO_SUM TYPE STANDARD TABLE OF TYPE_CATSCO.
  DATA: WA_CATSCO        TYPE TYPE_CATSCO.
<b>* Get the records from the table CATSCO.</b>
  SELECT PERNR WORKDATE CATSHOURS
               INTO TABLE LT_CATSCO
               WHERE WORKDATE IN SO_DATE.   <b>" Selection screen variable.</b>
<b>
Process the records and sum up based on the PERNR and WORKDATE.</b>
   LOOP AT LT_CATSCO INTO WA_CATSCO.
<b>* Sum</b>
      COLLECT WA_CATSCO INTO LT_CATSCO_SUM.
   ENDLOOP.
<b>* Display the records.</b>
   LOOP AT LT_CATSCO_SUM INTO WA_CATSCO.
      WRITE: / 'Personnel number - ', WA_CATSCO-PERNR.
      WRITE: / 'Work date            - ', WA_CATSCO-WORKDATE.
      WRITE: / 'Hours                  - ', WA_CATSCO-CATSHOURS.
   ENDLOOP.
Thanks,
Naren

Similar Messages

  • Issueduring verifying logical and physical dependencies of tablespaces.

    I am facing below issue with Transportable Tablespace during verifying logical and physical dependencies of two tablespaces.
    Oracle 10.2.0.2.0
    RHEL 5
    [oracle@prolinoradb1 ~]$ export ORACLE_SID=prodb136
    [oracle@prolinoradb1 ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.2.0 - Production on Sat Oct 7 07:46:07 2006
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> exec DBMS_TTS.TRANSPORT_SET_CHECK('USER_DATA_TBS,USER_NDX_TBS',TRUE);
    BEGIN DBMS_TTS.TRANSPORT_SET_CHECK('USER_DATA_TBS,USER_NDX_TBS',TRUE); END;
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 838
    ORA-04063: view "SYS.DBA_XML_TABLES" has errors
    ORA-06512: at "SYS.DBMS_TTS", line 867
    ORA-06512: at line 1
    SQL>
    I think some data dictionary script like catpatch.sql need to be run to resolve this issue but i didn't try it.
    Plz share your thoughts..
    Thnx

    Here i face another issue relates to transporting tablespace.
    I moved the datafiles from source db to target database (AIX 5.3 ->Windows 2003)
    Now when i tried to convert the datafile endianness to windows failing with below error...
    RMAN> CONVERT DATAFILE
    2> 'C:\tmpdir\tmpdir\tw_01.dbf',
    3> 'C:\tmpdir\tmpdir\tw_02.dbf',
    4> 'C:\tmpdir\tmpdir\tw_03.dbf',
    5> 'C:\tmpdir\tmpdir\tw_04.dbf',
    6> 'C:\tmpdir\tmpdir\tw_05.dbf',
    7> 'C:\tmpdir\tmpdir\tw_06.dbf'
    8> TO PLATFORM="Microsoft Windows IA (32-bit)"
    9> FROM PLATFORM="AIX-Based Systems (64-bit)"
    10> DB_FILE_NAME_CONVERT=
    11> "C:\tmpdir\tmpdir\", "E:\oracle\product\10.1.0\oradata\orcl\"
    12> PARALLELISM=5;
    Starting backup at 24-JUN-08
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_DISK_5
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 06/24/2008 17:19:27
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Any idea?
    Source database is 10.1.0.3.0 and target database is 10.1.0.2.0. Does it matter?
    Message was edited by:
    GK Joe

  • I already verify my app id but when i signed in my apple id it is still need to verify?? i try to verify again but when i click verify now then it said i verified it already but when i signed in it again..... it still need to verify. what should i do

    i already verify my app id but when i signed in my apple id it is still need to verify?? i try to verify again but when i click verify now then it said i verified it already but when i signed in it again..... it still need to verify. what should i do???

    That usually means that y ohave to add a valid payment to your account. Unless you initially set up the account withoeur a credit card
    Creating Apple ID without credit card: Apple Support Communities
    You need a valid payment method even for free stuff

  • ASA 5505 WebVPN - It has taken a while for SSL VPN Relay to load. You need to verify Java is enabled in your browser

    ASA 5505
    ASA Version 9.0.(2)
    Suddently on the webvpn Interface when i click on my web bookmarks (and java launches in browser) i get this fail in Chrome and FF 'It has take a while for SSL VPN Relay til load. You need to verify Java is enabled in your browser' and nothing happens...
    Java IS enabled and running. Tried this in both 7.45 and 7.51
    No problem in IE 11 and java 7.45 and 7.51
    I've googled alot but have not been able to find any suggetions
    Hope you have a solution
    Best Regards.

    Any resolution on this?  Firefox/Chrome my cifs work but smart tunnel RDP doesn't, and in IE my shares don't work but RDP smart tunnel does....
    Cisco, if you're not going to do something good, just don't do it.  The SSL VPN is a hack job.

  • I added Gmail to my iTunes store/account.  Now I cannot access the Store and after I enter my Apple Id password it tell me I need to verify my Gmail acct, press ok for details.  Once I press ok, the screen shows my Gmail address and underneath it states m

    I added Gmail to my iTunes store/account.   My gmail account is:  [email protected] and it shows up on the settings in iTunes, and my account.  The problem is I cannot access the store with this ID.  A response says:  You have not verified your ID, press ok to review instructions to verify your ID.
    Reply to this is:  An email has been sent to the address below with a link to verify your Apple ID.  Make sure to check your email and follow the link to complete the creation of your AppleID.
    Beneath my email address:
    Your Email has already been validated successfully.  Thank you.
    Please HELP.
    I am using:
    Windows XP
    Internet Explorer 9
    Norton 360
    iPhone 4
    Google toolbar on my computer.

    Hi Michael,
    Yes it is now resolved but not after I send iTunes a request for help and explaining the problem.  They send a first reply explaining how I needed to verify my account and gave me the link to do that.  You and I know that this did not help, so I replied telling them that this was not working and iTunes did the reset for me.
    You may want to open a help ticket with iTunes help.  That is the only way it works.
    Regards,
    Gloria J Bisson

  • I recently updated iTunes to the lastest version; however, when I went to purchase a song, it told me I needed to verify my apple ID, however I have not received the email, and cannot purchase anything now, any help?

    I recently updated my iTunes to the latest version; however, when I go to purchase songs now, it says I need to verify my apple ID.  It tells me to click OK to follow the instructions on how to do so.  When I click OK, it says an email has been sent to my email address associated with my iTunes account that will hold a link that will aid in the creating of my apple ID, but I already have one, and just need to update it.  And to add to this, I have not yet received the email, and it has been a few days now... any help?

    Never mind, the email was finally sent....

  • I bought acrobat adobe professtional version II in 2012.  Now I re-download this software to my new computer.  All info was downloaded.  But when I oopened the file, I need to verify the serial number.  It showed up that the serial number is valid, but th

    I bought acrobat adobe professtional version II in 2012.  Now I re-download this software to my new computer.  All info was downloaded.  But when I opened the file, I need to verify the serial number.  I entered.  But it showed up that the serial number is valid, but the qualifying product could not be found.  I could not be able to find Ver 11 from the list.  What can I do?

    The qualifying product is the older version that you owned before you purchased the upgrade to version.  It is what qualifies you to use the less expensive upgrade version.  So you need to select the older version and provide its serial number to prove that you qualify for using the upgrade.
    Error "This serial number is not for a qualifying product" | CS6, CS5.5, CS5
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-qualifying-product.html

  • TS3212 the new download of itunes will not run. I get a message during the process that I need to verify that I have sufficient privilege. then I get an error 126 and a missing file MSVCR80.dll. what can I do?

    I'm trying to download the new version of itunes. durig the install i get a message that I need to verify that I have sufficient privilege. Then I get a message of a Windows error 126 and a missing file MSVCR 80.dll. I've tried everything on the support site and nothing works.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • HT4528 I am no longer able to download FREE apps. It says I need to verify my bank information. When I verify bank information, it tells me it's wrong and I know it's not! What's the fix?

    I am no longer able to download FREE apps. It pops up saying I need to verify my banking information. When I go to my banking information, it tells me it's wrong, and I know it's not. HELP!!! I can't download ANY apps - FREE or otherwise! What is going on???

    Is it possible the expiration date for your credit card recently changed, or you got a new card with an updated authorization code?  If nothing has changed recently in Settings > iTunes & App Stores, click on your Apple ID, go to billing information and delete the card, re-enter it, save and try again to download apps.

  • Why is my apple ID keep saying I need to verify it?

    Every time I try to log in on my iTunes, it says I need to verify my Apple ID which I did my first time and now it keeps saying that.

    I know but i try logging into the iTunes store on my iPod Touch and it says,"You havent verify your apple ID click here for instructions..." but I did veryify it the first time and it when through but now it wont let me log into anything.

  • Apple store worked great, now it keeps telling me that I need to verify payment info and my security code is invalid for my card... The card is current? What's going on?

    Apple store worked great, now it keeps telling me that I need to verify payment info and my security code is invalid for my card... The card is current? What's going on?

    Did you enter the last three digits on the back of the card for Visa or Master or the 4 digit # on the front of Amex?

  • I need to install Logic X pro in my laptop. My IOS is 10.7.5 and I have 16Mb memory. Shoud I update my IOS to the latest version?

    I need to install Logic X pro in my laptop. My IOS is 10.7.5 and I have 16Mb memory. Shoud I update my IOS to the latest version?

    you can't install logic pro x on a iOS device....you said laptop so i guess you mean OS X not iOS ....you can't have 16mb ram/memory but probably 16gb....but to your question...
    NO DO NOT UPDATE, logic pro x is working better on mavericks then on yosemite!

  • I need to verify my apple ID sent to me by e-mail however the link does not work.What can I do?

    hi!
    I need to verify my apple ID sent to me by e-mail however the link does not work.What can I do?

    Hi,
    See this Link on Apple ID:
    http://support.apple.com/kb/HE37
    Go to the Very Last Section "How do I verify my Apple ID by email?
    Cheers,

  • Just bought a new imac, need to take logic off my macbook pro and install onto my imac

    Just bought the new imac, and I need to get logic pro 9 off my macbook pro and onto my imac.  Both my install licenses are used, so will I have to buy a new license as well.  If any and all help would rock.  Thanks,  JASON

    How did you receive Logic?  Reinstall from the distribution media.  You may be able to move the Logic application, but unless you know what and where the support files are it may prove difficult for it to work correctly.
    I would assume you can obtain another license by calling AppleCare Customer  Service unless you are moving Logic to a new computer and removing it from the other  computer.  In this case you do not need to purchase another license.

  • TS3297 I tried to get a free app, I changed my credit card info to a card that is active and now I can't even get free apps, it's telling me I need to verify my info... What's going on??

    I need help I changed my credit card information to a card that active, now I can't even get a free app, it's telling my that I need to verify my information before I can make a purchase.... What's going on and how do I fix it??

    HOW?? That's the million dollar question

Maybe you are looking for

  • Help needed in Duet Installation

    We are trying to install DuetRC1 in our organization. For installation of ABAP add-on on the mySAP-ERP, it requires the installation of this package (<b>SAPK-105BGINOSPABAP</b>). I tried to download the package from service.sap.com/swdc. But I could

  • In need of immediate help, please!!!

    I have Flash CS5 and have run into a bug that has clearly come up before on this forum and other places.  My file won't open and instead gives me the message "Flash can not parse this document".  This is work for a client that is due in just a few sh

  • Playlist not functioning correctly since 7.0.3

    Since upgrading to 7.0.3 I must choose the second song on the Playlist for the music to start from the beginning.  I don't know if it is an operating system bug or an iTunes problem. After the upgrade, most of my songs were no longer on the list.  I

  • IPad goes straight to app store - help!

    iTunes on my iPad goes straight to app store. How can I get my music list to appear? I have already tried resetting and restarting the iPad. I have tried turning off WiFi and then restarting iTunes but it just says I need WiFi for the app store. I ca

  • GarageBand 3: Rewire fails on Intel Mac

    I tried to connect GarageBand 3.0.2 and Reason 3.0.5 via ReWire. No success. Transport and sync is working and Reason says that it is in ReWire Slave Mode. So far everything seems to be OK. Unfortunately, there is no audio output from Reason. This ha