Query: Issue with Output

Does anyone by anychance have any suggestions or thoughts?
Oracle: 10.2g
Data:
with t as (
select '39' time, to_date('11/14/2003 7:39:00 PM','MM/DD/RRRR hh:mi:ss pm') game_date,11122 team_id, 11122 home_team_id,null away_team_id,'parks' home_team_name, null away_team_name,'Steve' offensive_player_moniker, 'Smith' offensive_player_last_name, '7' play_result_id, '11' event_code_num, '11111' game_code from dual union all                   
select '32', to_date('11/14/2003 7:32:00 PM','MM/DD/RRRR hh:mi:ss pm'),24555, null, 24555, null, 'bombers', 'Chris', 'Carter', '7','11','11111' from dual union all                
select '35',to_date('12/14/2008 1:35:00 PM','MM/DD/RRRR hh:mi:ss pm'),33211, null, 33211, null, 'carts', 'Marty', 'Booker','7','17','22222' from dual union all  
select '30',to_date('12/14/2008 1:30:00 PM','MM/DD/RRRR hh:mi:ss pm'),15555, 15555, null, 'sharks', null, 'Bob', 'Sanders','7','17','22222' from dual union all
select '38',to_date('12/14/2008 1:38:00 PM','MM/DD/RRRR hh:mi:ss pm'),15555,15555, null, 'sharks', null, 'Marvin','Harrison','7','19','22222' from dual union all
select '44',to_date('12/14/2008 1:44:00 PM','MM/DD/RRRR hh:mi:ss pm'),15555,15555, null, 'sharks', null, 'Marvin','Harrison','7','17','22222' from dual union all
select '26',to_date('12/14/2008 1:26:00 PM','MM/DD/RRRR hh:mi:ss pm'),15555,15555, null, 'sharks', null, 'Marvin','Harrison','7','19','22222' from dual union all
select '38',to_date('12/16/2008 1:38:00 PM','MM/DD/RRRR hh:mi:ss pm'),32111, 32111, null, 'carts', null, 'Marty', 'Booker','7','17','33333' from dual union all
select '39',to_date('12/16/2008 1:39:00 PM','MM/DD/RRRR hh:mi:ss pm'),15555, null, 15555, null, 'sharks', 'Marvin','Harrison','7','11','33333' from dual
)Query
select substr(x, 1, instr(x, ',', -1) - 1) as game_stats,
                  play_result_id,
                  game_code
   --Bulk Collect into player_results
    from
           select
                  (case when event_code_num = 17 then
                  team_name 
                             || ': '
                             ||
                  (xmlagg(xmlelement(e, offensive_player_moniker  
                                             || ' '
                                             ||  offensive_player_last_name
                                             || ' ('
                                             || to_char(time)           
                                             || ' pen), ')).extract('//text()'))
                  else team_name 
                             || ': '
                             ||
                  (xmlagg(xmlelement(e, offensive_player_moniker
                                             || ' '
                                             || offensive_player_last_name
                                             || ' ('
                                             || to_char(time)
                                             || '), ')).extract('//text()'))
                  end) x,
                  play_result_id,
                  game_code,
                  event_code_num
           from
                 select         
                                 offensive_player_moniker,
                                 offensive_player_last_name,
                                 case
                                 when home_team_id = team_id then home_team_name
                                 when away_team_id = team_id then away_team_name
                                 end) as team_name,
                                 time  minute,
                                 team_id  team_id,
                                 play_result_id,
                                 game_code as game_code,
                                 event_code_num as event_code_num,
                                 time,
                                 game_date
                    --Bulk Collect into player_results
                    from        
                                 t
                    where        event_code_num in (11,17,19,28)
                    and          play_result_id = 7
                   group by    
                                 offensive_player_moniker,
                                 offensive_player_last_name,
                                 home_team_id,
                                 away_team_id,
                                 team_id,
                                 home_team_name,
                                 away_team_name,  
                                 play_result_id,
                                 game_code,
                                 event_code_num,
                                 time,
                                 game_date
                   order by      time asc
       group by  team_name, play_result_id, game_code, event_code_num
       );current output:
        GAME_STATS     PLAY_RESULT_ID     GAME_CODE
