Issue with Infoset of sap query

Hi All,
There is an existing 'z' Sap query and the inofet is created using  the data source 'Data retreival by program'(Data structure:BAPIEXPLOSIONLIST).
I got the requirement to add onemore radiobutton(for Costing Run) to the selection screen of exsiting query and when the radio button is clicked on, it should display two more fields (Costing Run name and Costing Run date).So,I have added the below lines in the existing Infoset.
1.Under the extras button and in data read program tab,I have added the below code for radio button and the two fields for selection.
PARAMETERS p_cstrun LIKE jest-inact RADIOBUTTON GROUP cost.
SELECT-OPTIONS sp_kaid FOR keko-kalaid  MODIF ID s1.
SELECT-OPTIONS sp_kadt FOR keko-kaladat MODIF ID s1.
2.Under the extras button and in code tab and in at seletion-screen output,I have added the below logic to enable those fields dynamically.
LOOP AT SCREEN.
    IF p_CSTRUN EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
      screen-invisible = 0.
      screen-active = 1.
      MODIFY SCREEN.
      elseif p_CSTRUN NE 'X' AND SCREEN-GROUP1 EQ 'S1' .
      screen-invisible = 1.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
After adding this,the existing selection-screen format has been changed.Please look at the below changes.
->Actually,there are two blocks in the existing screen with block titles.Now they are replaced with some different text
->And one more block for output format and under that the layout field selection was there in previous selection screen.Now this layout field text is changed to 'Sap Listviewer' and some butto has also come additionaly in the output format.
How to retreive the old selection-screen with previous texts and formats.
Can any one suggest to resolve the issue?
Thanks in advance!!
Best Regards,
Mounika

This is the complete code of selection-screen
SELECTION-SCREEN BEGIN OF BLOCK issel
                          WITH FRAME TITLE text-S01.
SELECTION-SCREEN SKIP.
PARAMETERS p_cstcur LIKE jest-inact USER-COMMAND ex DEFAULT 'X'  RADIOBUTTON GROUP cost .
PARAMETERS p_cstfut LIKE jest-inact RADIOBUTTON GROUP cost.
PARAMETERS p_cstprv LIKE jest-inact RADIOBUTTON GROUP cost.
*Begin of Insert CBDK972000
PARAMETERS p_cstrun LIKE jest-inact RADIOBUTTON GROUP cost.
SELECT-OPTIONS sp_kaid FOR keko-kalaid  MODIF ID s1.
SELECT-OPTIONS sp_kadt FOR keko-kaladat MODIF ID s1.
*End of Insert CBDK97200
SELECTION-SCREEN SKIP.
PARAMETERS p_niv_g LIKE jest-inact DEFAULT 'X'.
PARAMETERS p_niv_a LIKE jest-inact DEFAULT  ''.
PARAMETERS p_niv_f LIKE jest-inact DEFAULT  ''.
SELECT-OPTIONS sp_disgr FOR marc-disgr MEMORY ID lev NO-DISPLAY.
SELECTION-SCREEN SKIP.
PARAMETERS p_newfil LIKE jest-inact DEFAULT  ''.
SELECTION-SCREEN END OF BLOCK issel.
SELECTION-SCREEN BEGIN OF BLOCK csel
                          WITH FRAME TITLE text-s02.
SELECT-OPTIONS sp_mtart FOR mara-mtart OBLIGATORY
  NO INTERVALS NO-EXTENSION MEMORY ID mta.
SELECT-OPTIONS sp_werks FOR mbew-bwkey OBLIGATORY
  NO INTERVALS NO-EXTENSION MEMORY ID bwk.
SELECT-OPTIONS sp_matnr FOR mara-matnr MEMORY ID mat.
SELECTION-SCREEN END OF BLOCK csel.

