Report Output for KF Values

Hi Experts,
I want one of my KF value as positive only even it have negative value,
Ex: value of -9 is 9
      value of 3 is 3
And for one more KF value need to come like below;
     Value (-3.14);
     This would round down to -4
     Value (3.14);
     This would round down to 3
How can i achive above 2 KF values in our BI report
Thanks
David
Edited by: david Rathod on Feb 27, 2012 10:37 AM
Edited by: david Rathod on Feb 27, 2012 10:37 AM

YOU CAN USE  ABS(absolute) function for the first requirement and FLOOR function  for THE 2ND REQUIREMENT.
ABS function gives the absolute value
so for -3 it will give 3
Floor function truncates the fractional part and returns the greatest whole number less than operand
floor(4.2) will give 4
floor (-4.2) will give 5
Both functions are  present in mathematical functions in query designer
Edited by: shyam agarwal on Feb 27, 2012 10:50 AM

Similar Messages

  • Report Output for Currency Field--EKBE-WRBTR

    Hello ABAP Experts
    Since the Issue is related with Related Report output. Thought ABAP General Forum would be right place to post.
    If not Suggest an appropriate forum for the same. I shall post them in Correct Forum.
    Currently the report display Currency value From EKBE- WRBTR field
    Actual Record Stored in EKBE is like this
    0,00
    400,00
    1.600,00
    client requirement is
    0, 00
    400,00
    1600, 00
    Option-1
    I have tried option for conversion to CHAR & printing in Output, the issue I face is when I export to Excel I am getting an ABAP Error CONVT_NO_NUMBER(Short Dump)-This dump is due to conversion while exporting to excel.
    Option-2(from SDN)
    Give a logic based on T005 table i.e. this table has the decimal place setting for a each country (this I need to Verify)u2014But the I fear that report output can be confusing.
    Expecting all your expert inputs!!
    BR
    Bharath

    Hi Bharat,
    You can set it using user--profile I guess.
    For own data go to
    system>user profile>own data---> defaults.
    There you can select the currency format.
    Hope this helps you.
    Thanks,
    Arun

  • How to get blank records at the start of report output for label sheet?

    Hello -
    What is the best way to get an arbitrary # of blank records at the start of report output?
    I am writing a report that will be printed out on label sheets -- some of which might already be used. For example, there might be 3 labels per page but the first 2 have been used the last time the report was run.. so the report needs to display 2 blank records first so that the first record that gets printed on a label is in the 3rd position on the page. (the user would indicate - through a parameter - what the starting postion would be)

    Hi Scott
    Create a user parameter that reads in the number of blanks you need to 'print' before starting the actual printing.
    In the Format trigger of the outermost frame of your report write code using SRW.SET_BEFORE_PRINTING_CODE.
    Loop this method based on the user parameter and call this method with skip-line-command of your printer as its argument.
    Regards
    Sripathy

  • Delivery report output for'Ship-to party address and Sold-to party address'

    Hi Experts,
    We have an report output generated upon delivery creation.
    We need print following fields:
    Ship-to party #
    Ship-to party Name
    Ship-to Party Address
    Sold-to party #
    Sold-to party Name
    Sold-to Party Address
    As per i understand, we could get those field according to partner function....
    So experts, could please advise me from which table and field and logic to get above information....
    Thank you very much!!

    Hi,
    Are you changing partner details in delivery document?
    This partner address details will be updated in VBPA table.
    E.g change the partner street no.  in delivery document manually.
    Now goto VBPA table, enter correspondence sales document number for that delivery and execute.
    Click on partner function AG / WE get the address number (ADRNR) .
    Now goto ADRC table, enter this address number in ADRNR field and execute. you will get partner details.
    Regards,
    Chandra

  • XML Publicher Report Output without Prompt Value

    Hello,
    I've one report(XML Publisher) which prints various data from PS_JOB,PS_PERSONAL_DATA and some other Performance tables.
    The Prompt Values are from a dynamic view which shows the Subordinate employees(emplids and names) of the login employee.
    The base query view i created has all the information of all active employees from all Business Unit. Now when i select when employee from prompt table the output values for that particular employee and is ok. But when i don't select anything(no table edit), it is not showing the output of my subordinates but for all the employee. That is Right because i've base report view is for all employees.
    Is there any way that if i dont select anything from prompt values i'll get only output of my subordinates only?
    Regards!

    Thanks. I did try that before but the view didn't build but i don't how today the view built successfully.
    But when i tried to run the query with a normal user who's having subordinate the excel output is still blank.
    One more thing, when i checked Resolve Meta SQL in Application designer, the %oprclause doesn't resolve to PS.
    below is my complete query..with subqeury for finding current user..
    SELECT A.emplid,
           A.Name_Display,
           K.descr,
           T4.effdt join_date,
           D.grade,
           G.descr Dept,
           D.effdt Last_prom_dt,
           period_begin_dt,
           AA.EMPLID MGR_ID_VW,
           AA.NAME_DISPLAY NAME_DISPLAY_MGR,
           ab.supervisor_id EMPLID_FM_VW,
           FMGN.name_display NAME_DISPLAY_FM,
      FROM PS_PERSONAL_DATA A,
           (SELECT EMPLID, NAME_DISPLAY FROM PS_PERSONAL_DATA) AA,
           (SELECT ad.emplid,
                   DECODE(ad.supervisor_id, ' ', 'XXXX', ad.supervisor_id) supervisor_id
              FROM ps_job ad
             WHERE ad.effdt = (SELECT MAX(t3.effdt)
                                 FROM ps_job t3
                                WHERE ad.emplid = t3.emplid)) AB,
           (SELECT EMPLID, NAME_DISPLAY FROM PS_PERSONAL_DATA) FMGN,
           (SELECT emplid, effdt
              FROM ps_job T3
             WHERE effdt =
                   (SELECT MIN(effdt) FROM PS_JOB T5 WHERE T5.emplid = T3.emplid)) T4,
           PS_EP_APPR B,
           PS_EP_APPR_ITEM C,
           PS_JOB D,
           PS_DEPT_TBL G,
           PS_BUSUNIT_HR_VW K
    WHERE A.EMPLID = B.EMPLID
       AND B.EP_APPRAISAL_ID = C.EP_APPRAISAL_ID
       AND A.EMPLID = D.EMPLID
       AND AA.EMPLID = D.SUPERVISOR_ID
       AND D.supervisor_id = AB.emplid
       AND FMGN.Emplid = AB.supervisor_id
       AND c.ep_appraisal_id = pnt.EP_APPRAISAL_ID
       AND T4.emplid = D.emplid
       AND D.deptid = G.Deptid
       AND D.business_unit = K.Business_unit
       AND D.effdt =
           (SELECT MAX(t1.effdt) FROM PS_JOB t1 WHERE t1.emplid = D.EMPLID)
       AND A.EMPLID IN
         (SELECT EMPLID                                                            ----------here comes subquery for finding logged in user
              FROM (SELECT B.EMPLID
                      FROM PS_NAMES A
                     INNER JOIN PS_JOB B ON B.EMPLID = A.EMPLID
                                        AND B.EMPLID = A.EMPLID
                                        AND B.EFFDT =
                                            (SELECT MAX(CA.EFFDT)
                                               FROM PS_JOB CA
                                              WHERE CA.EMPLID = B.EMPLID
                                                AND CA.EFFDT <= %CurrentDateIn)
                     WHERE A.NAME_TYPE = 'PRI'
                       AND A.EFFDT = (SELECT MAX(B.EFFDT)
                                        FROM PS_NAMES B
                                       WHERE B.EMPLID = A.EMPLID
                                         AND B.NAME_TYPE = A.NAME_TYPE
                                         AND B.EFFDT <= %CurrentDateIn)
                       AND B.SUPERVISOR_ID =
                           (SELECT T1.OPRID FROM PSOPRDEFN T1 WHERE %oprclause)
                        OR A.EMPLID =
                           (SELECT T2.OPRID FROM PSOPRDEFN T2 WHERE %oprclause)
                        OR B.SUPERVISOR_ID IN
                           (SELECT EMPLID
                              FROM PS_JOB
                             WHERE SUPERVISOR_ID =
                                   (SELECT T3.OPRID
                                      FROM PSOPRDEFN T3
                                     WHERE %oprclause))))
    ORDER BY A.emplid Regards!

  • Validation of data in editable ALV report output for particular field

    Hi Experts,
    I have one input enabled field in ALV output. How to validate the data once user enters  in that field and press enter? Is it possible to capture the value, hit the enter after user enters the data?
    Thanks,
    Surya Prakash

    Halo Prakash,
    1 First you should registeer the ENTER Event.
    call method g_grid->register_edit_event
                   exporting
                      i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    2 Declare event handler method for Event data_changed of cl_gui_alv_grid.
    handle_data_changed
             for event data_changed of cl_gui_alv_grid
                 importing er_data_changed.
    3 Inside the Event handler method , you get the event parameter er_data_changed type ref to CL_ALV_CHANGED_DATA_PROTOCOL.
    loop at er_data_changed->mt_good_cells into ls_good.
          case ls_good-fieldname.
            when 'FIELD1'.
              call method check_FIELD1.
            when 'FIELD2 '.
              call method check_FIELD2
          endcase.
        endloop.
    4 Inside the Method check_FIELD1 and check_FIELD2 you can do the validation check .
    call method er_data_changed->get_cell_value( Passing the row no and field name).
    if the check  fails you can use add_protocol_entry to write the error.
    5 Finally call
    er_data_changed->display_protocol.
    Regards
    Arshad

  • Legend in not shown in report output for a piechart

    Hello,
    I have a piechart embedded in a report.
    In the graphics builder for the properties of the chart I have mentioned to show legends .It(Legend) is being shown in layout of graphics builder also .
    But when i run the report legends are not all being displayed .Even I tried the following code also
    val := og_get_gegend(template);
    if val = true then
    og_set_legend(template,true);
    else
    og_set_legend(template,false);
    end if;
    I even foun that control is going to if condition but report ouput does not have legend
    Please help in giving a solution for this
    Thanking in advance

    Peram,
    Can you please elaborate your answer as I am not able to understand what you are trying to say.
    Regards,
    Ravi

  • Report Output for CalDay

    Hi,
    i have report like this
    Eg:
    Infocube                                              Calday
    FiAP_C03                                                   1.11.2011
                                                                       2.11.2011
                                                                       3.11.2011
                                                                       4.11.2011
    Now i want display for out put
    Infocube                                              Calday
    FiAP_C03                                                 4.11.2011
    Thanks.

    Hi Vikas,
    I have out like
    Eg:        Calday
                    1.11.2011
                    2.11.2011
                    3.11.2011
                    4.11.2011
    So i want to dispaly highest day in the out like in this
    Eg:  Calday
           4.11.2011
    As per my understand i want create calculate key figure on top of CALDAY and create condition for Calday as TOP N.
    How achive this
    Thanks,

  • Report output for the screen

    Hello
    The application POC that I'm contributing to is a task tracking system. The task is the central table and in support of that are notes. A Task can have many notes - or it can have zero notes.
    I have an SQL statement that I have written, which contains an outer join. The outer join, as written, displays the same Task data with each comment. This is redundant and I would like to eliminate it.
    This is what I presently have (which I do not like the looks of)
    TaskNum1 TaskDesc1 TaskDate1 Note1_1
    TaskNum1 TaskDesc1 TaskDate1 Note1_2
    TaskNum1 TaskDesc1 TaskDate1 Note1_3
    TaskNum1 TaskDesc1 TaskDate1 Note1_4
    TaskNum2 TaskDesc2 TaskDate2 Note2_1
    TaskNum2 TaskDesc2 TaskDate2 Note2_2
    TaskNum2 TaskDesc2 TaskDate2 Note2_3
    ...and this is what I am seeking... (but without the dashes of course)
    TaskNum1 TaskDesc1 TaskDate1 Note1_1
    ----------------------------------------------Note1_2
    ----------------------------------------------Note1_3
    ----------------------------------------------Note1_4
    TaskNum2 TaskDesc2 TaskDate2 Note2_1
    ----------------------------------------------Note2_2
    ----------------------------------------------Note2_3
    Can someone point me in the right direction - or let me know if there is something more I can provide so that I can help you to help me?
    Thanks
    --KR                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    You need to look into using the LAG SQL function. Have a look at my posts here: How to achieve Page/Form/Report layout? which should give you a guide to what you can do.
    Andy

  • No getting Report Output in OAF for java Concurrent program Method

    I am not getting report output for java Concurrent Program(Concurrent Program Executable Method), for the reports which are of type PL/SQL Stored Procedure getting the output. for some of the reports the executable method is 'java Concurrent Program', so is there any thing i need to modify in my code.
    Thanks
    Babu

    The Concurrent request is not able to generate output
    getting following error in FNDCPREQUESTVIEWPAGE
    The concurrent request 9923758 did not create an output file.
    so what may be reasons for this?
    Thanks
    Babu

  • Font not displaying on Reports Output (RHEL 5) for 10g

    Hi, I know I've posted a question in the past about a font not displaying on Report Output for my Arial, Arial Narrow, and Courier New fonts. I worked with Oracle Support and found that Metalink Note#261879.1 fixed my problem with those 3 fonts. I ran the scripts and now that part works great.
    However, I have one font "ARIALUNI.TTF" that will not work. This is out specific barcode font we use. I've pushed it on Linux from my Windows by pushing it as a binary file to the ORACLE_HOME/guicommon/tk/admin/TTF directory. I even put it in the directory for TTF on Metalink Notoe 261829.1 and let it create the files, but it still doesn't find it when I ran a report that uses this font.
    I tried using font subsetting via the uiprint.ali and make a reference but it still doesn't seem to work.
    Is there something I'm missing that would cause any of these not to work. I thought maybe some files had to be created under the guicommon/tk/admin/AFM file directory but I'm not sure.
    I just want to have my 2 or 3 reports that use this barcode to work. Once I get them, I'm done and all my font issues are resolved. Any help is appreciated.
    Chris

    They are probably a very old Type 1 font. Try checking the dates on the font files. Your best bet would be to get the OpenType versions of those fonts and install them.

  • Output mismatch between BEx query output and WebI Report output

    Hi All,
    I have a BEx query in which there are only characteristics placed in rows.
    There are combinations of the values of the characteristics giving different records in the query output.
    Date is one of the characterisctics in the query output.
    There is an output mismatch between the query output and the WebI report output in the following case:
    When there are 'Not Assigned' or '#' or blank values, there are additional entries(rows) in the WebI report, giving repeating or wrong entries in the Date field. This is incorrect data.
    Is this because of the  'Not Assigned' or '#' or blank values of the Characteristics or is there any other reason?
    How do I fix this?
    Please helo me with this.
    Thanks and Regards,
    Srilakshmi B

    Hi Rajesh,
    I need to verify the WebI report output for records with # and 'Not assigned' values for the cHracteristics in the report.
    So I cannot check the WebI report by hiding the # or Not assigned values.
    The problem is that in the Query output the records are like these shown below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)             No value
    Where as the WebI report output is as below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)            Date1
    As shown here, there are wrong/repeating entries for the Date field in the WebI report output.
    Please check this and let me know what could be the issue and how do I fix it.
    Thanks and Regards,
    Srilakshmi B

  • Account Creation - Badi for Default values for BP Role and Sales Area

    Hi all,
    my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
    Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
    I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
    In my code
    assign cr_me->('VIEW') to <lv_view_name>.
      if sy-subrc ne 0.
        exit.
      endif.
      lv_viewname = <lv_view_name>.
      case lv_viewname.
        when 'AccountDetails.htm'.
    I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
    Am I following the right way? Is there another solution to prepare the output for default values?
    Any kind of suggestion will be appreciated.
    Regards, Roberto

    go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
    Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
    Regards.

  • Prob in Report output through Module Pool

    Hi,
    I have developed Module Pool and in tht screen 100 , in PAI under fcode 'APPEND' i am appending record into the itab.
    while user press 'VIEW' it will execute f-code VIEW and display records of itab as a report output.
    now on the report output, for each records i have CHECKBOX ,while they press DELETE button on application toolbar, marked checkbox details should get deleted from report output.
    But my problem is while i am press DELETE button in report output it is not calling screen 100 PAI or PBO .then how will i delete records , can anybody suggest me ?
    Thanks.

    Are you able to see the Delete Button, If so then it Definitely comes to AT USER-COMMAND.
    WHEN 'VCART'.
    LEAVE TO LIST-PROCESSING.
    SET PF-STATUS 'LIST'.   "This is for List status here you set the Delete button backbutton
    loop at i_cart.
    WRITE:/01(01) '|', I_CART-CHECK AS CHECKBOX,05(01) '|',
    06(40) I_CART-CMAKTX,46(01) '|',
    47(30) I_CART-LENGTH,77(01) '|',
    78(07) I_CART-CHNG_QTY,85(01) '|',
    86(03) WS_UOM,89(01) '|',
    90(10) I_CART-LENGTH_LIN,100(01) '|',
    101(07) WS_P1,108(01) '|'.
    WRITE:/01(108) SY-ULINE.
    endloop.
    AT USER-COMMAND.
    case sy-ucomm.
    WHEN 'DELETE'.
    " Here you need to delete the record.
    "if you want to go back
    LEAVE LIST PROCESSING.
    "then you will go to main screen,
    endcase.
    try this approach..

  • FTP Discoverer report output

    Is there any way to ftp the report output for scheduled Discoverer 10g workbooks without using Discoverer Desktop (i..e, directly from the server) ?
    Example: A workbook is scheduled to run daily; after the report completes, the output of the report (in Excel format only) has to be ftp-ed (automatically, via a shell script or stored procedure) to a remote location (Discoverer Plus was used to create and schedule the workbooks, do not use Discoverer Desktop) - where do we pick up the ouput from on the server/database? Is the output stored on the file system or in the database? In which format is it stored?
    Thanks in advance.

    Thanks for the response - however, we found a method to do it - since the results of a scheduled workbook are stored in a database table, we can access the results from this table, create a text file, and ftp this file.
    Method is given below (pl. let me know if we are missing anything):
    1. Create a simple Discoverer workbook based on SCOTT.DEPT table, workbook name is 'DEPT'
    2. Schedule DEPT workbook as 'SCOTT' user
    3. Wait until the scheduled job has completed; In the Scheduling Manager the report status is 'Ready'
    4. Connect to SQLPlus as the EUL owner
    5. select BR_ID, BR_WORKBOOK_NAME from EUL5_BATCH_REPORTS where BR_WORKBOOK_NAME='DEPT';
    SQL> select BR_ID, BR_WORKBOOK_NAME from EUL5_BATCH_REPORTS where BR_WORKBOOK_NAME='DEPT';
    BR_ID BR_WORKBOOK_NAME
    203443 DEPT
    6. select BS_ID, BS_BR_ID, BS_SHEET_NAME from EUL5_BATCH_SHEETS where BS_BR_ID='203443';
    SQL> select BS_ID, BS_BR_ID, BS_SHEET_NAME from EUL5_BATCH_SHEETS where BS_BR_ID='203443';
    BS_ID BS_BR_ID BS_SHEET_NAME
    203444 203443 Sheet 1
    7. select BQ_ID, BQ_BS_ID from EUL5_BATCH_QUERIES where BQ_BS_ID='203444';
    select BQ_ID, BQ_BS_ID from EUL5_BATCH_QUERIES where BQ_BS_ID='203444';
    BQ_ID BQ_BS_ID
    203445 203444
    8. select BQT_ID, BQT_BQ_ID, BQT_TABLE_NAME from EUL5_BQ_TABLES where BQT_BQ_ID='203445';
    select BQT_ID, BQT_BQ_ID, BQT_TABLE_NAME from EUL5_BQ_TABLES where BQT_BQ_ID='203445';
    BQT_ID BQT_BQ_ID BQT_TABLE_NAME
    203454 203445 EUL5_B070924102545Q1R1
    This shows that the scheduled workbook 'DEPT: sheet1' is associated with the Result Set table
    'EUL5_B070924102545Q1R1'
    SQL> select * from EUL5_B070924102545Q1R1;
    BRN1 BRVC1 BRVC2
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    9. Information about when the table was created, the creator, last updated date and who updated it can be obtained from EUL5_BQ_TABLES;
    SQL> select BQT_TABLE_NAME, BQT_CREATED_BY, BQT_CREATED_DATE from EUL5_BQ_TABLES;
    BQT_TABLE_NAME BQT_CREATED_BY BQT_CREATED_DATE
    EUL5_B070924102545Q1R1 SCOTT 24-SEP-07

Maybe you are looking for

  • Correct way of setting styles for custom components

    Hey everyone,                         I have a custom component which extends UIComponent and holds a image and a button. If I want to set the default style for my button where do I set it in the createChildren, stylesInitialized ,  updateDisplayList

  • System settings for purchasing organization 1000 incomplete

    I have done Vendor evalution setting for one purchase organization. then i went to t.code : ME61 For maintain vendor evalution while doing i got error message like     " System settings for purchasing organization 1000 incomplete ". Please anyone hel

  • 5800 OVI map not routing

    Hi All, The sat nav on the 5800 is really good but I'm getting a slight issue with routing. I searched an address by road and house number and county. It was found by the software but when I came to drive to it today I got a message "Route not found"

  • ITunes hates me and won't open  HELP!

    Basically, every time I try to start up iTunes, it says there was an error and the program had to close. I've tried reinstalling iTunes to fix missing programs etc. and I've tried changing some of the audio settings like the support page said to, but

  • Why don't I have internet access?

    My ipad does not seem to respond to Wi-Fi.. Mi ipad shows that i have internet connection on the top left corner ,but when i tried to use safary it wont let me....What can I do to get safary and my apps working??