1     carts: Marty Booker (35 pen)     7     22222
2     carts: Marty Booker (38 pen)     7     33333
3     parks: Steve Smith (39)     7     11111
4     sharks: Bob Sanders (30 pen), Marvin Harrison (44 pen)     7     22222
5     sharks: Marvin Harrison (26), Marvin Harrison (38)     7     22222
6     sharks: Marvin Harrison (39)     7     33333
7     bombers: Chris Carter (32)     7     11111
DESIRED OUTPUT
        GAME_STATS     PLAY_RESULT_ID     GAME_CODE
1     carts: Marty Booker (38 pen)                                                                     7     33333
2     parks: Steve Smith (39)                                                                     7     11111
3     bombers: Chris Carter (32)                                                                     7     11111
4     sharks: Bob Sanders (30 pen), Marvin Harrison (26, 30 pen, 38,44 pen)     7     22222
5              carts: Marty Booker (35 pen)                                                                     7     22222
6     carts: Marty Booker (38 pen)                                                                     7     33333
7     sharks: Marvin Harrison (39)                                                                     7     33333-One of the issues is that im forced to do a group by 'event_code_num' whis is in turn causing the issue, but i needed in the output.
-Second issue is concatinating the results of players that scored more than once in the game like Marvin Harrison, above
-Third issue is that i want to sort the time in asscending order in the output of game_stats, like so Marvin Harrison +(26, 30 pen, 38,44 pen)+ and i want the result set to be sorted by home_team first followed by away team for each game.
Edited by: user652714 on Mar 17, 2009 9:51 AM
Edited by: user652714 on Mar 17, 2009 10:20 AM

I've gone ahead and added notes as you had suggested frank, and thanks for the suggestions in regards to genral coding!!
Table Columns/Defenitions:
time : the minute during which a player scored
game_date : the date of the game and time at which a player scored
team_id : the teams id
home_team_id : the home teams id
away_team_id : the away teams id
home_team_name : the home team name
away_team_name : the away team name
offensive_player_moniker : offensive players first name
offensive_player_last_name : offensive players last na,e
play_result_id : the number of play that resulted
7 = Scored
event_code_num : the code number for a type of an event
11 = Scored / 17 = Penalty / 19 = Scored in extra time
game_code : the code of the game
DESIRED OUPUT
You were right my desired output was incorrect here it is again
bombers: Chris Carter (32) 7 11111
parks: Steve Smith (39) 7 11111
sharks: Marvin Harrison (26, 30 pen, 38, 44 pen), Bob Sanders (30 pen) 7 22222
carts: Marty Booker (35 pen) 7 22222
carts: Marty Booker (38 pen) 7 33333
sharks: Marvin Harrison (39) 7 33333
Breakdown of output:
sharks: Marvin Harrison (26, 30 pen, 38, 44 pen), Bob Sanders (30 pen) 7 22222
sharks = team name
Marvin Harrison = player name
(26, 30 pen, 38, 44 pen) = ascending order of minute at which player scored/commited penalty
***Note*** the 'pen' after after the minute value signifies that the player commited a penalty at that minute, (event_code_num = 17)
'7' = play_result_id
'22222' = game_code
Explination of code
--Outputs data and gets rid of extra comma in the output
select substr(x, 1, instr(x, ',', -1) - 1) as game_stats,
                  play_result_id,
                  game_code
   --Bulk Collect into player_results
    from
          --subquery that formats player name and time scored/penalty commited into one string
           select
                  (case when event_code_num = 17 then
                  team_name 
                             || ': '
                             ||
                  (xmlagg(xmlelement(e, offensive_player_moniker  
                                             || ' '
                                             ||  offensive_player_last_name
                                             || ' ('
                                             || to_char(time)           
                                             || ' pen), ')).extract('//text()'))
                  else team_name 
                             || ': '
                             ||
                  (xmlagg(xmlelement(e, offensive_player_moniker
                                             || ' '
                                             || offensive_player_last_name
                                             || ' ('
                                             || to_char(time)
                                             || '), ')).extract('//text()'))
                  end) x,
                  play_result_id,
                  game_code,
                  event_code_num
           from
                 --Driving query, populates data
                 select         
                                 offensive_player_moniker,
                                 offensive_player_last_name,
                                 case
                                 when home_team_id = team_id then home_team_name
                                 when away_team_id = team_id then away_team_name
                                 end) as team_name,
                                 time  minute,
                                 team_id  team_id,
                                 play_result_id,
                                 game_code as game_code,
                                 event_code_num as event_code_num,
                                 time,
                                 game_date
                    --Bulk Collect into player_results
                    from        
                                 t
                    where        event_code_num in (11,17,19,28)
                    and          play_result_id = 7
                   group by    
                                 offensive_player_moniker,
                                 offensive_player_last_name,
                                 home_team_id,
                                 away_team_id,
                                 team_id,
                                 home_team_name,
                                 away_team_name,  
                                 play_result_id,
                                 game_code,
                                 event_code_num,
                                 time,
                                 game_date
                   order by      time asc
       group by  team_name, play_result_id, game_code, event_code_num
       );