Similar Messages

  • Adding Fields to Custom Infotype Using Custom Infoset in SAP QUERY

    Hi All,
    We have a requirement to add fileds to a custom infotype for querying Custom Infoset in SAP Query.
    We are facing problem as the added field is not getting displayed in the Query set so that we can select and display it in the Basic List along with the other filds.
    Kindly suggest a solution.
    Full points will be rewarded.
    Thanks in Advance
    Kumar

    Hi Salman,
    Thank you for your valuable information. I haven't Configured Dynamic Actions yet. Is it simple to write the Logic for Dynamic Actions. Is this the only way to solve this Issue?
    I tried by adding the standard fields, but they are not populating the values; but just appearing as Input Fields with Input help option.
    Please let me know if you have any suggestion in this direction?
    Regards,
    Hems.

  • Change infoset in sap query

    Hi ,
    I want to change infoset name in sap query sq01.
    I dont want to create new query to change infoset name.
    Any other option?
    Regards,
    Satyen Trivedi

    Dear Satyen,
    Go to  menu Edit-->Other user group, choose the user group, where u have assigned the infoset no give the name of ur query and press create button, it will display all the infosets those are assigned with that user group. Now select ur infoset and start developing the query.
    see useful tips:
    10 Useful Tips on Infoset Queries
    Regards,
    Abbas.

  • CR2008 connectivity issue with BOE Universes(sap and non sap universes)

    Hi Experts !!
    Recently we tried to build/connect to a Universe in Crystal Reports2008 via 'Make a new connection tab'.
    The universes are of SAP BW or non SAP Lying in BOE Servers and we are trying to build reports on them by conncting/utilizing the universes as a database for Crystal Reporting.
    Our issue is most of the time we are not able to connect to the Universes and the connectivity blows out by some 'communication Error' thing initially.
    While at some other points in time, the connectivity takes us to the Universe and we are able to select few characteristics and key figures from the Universe but the moment we go futher and try to run by pressing 'OK' button it blows out and say' LOGON FAILED'.
    Apparantly, it is an connectivity issue with BOE server and from the different blogs it looks like it is a known issue for long.
    The proposed issue resolution were like either CR2008 should be SP2 with BOE SP3 or there should be some additional .dll files defined in the paths in case of MSSQL database. None of this applies to us as we are on CR2008 with SP3 and going back to SP2 is probably not a viable option for us, and we are using Oracle as underlying database in this specific case.( i would like to tell you here that we are able to connect to Oracle Database directly though).
    We have raised a message with SAP and was just wondering if we do have some solution/workaround already available to this known issue in place please?
    Thanks&Regards.
    Edited by: AMIT GHILDYAL on Aug 1, 2011 2:41 PM
    Edited by: AMIT GHILDYAL on Aug 1, 2011 2:44 PM
    Edited by: AMIT GHILDYAL on Aug 1, 2011 3:14 PM

    Hi Amit,
    Moved to Universe Forum.
    If you have a case logged then no point posting here also, this is a public site and not a case management tool.
    Once you do get the solution from your case please post it here also to help others if they have the same problem.
    Thank you
    Don

  • Generic Data source Issue with Infoset

    Hi Experts,
    I have created generic data source with Infoset.As per customer requirement, I have to modify join condition between tables from equal to left outer join in infoset.I have tested scenario successfully using infoset query. I have done below steps in generic data source to check the same result.
    1.Modified Join condition in infoset and generated the infoset again.
    2. Generated generic datasource in RSO2.
    When I check same scenario in RSA3, I am getting 0 records.Please help me out.
    Thanks in Advance.
    Regards,
    Raju

    Thanks Sriram for your reply.
    I am using same user id for both SQ02 and RSA3.
    I have Two infosets with same join conditions.I have created SQVI report with First infoset and Generic data source with second infoset.
    I have changed join condition second infoset which is used for generic data source.I am still getting same number of records in both SQVI report and in RSA3.I have validated records by considering few records to cross check again.
    The change in join condition doesnt show any impact in changing the number of recrods.
    I  have activated extraction structure in RSA6 but still getting same records.
    Thanks,
    Raju

  • Tarnsport infoset and SAP Query

    Hi All,
    I have created infoset and SAP quesry and user group.
    When i created user group it asked me the transport request.IT has been tarnsported to dev to QA.
    But infoset and query are not moved to QA.
    It is not asking me for create transport reuest.
    Please let me know how to tarnsport infoset(SQ02) and Query(SQ01).
    Thanks

    Hi all,
    Thanks for u r reply.
    My query is in global area not in standard area.
    Any way i solved the problem but how to transport the variant.
    When i read the documentation it is saying that we have create the system variant then only we can transport.
    IS it so pleas let me know.
    Thanks,

  • Issue with superadmin user (sap*) in portal

    Hi,
    I have issue with my superadmin user (SAP*) in portal system.
    When I activated superadmin user (sap) from configtool and tried to login to the system with sap it is not letting me to enter into portal instead it is asking whether I am new user and also giving me link for "register user".
    Please suggest.
    Regards,
    Chandra.

    Hi Chandra,
    I hope you performed all steps as discussed in the below link. Please cross check.
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/4a0640d7b28f5ce10000000a155106/content.htm
    Thanks,
    Siva Kumar

  • VERY URGENT: Issue with Reconciliation against SAP Enterprise Portal

    Hi,
    We are using IDM7.0 and we have SAP Enterprise Portal as a resource. The users in portal are from Active Directory.
    When I am doing full reconciliation against portal, it is processing only certain accounts. The reconcilaition policy is to link accounts. It is not linking teh accounts. Moreover, these accounts are not found in UNMATCHED accounts also. I don't have any account exclusion rules or something.
    I wrote a small code snippet, which does just a single account reconciliation of a particular user id. In this case the portal account is being reconciled and linked properly.
    Any ideas what the issue might be?
    And I have another question too.. in the schema attributes of the out-of-box SAP Portal resource adapter, I don't see any ammping entry for "accountId". Usually for other resource adapters there would be entry for accountId (e.g in AD, mapping is: accountId <---> sAMAccountName). In case of portal, do we need to explicitly set this mapping? If so what would be the right hand side name in the schema? Does the right hand side name changes from one deployment to the other? If so how to determine what attribute maps to accountId in our portal? Might this lack of accountId is causing the issue with the reconciliation?
    Any leads would be highly appreciated.
    Thanks,
    kIDMan.

    Thanks for the reply. I have already set up correlation rule, account linking options for different situations like FOUND, UNASSIGNED, UNMATACHED etc. If my linking configurtaion is not correct then the fetched accounts should be atleast in the account index with situation as UNMATCHED. But that is not the case.
    I am not sure if I made my problem difinition clear earlier. The problem I mentioned is not with "linking" of the accounts. The problem is IDM is detecting only some accounts. Among those set of accounts which IDM was able to fetch from portal during reconcilaition, it was able to successfully link the matching accounts to identities in IDM.
    My question is, why IDM is fetching only certain accounts and not all accounts from portal resource.
    As I mentioned earlier, when I run my code snippet to reconcile a single account, it reconciles successfully and links to user identity in IDM (if a matching idenity exists based on my correlation rule). But why the reconcilaition at the resource level is not able to fetch and reconcile teh same account.
    Regarding the accountId attribute in the attribute schema, neither the SUN documentation nor the resource adapter configuration tells about the name of the attribute on the portal side that it should match to.
    Thanks,
    kIDMan.

  • Performance issue with infoset query

    Dear Experts,
    when i trying to run a query based on infoset. the execution time of the query is very high. when i try to see the query designer i have got the following warning...
    Warning Message :
    Diagnosis
    InfoProvider XXXX does not contain characteristic 0CALYEAR. The exception aggregation for key figure XXXX can therefore not be applied.
    System Response
    The key figure will therefore be aggregated using all characteristics of XXXXX with the generic aggregation SUM.
    could anyone can guide me how to check at the infoset level to resolve this issue....
    Thanks,
    Mannu!

    Hi Mannu.
    Go to change mode in your InfoSet and identify the Char 0CALYEAR. Check whether it is selected (click the box beside 0CALYEAR).
    This needs to be done, because the exception aggregation can occur only for the fields available in the BEx Query!
    Since its not available, it is trying to aggregate based on all available fields selected in Infoset. This may be the reasong to your performace issue.
    Make this setting and I hope your issue will get resolved. Do post the outcome.
    Cheers,
    VA
    Edited by: Vishwa  Anand on Sep 6, 2010 5:15 PM

  • Issue with Broadcasting and Publish query to Portal from query Designer

    Dear all,
    I have created a standard template ZWT_STANDARD_TEMPLATE in WAD and I have added this for Adhoc Analysis in 'Set Standard Web templated' RSCUSTV27.
    For Broadcasting I have added 0BROADCASTING_TEMPLATE70.
    I have problems with my broadcasting as well as publishing the Query in Portal.
    When I use a Broadcast to Email - it opens a new window with my standard template(ZWT_STANDARD_TEMPLATE ) I have added. No data though.
    Same thing happens for publishing too...When I publish the query to portal from Query Designer or WAD it takes me to the same window with my standard web template. No data though.
    I think both are related to the same issue. Its with broadcasting.
    What is the default template for Broadcasting in NW2004s? Below is the url I have included when I do it from Query designer. Its actually starting the Command - START_BROADCASTER70 but I dont know if it has to do a SOURCE_QUERY=ZCOPA_C03_FAST_PAYABLES. Could anyone compare it with your urls
    http://pgdep00:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex3x?system=SAP_BW&CMD=START_BROADCASTER70&SOURCE_QUERY=ZCOPA_C03_FAST_PAYABLES&START_WIZARD=X&DISTRIBUTION_TYPE=PCD_EXPORT
    This is the url for publishing from WAD
    http://fndef00:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex3x?system=SAP_BW&CMD=START_BROADCASTER70&SOURCE_TEMPLATE=ZWT_FAST_PAYABLES&START_WIZARD=X&DISTRIBUTION_TYPE=PCD_EXPORT
    Any help would be highly appreciated.
    Thanks,
    KK

    Hi KK,
    Did you solve your problem, i am also having the same issue. Please let me know if you have solved this issue.
    Thanks,
    Kumar

  • Infoset Coding (SAP Query)

    Hi, I need a field in a Query that required programming.  I hope someone can help me.
    I need to get the first character that is in the header note of the purchasing requisition (ME53N).  So I am trying to create a Local field in the infoset with some coding that help me to pull that information for any purchasing requisition.
    If any of you guys have and example, please help me.
    Regards,
    Francisco

    Hi Aryat,
    Yes it is possible to include code in infoset and fetch data from database tables.
    Go to tcode- SQ02, and change query area from global->standard and click change.
    Now click on Extras,it will enable all the custom fields on right hand side.
    Now select the field from the row and click coding for addition symbol as mentioned in below screen shot, it will take you to the program line screen and you can code here.
    After completing coding save and generate the infoset and adjust the query again otherwise new changes will not reflect.
    Hope it will solve your issue.

  • Issue with Read only VO Query bind parameters

    Hi Experts,
    Working in Jdev 11.1.1.3.0
    I am face one issue, probably its very common to all of us, bcoz i to do the same thing in N number of times.
    Issue:
    select count(*) as cnt from emp
    where
    ((:BindEmpId is NOT NULL AND EMP_ID = :BindEmpId) AND
    (DEPT_ID IS NULL OR DEPT_ID =: BindDeptId));
    when i run this query its giving correct result(count is 0) but usually i written like
    select count(*) as cnt from emp
    where
    ((:BindEmpId is NOT NULL AND EMP_ID = :BindEmpId) AND
    (BindDeptId IS NULL OR DEPT_ID =: BindDeptId));
    this time its giving count is 1, which is wrong.
    Data in data base:
    ID     DeptID     value EmpID
    226     1519     jh 601     
    So which one is correct?

    Well, the two select statements are for different use cases and we can't decide which is the correct one as we don't know the use case.
    Your data looks like
    ID   DeptID value EmpID
    226  1519   jh    601 There are some decisions we can't make with only one row in the table. We don't know if DepIt can be null in the table and/or EmpId can be null. This information is vital for your select statements.
    Next we don't know how you want to handle the query if one or both bind parameters are null.
    Should the query return 0 in this case or should the query just omit the part of the query if the bind variable is null (and then return the result found with the remaining query)?
    We can't possible answer this.
    You need to provide more information...
    Timo

  • Issue with - Connector Framework  SAP EP 7.0

    HI
    Need assitance on usage of connector framework to connect to SAP R/3 using SSO.
    I am trying to call a BAPI from a jsp iView using sap connector framework.
    Release :  EP (SAP NetWeaver 7.0 (2004s) SPS 12).
    Steps I did so far :
    1. imported following jars in my project :
    a. activation.jar
    b. connector.jar
    c. GenericConnector.jar
    d. jaas.jar
    e. jta.jar
    f. portal_services_api_lib.jar
    2. declared import of class:
    <%@ page import = "com.sapportals.portal.ivs.cg.*" %>
    <%@ page import = "com.sapportals.connector.connection.IConnection" %>
    <%@ page import = "com.sapportals.connector.execution.structures.*" %>
    <%@ page import = "com.sapportals.connector.execution.functions.IInteraction" %>
    <%@ page import = "com.sapportals.connector.execution.functions.IInteractionSpec" %>
    3. appended portalapp.xml with :
      <application-config>
        <property name="SharingReference" value=",com.sap.portal.htmlb,com.sap.portal.pagebuilder,com.sap.portal.themes.lafservice,com.sap.portal.navigation.service,com.sap.portal.navigation.helperservice,com.sap.portal.license.runtime,com.sap.portal.common.commonservices,SAPJ2EE::library:com.sap.portal.common,com.sap.portal.ivs.connectorservice"/>
      </application-config>
    4. added following code :
         IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
         IConnection connection = cgService.getConnection("ABC", request);
    <b>     IInteraction ix = connection.createInteractionEx();</b>
    5. Verfied connectivity of system alias ABC with connetion test from portal.
    When I test the repective iview after deployment it fails on the bold line with an error 'unable to deploy jsp'. I could verify that cgService and connection objects were initialized.
    Will appreciate expert comments/suggestions on the issue.
    Thanks and cheers,
    Amit.

    Hi,
    When you select that property, you get a value field in the bottom of the screen to enter the Cutom values.
    You can give the value there and click on the Set button.
    Also check the dbpool properties for this error code.
    Regards,
    Venkat

  • Smart form printing issue with LOCL and SAP printer

    Hi,
    The issues are as follows:
    1. the top portion of the Invoice and PO does not print when using the SAP printer (works when using LOCL)
    2. the shaded areas of the Order Confirmation and Invoice are black when printing to a SAP printer (works when using LOCL)
    In an attempt to correct the printing issue is was suggested that we change the SAP printer device type from HPLJ4 to POST2. This did address the problem where the shaded areas were black but then we received reports that other reports printed "garbage". Its possible that using POST2 device type causes issues when printing to HP compatible printers.
    Apparently all the testing was done using the SAP printer LOCL and not the SAP printer name and SAP spool system. LOCL uses the SAP GUI and Windows system to produce the output. Our production users at the plant site and Toledo are using SAP defined printers with the device type of HPLJ4. HPLJ4 is our standard here as OC for our printer definitions and we have HP compatible printers installed in our Toledo location and all of our remote sites. We need to be able to correctly print the Invoices, Purchase Orders, Sales Order Confirmations on our SAP printers.
    What can be done to the reports to allow them to print on our HPLJ4?
    Thanks, Prathap

    Hi Prathap,
    Check the background shading of the windows of the Smartform where you get the black boxes. If it is set something like this:
       Color: White
       Saturation: 100%
    this can be the problem.
    I know it is strange but some black and white printers cannot handle this setting. They only know one color black so the ignore the color setting and just take the saturation 100% setting.
    The reason it works with local and device type SAPWIN is that the print data is created in Windows and sent to the printer as graphic.
    Please change the shading for window MAIN -> tab 'Output Options' to:
       Color: Black
       Saturation: 0%
    and this should resolve the problem.
    Then create a new spool and check if the problem is resolved. See SAP Note #400050.
    Regards,
    Aidan

  • Issue with result set of query

    I have the following tables:
    --soccer.soccer_optical_player_gm_stats
    --This is only sample data
    GAME_CODE    PLAYER_ID    NUMBER_OF_SPRINTS
    88884               84646                    55              
    88884               64646                    15  
    88884               55551                    35
    88884               88446                    10
    etc...--soccer.soccer_optical_team_gm_stats
    --This is only sample data
    GAME_CODE    TEAM_ID
    88884               13
    88884               13
    88884               15
    88884               13
    etc...--customer_data.cd_soccer_schedule
    --sample data
    GAME_DATE                     5/2/2009 7:30:00 PM
    GAME_CODE                     88884              
    GAME_CODE_1032                     2009050207
    HOME_TEAM_ID_1032              13
    HOME_TEAM_ID                     5360
    HOME_TEAM_NAME                     Los Angeles
    HOME_TEAM_NICKNAME             Galaxy
    HOME_TEAM_ABBREV                LA
    AWAY_TEAM_ID_1032              15
    AWAY_TEAM_ID                     5362
    AWAY_TEAM_NAME                     New York
    AWAY_TEAM_NICKNAME          Red Bulls
    AWAY_TEAM_ABBREV               RBSo using the tables above i'm trying to sum the number of sprints for each team and output it...
    With the following code:
    select          distinct
                     sch.game_date,
                     tm.team_id,
                     sch.game_code,
                     sch.game_code_1032,
                     sch.home_team_id_1032,
                     sch.home_team_id,
                     sch.home_team_name,
                     sch.home_team_nickname,
                     sch.home_team_abbrev,
                     sch.away_team_id_1032,
                     sch.away_team_id,
                     sch.away_team_name,
                     sch.away_team_nickname,
                     sch.away_team_abbrev,
                     home_tm_sprints,
                     away_tm_sprints
           -- bulk collect into distance_run_leaders
            from 
                     customer_data.cd_soccer_schedule sch,
                     soccer.soccer_optical_team_gm_stats tm,
                           select distinct
                                  sum(plyr.number_of_sprints) as home_tm_sprints,
                                  sch.game_code,
                                  sch.home_team_name,
                                  sch.away_Team_name,
                                  sch.game_code,
                                  rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_home
                           from
                                  soccer.soccer_optical_player_gm_stats plyr,
                                  soccer.soccer_optical_team_gm_stats tm,
                                  customer_data.cd_soccer_schedule sch
                           where  sch.season_id = 200921
                           and    tm.team_id = sch.home_team_id
                           and    sch.game_code = plyr.game_code
                           group by
                                  sch.game_code,
                                  sch.home_team_name,
                                  sch.away_Team_name,
                                  sch.game_code
                           order by rankings_order_home asc
                      ) home_team,
                        select distinct
                               sum(plyr.number_of_sprints) as away_tm_sprints,
                               sch.game_code,
                               sch.home_team_name,
                               sch.away_Team_name,
                               sch.game_code,
                               rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_away
                        from
                               soccer.soccer_optical_player_gm_stats plyr,
                               soccer.soccer_optical_team_gm_stats tm,
                               customer_data.cd_soccer_schedule sch
                        where  sch.season_id = 200921
                        and    tm.team_id = sch.away_team_id
                        and    sch.game_code = plyr.game_code
                        group by
                               sch.game_code,
                               sch.home_team_name,
                               sch.away_Team_name,
                               sch.game_code
                       order by rankings_order_away asc
                    ) away_team
            where    sch.game_code = tm.game_code
            and      sch.season_id = 200921Issues:
    1. The output above returns multiple entries(like 30 or so) for each game_code (i only want two entries returned for each game_code).
    --(Only difference between the two result sets is the team_id, which ultimatly lets me know if it a result for the home or away team)
    Something like:
    GAME_DATE                     5/2/2009 7:30:00 PM        5/2/2009 7:30:00 PM
    TEAM_ID                                13                                  15 
    GAME_CODE                     88884                             88884                  
    GAME_CODE_1032                     2009050207                    2009050207
    HOME_TEAM_ID_1032               13                                  13  
    HOME_TEAM_ID                     5360                               5360
    HOME_TEAM_NAME                     Los Angeles                      Los Angeles
    HOME_TEAM_NICKNAME           Galaxy                              Galaxy
    HOME_TEAM_ABBREV               LA                                   LA
    AWAY_TEAM_ID_1032             15                                   15
    AWAY_TEAM_ID                     5362                               5362
    AWAY_TEAM_NAME                     New York                        New York
    AWAY_TEAM_NICKNAME               Red Bulls                         Red Bulls
    AWAY_TEAM_ABBREV                  RB                                  RB
    HOME_TM_SPRINTS                    152                                152
    AWAY_TM_SPRINTS                   452                                 4522. In addition to that, I'm also having an issue trying to figure out how to do a general ranking...in the from clause i'd so a seperate ranking for just the home teams and just the away the teams. I can't seem to figure out how to merge the rankings into one, and just have one general ranking.
    Edited by: user652714 on May 7, 2009 4:18 PM
    Edited by: user652714 on May 8, 2009 7:14 AM

    ok maybe I just need to give you a better understanding of what i'm trying to ultimatly do, and maybe that will help clarify things.
    In the original code I posted the following subquery in the from clause...
    select distinct
                                  sum(plyr.number_of_sprints) as home_tm_sprints,
                                  sch.game_code,
                                  sch.home_team_name as home_team_name,
                                  sch.game_code,
                                  rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_home
                           from
                                  soccer.soccer_optical_player_gm_stats plyr,
                                  soccer.soccer_optical_team_gm_stats tm,
                                  customer_data.cd_soccer_schedule sch
                           where  sch.season_id = 200921
                           and    tm.team_id = sch.home_team_id
                           and    sch.game_code = plyr.game_code
                           group by
                                  sch.game_code,
                                  sch.home_team_name,
                                  sch.away_Team_name,
                                  sch.game_code
                           order by rankings_order_home asc the result set was this...
        HOME_TM_SPRINTS     GAME_CODE           HOME_TEAM_NAME                  GAME_CODE                  RANKINGS_ORDER_HOME
         576                 870988                New York                   870988                     1
         480                 870991                Chicago                 870991                     2
         435                 870945                 Chicago                 870945                     3
         416                 870983                 San Jose                 870983                     4
         402                 870961                 D.C.                 870961                     5
         322                 870972                 Columbus                 870972                     6
         236                 870957                 Columbus                 870957                     7
         215                 870986                 Kansas City                 870986                     8
         143                 870984                 Los Angeles                 870984                     9Here is the other subquery that i had originally posted:
      select distinct
                               sum(plyr.number_of_sprints) as away_tm_sprints,
                               sch.game_code,
                               sch.away_team_name away_team ,
                               sch.game_code,
                               rank () over (order by sum(plyr.number_of_sprints) desc) as rankings_order_away
                        from
                               soccer.soccer_optical_player_gm_stats plyr,
                               soccer.soccer_optical_team_gm_stats tm,
                               customer_data.cd_soccer_schedule sch
                        where  sch.season_id = 200921
                        and    tm.team_id = sch.away_team_id
                        and    sch.game_code = plyr.game_code
                        group by
                               sch.game_code,
                               sch.home_team_name,
                               sch.away_Team_name,
                               sch.game_code
                       order by rankings_order_away ascResult rest:
       AWAY_TM_SPRINTS                    GAME_CODE                AWAY_TEAM        GAME_CODE           RANKINGS_ORDER_AWAY
         483                     870972                     Chicago                     870972                                1
         435                     870945                     New York                870945                           2
         430                     870986                     D.C.                     870986                                3
         429                     870984                     New York                870984                           4
         402                     870961                     New England            870961                             5
         384                     870988                     San Jose                870988                           6
         320                     870991                     New England            870991                             7
         208                     870983                     Chivas USA                870983                           8
         118                     870957                     Colorado                870957                           9Final output that I want/trying to get
    TM_SPRINTS  GAME_CODE    TEAM           GAME_CODE       RANKINGS_ORDER
    576          870988          New York          870988          1
    483          870972          Chicago          870972          2
    480          870991          Chicago          870991          3
    435          870945          Chicago          870945          4
    435          870945          New York     870945          4
    430          870986          D.C.          870986          6
    429          870984          New York     870984          7
    416          870983          San Jose     870983          8
    402          870961          D.C.          870961          9
    402          870961          New England     870961          9
    384          870988          San Jose     870988          11
    322          870972          Columbus     870972          12
    320          870991          New England     870991          13
    236          870957          Columbus     870957          14
    215          870986          Kansas City     870986          15
    208          870983          Chivas USA     870983          16
    143          870984          Los Angeles     870984          17
    118          870957          Colorado     870957          18The above is what i'm going for...but if it's to difficult to merge the columns into one (instead of having a seprate column for home_team_* and away_team_* that's fine to.
    Edited by: user652714 on May 11, 2009 9:04 AM

Maybe you are looking for