Help... Is dis answer right ..

Which two are attributes of /SQL*Plus? (Choose two)
A. /SQL*Plus commands cannot be abbreviated.
B. /SQL*Plus commands are accesses from a browser.
C. /SQL*Plus commands are used to manipulate data in tables.
D. /SQL*Plus commands manipulate table definitions in the database.
E. /SQL*Plus is the Oracle proprietary interface for executing SQL statements.
Ans.. B,E According to me

And, according to you, the SQL statement (from E) doesn't implies neither of C (DML) and D (DDL), does it ?Nicolas,
There is were the question and its options were tricky.
SQL * Plus doesn't have DML or DDL commands. They SQL commands. Hence, SQL * Plus commands can't be used to manipulate nor change table definations.
Jaffar

Similar Messages

  • ....Is dis answer right??Verify............

    Which two are attributes of /SQL*Plus? (Choose two)
    A. /SQL*Plus commands cannot be abbreviated.
    B. /SQL*Plus commands are accesses from a browser.
    C. /SQL*Plus commands are used to manipulate data in tables.
    D. /SQL*Plus commands manipulate table definitions in the database.
    E. /SQL*Plus is the Oracle proprietary interface for executing SQL statements.
    Ans.. B,E According to me

    The one thing more tedious than posting threads which ask us to verify your guesses about OCA exam questions is Help... Is dis answer right ...
    Regards, APC

  • The front camera on my iPod touch 4th generation is frozen. I cannot use it. Updating software does not help. This started right after I bought it, new from BestBuy. What can I do?

    The front camera on my iPod touch 4th generation is frozen. I cannot use it. Updating software does not help. This started right after I bought it, new from BestBuy. What can I do? When i go to the camera, it is stuck on a black screen. the only way to use my camera is through other camera apps, but if I try to switch it to the front camera, it freezes again.

    If you still have the problem after retoring the iPOd to factory defaults/new iPod then The iPod is likely defective and replacement is required.  You can make an appoinment at the Genius Bar of an APple store or take it back to BestBuy if within warranty

  • Whenever I open itunes in my ipad a message comes "cannot connect to iTunes Store"...help to get it right please

    Whenever I open itunes in my ipad a message comes "cannot connect to iTunes Store"...help to get it right please, I have  the new I pad and I was able to connect to iTunes before,and I use 3 g network..there is no network problem for sure because I could use safari and App Store perfectly...

    Make sure cellular data is turned on..I checked and it was on
    Tap Settings > General  > Cellular
    Switch Enable 3G to off then back on.
    Same for Wi Fi. Tap Settings > Wi-Fi. Switch off then back on.'
    Then restart the device.
    edited by:  cs

  • Why can't I open and answer an instant imessage notification using just one key(such as enter key)? If I shouldn't, what's the use of answering right from notification?

    Why can't I open and answer an instant imessage notification using just one key(such as enter key)? If I shouldn't, what's the use of answering right from notification? I can instead, move my mouse to the app, right?

    Hi,
    The Alert option in Notifications gives the Reply option
    9:33 pm      Monday; December 8, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Plz help me to answer the security question of apple id

    plz help me to answer the security questions of apple id coz i have a great problem that i couldn't buy the itunes music with out using security questions.

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (110908)

  • Help to retrieve answers liquefaction safety?

    Help to retrieve answers liquefaction safety?

    Sorry, but Google Translate appears to have failed you as your post makes no sense. If you are asking about the Security Questions to your Apple, ID, go to:
    https://appleid.apple.com/
    Click "Manage My Account", sign in, and go to the Password and Security section. Answer the security questions and you'll be taken to a screen where you can then change them. If you've forgotten your answers, there should be a link just under the security questions fields where you can have a reset email sent to your Rescue email address. If the link for the email doesn't appear, as can happen if you didn't set a rescue email address or (apparently) have a .Mac email address, see the user tip created by Kappy, another user here, on how to proceed:
    https://discussions.apple.com/docs/DOC-4551
    Otherwise, please try again, asking someone more fluent in English to assist or by posting in your native languge.
    Regards.

  • Why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Hi,my ICloude is locked and canot use my Phone. Please, help me and answer me. Mira

    Hi, my name is Mira Ćenan. I from Zagreb,Croatia.
    My ICloude is locked and canot use my Phone. Please help me and answer me.
    Thank you!
    Mira

    Only the person who initiated the Activation Lock can remove it. Contact the seller/
    previous owner for assistance. There is no workaround for Activation Lock.

  • "HELP" NEED QUESTION ANSWERED, ":PLEASE":

    "HELP" NEED QUESTION ANSWERED, ":PLEASE": OH DEAR GOD SEND SOMEONE TO ME WITH THE ANSWER.

    You need patience. This isn't instant answers, you may have to wait for an answer. Your questions are here - locking this thread.
    https://support.mozilla.com/en-US/questions/859594 <br />
    https://support.mozilla.com/en-US/questions/859665

  • Help me please... need an answer right away|!

    hi i am shau could someone help me fix my k770i i dropped it last week  and the keypad doesnt work at all i have it checked by the technician  and the keypad flex is already broken can someone help me find a store  where could i buy a replacement|? i love my phone eventhough it is not  the latest in the markert... please please help me

    Unfortunately based on the information I have currently available, the parts are only available to authorised repair agents. With this being the case you would need to have the handset for repair to have this carried out.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How I want to use iCloud + my PC, help/look for answers here

    Howdy all, I will be updating this if i manage to fix my problems
    So I love my iPad, and I will soon get an iphone. But regardless of those purchases, I still have a PC and I will continue using it.
    But I love my iPad as my main personal organizer, (contacts, calendar, etc). So I want to be able to use my iPad to update stuff and have my contacts, calendar, and purchases apply to my PC as well as my future iPhone. Since apple devices sync my easily, I decided to make this discussion to help others as well as my self set up apple to windows related things.
    And please, back up your device before anything, just incase.
    I am using:
    Windows 7 home edition 64bit
    iTunes 10
    iPad IOS 5
    Outlook 2010
    I don't think I have to list anything else, but if I do, just ask!
    So what I am trying to do -
    PLEASE TELL ME IF I AM WRONG, Thats the point me doing this
    Apps - This part is DONE
    http://support.apple.com/kb/PH1620?viewlocale=en_US
    So, you have to turn the MUSIC, APPs, BOOKS on through iTunes(PC) as well as your devices. So now, buying apps, as long as you devices/PC has your account logged in, it should apply my purchase to all of them at once.
    Book Marks- This part is DONE
    I like to use chrome. But to sync them together, I exported all of my Chrome bookmarks,  and shoved it into Safari, it seemed easier than using IE.
    I then synced my ipad's book marks into Safari. Now Safari, on my PC, contains ALL of my iPad and Chrome book marks. I then exported the bookmarks from safari and imported it into Chrome. A bit longer and annoying, but it worked.
    So from now on, all Chrome bookmarks on my PC will have to be added to Safari. And my iPad bookmarks, will require me to carry it from Safari to Chrome.
    Photos - This part is DONE
    So, in my own opinion, Photo stream is stupid.  All this is, is Dropbox for pictures.
    On a PC, after setting it up, it will give you a Photo Stream Folder. ANY pictures you put into Photo Stream Folder will be on photo stream and sync to all of your devices that have it turned on. But, in order to KEEP this picture, you must save each one or else it will auto delete in 30 days.
    But, any photo that you take SHOULD automatically download into your PC. Which will also require you to save the photos into a different folder.
    My boss at work figured this part out. IN ORDER TO ERASE photos off of photo stream, you will have to reset photo stream, which will kill the cloud distrubution of the pictures to each device, and erase those pictures on the cloud. Then you have to delete it off each device.
    We believe that apple will change this. I mean, its kind of pointless if you can erase the pictures.
    This part is where I had to use Outlook 2010.
    Please note, This is a brand new outlook, I do not care about anything previously inside and there is nothing for me to erase or lose
    eMails - This part is DONE
    So the point of this part is to sync your iPad mails with your Outlook 2010. I don't use this, because I still prefer to go to each of my 3 individual email accounts to send mail. If I were out and about, I would be accessing each email through the website or my iPad, so I do not see the point in setting up the email sync.
    But in order to use eMail, contact, calendar sync with Outlook, I had to make a default account. I HAVE NO CLUE what that means, but the error was this
    "Setup can not continue becuase outlook isnt configured to have a defualt profile. Check your outlook settings and try again."
    So find the settings a set a default account. IF you wanted to set the account to your @me.com account, then you will have to connect that email to outlook. But, it WONT WORK! I used these settings
    p99-imap.mail.me.com  > incoming
    p99-smtp.mail.me.com  > outgoing
    check remember password and SPA
    then go to "more settings" > "Advanced" tab and enter
    For IMAP  Port :"993" or just choose SSL from the encrytion dropdown
    For SMTP Port : "587" and choose Auto from the encrytion dropdown. (do not choose SSL)
    then goto outgoing server tab
    check first box ...SMTP
    Provided by https://discussions.apple.com/message/16351758#16351758
    Calendar - This part is PARTIALLY DONE
    My original Calendar was on Gmail, I synced my calendar from my gmail to my iPad. But with the new iCloud, I want it to all be on the cloud. I think I can sync the iCloud's calendar into outlook, but I cannot push my calendar from Outlook into iCloud.
    So ON my iPad, I did a list view, and clicked on each event (thank god I only had 6 months worth of stuff, and changed it from my gmail calendar to save onto my ipad. So then since the events are now saved onto my iPad, I pushed that into the iCloud.
    Now all that is left to do is to PUSH my iCloud Calendar into my Outlook. So then when I update stuff, it will show up on my PC.
    But with the iCloud Control Panel, I cannot sync my Calendar. I keep getting this error
    "Setup can not continue becuase outlook isnt configured to have a defualt profile. Check your outlook settings and try again."
    I have no clue what to do
    Contacts - This part is PARTIALLY DONE
    I am still working with this, but that error like the one above is still there as well.
    But with the iCloud Control Panel, I cannot sync my Calendar. I keep getting this error
    "Setup can not continue becuase outlook isnt configured to have a defualt profile. Check your outlook settings and try again."

    @Naiks, having suffered through unsuccessful synching attempts for Calendar and Contacts myself, l would suggest you try the following:
    UNINSTALL iCloud control panel from your PC. Seems silly, but do it.
    Go into Outlook, and look at the very top menu. Click FILE, then ACCOUNT SETTINGS, then click the popup box.
    You will see a list of all your email accounts. Make sure that ONE of them has a checkmark against it. If not, select the account your want as your default, and click "set as default.
    Exit out of Outlook and reboot your machine.
    Now reinstall iCloud, check CALENDAR and CONTACTS, and do as instructed when prompted.
    Reboot for good luck and now launch OUTLOOK. All that remains is to locate your iCloud Contacts and Calendar files, and make them your default.
    IMPORTANT: Don't panic if you can't find your contacts -- they're there. Click CONTACTS and you'll see you have several available contact files. Locate the one label "iCloud" in grey type. Right-click on it, select PROPERTIES, then click the Outlook Address Book tab. Check the box that says something like "Make this my default Outlook Address Book." Keep clicking "apply" and "okay" until you've exited out of the dialog box maze.
    You may have to do something similar with your Calendar files. I dd not, but if you need to, do it.
    Everything should now sync pretty seamlessly.
    I didn't have the exact same problem as you, but my dilemma was close enough. Good luck!
    Arthur P. Johnson

  • SAP PS Module Report, Help needed for the Right Logic.

    Hi,
             I have to develop a  PS module Report . This spec of this  report is when you enter , project # , month , date , proj type it should  display all the projects  and only the billing levels  with  different  fiels  like ITD cost, ITD sales, ytd cost,  sales,  awards  etc etc.
    Right now  Iam getting the O/P : in the  following manner, There are many fields  I am just showing the desired ones which have to be changed.
    Proj,           Title,         award,    ITDsales,         ITD cost ,    ytd sales,   ytd costs,
    14148,       New prj       123        --                   ---                    -
    14148-B01,  bill1          -
                234           -
                       456                -
    14148-B02,  bill2          -
                789          -
                       123                -
    14148.001    wbs1        -
             123                     -
                     456
    14148.001    wbs2        -
              567                    -
                     890
    But   for me  the desired output must be only for  project  and the billing levels. It shouldn’t be for WBS elements  xxxx.001  and xxxx.002.
    Desired  output:
    Proj,           Title,         award,    ITDsales,   ITD cost ,       ytd sales,      ytd costs,
    14148,       New prj       123        --               690                 -
                   1346
    14148-B01,  bill1          -
             234                -
                       456             -
    14148-B02,  bill2          -
             789                -
                      123              -
    The ITD costs  and YTD costs must be added   123 + 567 = 690 and
                                                                                 456+890 = 1346.
    And these values must come   on the project level.
    P.S:  I can restrict the values  for wbs elements  , means I can filter them at PRPS table  by giving prps-stufe LE ‘2’.  Then I wont get the wbs level, But I want the values of these to be added up and then show it on the project level.
    Please  go through  this code and let me  know where exactly I need to put the right logic  to work in the desired manner.
    Thanks   in advance
    Dan
    Code Below************************
    [code]TABLES: PROJ,                "Project Definition
            PRPS,                "WBS Elements
            prhi,
            CEPC,                " Profit Center w/ Group Head info
            BPGE,                "Plans (12, 13, etc.)
            COSP,                "Primary   Cost Element (Bill Sales, DPC)
            COSS,                "Secondary Cost Element (Shrd Sls,Sal,etc)
            COSB,                "Results Analysis Cost Elements (Unbil Sls)
            COOI,                "Commitments management: Line items
            JEST,                "Project Status
            TCJ04,               "Person Responsible for Project
            zpclasses,           "Project classes.
    New Added
            CRCO,            " Assignment of Work Center to Cost Center
            CRHD.            " Work Center Header
    Record Layout of extracted data
    TYPES: BEGIN OF EXDEF,       "Data definition of extract data
           X_BU(2)     TYPE C,   "Business Unit
           X_CNTR(10)  TYPE C,   " Profit Center
           X_PROJ(24)  TYPE C,   "Project def (Prj)
           X_CREP(30)  TYPE C,   "Contract Rep.
           X_BDREP(25) TYPE C,   "BD Rep. name
           X_GRPH(15)  TYPE C,   "Tech Rep employee name
           X_ACTREP(15)  TYPE C,  "Acct Rep employee name
           X_PMGR(15)  TYPE C,   "PM employee name
           X_TTLE(35)  TYPE C,   "Title
           X_CLNT(20)  TYPE C,   "Client
           X_POCN(20)  TYPE C,   "Prime Contract Number
           X_TYPE(13)  TYPE C,   "Order Type Sarnoff
           X_OPEN(10)  TYPE C,   "Open Date
           X_CLOSE(10) TYPE C,   "Close Date
           X_CGT(4)    TYPE C,   "CO, GV, TC
           X_DISTR(2)  TYPE C,   "Distribution Channel
           X_CONTR(6)  TYPE C,   "Percentage contribution
           X_AWRD(14)  TYPE C,   "Award        (Plan 11)
           X_P12R(14)  TYPE C,   "Auth Revenue (Plan 12 @ Rev)
           X_P12C(14)  TYPE C,   "Auth Cost    (Plan 12 @ Cost)
           X_P13R(14)  TYPE C,   "Auth Revenue (Plan 13 @ Rev)
           X_P13C(14)  TYPE C,   "Auth Cost    (Plan 13 @ Cost)
           X_ITDS(14)  TYPE C,   "ITD Sales
           X_ITDC(14)  TYPE C,   "ITD Costs
           X_YTDS(14)  TYPE C,   "YTD Sales
           X_YTDC(14)  TYPE C,   "YTD Costs
           X_MTHS(14)  TYPE C,   "Current Month Sales
           X_MTHC(14)  TYPE C,   "Current Month Costs
           X_ITDB(14)  TYPE C,   "ITD Billed Sales
           X_YTDB(14)  TYPE C,   "YTD Billed Sales
           X_MTHB(14)  TYPE C,   "Current Month Billed Sales
           X_COMM(14)  TYPE C,   "Commitments
           X_STAT(6)   TYPE C,   "Active or Inactive (REL, TECO, or CLSD)
           X_ZPROJCLASS(12),
           X_MTHIC(14) TYPE C,   "Current Month Incremental Costs
           X_YTDIC(14) TYPE C,   "YTD Incremental Costs
           X_ITDIC(14) TYPE C,   "ITD Incremental Costs
           X_ZSCURVE(10) TYPE C, "S-CURVE  Status
    New Added
           X_CM_COST(20) TYPE C,
           X_AM_COST(20) TYPE C,
           X_TL_COST(20) TYPE C,
           X_KP_COST(20) TYPE C,
           X_PM_COST(20) TYPE C,
    END OF EXDEF.
    Data declarations
    FIELD-SYMBOLS <MNT> .
    DATA: ETAB  TYPE  EXDEF   OCCURS 100  WITH  HEADER LINE.
    DATA:  X1_PM_COST(20) TYPE C,
           X1_TL_COST(20) TYPE C,
           X1_AM_COST(20) TYPE C,
           X1_CM_COST(20) TYPE C,
           X1_KP_COST(20) TYPE C.
    DATA: KOKRS_FIXED      LIKE PROJ-VKOKR VALUE 'DSRC',  "Controlling Area
          TOTAL_AWARD      LIKE BPGE-WTGES,
          TOTAL_AUTHR12    LIKE BPGE-WTGES,
          TOTAL_AUTHC12    LIKE BPGE-WTGES,
          TOTAL_AUTHR13    LIKE BPGE-WTGES,
          TOTAL_AUTHC13    LIKE BPGE-WTGES,
          TOTAL_ITDSALES   LIKE BPGE-WTGES,
          TOTAL_ITDCOSTS   LIKE BPGE-WTGES,
          TOTAL_ITDICOSTS  LIKE BPGE-WTGES,
          TOTAL_YTDSALES   LIKE BPGE-WTGES,
          TOTAL_YTDCOSTS   LIKE BPGE-WTGES,
          TOTAL_YTDICOSTS  LIKE BPGE-WTGES,
          TOTAL_MTHSALES   LIKE BPGE-WTGES,
          TOTAL_MTHCOSTS   LIKE BPGE-WTGES,
          TOTAL_MTHICOSTS  LIKE BPGE-WTGES,
          TOTAL_ITDBILLED  LIKE BPGE-WTGES,
          TOTAL_YTDBILLED  LIKE BPGE-WTGES,
          TOTAL_MTHBILLED  LIKE BPGE-WTGES,
          TOTAL_COMMITMENT LIKE COOI-WTGBTR,
          HOLD_PRART       LIKE PRPS-PRART,
          COUNT_PROJECTS   TYPE I,
          MNT_INDX(20)     TYPE C,
          HLD_INDX(3)      TYPE N,
          YYYY_MM(10)      TYPE C,
          TEMP-DATE(8)     TYPE C.
    Selection Screen
    SELECTION-SCREEN SKIP 3.
    SELECTION-SCREEN BEGIN OF BLOCK XEXTRPM WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 2.
    PARAMETERS MONTH(2)  TYPE  N   OBLIGATORY.
    PARAMETERS YEAR(4)   TYPE  N   OBLIGATORY.
    SELECT-OPTIONS: EXTRPRJ  FOR PROJ-PSPID.     " Range of Projects
    SELECT-OPTIONS: EXTRTYP  FOR PRPS-PRART.  "Project Types (CO,GV,etc.*)
    SELECT-OPTIONS: EXTRPCTR FOR PROJ-PRCTR.     " Range of Profit centers
    SELECTION-SCREEN SKIP 2.
    PARAMETERS: OPT1 RADIOBUTTON GROUP OPTN,
                OPT2 RADIOBUTTON GROUP OPTN DEFAULT 'X'.
    select-options : s_pc for proj-zprojclass.   "project class
    SELECTION-SCREEN END OF BLOCK XEXTRPM.
    Select Tables
    START-OF-SELECTION.
    write: / 'Sales data (Unshared) extracted on: ', sy-datum.
    uline.
      CLEAR:  COUNT_PROJECTS,
              TOTAL_AWARD,
              TOTAL_AUTHR12,
              TOTAL_AUTHC12,
              TOTAL_AUTHR13,
              TOTAL_AUTHC13,
              TOTAL_ITDSALES,
              TOTAL_ITDCOSTS,
              TOTAL_YTDSALES,
              TOTAL_YTDCOSTS,
              TOTAL_MTHSALES,
              TOTAL_MTHCOSTS,
              TOTAL_ITDBILLED,
              TOTAL_YTDBILLED,
              TOTAL_MTHBILLED,
              TOTAL_COMMITMENT,
              ETAB.
    PROJ Table                                          Project Definition
      SELECT  * FROM PROJ                   "Project Definition
           WHERE PSPID IN EXTRPRJ AND      " Range of Project Numbers
              PRCTR IN EXTRPCTR and        " Range of Profit center
                zprojclass in s_pc.     "project class
    SELECT * FROM PRPS WHERE           "WBS Elements
                  PRART IN EXTRTYP         " Range of Proj.Types (CO,GV,TC..
                 and PSPHI = PROJ-PSPNR.
        HOLD_PRART   = '  '.               "clears project type
        CLEAR ETAB.
        ETAB-X_PROJ  = PRPS-POSID.
        ETAB-X_BU    = PRPS-PRCTR(2).      "Business Unit
        ETAB-X_PMGR = PROJ-VERNA.          "Project Manager
        IF PRPS-PRCTR(2) = '01'.
         ETAB-X_CNTR  = PRPS-PRCTR.         " Profit Center
         CONCATENATE SPACE PRPS-PRCTR INTO ETAB-X_CNTR SEPARATED BY SPACE.
        ELSE.
          ETAB-X_CNTR  = PRPS-PRCTR.         " Profit Center
        ENDIF.
         ETAB-X_TTLE  = PRPS-POST1.         "Title
        CLEAR  TEMP-DATE.
        TEMP-DATE    = PROJ-PLFAZ.         "Project planned start date
        CONCATENATE  TEMP-DATE4(2)  '/' TEMP-DATE6(2) '/'
                     TEMP-DATE+0(4)  INTO  ETAB-X_OPEN.
        TEMP-DATE    = PROJ-PLSEZ.         "Project planned finish date
        CONCATENATE  TEMP-DATE4(2)  '/' TEMP-DATE6(2) '/'
                     TEMP-DATE+0(4)  INTO  ETAB-X_CLOSE.
    Tech Lead
    will comment below
        SELECT SINGLE VERNA FROM TCJ04     "Tech Lead name from TCJ04
               INTO  (ETAB-X_GRPH) WHERE  VERNR = PROJ-ZGRPHD.
    End Of Tech Lead
    Account Manager
        SELECT SINGLE VERNA FROM TCJ04  "Acct Manager from TCJ04
               INTO  (ETAB-X_BDREP) WHERE  VERNR = PROJ-ZBUSDEV.
    ******End Of Account Manager
    Key Personnel
        SELECT SINGLE VERNA FROM TCJ04     "Account Rep name from TCJ04
               INTO  (ETAB-X_ACTREP) WHERE  VERNR = PROJ-ZRESPDIR.
    ********End of Key Personnel
    **Contract Manager
        SELECT SINGLE VERNA FROM TCJ04     "Contract Rep name from TCJ04
               INTO  (ETAB-X_CREP) WHERE  VERNR = PROJ-ZCNTREP.
    End of Contract Manager
    PRPS Table                            WBS's attached to the Project
       SELECT * FROM PRPS WHERE           "WBS Elements
                 PRART IN EXTRTYP         "Range of Proj.Types (CO,GV,TC..
                 AND PSPHI = PROJ-PSPNR.
                order by posid stufe.    "Sort by WBS & Level (needed?)
    get info from level 1 of the WBS
         IF PRPS-STUFE EQ 1.              "top-level WBS element
            HOLD_PRART  = PRPS-PRART.      "save project type for later
            ETAB-X_STAT = '????'.          "set ? as the default status
    get Status for level 1
            SELECT * FROM JEST             "use JEST to determine Status
               WHERE OBJNR =  PRPS-OBJNR
                 AND INACT EQ SPACE.       "space denotes an active status
               CASE JEST-STAT.             "find the system status (Ixxx)
                    WHEN 'I0001'.
                         ETAB-X_STAT = 'CRTD'.    "Created
                    WHEN 'I0002'.
                         ETAB-X_STAT = 'REL'.     "Released
                    WHEN 'I0045'.
                         ETAB-X_STAT = 'TECO'.    "Technically Complete
                    WHEN 'I0046'.
                         ETAB-X_STAT = 'CLSD'.    "Closed
               ENDCASE.
            ENDSELECT.
    Select only active projects (ie; those not with TECO or CLSD)
            IF  OPT2 EQ 'X'
               AND  ( ETAB-X_STAT EQ  'TECO'
                  OR  ETAB-X_STAT EQ  'CLSD' ).
                   EXIT.
            ENDIF.
    *comment Contract Rep and Proj man because we get them from PROJ now
           etab-x_crep   = prps-zzcont.     "Contract Rep.
           etab-x_pmgr   = prps-verna.      "Program Manager Name
            ETAB-X_CLNT   = PRPS-ZZMANDT.    "Client Name
            ETAB-X_CGT    = PRPS-PRART.      "CO, GV, TC, etc
            ETAB-X_DISTR  = PRPS-ZZVTWEG.    "Distrib Channel (ie; GP, etc.)
            ETAB-X_CONTR  = PRPS-USR04.      "Contribution %
            ETAB-X_POCN   = PRPS-ZZPOCN.     "Contract Number
            ETAB-X_TYPE   = PRPS-ZZORDT.     "Order Type Sarnoff
    Award and Authorization (Revenue & Cost)
            SELECT * FROM BPGE
               WHERE OBJNR   = PRPS-OBJNR
                 AND LEDNR   = '0001'        "Budget / Planning Ledger
                 AND TRGKZ   = 'N'           "Object indicator
                 AND WRTTP   = '01'          "Value Type
                 AND ( VERSN = '011'         "011 = Award
                    OR VERSN = '012'         "012 = Billing Authorization
                    OR VERSN = '013' ).      "013 = RA Authorization
                                             "010 = Funding Authorization
    Award                                                        Plan 11
              IF BPGE-VERSN = '011'.         "Plan 11 = Award
                CASE BPGE-VORGA.
                  WHEN 'KSTP'.               "KSTP = Cost level
                    ETAB-X_AWRD = ETAB-X_AWRD + BPGE-WTGES.
                ENDCASE.
              ENDIF.
        IF prps-stufe eq '2'.
    Authorization (Revenue & Cost plan 12)                       Plan 12
              IF BPGE-VERSN = '012'.         "Plan 12 = RA Authorization
                CASE BPGE-VORGA.
                  WHEN 'KSTR'.               "KSTR = Revenue level
                    ETAB-X_P12R = ETAB-X_P12R - BPGE-WTGES.
                  WHEN 'KSTP'.               "KSTP = Cost level
                    ETAB-X_P12C = ETAB-X_P12C + BPGE-WTGES.
                ENDCASE.
              ENDIF.
    Authorization (Revenue & Cost plan 13)                       Plan 13
              IF BPGE-VERSN = '013'.         "Plan 13 = RA Authorization
                CASE BPGE-VORGA.
                  WHEN 'KSTR'.               "KSTR = Revenue level
                    ETAB-X_P13R = ETAB-X_P13R - BPGE-WTGES.
                  WHEN 'KSTP'.               "KSTP = Cost level
                    ETAB-X_P13C = ETAB-X_P13C + BPGE-WTGES.
                ENDCASE.
              ENDIF.
        endif.
            ENDSELECT.                     "BPGE
      ENDIF.      "end of if prps-stufe eq 1. top-level WBS element
    COSP Table (External Postings)                     Awards
    COSP Table (External Postings)                     Billed Sales
    COSP Table (External Postings)                     DPC's & Legacy Load
            SELECT * FROM COSP
               WHERE OBJNR = PRPS-OBJNR    AND
                     GJAHR LE YEAR
             AND (
                 ( kstar = '0000400999'   and        "old CE for Award $
                   ( KSTAR BETWEEN '0000400990' AND '0000400999' AND
                     VERSN = '011'              AND    "11 = Award
                     WRTTP = '01' )                    "01 = Planned
              OR ( ( KSTAR BETWEEN '0000400001' AND '0000400989' OR
                     KSTAR BETWEEN '0000999001' AND '0000999003' ) AND
                     WRTTP = '04' )                    "04 = Actuals
              OR ( ( KSTAR BETWEEN '0000998001' AND '0000998010' OR
                     KSTAR BETWEEN '0000600001' AND '0000601999' ) AND
                     WRTTP = '04' )                    "04 = Actuals
    *------- Awards
           if cosp-kstar = '0000400999' and          "old 400999 = Awards
             IF COSP-KSTAR BETWEEN '0000400990' AND '0000400999' AND
                COSP-VERSN = '011'              AND    "11 = Award
                COSP-WRTTP = '01'.                     "01 = Planned
               IF YEAR       = COSP-GJAHR.
                 DO.
                     IF SY-INDEX LE MONTH.
                        MOVE SY-INDEX TO HLD_INDX.
                        MNT_INDX =  'COSP-WKGXXX'.
                        REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                        ASSIGN  (MNT_INDX) TO <MNT>.
                        ETAB-X_AWRD = ETAB-X_AWRD + <MNT>.
                     ELSE.
                        EXIT.
                     ENDIF.
                 ENDDO.
               ELSEIF YEAR > COSP-GJAHR.
                   ETAB-X_AWRD = ETAB-X_AWRD +
                                 COSP-WKG001 + COSP-WKG002 +
                                 COSP-WKG003 + COSP-WKG004 +
                                 COSP-WKG005 + COSP-WKG006 +
                                 COSP-WKG007 + COSP-WKG008 +
                                 COSP-WKG009 + COSP-WKG010 +
                                 COSP-WKG011 + COSP-WKG012 +
                                 COSP-WKG013 + COSP-WKG014 +
                                 COSP-WKG015 + COSP-WKG016.
               ELSE.
                 EXIT.
               ENDIF.
             ENDIF.
    *------- Billed Sales
             IF ( COSP-KSTAR BETWEEN '0000400001' AND '0000400989' OR
                  COSP-KSTAR BETWEEN '0000999001' AND '0000999003' ) AND
                  COSP-WRTTP = '04'.
                                     "0000999001 = ITD Sales
                                     "0000999003 = ITD Billed Revenue
                IF YEAR = COSP-GJAHR.
                  DO.
                   IF SY-INDEX LE MONTH.
                      MOVE SY-INDEX TO HLD_INDX.
                      MNT_INDX =  'COSP-WKGXXX'.
                      REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                      ASSIGN  (MNT_INDX) TO <MNT>.
                      ETAB-X_ITDB = ETAB-X_ITDB - <MNT>.
                      ETAB-X_YTDB = ETAB-X_YTDB - <MNT>.
                      IF SY-INDEX = MONTH.
                         ETAB-X_MTHB = ETAB-X_MTHB - <MNT>.
                      ENDIF.
                   ELSE.
                      EXIT.
                   ENDIF.
                  ENDDO.
                ELSEIF YEAR > COSP-GJAHR.
                  ETAB-X_ITDB = ETAB-X_ITDB -
                             COSP-WKG001 - COSP-WKG002 -
                             COSP-WKG003 - COSP-WKG004 -
                             COSP-WKG005 - COSP-WKG006 -
                             COSP-WKG007 - COSP-WKG008 -
                             COSP-WKG009 - COSP-WKG010 -
                             COSP-WKG011 - COSP-WKG012 -
                             COSP-WKG013 - COSP-WKG014 -
                             COSP-WKG015 - COSP-WKG016.
                ELSE.
                  EXIT.
                ENDIF.
             ENDIF.
    *------- DPC's & Legacy Load
             IF ( COSP-KSTAR BETWEEN '0000998001' AND '0000998010' OR
                  COSP-KSTAR BETWEEN '0000600001' AND '0000601999' ) AND
                  COSP-WRTTP = '04'.
               IF YEAR = COSP-GJAHR.
                 DO.
                     IF SY-INDEX LE MONTH.
                        MOVE SY-INDEX TO HLD_INDX.
                        MNT_INDX =  'COSP-WKGXXX'.
                        REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                        ASSIGN  (MNT_INDX) TO <MNT>.
                        ETAB-X_ITDC  = ETAB-X_ITDC  + <MNT>.
                        ETAB-X_YTDC  = ETAB-X_YTDC  + <MNT>.
                        IF SY-INDEX = MONTH.
                           ETAB-X_MTHC  = ETAB-X_MTHC  + <MNT>.
                        ENDIF.
                     ELSE.
                        EXIT.
                     ENDIF.
                 ENDDO.
               ELSEIF YEAR > COSP-GJAHR.
                   ETAB-X_ITDC = ETAB-X_ITDC +
                                 COSP-WKG001 + COSP-WKG002 +
                                 COSP-WKG003 + COSP-WKG004 +
                                 COSP-WKG005 + COSP-WKG006 +
                                 COSP-WKG007 + COSP-WKG008 +
                                 COSP-WKG009 + COSP-WKG010 +
                                 COSP-WKG011 + COSP-WKG012 +
                                 COSP-WKG013 + COSP-WKG014 +
                                 COSP-WKG015 + COSP-WKG016.
               ELSE.
                  EXIT.
               ENDIF.
             ENDIF.
           ENDSELECT.
    COOI Table (Commitments)              commitments for the WBS elements
           SELECT  * FROM COOI
             WHERE OBJNR =  PRPS-OBJNR.
               ETAB-X_COMM = ETAB-X_COMM + COOI-WTGBTR.
           ENDSELECT.
    COSS Table (External Postings)                    G&A on Commitments
    COSS Table (External Postings)                    Shared Billed Sales
    COSS Table (External Postings)                    Shared DPC's
    COSS Table (External Postings)                    Salary,ESE,OH, & G&A
           SELECT  *   FROM  COSS
             WHERE
              ( OBJNR =  PRPS-OBJNR AND
                WRTTP =  '22' )                         "G&A on Commitments
                    OR
              ( OBJNR =  PRPS-OBJNR AND
                GJAHR LE YEAR       AND
                WRTTP = '04'        AND                 "04 = Actuals
                   (                                   "Shared Billed Sales
                     (   KSTAR BETWEEN '0000400001' AND '0000400989' OR
                         KSTAR BETWEEN '0000999001' AND '0000999003' )
                     OR                                "Shared DPC's
                     (   KSTAR BETWEEN '0000600001' AND '0000601999' )
                     OR                                "Salary,ESE,OH, & G&A
                     ( ( KSTAR BETWEEN '0000001000' AND '0000001999'  OR
                         KSTAR BETWEEN '0000002100' AND '0000002199'  OR
                         KSTAR BETWEEN '0000002500' AND '0000002599'  OR
                         KSTAR BETWEEN '0000002800' AND '0000002899' ) )
                  and  parob not like 'PR%' ) "commented out on 4/19/2000
    *------- G&A on Commitments    (NOTE: data is always as of the RUN date)
             IF  COSS-WRTTP = '22'.
                   ETAB-X_COMM = ETAB-X_COMM +
                                 COSS-WKG001 + COSS-WKG002 +
                                 COSS-WKG003 + COSS-WKG004 +
                                 COSS-WKG005 + COSS-WKG006 +
                                 COSS-WKG007 + COSS-WKG008 +
                                 COSS-WKG009 + COSS-WKG010 +
                                 COSS-WKG011 + COSS-WKG012 +
                                 COSS-WKG013 + COSS-WKG014 +
                                 COSS-WKG015 + COSS-WKG016.
             ENDIF.
    *------- Shared Billed Sales
             IF ( COSS-KSTAR BETWEEN '0000400001' AND '0000400989' OR
                  COSS-KSTAR BETWEEN '0000999001' AND '0000999003' ) AND
                  COSS-WRTTP = '04'.
               IF YEAR = COSS-GJAHR.
                 DO.
                     IF SY-INDEX LE MONTH.
                        MOVE SY-INDEX TO HLD_INDX.
                        MNT_INDX =  'COSS-WKGXXX'.
                        REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                        ASSIGN  (MNT_INDX) TO <MNT>.
                        ETAB-X_ITDB = ETAB-X_ITDB - <MNT>.
                        ETAB-X_YTDB = ETAB-X_YTDB - <MNT>.
                        IF SY-INDEX = MONTH.
                           ETAB-X_MTHB = ETAB-X_MTHB - <MNT>.
                        ENDIF.
                     ELSE.
                        EXIT.
                     ENDIF.
                 ENDDO.
               ELSEIF YEAR > COSS-GJAHR.
                 ETAB-X_ITDB = ETAB-X_ITDB -
                               COSS-WKG001 - COSS-WKG002 -
                               COSS-WKG003 - COSS-WKG004 -
                               COSS-WKG005 - COSS-WKG006 -
                               COSS-WKG007 - COSS-WKG008 -
                               COSS-WKG009 - COSS-WKG010 -
                               COSS-WKG011 - COSS-WKG012 -
                               COSS-WKG013 - COSS-WKG014 -
                               COSS-WKG015 - COSS-WKG016.
               ELSE.
                  EXIT.
               ENDIF.
             ENDIF.
    *------- Shared DPC's
             IF COSS-KSTAR BETWEEN '0000600001' AND '0000601999' AND
                COSS-WRTTP = '04'.
               IF YEAR = COSS-GJAHR.
                 DO.
                     IF SY-INDEX LE MONTH.
                        MOVE SY-INDEX TO HLD_INDX.
                        MNT_INDX =  'COSS-WKGXXX'.
                        REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                        ASSIGN  (MNT_INDX) TO <MNT>.
                        ETAB-X_ITDC  = ETAB-X_ITDC  + <MNT>.
                        ETAB-X_YTDC  = ETAB-X_YTDC  + <MNT>.
                        IF SY-INDEX = MONTH.
                           ETAB-X_MTHC  = ETAB-X_MTHC  + <MNT>.
                       ENDIF.
                     ELSE.
                        EXIT.
                     ENDIF.
                 ENDDO.
               ELSEIF YEAR > COSS-GJAHR.
                   ETAB-X_ITDC = ETAB-X_ITDC +
                                 COSS-WKG001 + COSS-WKG002 +
                                 COSS-WKG003 + COSS-WKG004 +
                                 COSS-WKG005 + COSS-WKG006 +
                                 COSS-WKG007 + COSS-WKG008 +
                                 COSS-WKG009 + COSS-WKG010 +
                                 COSS-WKG011 + COSS-WKG012 +
                                 COSS-WKG013 + COSS-WKG014 +
                                 COSS-WKG015 + COSS-WKG016.
               ELSE.
                  EXIT.
               ENDIF.
             ENDIF.
    *------- Salary,ESE,OH,& G&A
             IF ( COSS-KSTAR BETWEEN '0000001000' AND '0000001999'  OR
                  COSS-KSTAR BETWEEN '0000002100' AND '0000002199'  OR
                  COSS-KSTAR BETWEEN '0000002500' AND '0000002599'  OR
                  COSS-KSTAR BETWEEN '0000002800' AND '0000002899' ) AND
                  COSS-WRTTP = '04'.
               IF YEAR = COSS-GJAHR.
                 DO.
                   IF SY-INDEX LE MONTH.
                      MOVE SY-INDEX TO HLD_INDX.
                      MNT_INDX =  'COSS-WKGXXX'.
                      REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                      ASSIGN  (MNT_INDX) TO <MNT>.
                      ETAB-X_ITDC = ETAB-X_ITDC + <MNT>.
                      ETAB-X_YTDC = ETAB-X_YTDC + <MNT>.
                      IF SY-INDEX = MONTH.
                          ETAB-X_MTHC = ETAB-X_MTHC + <MNT>.
                      ENDIF.
                   ELSE.
                      EXIT.
                   ENDIF.
                 ENDDO.
               ELSEIF YEAR > COSS-GJAHR.
                 ETAB-X_ITDC = ETAB-X_ITDC +
                               COSS-WKG001 + COSS-WKG002 +
                               COSS-WKG003 + COSS-WKG004 +
                               COSS-WKG005 + COSS-WKG006 +
                               COSS-WKG007 + COSS-WKG008 +
                               COSS-WKG009 + COSS-WKG010 +
                               COSS-WKG011 + COSS-WKG012 +
                               COSS-WKG013 + COSS-WKG014 +
                               COSS-WKG015 + COSS-WKG016.
               ELSE.
                 EXIT.
                ENDIF.
             ENDIF.
            ENDSELECT.
    COSB Table (Results from running RA)                    Unbilled Sales
            SELECT * FROM COSB
               WHERE OBJNR = PRPS-OBJNR
                 AND KSTAR BETWEEN '0000003004' AND '0000003005'
                                   "0000003004 = Unbilled Revenue
                                   "0000003005 = Unearned Revenue
                 AND GJAHR LE YEAR
                 AND WRTTP = '32'.                    "32 = Results Analysis
               IF YEAR = COSB-GJAHR.
                 DO.
                     IF SY-INDEX LE MONTH.
                        MOVE SY-INDEX TO HLD_INDX.
                        MNT_INDX =  'COSB-WKGXXX'.
                        REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
                        ASSIGN  (MNT_INDX) TO <MNT>.
                        ETAB-X_ITDS = ETAB-X_ITDS - <MNT>.
                        ETAB-X_YTDS = ETAB-X_YTDS - <MNT>.
                        IF SY-INDEX = MONTH.
                           ETAB-X_MTHS = ETAB-X_MTHS - <MNT>.
                        ENDIF.
                     ELSE.
                        EXIT.
                     ENDIF.
                 ENDDO.
               ELSEIF YEAR > COSB-GJAHR.
                 ETAB-X_ITDS = ETAB-X_ITDS -
                               COSB-WKG001 - COSB-WKG002 -
                               COSB-WKG003 - COSB-WKG004 -
                               COSB-WKG005 - COSB-WKG006 -
                               COSB-WKG007 - COSB-WKG008 -
                               COSB-WKG009 - COSB-WKG010 -
                               COSB-WKG011 - COSB-WKG012 -
                               COSB-WKG013 - COSB-WKG014 -
                               COSB-WKG015 - COSB-WKG016.
               ELSE.
                  EXIT.
               ENDIF.
            ENDSELECT.
      ENDSELECT.               "End of WBS records (from PRPS) for project
    Get Total Sales by adding Billed Sales to Unbilled Sales.
       ETAB-X_ITDS  =  ETAB-X_ITDS  +  ETAB-X_ITDB.
       ETAB-X_YTDS  =  ETAB-X_YTDS  +  ETAB-X_YTDB.
       ETAB-X_MTHS  =  ETAB-X_MTHS  +  ETAB-X_MTHB.
       IF  HOLD_PRART IN EXTRTYP.   "Matches the user requested project type
         IF  OPT1 EQ 'X' OR         "All projects
           ( OPT2 EQ 'X' AND        "Only active projects
             ETAB-X_STAT NE  'TECO' AND
             ETAB-X_STAT NE  'CLSD' ).
               TOTAL_AWARD      = TOTAL_AWARD      + ETAB-X_AWRD.
               TOTAL_AUTHR12    =   TOTAL_AUTHR12    + ETAB-X_P12R .
              TOTAL_AUTHC12    = TOTAL_AUTHC12    + ETAB-X_P12C.
               TOTAL_AUTHR13    = TOTAL_AUTHR13    + ETAB-X_P13R.
               TOTAL_AUTHC13    = TOTAL_AUTHC13    + ETAB-X_P13C.
               TOTAL_ITDSALES   = TOTAL_ITDSALES   + ETAB-X_ITDS.
               TOTAL_ITDCOSTS   = TOTAL_ITDCOSTS   + ETAB-X_ITDC.
               TOTAL_YTDSALES   = TOTAL_YTDSALES   + ETAB-X_YTDS.
               TOTAL_YTDCOSTS   = TOTAL_YTDCOSTS   + ETAB-X_YTDC.
               TOTAL_MTHSALES   = TOTAL_MTHSALES   + ETAB-X_MTHS.
               TOTAL_MTHCOSTS   = TOTAL_MTHCOSTS   + ETAB-X_MTHC.
               TOTAL_ITDBILLED  = TOTAL_ITDBILLED  + ETAB-X_ITDB.
               TOTAL_YTDBILLED  = TOTAL_YTDBILLED  + ETAB-X_YTDB.
               TOTAL_MTHBILLED  = TOTAL_MTHBILLED  + ETAB-X_MTHB.
               TOTAL_COMMITMENT = TOTAL_COMMITMENT + ETAB-X_COMM.
               PERFORM SHIFT_SIGN.
               APPEND  ETAB.              "Write data to internal table
               CLEAR   ETAB.
               COUNT_PROJECTS = COUNT_PROJECTS + 1. "Count # of Projects
         ENDIF.
       ENDIF.
       ENDSELECT.
    ENDSELECT.                          "End of Projects from PROJ table
      PERFORM GRAND_TOTALS.
      SORT  ETAB  BY  X_BU X_PROJ.
      ETAB-X_BU    = 'BU'.
      ETAB-X_CNTR  = 'PrftCntr'.
      ETAB-X_PROJ  = 'Proj'.
      ETAB-X_CREP  = 'Contract Mgr'.
      ETAB-X_BDREP = 'Account Mgr'.
      ETAB-X_GRPH  = 'Technical Lead'.
      ETAB-X_ACTREP = 'Key Person1'.
      ETAB-X_PMGR  = 'Program Mgr'.
      ETAB-X_TTLE  = 'Title'.
      ETAB-X_CLNT  = 'Client'.
      ETAB-X_POCN  = 'Contract #'.
      ETAB-X_TYPE  = 'Type'.
      ETAB-X_OPEN  = 'Open'.
      ETAB-X_CLOSE = 'Close'.
      ETAB-X_CGT   = 'CGT'.
      ETAB-X_DISTR = 'DC'.
      ETAB-X_CONTR = 'Contr%'.
      ETAB-X_AWRD  = 'Award'.
      ETAB-X_P12R  = 'Auth12 Sales'.
      ETAB-X_P12C  = 'Auth12 Cost'.
      ETAB-X_P13R  = 'Auth13 Sales'.
      ETAB-X_P13C  = 'Auth13 Cost'.
      ETAB-X_ITDS  = 'ITD Sales'.
      ETAB-X_ITDC  = 'ITD Costs'.
      ETAB-X_YTDS  = 'YTD Sales'.
      ETAB-X_YTDC  = 'YTD Costs'.
      ETAB-X_MTHS  = 'Mth Sales'.
      ETAB-X_MTHC  = 'Mth Costs'.
      ETAB-X_ITDB  = 'ITD Billed'.
      ETAB-X_YTDB  = 'YTD Billed'.
      ETAB-X_MTHB  = 'Mth Billed'.
      ETAB-X_COMM  = 'Commitments'.
      ETAB-X_STAT  = 'Status'.
      INSERT ETAB  INDEX 1.    "Write a report header line to internal table
      CLEAR  ETAB.
    CALL FUNCTION 'Z_RH_START_EXCEL_DATA_OLE'
        EXPORTING
           data_name = 'C:\WINNT\Profiles\cbraswell\Desktop\TestTemp.xlt'
             DATA_NAME          = 'ZSales.XLS'
             DATA_PATH_FLAG     = 'W'
             DATA_TYPE          = 'DAT'
             DATA_BIN_FILE_SIZE = 'ZSales'
             CHART_TITLE        = 'ZSales'
             CHART_TYPE         = 2
             CATEGORY_TITLE     = 'ZSales'
             VALUE_TITLE        = 'ZSales'
             DATA_XTOP_COR      = 0
             DATA_YTOP_COR      = 0
             DATA_XBOT_COR      = 0
             DATA_YBOT_COR      = 0
             CATEGORY_XTOP_COR  = 0
             CATEGORY_YTOP_COR  = 0
             CATEGORY_XBOT_COR  = 0
             CATEGORY_YBOT_COR  = 0
         TABLES
              DATA_TAB           =    ETAB
         EXCEPTIONS
              NO_BATCH           = 1
              DOWNLOAD_ERROR     = 2
              INVALID_TYPE       = 3
              INTERNAL_ERROR     = 4
              NO_OLE_SUPPORT     = 5
              OLE_FILE_ERROR     = 6
              OLE_ERROR          = 7
              NO_DATA            = 8
              COORDINATE_ERROR   = 9
              OTHERS             = 10.
    Negative # sign in the front of number for downloading to Excel
    FORM  SHIFT_SIGN.
      IF ETAB-X_AWRD CA '-'.    SHIFT ETAB-X_AWRD RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_P12R CA '-'.    SHIFT ETAB-X_P12R RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_P12C CA '-'.    SHIFT ETAB-X_P12C RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_P13R CA '-'.    SHIFT ETAB-X_P13R RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_P13C CA '-'.    SHIFT ETAB-X_P13C RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_ITDS CA '-'.    SHIFT ETAB-X_ITDS RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_ITDIC CA '-'.   SHIFT ETAB-X_ITDIC RIGHT CIRCULAR.    ENDIF.
      IF ETAB-X_ITDC CA '-'.    SHIFT ETAB-X_ITDC RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_YTDS CA '-'.    SHIFT ETAB-X_YTDS RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_YTDC CA '-'.    SHIFT ETAB-X_YTDC RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_YTDIC CA '-'.   SHIFT ETAB-X_YTDIC RIGHT CIRCULAR.    ENDIF.
      IF ETAB-X_MTHS CA '-'.    SHIFT ETAB-X_MTHS RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_MTHC CA '-'.    SHIFT ETAB-X_MTHC RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_MTHIC CA '-'.   SHIFT ETAB-X_MTHIC RIGHT CIRCULAR.    ENDIF.
      IF ETAB-X_ITDB CA '-'.    SHIFT ETAB-X_ITDB RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_YTDB CA '-'.    SHIFT ETAB-X_YTDB RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_MTHB CA '-'.    SHIFT ETAB-X_MTHB RIGHT CIRCULAR.     ENDIF.
      IF ETAB-X_COMM CA '-'.    SHIFT ETAB-X_COMM RIGHT CIRCULAR.     ENDIF.
    ENDFORM.
    FORM  GRAND_TOTALS.
    SKIP 1.    .
    WRITE: / '----
    WRITE: / 'System ID                  = ', SY-SYSID,
           / 'Client                     = ', SY-MANDT,
           / 'User                       = ', SY-UNAME,
           / 'Date of data extract       = ', SY-DATUM ,
           / 'Number of Projects          =           ',   COUNT_PROJECTS,
           / 'total Award      (Plan 11)  = ', TOTAL_AWARD,
           / 'total Auth Sales

    Hi all,
        Iam really waiting for someone to see and  get the logic right  for this code.Iam completely stuck up.  i need ur help
    Thanks

  • Some faqs can u solve dis answers asp

    1) How do u handle table control in bdc?
    2) What is diff b/w normal functional modules and BAPI's fm's?
    3)what is fct-code of at- line- selection?
    4)why do u  use subroutine pool in scripts?
    5)name few performance techniques?
    6)in how many ways u can design interactive reprt?
    7)what is the need of table maintainance option at the begin of table creation?
    8)what is the system landscape?
    9)what is the use of submit command in exe program?
    10)how do u create secondary index?
    11) what is the diff b/w sap memory and abap memory?
    what is the max size of date records?
    2)what is the max size of IDOC?
    3)what is the relationship b/w ALE and EDI?
    4)when u have data transfer, why do u chose IDOC's?
    5)i have 200 records how u decide how many records should execute per IDOc?
    6)ALE customizing method?
    7)how do u define logical systems and assign logical systems to clients?
    8)what is change pointer technique?&what is need of change pointer technique?
    1) name the events in order in case of classical report?
    2)if i put write statemnt in at slection-screen,does it works?
    3)can u call multilple selctio screen in one report?
    4)what is diff b/w integration & at slection-screen ouput?
    5) i have a requirement like  i have 3 radio butons in one group,
    if i select one radio button then remaining radio buttons  are invisible what is the code for this?
    6) how do u decide which method is suite for paricular requirement if not specified in bdc?
    i.e session or  call transction?
    7)what is BAPI?
    8)how BAPI differ from  ALE?
    9) steps of configuring of EDI?
    10) is layout set is client dependent or not?
    11)how to transfer layout sets  to test client side?
    12)what is the protect......end protect?
    13) for what purposeu create multiple wqidows in one page?
    14)what are diff areas wher ucan ouput text in main window?
    15)what method u use to output text in    (top........endtop) or write_form?
    16)what is the reason for use of write_form rather than top------endtop?
    1)i need a logo on the right hand side of corner . how do u handle that?
    2)what is the standard table for storing standard symbols?
    3)how do u represent page no in scripts & total page nos?
    4)what is the transaction code for dump analysis?
    5)when top-of-page vent triggred?
    6)can i plce write stament in any event?does it works?
    7)what is the use of end-of-selection event?
    8)what is stop& exit?
    9)what happens if i plce write statement in end-of-selction?
    10)what is sy-ttill?
    11)does the value of sy-subrc chnge after if and write stament?
    12)what is bdc & types of bdc?
    13)when do u choose session , call transaction methods?
    14)how may types of symbols? what are they?
    15)what is the diff b/w constant & variable symbols?
    16)what are the parameters in open_form & start_form?
    17)does text orientation(190degrees ,145 degrees) is possible in sap scripts?
    18)how do u delete text from a layoutset window?
    19)what  are u need to take care  while transporting the request? for exeampl u developed a exit ,whta care do u take?
    20) what wil u do for preparing technical specs form functional specs?
    21) what is addres....endaddress in sap scripts?
    22)which method  do u prefer synchronous or asynchronous?
    23)what is output type?
    24)what does slection-screen of RBDMIDOC contains?
    25)what parameters u specifyng in RFc destination?
    26)what customiging y do to transfer the data from one logical systme to another logical system?
    27)can u explain brifely how idoc's genrated?
    28)if i just extend the idoc, what are the things u need to do?can i extend the same ouboud program?
    29)can u just explain what partner profile contains?
    30)what are process codes?
    31)if i just develop a gui status using pf-status.is it confined to single program or can be used for any other programs?
    32)what is client?
    33)what is diff b/w se01,se09,se10,stms  transction codes?
    34)what is the diff b/w select single * from kna1 and select * from kna1 for all entries?
    35)in subroutines paramaters are changing & using .what is the diff b/w them?
    1) what is the diff b/w scripts & smart forms?
    2)what are the function module used in smart forms?
    3)what are the function module? what is the use of them?
    4)what is the index? what is the secodary index ? whta is uses of them?
    5)what is the table  technical characteristics?
    6)waht is buffering? types?
    7)what is the use of interactive reprt?
    8)what is the use of alv?
    9)what are problems  u have faced when u r doing projecs?
    10)what is the diff b/w template & tables?
    11)which function module used for transferring from one version to anthoer version?
    12) what determines the sequence in events blocks are processed?
    13)in what case are otional parameters  allowed in the passig of parameters?
    a) functions  b) forms
    14)what relationship can be  esatblished in watch points?
    15)what are requiremets of reading hashed internal table?
    16)what does a context object provides?
    17)what access methods are avaliable  for accessing internal table?
    18)what operations are allowed when processing data of records in internal  table?
    19)what tasks could be performed in SAPNET?
    20)what is search  help?
    21)what is the lock object?
    22)what is diff b/w domain and data elemnt?
    23)what is diff b/w check table and value table?
    24)what are the control break statements?
    25)how to display SUM?
    26)what is the diff b/w select single  & select upto one row?
    27)collect what it did?
    28)how to findout data in internal table?
    29)syntax for describe statement?
    30)hwo to findout if internal table is empty or not?
    31)hwo to transfer data from one internal table to another internal table?
    32)how to modify internal table?
    33)Read statement syntax?
    34)what is the default event?
    35)i have write only top-of-page event in that  write: / 'welcome' what will happen?
    36)what is message-d?
    37)what is the diff b/w with events &  without events?
    38)what is the purpose of Direct input method?
    39)what is local object?
    40)is it possible  to back ground process in call transaction? how?
    41)what are diff types of errors?
    42)what are the diff types function modules used in layout set?
    43)what is the diff b/w open_form & start_form?
    44) how to define  logo?
    45)after modification how to send modified form to modified print program?
    46)what are the symbols in sap scripts? functionality of them?
    47)how to write a Report in another Report?
    48)syntx fr submitt &what it did?
    49)what is the land scape of ABAP?
    50)what is index? types?
    51)hwo many secondary indexe are possible to create?
    52)what is diff b/w select single * from & select upto one row?
    53)in my 100 records 55th record is need some changes and that record how to send body to header line?
    54) what is the use of indexs?
    55)what is the diff b/w page area & roll area?
    56)diff b/w interface & conversion?
    57)how we configured ports andpartner-profiles?
    58)what si the Enhancement and what u had did with user-exist?
    59)who can extend Idoc?
    60)how many types of select staments?
    61)what is header line?
    62)what is diff b/w internal table work area & table work area?
    63)if we don't have header line what will happen?
    64)when the user-exist will triggered? for which purpose u have used and where u have written?
    65) how we linked the tables?
    66)in at selection-screen and at user-command event which one is triggred?
    67)what is the use of at pf-status? where did u use it?
    68)is it possible to run Host command inSAP environment? how do u run it?
    69)what are user-exists? what is involved in writting them? what precautions are needed?
    70)what is the version management?
    71)if u send the objects from dev server to production server,but get some  bugs so those bugs how to handle?
    72)if u upload the data after that. i din't put committ,then what happen?
    73)how to maintain dataintegrity?
    74) how to validate fields?
    1)how u connect the unix platform from SAP server?
    2)what is database object ? Runtime object?
    3)How to populate BDC table control?
    4)How to implemnt intreactive  list in alv?tell me fumnction module for that?
    5)How to transfer from data list to transactions?
    6)How can u add anew field to Script?
    7)what are problems in processing batch input session?
    8)diff b/w select-options & ranges?
    9)what is meant by satck list?
    10)if u don't have header line for internal table what will happen?
    11)what is the max no of calling modes stacked at one time is?
    12)what is collect command ? how it is works?
    13)if u want come back from 15th list to basic list waht will u do?
    14)what is the default mode of transfers data to and from application server?
    15)what is the purpose of EXTRACT parameter?
    16) how will u delete duplicate records from internal table?
    17)in for all entries clause of select statement ,if internal table is empty what will happen?
    18) How can u find the no of records in a table?
    19)Billing and invoice details are where stored?
    20)what is the typical structure of ABAp program?
    21)what is diff b/w ABAP program &user defiend program?
    22)can a transperent table exists in a data dictionary and not in the physical database?y/n
    23)diff b/w Collect & Append?
    24)logical unit of work means?
    25) How many types of  lock objects exists? what are they?
    26)what will u don inSPRO?
    27)how many tyeps buffers?
    28) what wil do by Maintainance generator?
    29) what is o/p type? what is done by this?
    30)program for BAPI?
    31)what is ALE implementation progarm?
    32) say the function code to catch function code F2?
    33) what is IDOC& how u can extend the IDOC?
    34)what is the advantage of LSMW?
    35)how many types of symbols u have on scripts & in which order they can executes?
    36)what is purpose of data conversion into SAP format from Legacy?
    37) what si the t-code for watch the flat file in application serever?
    38) what is purpose of driver program?
    39)what is contents of Functional Spec?
    40)what is contents of Technical Spec?
    41)How do u diasble a control in a selection-screen logic?
    42)what is source structure?
    43)what is target structure?
    44)if u don't have the access to modify the print program then how do u insert the text elemnts?
    45)how can u call report in another program?
    46)specify the events for classic & intractive  reports in order?
    47)say some usally used system fields in our programs?
    48)how can u create check box in alv?
    49)diff b/w select-options & parameters?
    50)how can u create  labels in scripts?
    51)how u display the data in scripts?
    52)What is the diff b/w At selection-screen output & initialization?
    53)how u trap the errors in call transations?
    54)diff b/w scripts & smart forms?
    55)types of internal tables & explain them?
    56)how many types of loops?
    57)Diff b/w Synchronous & Asynchronous RFC
    58)How u place data in table cotrol?
    59)what are the methods execute in LSMW?
    60)diff b/w sy-index & sy-tabix?
    61) in call transaction bckground process which mode u prefer?
    62)what is configuration of ALE?
    63) what are all read operations in itab?
    64)diff b/w search help & pov, which one trigger first?
    65)where u can u do the validations in report?
    66)what are the events in Module program?
    67)diff b/w call transactions & session method and wher trap erros in both methods? how?
    68)diff b/w scripts & reports?
    69)how u define text elemnts inscripts?
    70)what are the function modules inscripts?
    71)how u diplay the data in scripts?
    72)how  do u do  the perfomance testing?
    1)when it wll triggerd initialization event? Before how many events will triggerd?what are they?
    2)how many types of meaasges ?
    3)what is use of Dump analysis?
    4)what is the use for all entries?
    5)what Is the diff  b/w check & continue?
    6)whenever use EXIt statement whappend in loop … endloop   and within subroutines,  within start-of-selection ,with in end-of-selectio  and in initialization?
    7)what is the diff b/w value table and check table?
    8)in data element level I used search help and in domain level I used value table which will be shows our criteria?
    9)without doing any changes in printprogarm  I want to add some fields how can?
    10)how many mainwindows in one page? What is the use of remaing main windows?
    11)what is sy-index & sy-tabix?
    12)what are the qualities u have to maintain to ur developments?
    13)Smart forms are client  independent how u  justify that?
    14)in keyindexex what is the relationship 1:n?
    15)in dynpro how can insert radio butto?
    16)How can u use search help?
    17)in MEDRUCk(ME21)  I have changes some fields so immediate those changes send to Vendor through e-mail or fax? What is procedure?
    18) I worked in foreground one session successfully so tommarow I have to work same session in back ground then what happen?
    19)in bdc table control wher u have to face problem?
    20)In alv grid  control at the top  I want header/ how can u display?
    21)how can u print long text in scripts?
    22)how to display Text every 4 lines after?
    1)how can  u create u r own types in an ABAP report?
    2)which system variable is encounted in loop counter?
    3) which system variable is store the record counter?
    4)does a select statement carry out any authorization chek?
    5)what is function of environment variable sy-lisel in interactive reports?
    6)how can we identify which button is pressed?
    7)diff b/w se09 ,Se10?
    8)table in which entry for development class is made?
    9)which client is authorized to create the workbench oragnizer configuration?
    10)can we provide more than one PBO PAI for one screen?
    11)which view can even possess one table?
    12)What are field symbols?
    13)which is ued to release to lock?
    14)what are the various types of customer –exists?
    15)what is port?
    16)what  are the selection-text?
    17)can we use  perform in SAP scripts?
    18)what is the t.code for table maintainance?
    1)write  validation logic for parameters option? Wher do u write ?(in at selection-screen or start-of-selection)?
    2)what is the diff b/w  ‘  ‘IN’ jn where condition and without ‘IN’ condition in where condition?
    3)how can u display 21st secondary list ?explain procedure?(code?)
    4)what is the diff b/w sorted and hashed tables?
    5)can write statement in initialization triggers first or write statemnt in start-of-selection?
    6)what can ud o if have no authorization to recording in BDC?(without F1 and Technical help)?
    7)what is the diff b/w SAPLUW and DBLUW?
    8)expalin VPN process?
    9)what is the text in reports and scripts?
    10)how can u  release ur objects to end user?
    11)write genereal statement to display dat-range?
    12)explain pricing procedure in sap?
    13)how can u display barcodes in sap scripts?
    14)explain flow of S.D?
    15)what are the performance techniques expect Modularization techniques I want remaning?
    1)what is the purpose of initialization?
    2)what are control break  statements?
    3)what is the diff b/w ‘at new and ‘on change’?
    4)what is the use of end-of-selection?
    5)in Runtime analysis what ar the main area will be displaying for tunnning?
    6)what are the ways to improve the performance the report?
    7)What is the diff b/w maintainance view and databe view?
    8)what are the type of search help?
    9)what is the diff b/w include structure and append structure?
    10)how can we generate new item in BDC program or the transaction ME21?
    11) in calltransaction while transferring the data what happens idf the power goes off?
    12) what are the standard  programs for  transfer the data for material master and vendor master?
    13)whare we can assign the page size?
    14)how can we call a subroutine in scripts?
    15)how many max pages  we have to design for script ?
    16) what is use of protected and end protected?
    17)what are the types of functional modules?
    18)how many types of screen filed validations? What ate they?
    19)how to convert  the scripts to smartforms?
    20)what is the history of purchase order? Wher is it store?
    21)can  we debug smartforms ?
    22)what is the material history and where is it store?
    23)what are the functional modules ued in ALV?
    24)what is the fieldcatalog merge use?
    25)how u print the heading in ALV ?
    26)what is the t.code for BDC?
    27)what is the purpose of application server?
    28)what are the text elements ? what is the use of text elements ?
    29)how u create vertical line  and horizanatal line in reports?
    30)what is the purpose header line?
    31)what is the purpose of occur  clause?what default area it occupies?
    32)what are  text elements?
    33)how many secondary indexes we can  create for a table?
    34)What is the ue of st05?
    35)what is the foriegn key table?and check table?
    36)what are some essential steps for loggig changes made to SAP data?

    Hi Mahesh,
    Very good questions.  Infact it's very difficult to answer all the questions.
    You can search many FAQs in net...
    If you have any specific questions related to single topic, Post message for each.
    I can send some of FAQ documents to u
    Answers
    1) Using Index like Field(1)-1st record field , Field(2) - 2nd record field etc... in Table control.. we can handle BDC
    2) BAPI will be programmed using OO concepts more.. and as Interfacing is more enhanced here than normal FM.
    etc...
    Regards,
    Manjunatha

  • Help with choosing the right specifications for a Macbook Pro Retina?

    Opinions needed....
    So I'm new to Macs, but I know what I want to achieve and I feel this is the right route to choose. I'm looking at delving into the world of music production, using Logic pro 9 and garageband, but I also enjoy watching High definition Movies and televison so I know that the Retina display is definatley the right choice for me. However, I'm unsure on the amount of RAM & Which processer I should choose. I have read a fair bit on forums and online about the new retina macbooks being 'locked' from upgrading, so the 16GB of RAM is an immediate choice for logetivity.
    The choice of processor is when I start to become clouded in my choice. As forementioned, I'm looking at running logic pro, as well as high def movies. There is also a possibilty at looking into photo and video editing, Whether that be in final cut pro or photoshop... But I want to leave my options open.
    I think the choice of 16GB of RAM, 2.6Ghz processor, with a 256GB hard drive ( as i have 1.5TB external space) would be a good choice. Once I've added on applecare that comes out at around £2350, Which is a significant investment, but one that I think will help me immensely for the future. I am interested in other peoples opinions on my possible choice because, as I said before, I'm new to the world of Macs and making the right choice is essential. As a side note, the choice of upgrades also ensures a reasonable resale value, which is a bonus.
    Regards

    Both power adapter I have are different (at the magnet end) from the one in link.
    Earlier adapters have T shaped connectors, which Apple later changed to the L shape, presumably to make them more abuse-proof. Either one is fine and the one you are using will not damage your Mac.
    Retina MBPs and new MBAs use a completely different MagSafe 2 connector which will not fit (without an adapter).

Maybe you are looking for

  • No Play List's are being transferred to my IPOD Nano

    Everytime I update my Nano, I get the msg displayed in "I-TUNES": "Songs on the IPOD cannot be updated because all of the playlists selected for updating no longer exists." I mistakenly deleted some standard playlist in I-TUNES to make room for my ow

  • MBPR as Second Monitor?

    I know its possible to use the iMac as a second monitor through target display mode....however is it possible to use my 2012 MBPR as the second monitor for my iMac? I'm trying to edit a video and could use the extra screen real estate.

  • Can i restrict a movement type with respect to storage location

    Hi Is there any way to restrict the movement type for a particular storage locations. For eg. If am using a Mvt 311 tP btwn storagelocations. If there are 10 Stlocs in my plant i want to restrict 311 only for 7Slocs. Is it possible Guide me Sunil

  • BELKIN F5U228

    Has anybody used one of these with a MacBook Pro to capture video from an old video camera? Belkin have been unable so far to tell me the compatibility situation.

  • Esb file to file problem

    Hello I have a problem I want to transform a CSV file to another file with extension .dat and separated by |, I made an adaptor for reading the original file, a routing service for processing the and an adaptor to write the output file, when running