Use of GROUP BY in SELECT

I am considering using GROUP BY in several selects where I will access very big bsik, bsid, bsad, bsak, ecc...
My two concerns are performance and high data volume.
GROUP BY should reduce data arriving from DB but will it hurt performance?
What are your considerations?
Any ideas are welcome. I cannot seem to find anything specific for or against GROUP BY.
thanks,
Phillip

Hello Philip,
I would advise that you do not use the Group By clause in the select statements for these tables. As you have rightly said, the data volume in these tables might be a major cause for concern.
Using the Group By clause will heavily load the database server. while in the development environment, your query  might run okay, in the productive environment it might crash. The reason : the cursor to the database would have timed out.
The Group By operation, as you know can be simulated after you get the data into the application server. The application server processing can take some time but you can usually optimize it.
Regards,
Anand Mandalika.

Similar Messages

  • Default selection using radoi group option

    Hello friends,
    I am executing an web report using radio group option to display the results of various regions. When i execute in the browser by default it displays the summarised values of all the regions initially. I nees that the a particular option should be selected automatically by default when i execute. Below is the code which is generated by WAD. Can some one give points on this topic?
    <TR>
        <TD vAlign=top><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="RADIOGROUP_1"/>
             <param name="ITEM_CLASS" value="FILTER_RADIO"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_2"/>
             <param name="BORDER_STYLE" value=""/>
             <param name="WIDTH" value="600"/>
             <param name="IOBJNM" value="VIS"/>
             <param name="MAXVALUES" value="9"/>
             <param name="NO_REMOVE_FILTER" value="X"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_9"/>
             <param name="TARGET_DATA_PROVIDER_2" value="DATAPROVIDER_8"/>
             <param name="TARGET_DATA_PROVIDER_3" value="DATAPROVIDER_7"/>
             <param name="TARGET_DATA_PROVIDER_4" value="DATAPROVIDER_6"/>
             <param name="TARGET_DATA_PROVIDER_5" value="DATAPROVIDER_5"/>
             <param name="TARGET_DATA_PROVIDER_6" value="DATAPROVIDER_4"/>
             <param name="TARGET_DATA_PROVIDER_7" value="DATAPROVIDER_3"/>
             <param name="TARGET_DATA_PROVIDER_8" value="DATAPROVIDER_2"/>
             ITEM:            RADIOGROUP_1
    Regards
    srini.

    Srinivas,
    See if you can set the isselected=true option for any of the radio buttons..
    Arun

  • Frequently I send an email to multiple contacts.....I'm constantly changing my selection of multiple contacts so using the "group" function doesn't get the job done.......so how can I go through m

    I guess I was not clear.....my fault....let me re-phrase:  frequently I send an email to multiple contacts.....I'm constantly changing my selection of multiple contacts so using the "group" function doesn't get the job done.......so how can I go through my list of contacts and quickly select those contacts that I want to receive that particular email....thx  

    You need an app that allows group messaging. Enter group messenger in the search bar in the app store.

  • How to handle multiple radiobutton groups in a selection screen?

    Hi All,
    I have tabbed selection screen.
    * SELECTION SCREEN                                    *
    SELECTION-SCREEN BEGIN OF TABBED BLOCK TABB1 FOR 20 LINES.
    SELECTION-SCREEN TAB (20) TAB1 USER-COMMAND TAB1
                         DEFAULT SCREEN 1010.
    SELECTION-SCREEN TAB (20) TAB2 USER-COMMAND TAB2
                         DEFAULT SCREEN 1020.
    SELECTION-SCREEN END OF BLOCK TABB1.
    I have a radiobutton group in each of my tabs in the selection screen.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK GUI WITH FRAME." TITLE TEXT-GUI.
    PARAMETERS: P_GUI1 RADIOBUTTON GROUP GUI,
                P_GUI2 RADIOBUTTON GROUP GUI,
                P_GUI3 RADIOBUTTON GROUP GUI,
                P_GUI4 RADIOBUTTON GROUP GUI,
                P_GUI5 RADIOBUTTON GROUP GUI,
    SELECTION-SCREEN END OF BLOCK GUI.
    SELECTION-SCREEN END OF SCREEN 1010.
    SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK REP WITH FRAME." TITLE TEXT-REP.
    PARAMETERS: P_REP1 RADIOBUTTON GROUP REP,
                P_REP2 RADIOBUTTON GROUP REP,
                P_REP3 RADIOBUTTON GROUP REP.
    SELECTION-SCREEN END OF BLOCK REP.
    SELECTION-SCREEN END OF SCREEN 1020.
    The issue is I want to be able to process only one of the tabs based on the checked radiobutton, but by default both the groups will have one of the radiobuttons checked. My piece of code is something like this.
    data : c_selected(1) value 'X'.
    case c_selected.
    when P_GUI1.
    * Process GUI 1
    when P_GUI2.
    * Process GUI 2
    when P_GUI3.
    * Process GUI 3
    when P_GUI4.
    * Process GUI 4
    when P_GUI5.
    * Process GUI 5
    when P_REP1.
    * Process Report 1
    when P_REP2.
    * Process Report 2
    when P_REP3.
    * Process Report 3
    endcase.
    How do I acheive this?
    Karthik
    Edited by: Karthik Boyapalli on Jun 16, 2008 9:10 PM

    The issue is I want to be able to process only one of the tabs based on the checked radiobutton, but by default both the groups will have one of the radiobuttons checked. My piece of code is something like this.
    You will be able to process the Radiobutton based on the tab. Use the sy-ucomm to determine the TAB that is selected on the selection screen. Then you can do further processing based on the radio button selected.
    Only one TAB will be available for User Interaction so there will be no issue with processing based on the radio button

  • IMPOSSIBLE TO USE A GROUPED MAIL  IN A SCHEDULING ACTION

    Hello Everybody,
    I am currently facing a problem while trying to schedule a report.
    In fact, when I use a simple mail  like '[email protected]', the report is well sent.
    However, when I use a grouped email  like '[email protected]', the people doesn't receive the email. In BO, all seems ok, there are no erros in the schedule history of the report and every services are OK.
    When I use any other kind of software (outlook, talend, ect..)  to send data thought this mail list , it works everytime.
    There is no particular configuration in the SMTP server.
    Does anyone here know why it doen't work with BO ?
    I work with BO XI 3.1.
    Thanks for your help!

    Are the users in CMC? If they are, Follow below steps.
    Create users and while creating the users add the email address of respective user.
    Add the users in a group.
    Go to the report and right click>Schedule.
    Add the group in 'Schedule For'
    Under Schedule> Destinations select Email.
    Update the information and in 'TO' specify %SI_EMAIL_ADDRESS%
    Schedule the report.

  • Using Customized group name fields in Live Office

    Hello everybody,
    I've created a Crystal Reports based on a BEx Query and including a costcenter hierarchy. Now I want to add this report in Excel sheet via Live Office. I did this according to the official HowTos provided by Ingo Hilgefort. Now I've following issue. When I choose the data for the selected fields in Live Office, I could manage to insert the Live Office object into my report but the display of the cost center hierarchy nodes doesn't comply with the display in Crystal Reports. There I've defined a group with a customized group name field (costcenter.medium description) Live Office seems to use only the costcenter node ID.
    Crystal Report:
    Marketing und Vertrieb----
    63     63     63     63     0     0
    Vertrieb----
    54     54     54     54     0     0
    Vertrieb a----
    1     1     1     1     0     0
    Vertrieb a----
    3     3     3     3     0     0
    Vertrieb a----
    4     4     4     4     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Vertrieb a----
    3     3     3     3     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Marketing----
    34     34     34     34     0     0
    Marketing a----
    3     3     3     3     0     0
    Live Office:
    1000H1.1000H1000.1000H1300----
    63      63     63     63     0     0
    1000H1.1000H1000.1000H1300.1000H1310----
    54      54     54     54     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3100-----1      1     1     1     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3105-----3      3     3     3     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3110-----4      4     4     4     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3120-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3125-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3130-----3      3     3     3     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3135-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3140-----34      34     34     34     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3150-----3      3     3     3     0     0
    How can I use customized group name fields in Live Office?
    Thank you for helping me on my issue.
    Regards,
    Florian

    live office uses web services to authenticate (dswsbobje) which depends on a java app server for kerberos to be enabled to login with AD. Is Infoview working with AD? This would be required. I'm not sure about your other issues.
    Regards,
    Tim

  • Use of "Group" & "Dimlist" property in generating reports.

    Hi BPC Gurus,
            I want to know how to make use of "Group" & "Dimlist" property in generating reports. I know these are the properties available in Appset Dimensions, but how to configure and how to call in report schedule is what I have not understood. Can anybody explain it with example.
    Regards
    KumarMG

    Hi, just as Nilanjan said the DIMLIST property, actually is better to use as a "group" filter inside of business rules, however it is an available property that You can use into the "memberset options of any template, clicling with the rigth bottom of your mouse and selecting the "generator filter" option, it gonna let You create eficient templates.
    Regards,
    Luis

  • Proper use of GROUP BY

    I wrote the view below to query orders that have shipped quantity from selected warehouse subinventories. I need to compute the total of unique orders and sum for a given date along with extended price.
    I have tried many SELECTs from SCO_REQSGROSS_V including
    select TRXN_DATE
    , count(*)
    , SUM(EXT_PRC)
    from SCO_REQSGROSS_V
    where trxn_date = to_date('30-AUG-2010')
    group by TRXN_DATE, order_num
    I need a count of all the unique order numbers and there ext_prc for each date in a given date range. I keep getting back the line counts. There is something wrong with my approach using the GROUP BY clause. Do I need to use a partition clause and how would this written?
    create or replace view SCO_REQSGROSS_V (
    TRXN_DATE
    , order_num
    , EXT_PRC)
    AS
    select TRUNC(transaction_date)
    , segment1
    , ext_price
    from
    -- lines
    SELECT DISTINCT prh.segment1
    , prl.line_num
    , ool.ordered_item item_number
    , mmt.trx_source_line_id
    , mmt.transaction_reference
    , ooh.order_number
    , prl.quantity
    , ROUND(ool.shipped_quantity * prl.unit_price,2) ext_price
    , mmt.transaction_date
    , mmt.subinventory_code
    FROM apps.po_requisition_headers_all prh
    , apps.po_requisition_lines_all prl
    , apps.oe_order_headers_all ooh
    , apps.oe_order_lines_all ool
    , apps.mtl_material_transactions mmt
    WHERE prh.requisition_header_id = prl.requisition_header_id
    AND ool.header_id = ooh.header_id
    AND prh.requisition_header_id = prl.requisition_header_id
    AND ooh.source_document_id = prh.requisition_header_id
    AND ool.source_document_line_id = prl.requisition_line_id ----(+)
    AND ool.line_id = mmt.trx_source_line_id
    AND mmt.transaction_type_id = 53 -- Internal Order Pick
    AND prl.source_type_code = 'INVENTORY'
    AND prh.authorization_status = 'APPROVED'
    AND prl.item_id = ool.inventory_item_id
    AND ool.shipped_quantity IS NOT NULL
    AND ool.subinventory = mmt.subinventory_code
    AND mmt.subinventory_code IN ('APPLIANCE', 'ELECTRICAL', 'ELEVATOR', 'FURNITURE', 'HARDWARE', 'HEAT'
    , 'JANITORIAL', 'JANIT 1', 'OFFICE', 'PAINT', 'PAPER RM', 'PLUMBING', 'SKIL', 'SURPLUS', 'TOOL', 'UNIFORM')
    )

    I ran this version of your code:
    select distinct trxn_date
    count(order_num) over (partition by trunc(trxn_date)) cnt_orders,
    sum(ext_prc) over (partition by trunc(trxn_date)) total_per_txn_day -- for total_prc per day
    from SCO_REQSGROSS_V
    where trunc(trxn_date) = to_date('30-AUG-2010');
    it returned one row and total_per_txn_day was correct at 51044.21. However cnt_orders was 303. This is nominally correct but not really what I am after because what I need is a count of unique order numbers.
    The logic
    SELECT * FROM
    FROM SCO_REQSGROSS_V
    where trunc(trxn_date) = to_date('30-AUG-2010')
    order by order_num;
    returns some duplicate order numbers. I want to count the unique order numbers but still include the ext_prc for all of the orders even the duplicates.
    Here is the first several rows of output from my query above. Desired cnt_orders is 3 and the total_per_txn_day is 1528.98:
    Date..........Order#.....Ext_Prc
    30-AUG-10     399884     90
    30-AUG-10     399893     108
    30-AUG-10     403664     114.48
    30-AUG-10     403664     68.7
    30-AUG-10     403664     100.02
    30-AUG-10     403664     114.48
    30-AUG-10     403664     139.04
    30-AUG-10     403664     43.04
    30-AUG-10     403664     49.8
    30-AUG-10     403664     120
    30-AUG-10     403664     55
    30-AUG-10     403664     198.41
    30-AUG-10     403664     129.6
    30-AUG-10     403664     198.41
    Thank you.

  • Use of group by and having clause

    hi frnds
    can anybody explain me the use of group by an having clause in select state ment

    Hi Rohit,
    1. GROUP BY f1 ... fn
    2. GROUP BY (itab)
    1. GROUP BY f1 ... fn
    Effect
    Groups database table data in a SELECT command on one line in the result set. A group is a set of lines which all have the same values in each column determined by the field descriptors f1 ... fn.
    ... GROUP BY f1 ... fn always requires a list in the SELECT clause. If you use field descriptors without an aggregate funciton in the SELECT clause, you must list them in the GROUP BY f1 ... fn clause.
    Example
    Output the number of passengers, the total weight and the average weight of luggage for all Lufthansa flights on 28.02.1995:
    TABLES SBOOK.
    DATA:  COUNT TYPE I, SUM TYPE P DECIMALS 2, AVG TYPE F.
    DATA:  CONNID LIKE SBOOK-CONNID.
    SELECT CONNID COUNT( * ) SUM( LUGGWEIGHT ) AVG( LUGGWEIGHT )
           INTO (CONNID, COUNT, SUM, AVG)
           FROM SBOOK
           WHERE
             CARRID   = 'LH'       AND
             FLDATE   = '19950228'
           GROUP BY CONNID.
      WRITE: / CONNID, COUNT, SUM, AVG.
    ENDSELECT.
    Note
    ... GROUP BY f1 ... fn is not supported for pooled and cluster tables.
    2. GROUP BY (itab)
    Effect
    Works like GROUP BY f1 ... fn if the internal table itab contains the list f1 ... fn as ABAP source code. The internal table itab can only have one field. This field must be of the type C and should not be more than 72 characters long. itab must be enclosed in parentheses and there should be no blanks between the parentheses and the table name.
    Note
    The same restrictions apply to this variant as to GROUP BY f1 ... fn.
    Example
    Output all Lufthansa departure points with the number of destinations:
    TABLES: SPFLI.
    DATA:   BEGIN OF WA.
              INCLUDE STRUCTURE SPFLI.
    DATA:     COUNT TYPE I.
    DATA:   END OF WA.
    DATA:   WA_TAB(72) TYPE C,
            GTAB LIKE TABLE OF WA_TAB,
            FTAB LIKE TABLE OF WA_TAB,
            COUNT TYPE I.
    CLEAR: GTAB, FTAB.
    WA_TAB = 'COTYFROM COUNT( * ) AS COUNT'. APPEND FTAB.
    APPEND WA_TAB TO FTAB.
    WA_TAB = 'CITYFROM'.
    APPEND WA_TAB TO GTAB.
    SELECT DISTINCT (FTAB)
           INTO CORRESPONDING FIELDS OF WA
           FROM SPFLI
           WHERE
             CARRID   = 'LH'
           GROUP BY (GTAB).
      WRITE: / WA-CITYFROM, WA-COUNT.
    ENDSELECT.
    Regards,
    Susmitha

  • Using a group list in email and automatically sending out an email

    I have set up a group list in address book.  Each contact has 2-3 emails.  I am using Mail.  Currently when I have to send an email out to the group I have to select the group in address book, then choose "select all".  Select all only chooses 1 email per contact.  I then have to manually choose the 2nd and 3rd emails for each contact.  Is there any way I can use the group that I have created without having to go through all of that in order to send an email to my distirbution list?
    I blind cc'd my self on the original email I sent to the group and was using that one to "forward" but the problem I encountered was some people added, changed or fixed a correction in their email the forward did not reflect the change in the email.  I fixed the email in address book but it was not reflected in the original email--which I knew would happen.  Hopefully there is a better way to accomplish this!
    I also have to send out the same weekly reminder to this group--is there any way I cen set email to do this automatically?
    Thanks!

    Wow! This is what I've been looking for. I can't believe more people on this forum aren't complaining about not being able to use a Song List.
    Have you used this app?
    Is it stable?
    Can it be used with Logic LE, Garage Band etc.
    Thank you so much for this info.

  • How to Use a Group by Function

    Hi Gurus,
    I have Requirment where i need to use the group by function to one column
    below is my query , can anyone help how to use the group by for the column OCCASIONALS_QT_STATUS.
    below is giving me the error not a group by expression
    select distinct source_id,OCCASIONALS_QT_STATUS,
    (SELECT sum(head_count)
    FROM gen_dcsf_occasionals_count
    where OCCASIONALS_QT_STATUS = 'QTS'
    and source_id = gdoc.source_id
    ) OccasionalsQTS,
    (SELECT sum(head_count)
    FROM gen_dcsf_occasionals_count
    where
    OCCASIONALS_QT_STATUS = 'NOTQTS'
    and source_id = gdoc.source_id
    ) OccasionalsNOTQTS,
    (SELECT sum(head_count)
    FROM gen_dcsf_occasionals_count
    where
    OCCASIONALS_QT_STATUS = 'NTKNWN'
    and source_id = gdoc.source_id
    ) OccasionalsNOTKNWN
    from gen_dcsf_occasionals_count gdoc group by OCCASIONALS_QT_STATUS;
    any inputs on this is highly appreciable
    Thanks in advance

    909577 wrote:
    Hi Gurus,
    I have Requirment where i need to use the group by function to one column
    below is my query , can anyone help how to use the group by for the column OCCASIONALS_QT_STATUS.
    below is giving me the error not a group by expression
    select distinct source_id,OCCASIONALS_QT_STATUS,
    (SELECT sum(head_count)
    FROM gen_dcsf_occasionals_count
    where OCCASIONALS_QT_STATUS = 'QTS'
    and source_id = gdoc.source_id
    ) OccasionalsQTS,
    (SELECT sum(head_count)
    FROM gen_dcsf_occasionals_count
    where
    OCCASIONALS_QT_STATUS = 'NOTQTS'
    and source_id = gdoc.source_id
    ) OccasionalsNOTQTS,
    (SELECT sum(head_count)
    FROM gen_dcsf_occasionals_count
    where
    OCCASIONALS_QT_STATUS = 'NTKNWN'
    and source_id = gdoc.source_id
    ) OccasionalsNOTKNWN
    from gen_dcsf_occasionals_count gdoc group by OCCASIONALS_QT_STATUS;
    any inputs on this is highly appreciable
    Thanks in advanceFor your own sanity, you should format your code to make it more readable
    For the sanity of those from whom you seek help, you should preserve that formatting with the code tags:
    select
         distinct source_id,
         OCCASIONALS_QT_STATUS,
         (SELECT
               sum(head_count)
          FROM
               gen_dcsf_occasionals_count
          where
               OCCASIONALS_QT_STATUS = 'QTS'   and
               source_id = gdoc.source_id
         ) OccasionalsQTS,
         (SELECT
              sum(head_count)
         FROM
              gen_dcsf_occasionals_count
         where
              OCCASIONALS_QT_STATUS = 'NOTQTS' and
              source_id = gdoc.source_id
         ) OccasionalsNOTQTS,
         (SELECT
              sum(head_count)
         FROM
              gen_dcsf_occasionals_count
         where
              OCCASIONALS_QT_STATUS = 'NTKNWN' and
              source_id = gdoc.source_id
         ) OccasionalsNOTKNWN
    from
         gen_dcsf_occasionals_count gdoc
    group by
         OCCASIONALS_QT_STATUS;

  • Problem with using both group by and order by

    example:
    SQL> select * from orgchart;
    NAME TEAM SALARY SICKLEAVE ANNUALLEAVE
    ADAMS RESEARCH 34000 34 12
    WILKES MARKETING 31000 40 9
    STOKES MARKETING 36000 20 19
    MEZA COLLECTIONS 40000 30 27
    MERRICK RESEARCH 45000 20 17
    RICHARDSON MARKETING 42000 25 18
    FURY COLLECTIONS 35000 22 14
    PERCOURT PR 37500 24 24
    SQL> select team,
    2 avg(salary),avg(sickleave),avg(annualleave)
    3 from orgchart
    4 group by team
    5 order by name;
    order by name
    ERROR at line 5:
    ORA-00979: not a GROUP BY expression
    who can tell me where is wrong?
    Thanks
    Leo

    Hi,
    These are basic things...
    what ever the Columns you are including the Select Clause must
    taken into consideration when applying the group by clause..
    without the selection in of name column how can you use in Order by Clause..
    while using the group by..
    Thanks
    Pavan Kumar N

  • If I do NOT use any event, except AT SELECTION SCREEN, Do I get any issues?

    Hi Experts,
    Pls. let me know that, If I do NOT use any event, except AT SELECTION SCREEN, Do I/prog. get any issues? (am also using AT SELECTION SCREEN OUTPUT for list box preperation).
    For some reason(execution of the report prog. with ENTER button), am using ONLY these 2 events.
    For full detials, pls. see my other thread with title,
    Is it possible to execute a REPORT prog. with pressing of ENTER button?
    thanq

    Hi
    srinivas see this program
    i am executing this program with out any event it is not showing any error but not giving output
    when i put start-of-selection then it is showing output
    *& Report  ZNNR_REPORT33
    REPORT  ZNNR_REPORT33 NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X' user-command uc1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    ***********SCREEN MODIFICATIONS*******************
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF R1 EQ 'X' AND SCREEN-GROUP1 EQ 'S2'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
        IF R2 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ********END OF SCREEN MODIFICATIONS*****************
    ***************SCREEN VALIDATIONS *****************
    at selection-screen.
      SELECT SINGLE *
               FROM EKKO
               INTO EKKO
               WHERE EBELN IN S_EBELN.
      IF SY-SUBRC <> 0.
        SET CURSOR FIELD 'S_EBELN-LOW'.
        MESSAGE E999 WITH TEXT-005.
        clear S_ebeln-low.
      ENDIF.
    ********end of screen validation*****************
      IF R1 EQ 'X'.
    *ULINE AT /1(48).
        WRITE : SY-VLINE ,2 'MATERIAL NUMBER',
                21 SY-VLINE , 22 'PLANT',
                27 SY-VLINE , 28 'STATUS',
                43 SY-VLINE , 44 'GRUP', 48 SY-VLINE.
        ULINE AT /1(48).
      ENDIF.
      IF R2 EQ 'X'.
        WRITE : SY-VLINE , 2 'PO NUMBER',
               12 SY-VLINE, 13 'ITEM',
               18 SY-VLINE,19 'MATERIAL NUMBER',
               37 SY-VLINE, 38 'PLANT',
               44 SY-VLINE, 45 'GRUP',
               49 SY-VLINE.
        ULINE AT /1(50).
      ENDIF.
    start-of-selection.
    *set pf-status '100'.
      IF R1 EQ 'X'.
        SELECT MATNR
               WERKS
               PSTAT
               EKGRP
           FROM MARC
           INTO TABLE IT_PLANT
           WHERE WERKS = P_WERKS.
        LOOP AT IT_PLANT.
          WRITE : SY-VLINE , 2 IT_PLANT-MATNR COLOR COL_KEY,
                 21 SY-VLINE , 22  IT_PLANT-WERKS COLOR COL_KEY,
                 27 SY-VLINE ,28 IT_PLANT-PSTAT COLOR COL_NORMAL,
                 43 SY-VLINE ,44 IT_PLANT-EKGRP COLOR COL_NORMAL.
        ENDLOOP.
      ENDIF.
      IF R2 EQ 'X'.
        SELECT EBELN EBELP MATNR WERKS LGORT
               FROM EKPO
               INTO TABLE IT_PONO
               WHERE EBELN IN S_EBELN.
        LOOP AT IT_PONO.
          WRITE : SY-VLINE , 2 IT_PONO-EBELN COLOR COL_KEY,
                 12 SY-VLINE , 13 IT_PONO-EBELP COLOR COL_KEY,
                 18 SY-VLINE , 19 IT_PONO-MATNR COLOR COL_NORMAL,
                 37 SY-VLINE , 38 IT_PONO-WERKS COLOR COL_NORMAL,
                 44 SY-VLINE , 45 IT_PONO-LGORT COLOR COL_NORMAL, 49 SY-VLINE..
        ENDLOOP.
      ENDIF.
      ULINE AT /1(50).
      WRITE :/10 'PAGE NUMBER', SY-PAGNO, '/' ,SY-PAGNO.
      ULINE AT /1(50).
      WRITE :/10 'PAGE NUMBER', SY-PAGNO.

  • Group and direct selection tools

    I am hovering above artwork with both the Direct Selection tool and the Group Selection tool and they both seem to show the same paths and anchor points.
    I am also not sure that I see a difference when selection shapes or groups.
    1. Is there any difference with the info that is displayed when hovering over shapes and paths with either of these tools?
    2. How does using the group selection tool differ from the direct selection tool?

    1. there seems to be no difference
    2. basically among other uses, the direct selection tool is used to edit paths/segments, and the group selection tool is used to move paths or groups.

  • What's the  uses of "group" in "Document Numbering".

    What is the uses of "group" in "Document Numbering"?
    How can we link various "groups" to different "user"?
    How can I set, if I want some user to be restricted to a particular series?
    Pl Reply asap.
    Khushwant

    Hi Khushwant
    The solution is In the authorisation form,
    Go to the following module: Administration >System Initialization>Authorisations -->General Authorisations.
    In the Authorisations form select the simple user on the Left collumn and on the right of the form go to Administration --> System Initialization --> Series
    There you can determine the user's authorizations on particular series.
    Hope this was more helpful
    Regards
    George

