Rename RKF and CKF in query using ABAP

Hi guys,
I am supposed to rename RKF and CKF in query using ABAP.  (RKF: restricted key figures, CKF: calculated key figures)
Right now, I am using FM RSZ_X_COMPONENT_GET to load query definition. I can find and rename all used RKF and CKF technical names and rename them in returned tables and then save it using  RSZ_X_COMPONENT_SET.
But  I see that both RKF and CKF are reusable elements and they are can be probably used somewhere else.
Can you tell me where can I find information in what header table are they saved or maybe some "where used" table.
What FM am I supposed to use to rename CKF and RKF in given query and also in other parts of SAP system?
Even some information how to get deeply into this problem would be very helpful.
Thanks.

Hi,
You can see the query element definitions in RSZ* tables, but not sure if you will be able to find complete info, like a particular RKF is restricted by following selections by looking at the tables. Also, please do not try to change the info directly in the tables even though you seem to have a lot of objects to changes.
Hope this helps...

Similar Messages

  • Structures Vs RKFs and CKFs In Query performance

    Hi Gurus,
    I am creating a GL query which will be returning with a couple of KFs and some calculations as well with different GL accounts and I wanted to know which one is going to be more beneficial for me either to create Restricted keyfigures and Calculated Keyfigures or to just use a structure for all the selections and formula calculations?
    Which option will be better for query performance?
    Thanks in advance

    As compared to formulas that are evaluated during query execution, calculated key figures are pre-calculated and their definitions are stored in the metadata repository for reuse in queries. The incorporation of business metrics and key performance indicators as calculated key figures, such as gross profit and return on investment (which are frequently used, widely understood, and rarely changed), improve query performance and ensure that calculated key figures are reported consistently by different users. Note that this approach improves query runtime performance but slows InfoCube or ODS object update time. As a rule of thumb, if multiple and frequently used queries use the same formula to compute calculated fields, use calculated key figures instead of formulas.
    RKFs result in additional database processing and complexity in retrieving the query result and therefore should be avoided when possible.

  • BO Explorer - using RKF and CKF of a query

    Hi,
    I am currently in the learning phase of Business Objects 4.1 tools and have some unanswered questions.
    I have recently started learning about the Explorer tool and was wondering whether there is a way I can use BEx queries as source in the Explorer tool. For now, I have created a relational data universe over the InfoCube using the Information Design Tool and used this new universe as a source in the Explorer tool but this did not bring in any of the existing BEx restricted key figures and calculated key figures.
    Are there any other ways I can connect directly to the BEx query directly to take advantage of the defined restricted key figure and calculated key figure. There are about 100 RKF and CKF over an InfoCube and I would really like to take advantage of the existing elements.
    I read through the discussion forums and found couple of different replies based on the version number.
    Please do guide me if you have resolved a similar issue. Thanks for reading.

    Ajay Gupta wrote:
    Grame,
         The relational method is the only option with Explorer.  You have other options when using WebI & Analysis for OLAP but NOT with Explorer.
    Regards,
    Ajay
    Thanks for the reply Ajay. I was following the below thread that mentions about creating universe using XI 3.1 and then using the constructed universe through Explorer. Is this available in BO 4.1, please do explain about this if possible.
    http://scn.sap.com/thread/3417905

  • BWA 7.2 RKF and CKF

    Ongoing from Jamie Hylton's thread...
    If we had BWA with the blades configured for both SBOE and BW access - in what scenario does BW access actually get to use the "query snapshot" functionality?
    We read that BWA 7.2 comes with RKF and CKF but as far as I see - this only applies to the CKFs and RKFs in the query snapshot load for SBOE and not for normal BW access
    Or did I read wrongly?

    Hi
    You can use BWA 7.20 with BW 7.01 SP05 and the indexing RKF and CKF functionalities are supported only with this combination of BWA and BW and finally reporting in Explorer.
    Also as Marc has mentioned the exploring of data with the Infoproviders having RKF and CKF is possible only in Explorer.
    The CKF and RKF as part of Multiprovider Snapshot Index can also be used to explore the data in the Explorer.
    c.f note : 1332392.
    Hope this helps!
    Regards, Hyma
    Edited by: Hymavathi Yanamadala on Mar 16, 2010 1:16 PM

  • Getting an error when i am execution a BI query using ABAP.

    Hi Expert,
    I am getting an error when i am execution a BI query using ABAP. Its Giving me this Error "The Info Provider properties for GHRGPDM12 are not the same as the system default" and in the error analysis it saying as bellow.
    Property Data Integrity has been set differently to the system default.
    Current setting: 0 for GHRGPDM12
    System default: u2019 7 u2018
    As I am very new to BI and have very limited knowledge, so I am not able to understand this problem. Can any one help me to resolving this issue. Previously it as working fine, I am getting this error last 2 days.
    when i am debugging , I am getting error from
    create instance of cl_rsr_request
    CREATE OBJECT r_request
    EXPORTING
    i_genuniid = p_genuniid.
    this FM. Its not able to create the object. Can any one please help me out.
    Thanks in advance.
    Regards
    Satrajit

    Hi,
    I am able to solve this problem
    Regards
    Satrajit

  • Execute a query using ABAP  (XSLT transformation issue)

    Hello,
    I made the steps from this blog (part I, II and III).
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    When trying to run the XSLT transformation, I got the message that : XML invalid source file.
    I am not sure what are the steps for running a transformation, or running it for this case ,maybe something it's not ok. I just run it, did not provide any information.
    Any suggestions ? Did anyone use the function module described in this blog ?
    Thank you very much in advance.

    try giving
    CALL TRANSFORMATION (`ID`)
    SOURCE meta = meta_data[]
    output = <ltable>[]
    RESULT XML xml_out
    OPTIONS xml_header = 'NO'.
    and check - sometimes the codepages configured in the BW system tend to cause an issue... I am not sure if the syntax is right though - but you are basically trying to bypass any encoding that is happening in the query transformation....
    http://www.sapetabap.com/ovidentia/index.php?tg=fileman&sAction=getFile&inl=1&id=4&gr=Y&path=ABAP%2FABAPENANGLAIS&file=ABAP-XML+Mapping.pdf&idf=41
    Edited by: Arun Varadarajan on May 18, 2009 11:28 PM

  • Execute BW query using ABAP

    Hello ,
    1) I used the function module from this link :
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    When I run it , I see the metadata correct and this is all. No more data to display.
    2) Then I used the code from here :
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    MOVE: <variable name> TO wa_var-vnam ,
       'I' TO wa_var-sign,
       'EQ' TO wa_var-opt,
       <variable value> TO wa_var-low .
         query_variables       = var
    FUNCTION z_test_query.
      FIELD-SYMBOLS: <outtab> TYPE ANY TABLE,
        <l_line>  TYPE ANY,
        <l_field> TYPE ANY.
      TYPE-POOLS: rrx1 .
      DATA: wa_var     TYPE     rrx_var ,
            var TYPE STANDARD TABLE OF rrx_var ,
            xml_out TYPE string ,
            breturn TYPE STANDARD TABLE OF bapiret2 ,
            rpt_tech_id(50) ,
            wa_meta TYPE zbw_query_output_metadata ,
            xslt_error TYPE REF TO cx_xslt_exception ,
            is_fieldcat     TYPE     lvc_s_fcat,
            it_fieldcat       TYPE     lvc_t_fcat,
            new_table  TYPE REF TO data ,
            xslt_message TYPE string ,
            meta TYPE STANDARD TABLE OF zbw_query_output_metadata . " this structure was created in the previous part
    *fill all the variables like below.
      MOVE: 'SEM_PSG01/PSG___00000_080_V1' TO rpt_tech_id .
      APPEND wa_var TO var .
      CLEAR :xml_out .
      REFRESH breturn .
      CALL FUNCTION 'Z_QUERY_EXECUTE'
        EXPORTING
          query_name            = rpt_tech_id
        IMPORTING
          xml_out               = xml_out
        TABLES
          return                = breturn
          meta                  = meta
        EXCEPTIONS
          bad_value_combination = 1
          user_not_authorized   = 2
          unknown_error         = 3
          query_not_found       = 4
          OTHERS                = 5.
      CASE sy-subrc .
        WHEN 0 .
          CLEAR: is_fieldcat, wa_meta .
          REFRESH: it_fieldcat .
          LOOP AT meta INTO wa_meta.
            is_fieldcat-fieldname = wa_meta-fieldname.
            is_fieldcat-outputlen = wa_meta-outputlen .
            is_fieldcat-datatype = wa_meta-datatype.
            is_fieldcat-scrtext_l = wa_meta-scrtext_l.
            APPEND is_fieldcat TO it_fieldcat.
            CLEAR : is_fieldcat .
          ENDLOOP .
          IF NOT it_fieldcat[] IS INITIAL .
            CALL METHOD cl_alv_table_create=>create_dynamic_table
              EXPORTING
                it_fieldcatalog = it_fieldcat
              IMPORTING
                ep_table        = new_table.
            ASSIGN new_table->* TO <outtab>.
          ENDIF .
          TRY .
              CALL TRANSFORMATION ('Z_GPS_TR')
              SOURCE XML  xml_out
              RESULT     outtab = <outtab>.
            CATCH cx_xslt_exception INTO xslt_error.
              xslt_message = xslt_error->get_text( ).
          ENDTRY.
        WHEN 1 .
        WHEN 2 .
        WHEN OTHERS .
      ENDCASE .
    {ENDFUNCTION.
    'Z_GPS_TR' is my transformation (exactly the code from the blog).
    'Z_QUERY_EXECUTE' is the function from 1). I did not use variables for the query parameter.
    I see with  the debugger that <outtab> is filled corectly, with the values from my query.  Still , the function, when is runed normally, does not display anything.
    3) If I run only the transformation Z_GPS_TR alone, it says invalid source XM source file.
    Please, some suggestion? I don't know hot to proceed.
    Many thanks.
    Edited by: Ariana D on May 19, 2009 11:40 AM

    Hi All
    I able to solve this problem
    Regards
    Satrajit.

  • How to Use CMOD and SMOD in SAP using ABAP Code

    Hello anyone,
      Please help me How to use CMOD and SMOD in SAP using ABAP code.
    Give Me Some Sample Example.
    Mail ID: [email protected]
    Thanks,
    Regards,
    S.Muthu,
    SAP Developer.

    Hi,
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

  • Executinga BW query using ABAP

    I saw this blog on how to execute a BW query using abap. My question is, where do we create the function module Y_EXECUTE_QUERY? I mean under which function group? Thanks.

    This is the blog I was referring to:
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i

  • Percentage Calculation using RKF and CKF

    Hi,
    I am unable to create a CKF which calculates % of a key figure (Net PO value). The % has to be calculated on the overall total of the column.
    My scenario does not allow me to use formulas to do so. So I had to create a RKF which uses my key figure and I restricted it with Vendor (Constant Selection) which was in my rows. Then I created a CKF which calculates the percentage using this restricted key figure. But when I go into my query analyser and open this query and try to restrict the vendors to only a few, the percentage is still calculated to the entire vendors for that particular company code.
    Is there another way to solve this problem where I could get the percentage values according to as many vendors I filter the report on?
    Many thanks
    IA
    Edited by: I A on Jan 13, 2010 1:39 PM

    Hello I A,
    Go to Query Designer, select you key figure and in "calculations tab" select: Calculate individual values as--> Normalize after overall result (8th option).
    I hope this helps! (in that case rewrd pts please )
    Regards,
    Jordi

  • Copy and Paste of RKFs and CKFs

    Hi All,
    How can i copy a RKF and paste/use it and change its tech name and a few restrictions among all restrictions.
    Regards
    Arun

    Hi Arun,
    Just CRTLC for copying and CRTLV for pasting the RKF's or Formulas or any object in Query Designer in a particular query.
    This is not possible to one query to other query... as said by prakash.
    Regards
    Ravi Kanth

  • How to Zip a file and find it size using ABAP code

    Hi All,
    My requirement is to extract a file from Al11 ZIP it and find it size. 
    Please let me know whether there are any Function modules or Classes for Zipping and finding the size of it.
    Note : Used Class "cl_abap_zip" but the output at in chinese language.
    Thanks in advancve for your support.
    Regards
    Jithu

    Check https://wiki.sdn.sap.com/wiki/display/profile/GZIP
    and how to zip and unzip a file in abap
    May it useful
    Kanagaraja L

  • Change query using abap

    hi all,
    i find a situation when i need to change many queries to include a common variable of a characteristic. is it possible to create a program to change query? are there any function modules for this?
    thanks.

    Hi,
    You can run or get an URL for query with ABAP Function modules. but for creation, it may not possible.
    As this is a different tool.
    Regards,
    Ravi Kanth

  • Need help Designing a Query -with RKFs and CKF or alternate

    Hi,
    Trying to create a query off a HR Headcount IC - to display number of top performing employees (based on appraisal attribute) by region and by function. The format is as follows:
    Created 3 RKF's in column structure where
    1RKF is KF "Employee Numbers" for characteristics restrictions of date range1, appraisal rating=1,2, employee status =active etc.
    2RKF is KF "Employee Numbers" for characteristics restrictions of date range1, appraisal rating=#, employee status =active etc.
    3RKF is KF "Employee Numbers" for characteristics restrictions of date range2, appraisal rating=1,2, employee status =active etc.
    1CKF is Boolean result of (1RKF OR (2RKF AND 3RKF)
    Was able to display correctly all top performing employees in the following format. When "Employee" was selected to row.
    Top Performer (CKF)
    Employee 1----
    1
    Employee 2----
    1
    Employee 3----
    1
    Employee 4----
    1
    Employee 5----
    1
    Employee 6----
    1
    Employee 7----
    1
    When tried to display the same by Region by Function or even by only Region (Row Char) it doesn’t work. Data is non-sensical.
    # of Top performers
    Region 1 -
    FunctionA----
    5
    Region 1 -
    FunctionB----
    2
    Region 1 -
    FunctionC----
    3
    Region 2 -
    FunctionA----
    4
    Region 2 -
    FunctionB----
    0
    Region 2 -
    FunctionC----
    7
    Region 2 -
    FunctionD----
    5
    Understand that the Boolean CKF is not working correctly. What am I doing wrong ? Please advice fix or alternates.
    Thanks.

    Hi Pradeep,
    not possible to use ranking since Appraisal rating is a characterstics not a key figure value. Any other suggestions..
    Thanks
    Arun

  • RRi for query using ABAP program

    For a report, we are using RRI (jump to target) functionality to see invoices in R/3 system using an ABAP program. I do not have much idea on R/3 systems how invoices are setup in R/3 Dev, test and prod. The ABAP report is done by a backend person. I need to place that in RSBBS. Here, my doubt is that do we need to follow the same procedure for this to move it to production system i.e, first create that RRI and ABAP in respective dev systems and transport both to test and then to Prod? Could anyone please explain me the steps on how this will work in real-time?
    Points will be assigned.
    Thanks

    Hi,
    I am not able to find how the two reports are conncted.
    You can check in RSBBS t-code. RRI will be defined here to jump from One Query yo another and many more options.
    My work is to copy the parent query a nd do some modification to it. Please let me know how to check and achieve that.
    You can do this BEx Query Designer itself.
    Regards,
    Suman

Maybe you are looking for

  • Sound distorted

    Every movie we play through our iMac (wired - Ethernet) to Apple TV plays about 1/2 way through then developes distortion in the sound. We have to turn the movie off for a few minutes before starting again. Any suggestions? Cheers Doug Thomson

  • DATE FORMAT in HANA table

    Hi I have Csv file in UTF-8 format have fields like data 2012/02/23, XXXXXX( all 2byte characters),........................................ When i import it says invalid number for 2012/02/23. I created table like this Create column table Schema1.tab

  • Migrating from CR2008 to CR2011 gotchas...(Help)

    So We have moved from CR2008 to CR2011 YAY!! We have an older .net app (32) That is displaying our reports when called. So I have ported all of the reports to the new web server where CR2011 resides. I've installed the Crystal runtime 13 so as to wor

  • Updating DB from beans with transactions

    Hello, I have a 4 step form to input data from a user. step1.jsp, step2.jsp, step3.jsp, step4.jsp, submit.jsp For every form, I am using a javabean (jsp:useBean) with session scope so that I can update all at the end. So in step2.jsp, I set the prope

  • I am just trying to save a picture I cropped, it seems simple but there is no way I can find to save the new cropped photo

    i am just trying to save a cropped photo in aperture, can someone help here?