Query regarding a report level variable

When I create a variable in webi report and in the variable formula when I use a universe measure object called Amount_Sold whose select contains an aggregate function like sum(shop_facts.Amount_Sold) in universe then my variable in webi report should be defined as just shop_facts.Amount_Sold or sum(shop_facts.Amount_Sold) if I want to calculate the sum of Amount_sold for all the dimension columns?Should I add the sum again or will it take from the universe definition?
Also if I want to write a condition like sum(shop_facts.Amount_Sold) where sum(shop_facts.Amount_Sold)>=0. Is this valid?I do not find having in the operators list.
Edited by: Sridhar_MT on Mar 3, 2011 6:03 PM

Hi,
Hi,
You create object with sum(shop_facts.Amount_Sold) where shop_facts.Amount_sold >= 0
Directly you can use this object in the webI report.
or
If you want to create a variable with this object, just you create object with Shop_facts.Amount_Sold in the universe.
In the webI, create variable with this formula and give qualification measure
If(Shop_Facts.Amount_Sold >= 0) then Sum(Shop_facts.Amount_sold)
Also if I want to write a condition like sum(shop_facts.Amount_Sold) where sum(shop_facts.Amount_Sold)>=0. Is this valid?I do not find having in the operators list.
It is not valid formula.

Similar Messages

  • Query regarding Crystal Reports Server

    Hi,
    I am new to Crystal Reports.
    I have created a couple of .rpt files using CR2008 and I am loading these report files in my aspx pages using CrystalReportViewer control.
    I am planning to host my webApp on IIS in production environment. Maximum simultaneous/concurrent connections to my reports would be 1 or 2.
    My question is:
    1. Do I need Crystal Reports Server in this scenario?
    2. In future if the number of concurrent users to report increases then do I need to go for Crystal Reports Server? Will just buying and installing the Crystal reports server on production server work? or will I have to do some configuration or some other changes in the existing deployed reports? OR Will I have to deploy my existing reports on Crystal Report Server again?
    Any help will be highly appreciated.
    Thanks in advance,
    Manish

    Manish, please do not cross post:
    Query regarding Crystal Reports Server
    See the [Rules of Engagement|http://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] for more details.
    Marking this thread as answered and locking...
    - Ludek

  • Hi experts 1 query regarding alv report running in background

    when i run my alv report with 40 columns in background in spool when i get output disturbed 20 lines of first row is moving to second row so when i download to excel the o/p is completely disturbed and no use for me is there any way to solve this problem.please reply

    hi ,
    this will solve your problem
    http://www.****************/Tutorials/ALV/Spool/width.htm
    Increasing the width of the spool when using ALV List
    By Aafaque Husain, YASH Technologies
    Whenever an ALV report (with more number of columns) is scheduled in background, the output will be displayed in a zigzag fashion as shown below:  
    If we try to download the output from the spool or try to view the output, then we observe that the output is not in an appropriate fashion.  
    To get the right format of output in the spool we generally increase the u201Cno. of columns fieldu201D in the Format typesu201D. Have a look at the following screenshot:   
    Sometimes even when we change this field, we get the output truncated at the end, like last few columns are not displayed. There is certain limitation for this field, so that even if increase this value again, we find no change in the output display in spool. 
    This value is effective only when we check the check box u201CNumber of columns from list display formatu201D in the SPAD transaction.
    Ø       GO to SPAD Transaction code
    Ø       In the menu Settings -> Spool System as shown belowu2026
    Ø       In the others tab check the first check box in the Output Controller block, SAVE and exit.
    Now Schedule the ALV report again by providing the output device and format, and then we get the full output in the spool as shown below: 
    Regards,
    Madhavi

  • One query regarding custom report of FBL5 trnsaction.

    Hi All,
    I had had to add some additional fields to the custom report of the transaction FBL5. up till now i have added the fields to the display layout variant,its getting populated also.But thing is whatever header information it was coming on the top of ALV list in the output of the standard report FBL5,it is in not coming my report.
    I am not able to locate it from the code that where is it happening.
    can anybody help me in this regard.
    Thanks in advance.

    Hi,
    thats's crazy - similar qu. was asked in FI-Forum:
    Re: About GL line item display
    -> so try: rigtht mouse click - header information
    A.
    pls reward useful answers
    thank you !
    Message was edited by: Andreas Mann

  • Query Regarding SUMBIT report

    I want to create a report which displays common output of RM06EM00 and RM06EK00 both....for that I am using SUBMIT statements as below.
    SUBMIT RM06EM00  USING SELECTION-SCREEN '1000' WITH SELECTION-TABLE t_m00 AND RETURN .
    SUBMIT RM06EK00  USING SELECTION-SCREEN '1000' WITH SELECTION-TABLE t_m00 AND RETURN .
    t_m00 and t_k00 are of type of output table of RM06EM00 and RM06EK00 respectively....boto reports are using one include...there I have created an implicit enhancement...I export output tables in that include and import it into my Z report.....
    My query is that when I execute above SUBMIT statements...Z report displays ALV output of RM06EM00 and stops there....My requirement is that both R reports (RM06EM00 etc) should not be displayed..and my z report 's flow of control should directly come to next statement of SUBMIT...
    Please help me !!
    Thanks in Advance

    Hi All,
    Thanks a lot for your reply...my other problems got resolved except one as below.
    In include LMEREPI03, I have created an implicit enhancement ZMM_EXPORT_PO_DATA.
    ENHANCEMENT 1  ZMM_EXPORT_PO_DATA.    "active version
    FIELD-SYMBOLS: <lt_table> TYPE ANY TABLE.
    IF ex_table_ref IS INITIAL. EXIT. ENDIF.
       ASSIGN ex_table_ref->* TO <lt_table>.
       EXPORT itab = <lt_table> TO MEMORY ID 'ZPOREP_MEMID1' .
      REFRESH <lt_table>.
    ex_table_ref is coming from below method.
    CALL METHOD my_current_datablade->if_reader_mm~read_table
          EXPORTING
            im_name         = im_name
          IMPORTING
            ex_structname   = ex_structname
            ex_fieldcatalog = ex_fieldcatalog
            ex_table_ref    = ex_table_ref
          EXCEPTIONS
            OTHERS          = 0.
    but this export  (EXPORT itab = <lt_table> TO MEMORY ID 'ZPOREP_MEMID1' ) is not working...I checked ABAP memory in debugger...Data is not being exported..please suggest something..
    Also, please suggest for import also....I am using ( IMPORT t_me2m FROM MEMORY ID 'ZPOREP_MEMID1'.) for importing
    Thanks in advance !!

  • Query regarding EWA Reports

    Dear All,
    We have recently added a Managed System to Solution Manager 7.1 SP10 and completed EWA setup.
    Now there is a requirement to generate EWA reports for previous 3-4 months (week-wise) for this managed system in Solution Manager.
    Can this be done ? If yes can someone please share steps with me ?
    (Note - The Managed system is running from last one year)
    Thanks & Regards,
    Nisha

    Hi,
    Below Link You can get document for Step by step process of Configure the EWA
    http://scn.sap.com/docs/DOC-43932
    http://help.sap.com/saphelp_sm32/helpdata/en/5a/b27f17edb04a6882c59f6619a267b9/content.htm
    http://help.sap.com/saphelp_smehp1/helpdata/en/2f/de3316e1fc425080f83c718bec41de/frameset.htm
    http://www.sap.com/korea/services/pdf/2_EWA_Overview_Info%20Day.pdf
    http://www.service.sap.com/~sapidb/011000358700001873212008E

  • Query regarding siebel reports

    Hi,
    Any one has any clue, can we call siebel reports as siebel certificates also???
    Thnaks !!

    Hi,
    Any one has any clue, can we call siebel reports as
    siebel certificates also???
    Thnaks !!I think you need to have a look at this:
    http://catb.org/~esr/faqs/smart-questions.html
    Axel

  • Query regarding MSS reports

    Hi,
    For some MSS reports ( Staff Assignments, Position Description, Bonus report, Staff Gains, Staff Losses, Nominal Rolls, TWA Reports) when executed for "Direct Reports" and "All Employees" from the drop down, showing error as " You must select atleast one suitable object before starting the report" although all the employees or atleast one of them is selected. It would be great if anyone can suggest as to what is causing this error?
    Thanks,
    Toa

    Swetha,
    Only way you can get all those iviews is transport those iviews  from other systems like QA ,Prodif they are already installed on them.
    I suggest you create a copy of standard role and work on it
    Thanks
    Bala Duvvuri

  • Regarding Interactive reports

    Hi All,
    Yesterday i submitted a query regarding Interactive reports.and i recieved lots of reply .But the replies are all about ALV interactive report.I want to know just about the interactive reports where ew use AT LINE OF SELECTION, HIDE e.c.
    PLZ send methe documents related that.
    Thanks and Regards
    RASHMI

    Hi
    Interactive Reports
    As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers. And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
    We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21). Events associated with Interactive Reports are: 1. AT LINE-SELECTION 2. AT USER-COMMAND 3. AT PF<key> 4. TOP-OF-PAGE DURING LINE-SELECTION. HIDE statement holds the data to be displayed in the secondary list. sy-lisel : contains data of the selected line. sy-lsind : contains the level of report (from 0 to 21)
    Interactive Report Events:
    AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
    AT PFn: For predefined function keys...
    AT USER-COMMAND : It provides user functions keys.
    REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Regards
    Anji

  • Help needed regarding ALV report

    Hi,
    I have a query regarding ALV report.
    The requirement is as follows:-
    When the user executes the ALV report and if he sums one numeric field column values and filters out some of the field columns ( for example there r 5 columns in the report and the user has filtered out 2 of them and viewing only 3 columns)
    and now the requirements is that when the user runs the report later he should see the modified report ( i mean only 3 cloumns and the total value of the column which he has made) but not the original output which was there when the report was developed.
    First of all i wanna know is it possible to do r not. If yes then how
    Hope u have got what i want.
    eagerly waiting for ur reply.
    regards,
    maqsood

    Hi
    Yes you can! You have to manage the layout variant.
    So when you call your ALV you have to set the parameter I_SAVE = 'A'.
    In this way you'll allow the user to save the variants for layout.
    After you has to have a chance to choose the variant in selection-screen.
    See the demo program BCALV_GRID_11 to manage the variant in selection-screen.
    Max

  • How to reference Report level program unit in report query?

    I have created a report level function FREF13 which returns a VARCHAR2 variable. I am trying to reference this function in report SQL statement like:
    select * from wtr where file_ref = FREF13(:fref)
    I am getting error 'ORA-00904: Invalid column name' error. This is because it is unable to recognize FREF13 as local function.
    Is it possible to reference local program units in report query?
    Rgds,
    Manish

    No, it's not possible. The only things you can reference in a SQL query are columns and functions accessable in the database (since this is where the query is executed). You should create the function in the database.
    Regards,
    Danny

  • How can I use Server level variables in a business model based report

    hi gems..
    I have declared one server level variable in the BI Analytics repository.
    Now I have made one business model based report.
    In one column I want to use that server level varible.
    I go to the formula tab of that column and then clicked on variable--> session --> put the name of the variable and click ok.
    But when i viewed the report, it is not showing the dates, rather it is showing the date format I chosed i.e DD-MMM-YYYY.
    please help..

    actually the previous problem got resolved...
    Now when I am trying to apply a filter on a particular column using that server variable, then it is showing that the varible has no value definition.
    I have clicked on the filter tab of that column-->add-->variables-->session variables-->then I put the name of the variable-->click OK.
    the following error is comming-
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23005] The repository variable, Variable_name, has no value definition. (HY000)
    I have made that server variable from manage-->variables-->(right click) create new initialisation block-->gave the name and wrote the query and aslo gave the connection pool name and test that and it worked fine..

  • How to improve the query performance in to report level and designer level

    How to improve the query performance in to report level and designer level......?
    Plz let me know the detail view......

    first its all based on the design of the database, universe and the report.
    at the universe Level, you have to check your Contexts very well to get the optimal performance of the universe and also your joins, keep your joins with key fields, will give you the best performance.
    at the report level, try to make the reports dynamic as much as you can, (Parameters) and so on.
    and when you create a paremeter try to get it match with the key fields in the database.
    good luck
    Amr

  • BW authorizations at report level

    hi,
    i have a requirement to restict user's access to certain cost centers on a report.
    i have created a new authorization object and switched on the reporting authorization on the cube for this object. i have created an authorization variable and this report is working like it should. But the issue is that when i switching on reporting authorization at the cube level, every query on the cube is getting affected. is there a way i can turn on this reporting authorization on the report level rather than the cube level and not affect the other queries?
    thanks,
    Parthava.

    Mark the Cost center Infoobject as Authorization relevant (RSD1 -> infoobject -> Business Explorer tab -> Authorization relavent) and restrict the user to the corresponding costcenters using correspnding authorization objects.
    http://help.sap.com/saphelp_nw70/helpdata/en/a0/48f438f3422f2ce10000000a114084/frameset.htm
    Assign points if helpful!
    Regards, Uday

  • Logic at reporting level to compare two dates .

    Dear Friends,
    I have a scenario here , where i have a counter keyfigure in my DSO which has constant value 1 . there is two dates : Stock issue date & stock receipt date .  At the reporting level , in selection screen there is an input on stock receipt date . Now i want to show key figure counter for which stock issue date lies between the stock receipt date which the user enters .
    Kindly suggest on this matter .
    Thanks & regards,
    Ashutosh Singh

    1. Create a customer exit variable on Stock issue date. Pass on the value the user enters through exit to this variable.
    2. Create a New formula with the counter keyfigure and restrict it based on the customr exit variable.
    This will work correctly if Stock issue date and stock receipt date are not displayed in the report.
    If it is displayed, then if the stock issue date lies between the stock receipt date it will have the value as 1 else 0.
    Hope this helps.
    rgds, Ghuru

Maybe you are looking for