Maybe you are looking for

  • [Solved] Rotation in KDE

    I'm running into a bit of a problem with Rotation option and KDE. I set Rotation to CW in xorg.conf. When I restart the xserver, the screen is appropriately rotated. After I login, during the initial KDE boot sequence the screen stays rotated and at

  • Opening same URL in another tab or window

    switcher here: in windows I could open a new window and the website that opened by default was the one that was already open (so now I have 2 windows with the same site)...Is there an equivilent Safari? How about Camino or firefox? Right now i have b

  • Next inspection date in the Batch Determination Screen

    Hi Gurus, I am having problems with some user requirements because I am an abaper and I think this needs some SD expertice. Users want to see the "Next inspection date" of the batch (field QNDAT) when they do the batch determination of a delivery (Ba

  • Getting error while configuring LDAP with OEG

    Hi All, I am trying to authenticate web service using LDAP at the time of loading and invoking. I am able to configure LDAP and connection is successful, But when authentication i am getting error. ERROR 08/Mar/2013:11:46:14.240 [4287d940] Failed to

  • Is it possible conversion DataSource to byte[ ] ?

    Hello to all.... I�m a Student, and I can understand JMF, but I have this question. Sorry about my english, but I only need a few things.... 1. is it possible to convert a DataSource to byte[ ] ??, I need the DataSource in bytes. In other words the b