Similar Messages

  • Query issue with exception aggregation

    Dear all,
    I have to solve the following reporting issue with BEx:
    Cube Structure:
    Cube A:
    Characteristics: Company Code, Article, Distribution Channel, Customer, FiscalYear/Period
    Key-Figures: Sales Val., Sales Qty.
    Cube B:
    Characteristics: Company Code, Article, FiscalYear/Period
    Key-Figures: COGS
    I simply want to multiply:  Sales Qty@COGS = NODIM(Sales Qty) * COGS,
    but this calculation should be valid for all characteristics of my cube A, even if I do not have them available in Cube B (like Customer and Distribution Channel). Additionally the calculated totals of my characteristics must be correct so that I can apply in second step a Margin Calculation: Sales Val. - Sales Qty@COGS which is valid on single level, as well as on total level.
    I started to setup calculated key-figures
    COGS1 = NODIM(Sales Qty) * COGS   with Exception aggregation TOTAL by Company Code
    COGS2 = COGS1 with Exception Aggregation TOTAL by Article
    and this worked fine for both characteristics. If I use COGS2 in my report I get correct figures in a drilldown by Company Code and Article.
    I enhanced the calculation by
    COGS3 = COGS2 with Exception Aggregation TOTAL by Distribution Channel, but the result in this case is 0. I guess the result is 0, as the characteristic Distribution Channel is not availble in Cube B.
    Any ideas how to solve this? Is there probably a different (more elegant) approach, as I fear that having all the exception aggregations my query runtime/ressource consumption will be awful.
    Thanks for any idea,
    Andreas

    Hi,
    You should define a new selection for COGS having Constant Selection on DC as defined in following link for PRICE with CUSTOMER.
    [http://help.sap.com/saphelp_nw70/helpdata/en/46/91f0f090ea13e8e10000000a155369/content.htm]
    and then apply your formulas....
    hope it will solve the problem...
    Regards.

  • Query Issue with adding a static value

    I have written a query in SAP that works the way I need it to. I am going to schedule it so that SAP does a file transfer of the output to another area where the data will be accumulated.
    My problem is that I want the name of the system to appear at the end of each line but it is not in any table I can find to match up with the userid.
    EX:
    UserID        Group                          System
    JDOE         HR Query Group            P201
    The field for system is not in any tables but I want to add it and give it a constant/static value all the time in the output.
    Any ideas?
    Thanks!
    Justin Dauby -- SAP Security Analyst
    Kimball International Inc.,

    The name of the system is not in a table, but rather a structure called SYST. You can evaluate it using the system field sy-sysid.
    Another option is to call function module RFC_SYSTEM_INFO. The export parameter RFCSI_EXPORT will deliver the system id from component RFCSYSID of the structure RFCSI.
    Cheers,
    Julius

  • Issue with Output designer and  Konica bizhub Pro 920 Driver:

    Hi, i would appreciate if someone could help me with the following issue:
    I have designed a document using Adobe Output Designer and need to print it on Konica printer which uses above driver. Konica is not included in Adobe Presentment Target List so i am trying to use a Generic Postscript L2 - (PSLEVEL2) presentment target. I want to make few changes to this driver to match it with destination printer settings. e.g Output Order should be Face Up, Input and Output Tray should be Auto, Print position should be Left etc etc. I have tried to edit ICS file but it's not making any sense to me as i dont's know the PCL. Could anyone familiar with a similar situation help?
    Thanks in advance
    Tayyab.

    Hi, i would appreciate if someone could help me with the following issue:
    I have designed a document using Adobe Output Designer and need to print it on Konica printer which uses above driver. Konica is not included in Adobe Presentment Target List so i am trying to use a Generic Postscript L2 - (PSLEVEL2) presentment target. I want to make few changes to this driver to match it with destination printer settings. e.g Output Order should be Face Up, Input and Output Tray should be Auto, Print position should be Left etc etc. I have tried to edit ICS file but it's not making any sense to me as i dont's know the PCL. Could anyone familiar with a similar situation help?
    Thanks in advance
    Tayyab.

  • SQL Query issue with large varchar column

    I have a SQL Query (PL/SQL function body returning SQL query) which contains a large varchar column. Even if I substring the column to 30chars when it displays on the page it wraps. I have tried putting nowrap="wrap" for the HTML table cell attributes and it still wraps. I have tried setting the width attributes on the column even though it's not an updateable column. Does anyone have any ideas on how prevent this from wrapping. In some cases 1 line will take up 3 because of this wrapping issue and it's not nice to look at. It seems that the column is somewhere set to a fixed width, which is less than 30 characters, and anything beyond this fixed width wraps.

    Hi Netha,
    Can you please provide the DDLs of three tables you are using,
    Also post us how many rows you are getting output for this query? 
    select * from dim.store st where
    st.store_code = 'MAUR'
    also try to run and update statement on this table as below and execute your query
    update dim.store
    set store_code
    = ltrim(rtrim(store_code))
    where
    store_code = 'MAUR'
    once you run this update, then run your query.  Let us know the result.

  • Script Form print issue with output type

    hello,
    i have maintained a output type for a purchase organisation in MN04, VN partner keep blank , medium 1 for print out and in date time : 4
    output device is 'LOCL' "print immediately" and "release after output" are active in communication.
    a message type generated when i created a PO, but it is a red light, and processing log is "Error in OPEN_FORM for document xxx".
    after checked, custom script from caused this issue, but how to resolve this problem?
    best regards,

    Hello,
    The error ME142 can have different causes like missing authorizations
    or a terminated connection. Please see SAP notes 397691 and 532251. This note
    states that is errors occur when purchasing documents are output, If
    errors occur when purchasing documents are output, the system generates
    an error message in the message log of the message overview. However,
    error message ME142 'Error in OPEN_FORM for document &' contains only
    the information that an error occurred and not the error cause. With the
    attached source code, the error cause is also displayed in the error
    message.
    Regards,
    David

  • Issues with output in billing documents

    Hi there,
    I have been seeing this issue in our production system a lot lately. The output is not applied to the invoice when it is created although the condition record is set up.
    It only appears when we enter the invoice using VF02 and unless we save it, it is not going to stick around. This only happens with one customer.
    I did a lot if investigation and checked all possible OSS notes but nothing helped. Could someone please suggest ??

    Hi
    As you are able to give the output type manually in VF02.So before giving the output type,click on determine analysis.and after maintaining output type and saving the billing document,again go to VF02 and click on determine analysis.and check the difference.Secondly also check wheather any batch job is running for the output types
    Also check wheather any subroutine has been assigned to the access sequence , if any subroutine has been assigned then  check wheather it is working fine or not.
    Regards
    Srinath

  • Query Issue with select level from dual

    Hi,
    I have a question regarding this query. The problem seems that when selecting level from dual while including another table the rows returned seem to increase exponentially.
    I can add distinct and get the correct number of rows but am worried that this will cause a possible performance issue. Am I using the level option wrong?
    I have included details below.
    There are 4 rows in tbl_incidents
    When I run the following queries I get rows returned based on the total number of rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    where incident_id = 6
    connect by level <= 1;
    returns 1 row
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    where incident_id = 6
    connect by level <= 2;
    returns 5 rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    connect by level <= 3 and incident_id = 6;
    returns 21 rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    connect by level <= 4 and incident_id = 6;
    returns 85 rows
    select start_date + level - 1, tbl_incidents.incident_id, level
    from dual, tbl_incidents
    connect by level <= 5 and incident_id = 6;
    returns 341 rows
    So with
         r being the number of rows in tbl_incidents and
         l being the number used in the connect by for level and
         q being the number of rows returned by the query
         it appears that
    q(l) = r * q(l-1) + 1
    level 2:     4 * 1 + 1 = 5
    level 3:     4 * 5 + 1 = 21
    level 4:     4 * 21 + 1 = 85
    level 5:     4 * 85 + 1 = 341
    Thanks much,
    Nora

    Hi,
    The dual table is used when you want to do something in SQL when you are not otherwise using a table.
    Generating a "counter table" of the integers 1, 2, 3,..., X is an example
    SELECT  LEVEL   AS n
    FROM    dual
    WHERE   LEVEL   <= x;There is never any point in joining dual to another table, as in
    select  start_date + level - 1
    ,       tbl_incidents.incident_id
    ,       level
    from    dual
    ,       tbl_incidents
    where    incident_id = 6
    connect by  level <= x;You will always get the same more easily by just eliminating dual:
    select  start_date + level - 1
    ,       incident_id
    ,       level
    from    tbl_incidents
    where    incident_id = 6
    connect by  level <= x;It is quite useful and common to join a counter-table to a real table, like this cross-join:
    WITH    counter_table  AS
        SELECT  LEVEL   AS n
        FROM    dual
        WHERE   LEVEL   <= x
    select  start_date + n - 1
    ,       incident_id
    ,       n
    from    tbl_incidents
    ,       counter_table
    where    incident_id = 6

  • Query issue with 9i database only

    Hi,
    I am getting this strage error in 9i database only for the following query. It works perfectly fine in any 8i databases. The query is executed from schema user X with all the referenced tables from schema user B.
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SELECT COUNT (ref_id), gparent_id, ref_id, ref_value
    FROM (SELECT (SELECT ref_id
    FROM sams_sec_application_setup
    WHERE setup_id = a.setup_id) ref_id,
    (select ref_id from sams_sec_application_setup where setup_id =
    (SELECT parent_id
    FROM sams_sec_application_setup
    WHERE setup_id =
    (SELECT parent_id
    FROM sams_sec_application_setup b
    WHERE setup_id = a.setup_id))) gparent_id,
    (SELECT ref_value
    FROM sams_sec_application_setup
    WHERE setup_id = a.setup_id) ref_value
    FROM sams_sec_security a
    WHERE setup_id IN (
    SELECT setup_id
    FROM sams_sec_application_setup a
    WHERE application_id = (SELECT application_id
    FROM sams_sec_application
    WHERE application_name = 'SOFA')
    AND GROUP_ID = (SELECT GROUP_ID
    FROM sams_sec_group
    WHERE group_name = 'Alliances'))
    AND user_id = 'srikulka '
    AND entity_id IN (
    SELECT a.role_id
    FROM sams_sec_role a,
    sams_sec_permission b,
    sams_sec_role_permission c
    WHERE a.role_id = c.role_id
    AND b.permission_id = c.permission_id
    AND b.permission_name = 'Admin'
    AND b.application_id =
    (SELECT application_id
    FROM sams_sec_application
    WHERE application_name = 'SOFA')))
    GROUP BY ref_id, gparent_id, ref_value;
    The same query executed without any error in 8i databases.
    The query is executed from schema user X with all the referenced tables in schema user B.
    Thanks and regards,
    Ambili

    3113 is a generic error and there are many known reasons for encountering this error. I suggest you search for related docs on Metalink.

  • Query Issue with Inner JOIN

    I need to create the following SQL query in Toplinks, but cannot figure out how to do it. I just want to get all Contacts that have their InitialEventID set to some integer, or have a mapping in the ContactEvents table set to that integer. The mapping between Contacts and ContactEvents is @OnetoMany.
    Select DISTINCT Contacts.* from Contacts JOIN ContactEvents ON (Contacts.ID = ContactEvents.ContactID) WHERE (ContactEvents.EventID = 34 OR Contacts.InitialEventID = 34);
    I'm trying the following, but it obviouly doesn't work.
    SELECT DISTINCT c FROM Contacts c INNER JOIN c.contactEventsCollection ce WHERE ce.eventID = 34
    What should I do?

    Other than the query missing the 'or' clause, why isn't the query working, and what SQL gets generated? You can turn TopLink logging to Fine or Finest to get the SQL logged. You might also want to use OUTER JOIN intead since I assume that Contacts with an InitialEventID=34 may or may not have any ContactEvents associated with it:
    SELECT DISTINCT c FROM Contacts c OUTER JOIN c.contactEventsCollection ce WHERE ( (ce.eventID = 34) OR (c.InitialEventID = 34) )
    Best Regards,
    Chris

  • PO print issue with output type

    hello,
    i have maintained a output type for a purchase organisation in MN04, VN partner keep blank , medium 1 for print out and in date time : 4
    output device is 'LOCL'  "print immediately" and "release after output" are active in communication.
    a message type generated when i created a PO, but it is a red light, and processing log is "Error in OPEN_FORM for document xxx".
    how to resolve this problem?
    best regards,
    Edited by: colin hong on Nov 11, 2010 5:25 AM

    Hi,
       With the help of ABAP'r, please check the Custom Scriptform...
    Also chk "http://help.sap.com/saphelp_nw70/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/content.htm"
    1. Re: difference between open_form & Start_form (urgent)
    Regards
    GK.

  • BPM_DATA_COLLECTION fails with (Output device "" not known) error

    Hi all,
    I have an issue with Output BPM_DATA_COLLECTION_1 job in the satellite system  failing with 'Output device "" not known error.  Since it is collecting data for Solution Manager system why does is it trying to find an output device.
    It did not fail before and now I added another key figure (custom one) which is done the same way the other custom monitors are done in "Z_BPM_ECU_COLLECTOR" report and then in /SSA/EXM program, but the collector job started to fail.
    Also, for some reason there are two BPM_DATA_COLLECTION jobs, one is BPM_DATA_COLLECTION_1 and the other is BPM_DATA_COLLECTION_2.  _1 runs every 5 min and _2 is less frequent. They both seem to runt the same job which is /SSA/EXS. Why are there two jobs scheduled from solution manager in my satellite system?
    Thank you very much for your help!

    I am experiencing this same issue in our ECC 6.0 system.  We currently have ST-A/PI release 01M_ECC600 level 0001 applied to our system.  These jobs finish successfully in SM37, but I'm seeing the same error messages in our system logs (SM21).
    When I try to update the output device that is associated with these jobs, the user ID running the jobs is not valid since it's user type is Communication Data.
    Does anyone know if it ok to change the user for this job? Should it be run by DDIC?  I believe the jobs were created automatically when we applied ST-A/PI release 01M_ECC600 level 0001.

  • Issue with Policy set in AIA installation

    Hi All,
    when I access EM console, and navigate to WebLogic Domain and expand it
    Right click the domain name and select Web Services and then Policies
    by default i could see all the policies got selected .
    By at run time got the error response as
    "javax.xml.ws.soap.SOAPFaultException: SOAP must understand error:{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security, {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security"
    If I manually go and disable the below mentioned policies , then am able to invoke the service
    Service Endpoints
    oracle/aia_wss_saml_or_username_or_http_token_service_policy_OPT_ON
    oracle/aia_wss_saml_or_username_token_service_policy_OPT_ON
    Service Clients
    oracle/aia_wss10_saml_token_client_policy_OPT_ON.
    Can anyone Please clarify the issue .

    Issue with Output Device and assiged Device type. Output device need to pass CONVERT_OTF ot Smartform FM to correctly get characters set in German as well as East European Characters

  • Issue with Saving the Query output data in Excel format

    Hi,
    Recnetly we had upgraded from 4.6c to ECC 6.0.
    In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
    But user want to save the data in EXcel format, he was able to do that in 4.6C.
    pleas eprovide some inputs, on this issue.
    Thanks,
    Sanketh.

    I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
    Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
    And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade.

  • Issue with query output

    hi there,
    I have an issue with the display of hours 00:00:00 in the query output in BW.
    The system assumes it as 0 or blank and therefore display it under unassigned hour.
    I am using the reference of 0TIME for this hourly display.
    When I checked the 0TIME i could not find the corresponding SID value for 00:00:00 hours.
    Can anybody please advise what needs to be done?
    Thanks in advance,
    Kind regard,
    Kate

    Hi Kate,
    I am experiencing the same problem as you: an InfoObject, created referencing 0TIME,  represented in the BEX Query as "#" when the Value is "00:00:00".
    How did you work it out?
    The Formula Variable strategy is not applicable in this case because 0TIME is not a key figure !
    Bye
    Aldo

Maybe you are looking for