How to find list of queries that the Cost Center infoobject is used in.

Hi
Is there any easy way of finding the list of queries that has cost center (0COSTCENTER) used in them? Please let me know.
Thanks for your help.

or try to create and run this program (SE38)
Where-used list of an attribute (either display or navigational)
REPORT ZZZ_IO_QUERY.
tables : RSZRANGE, "table
RSZELTXREF,
RSZELTTXT,
RSRREPDIR,
RSZSELECT,
RSZCOMPDIR.
data : begin of IT_RSZSELECT occurs 0,
iobjnm like RSZSELECT-iobjnm,
eltuid like RSZSELECT-eltuid,
end of IT_RSZSELECT,
begin of IT_RESULT occurs 0,
iobj like RSZSELECT-iobjnm,
iobjnm like RSZSELECT-iobjnm,
infocube like rszeltxref-infocube,
compid like rszcompdir-compid,
txtlg like rszelttxt-txtlg,
laytp like rszeltxref-laytp,
end of IT_RESULT.
data : iobj2 like RSZSELECT-iobjnm,
l_count type I.
select-options : IOBJ for RSZSELECT-IOBJNM.
write :/ 'Infoobject : ', IOBJ+3.
write at /20(30) 'Name'.
write at 50(15) 'Infocube'.
write at 65(30) 'Query Tech Name'.
write at 95(50) 'Description'.
loop at IOBJ.
l_count = 0.
concatenate '%' iobj-low into iobj2.
select iobjnm eltuid
from rszselect
into table it_RSZSELECT
where ( iobjnm in IOBJ or
iobjnm like IOBJ2 )
and objvers = 'A'.
loop at it_RSZSELECT.
it_result-iobj = iobj.
it_result-iobjnm = it_RSZSELECT-iobjnm.
select *
from rszeltxref
where teltuid = it_RSZSELECT-eltuid
and objvers = 'A'.
Query description
field txtlg
select *
from rszelttxt
where eltuid = rszeltxref-seltuid
and objvers = 'A'.
endselect.
Query technical name
field compid
select *
from rsrrepdir
where compuid = rszeltxref-seltuid
and objvers = 'A'.
endselect.
endselect.
it_result-infocube = rszeltxref-infocube.
if it_result-infocube = ''.
it_result-infocube = rsrrepdir-infocube.
endif.
it_result-compid = rsrrepdir-compid.
it_result-txtlg = rszelttxt-txtlg.
it_result-laytp = rszeltxref-laytp.
append it_result.
endloop.
sort it_result by infocube.
loop at it_result.
l_count = l_count + 1.
write at / l_count.
write at 20(30) it_result-iobjnm.
write at 50(15) it_result-infocube.
write at 65(30) it_result-compid.
write at 95(50) it_result-txtlg.
endloop.
endloop.

Similar Messages

  • Why can't I change the cost center in PA0001 using PA30?

    Hi Gurus,
    Please help.  I cannot seem to find the means to enter the cost center in the organizational assignment infotype PA0001.  It is showing as greyed out/display only. 
    As background, these personnel files were setup for time entry.  Other infotypes populated that might be impacting it are 0315.  We are not setup for organizational management within SAP.
    As I remember if I don't populate sender cost center/create infotype in 0315, I can change the cost center in PA0001 using PA30, but if I do I'm greyed out.
    Can anyone provide some insights and a possible fix for this?
    Thanks.

    Try turning it OFF by removing the X and saving it.
    Then check on PA30 if the cost center field is enabled for you to enter.
    If this doesn't work, please put the X back in the table and save it.

  • How to find list of Queries built on Multiprovider &steps to transport quer

    Dear Experts,
        I got a task to Check if any queries are built on a multiprovider and to change the filter condition on 0INFOPROV to restrict some more  Infoproviders in all the queries built on multiprovider .
    Request you to help me out how can i find list of queries created based on Multiprovider wise  and steps to be followed to restrict 0INFOPROV.
    And one more doubt is, what are steps to be followed to transport the queries.
    Thanks in advance for favorable assistance.
    Thanks & Regards,
    Ramesh - Kumar.

    Hi..
    Follow the steps below:
    1) Goto RSA1 -> Metadata Repository -> Select Multiprovider -> Find (Cntrl+F) give your object name -> Double click on search result object, this will give you detailed view of used that particular Objects.
    2) To restrict infoprovider within that Multiprovider for Query reullts, Double click on Multiprovider -> choose Change mode -> You'll be able to select/deslect the check boxes under the Infoprovider Tabs (Infocube, DSO, Info Objct, Infosets, Aggr levels) there you can check the infoproviders as per your requirements then selelct the display options with Display All Infoproviders (1st option) at down then continue and save the settings.
    Hope this helps you.
    Thanks,
    Ramanan.

  • How to find List of views that material type supports?

    Hello Gurus,
    How to find List of views ( Basic Data1, Basic Data2, Sales org1, sales org2, etc.. ) for material types.
    is there any table or something to find.
    Thanks & Regards
    Raj

    You can search the function module SELECTION_VIEWS_FIND in this forum. You will get the sample code.
    Apart from that if only you want to know what are all the views assigned to a material type and try to enhance it then it should be from SPRO.
    Go to transaction SPRO.
    chose Logistics - General>Material Master>Basic Settings>Material Types>Define Attributes of Material Types
    execute and you will get the list of material types.
    Now dbl click on the desired material type and you will get an area called as User departments. Here what are all the views are selected those views only appear while you are trying to create (or Change/Display) material master.
    Regards
    Shiba Prasad Dutta

  • How to find out by MDX that the current users is member of a role - Default member issue

    Hi,
    just imagine you have a dimension with a few members (A, B, C...). I defined a role which gives some users only rights to "B". On the other hand the default member for the dimension is set to "A". Now users part of the role get an error
    that the member "A" is not found. So while
    https://msdn.microsoft.com/en-us/library/ms175626.aspx says the default member setting in the role "overrides" the overall default member this is not completely true because first the general default member is selected and after that the role
    specific one.
    So the solution might be that I explicitly define the default member in all roles. This might be possible but there is one issue: you can't define a role specific default member for users part of the adminstrator role. So all admins don't have a default
    member which is quite some restriction for some users...
    So the question is how to solve that problem. An idea would be that I use some MDX to determine the default member in the dimension based on the actual user's role membership. But how to do that? Or any better idea?
    Thanks,
    Thomas Pagel

    Hi Thomas,
    According to your description, you want to have a role-specific default member for different roles. Right?
    In Analysis Services, when granting access to dimension, a connection will fail if a role restricts access to a default measure. As you mentioned, the best solution is specify a default member for each role. But for administrator role(full control),
    it can't set the default member. All tabs except General and Membership are disabled. And the system can determines the default member of current user automatically. It's not supported to get the default member in MDX either.
    However, SSAS has additive design for role security. So in this scenario, we just need to create another role for those members of administrator role and specify a default member for this role. SSAS will take that role-specific default member
    for these users. And it will not effect the administration permission for them.
    Reference:
    Default members, MDX Scripts, Security, KPIs and Perspectives
    The Additive Design of SSAS Role Security
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How to package different content so that the same license can be used for all content.

    1)      If packaging all the content at the same time, use the same instance of DRMParameters every time you call MediaEncrypter.encryptContent().  All content packaged using the exact same DRMParameters object will be associated with the same license.
    2)      If packaging content at different times, but want to have all the content associated with the same license, you need to use V2KeyParameters.setContentEncryptionKey().  The first time you package a piece of content, you would use ContentEncryptionKey.generate() to generate a new key/license ID.  To use the same key/license for later content, you need to store the info in ContentEncryptionKey, so you can pass in the same values later for the new content.

    To package content at different times using the same license, you need to implement the following:
    Call ContentEncryptionKey.generate to generate a new key and license ID.
    On your V2KeyParameters, call setContentEncryptionKey and pass in the object generated in step 1.
    Call MediaEncrypter.encryptContent and pass in the V2KeyParameters (via DRMParameters), as usual.
    Store the contents of ContentEncryptionKey, so the same values can be used again later.  The key, license ID, and packaging date should all be stored.
    When you want to package additional content using this license, lookup the stored key, license ID, and packaging date and pass these into the ContentEncryptionKey constructor to create a ContentEncryptionKey instance.
    On your V2KeyParameters, call setContentEncryptionKey and pass in the object generated in step 5.
    Call MediaEncrypter.encryptContent and pass in the V2KeyParameters (via DRMParameters), as usual.
    The media packaged in steps 3 and 7 should now be protected using the same license.

  • HOW TO find the cost center.

    Hello,
    Please let me know the Ttransaction Code how to find for a particular division wat cost center has been assigned.
    For example: how to find for BMHS divison wat cost center has been assigned.Please let me know the steps.
    Regards
    AM.

    check PP01
    give the object BHMS orgunit and find the relathionship A011  here select the overview
    or else
    go to PAR1 Tcode
    Give ur Orgunit and Cost Center u will get it
    Edited by: Sikindar on Feb 3, 2009 2:09 PM

  • How to get the cost center and division for a given FI vendor document...

    Hello Experts,
    I am currently developing a report wherein I have to show the cost center and division used in the given FI document.
    These documents are vendor related transactions.
    In the file that was given to me by the user, she indicated the cost centers used by the FI documents
    but when I view it via VA03 I cannot theere are no cost centers used in all the line items.So are there
    any FM, BAPIs and/or tables that I can use for my requirement?
    Hope you can help me guys. Thank you and take care!

    Hi
    I am not sure on the requirement. You are developing a FI report and accessing VA03 which is sales transaction. Anyway for getting cost center you can go to table VBAK,VBAP for line items.
    Hope solves ur problem
    Thiru

  • How to Book Activity Type to the Cost Center

    Hi Guys
    How should I put Activity type and a value to it in the cost center.
    In the Assessment Cycle I am getting the error as the reciever : Cost Center has Activity type assigned to it but there is no value in the Activity type.
    Can some one help me out on how the activity is initially linked to the Cost Center.
    and how will we put activity value in the cost center.
    Thanks in advance
    kranthi

    Hi,
    Use T.code KP26.
    Here enter the version as '0' & then enter the activity type, cost center & then click the overview icon in the top.
    A new screen will appear, here you can enter the fixed/vairable price.
    This activity type is to be assigned in the work center (T.code cr02), costing tab.
    Hope this helps, pl. reward.
    Regards,
    SDS

  • Preventing entry into the Cost Center field during PO creation

    I need to ensure that the Cost Center assigned in a PR (with Account Assignment) cannot be changed when creating a PO with reference to the PR. Can anyone tell me how to restrict the Cost Center field in the PO document type to 'display' only?
    Thanks
    Akin

    I think it can be acheived making the Cost center display in the paticular movement type  using program RM07CUFA  ( in Tcode SE38 )
    best regards
    assign points if useful

  • Change in the cost center group

    Hi,
    Can we change the cost center from one cost center group to another group, when there are some postings in the cost center? If yes, how to go about it?
    help me out

    Yes you can!
    If you are planning to change within the standard hierarchy, Goto OKEON, drag, drop and save.
    Or you can go to KS02 for the cost center, in the basic data, you can give the new cost center group under the hierarchy area.
    If it is just non hierarchy cost center group, then go to KSH2 enter the old group, select the cost center, delete save, then go to the new cost center group and include the cost center.
    It does not matter whether it has been posted or not. It is just a grouping. But caution must be exercised. and there shall be a valid justification for doing so. Because the cost center may be used in various cycles. So better to check where and all the cost center is being used and then do the change.

  • Archiving  & Deleting the Cost center line items

    My requirement is to delete the line items in the cost cneter as of today, but when i tried to archive & delete the Cost center line items using CO_item,i aam sucesfull in deleteing the past data, but the data of the last month and currenct month i was unable to ........
    when i tried in the spro>img>controlling>general ontrolling>archiving>prepare archiving for co line items
    i set the resident time to 0,but i was unable to delete the line items.what colud be the reason and what is the way to delete the currenct data also from the system.
    your earlier reply surely appreciated .......

    Hi Rajesh,
    I think SAP help says that the period for which you are planning to delete or archive data may have to be locked.
    Check the following links:
    For Archiving
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e55ec462a11d189000000e8323d3a/frameset.htm

  • How to find list of languages installed in the SAP system?

    Hi All,
    Please tell me, how to find list of languages installed in the SAP system?
    Thanks and Regards,
    Kumar.

    Hi Virgo Rhyme
    Hope the following info will be helpful
    3rd - SAP is the 3rd largest software company in the world
    30,000 - Total number of people employed by SAP
    5,400 - Number of programmers employed by SAP
    $7.024 billion - FY03 Revenue
    $1.077 million - FY03 Net Income
    12,000 - Number of companies using SAP
    79,800 - Number of SAP installations
    12,000,000 - Number of people using SAP
    120,000,000 - Total number of people in the 12,000 companies who are using SAP
    28 - Number of languages supported by SAP
    46 - Number of country-specific versions of SAP
    22 - Number of industry-specific versions of SAP
    1,000 - Number of pre-defined best practices contained in the SAP system
    10,000 - Number of tables requiring configuration in a full SAP implementation
    55,000 - Number of SAP experienced consultants worldwide
    28 - Number of years ago SAP was started
    Reward if helpful
    Regards
    Lakshman

  • How to find user exit implemented in the program

    how to find user exit implemented in the program or standerd transaction

    try this program to get the list of all the user exits for a transaction...
    *& Report  Z_USER_EXIT                                                 *
    *REPORT  Z_USER_EXIT                             .
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exists.
    *& Tables
      TABLES : tstc,     "SAP Transaction Codes
               tadir,    "Directory of Repository Objects
               modsapt,  "SAP Enhancements - Short Texts
               modact,   "Modifications
               trdir,    "System table TRDIR
               tfdir,    "Function Module
               enlfdir,  "Additional Attributes for Function Modules
               tstct.    "Transaction Code Texts
    *& Variables
      DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
      DATA : field1(30).
      DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
      SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
      SELECTION-SCREEN SKIP.
      PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
      SELECTION-SCREEN SKIP.
      SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
      START-OF-SELECTION.
    Validate Transaction Code
        SELECT SINGLE * FROM tstc
          WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
        IF sy-subrc EQ 0.
          SELECT SINGLE * FROM tadir
             WHERE pgmid    = 'R3TR'
               AND object   = 'PROG'
               AND obj_name = tstc-pgmna.
          MOVE : tadir-devclass TO v_devclass.
          IF sy-subrc NE 0.
            SELECT SINGLE * FROM trdir
               WHERE name = tstc-pgmna.
            IF trdir-subc EQ 'F'.
              SELECT SINGLE * FROM tfdir
                WHERE pname = tstc-pgmna.
              SELECT SINGLE * FROM enlfdir
                WHERE funcname = tfdir-funcname.
              SELECT SINGLE * FROM tadir
                WHERE pgmid    = 'R3TR'
                  AND object   = 'FUGR'
                  AND obj_name = enlfdir-area.
              MOVE : tadir-devclass TO v_devclass.
            ENDIF.
          ENDIF.
    Find SAP Modifactions
          SELECT * FROM tadir
            INTO TABLE jtab
            WHERE pgmid    = 'R3TR'
              AND object   = 'SMOD'
              AND devclass = v_devclass.
          SELECT SINGLE * FROM tstct
            WHERE sprsl EQ sy-langu
              AND tcode EQ p_tcode.
          FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
          WRITE:/(19) 'Transaction Code - ',
          20(20) p_tcode,
          45(50) tstct-ttext.
          SKIP.
          IF NOT jtab[] IS INITIAL.
            WRITE:/(95) sy-uline.
            FORMAT COLOR COL_HEADING INTENSIFIED ON.
            WRITE:/1 sy-vline,
            2 'Exit Name',
            21 sy-vline ,
            22 'Description',
            95 sy-vline.
            WRITE:/(95) sy-uline.
            LOOP AT jtab.
              SELECT SINGLE * FROM modsapt
              WHERE sprsl = sy-langu AND
              name = jtab-obj_name.
              FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
              WRITE:/1 sy-vline,
              2 jtab-obj_name HOTSPOT ON,
              21 sy-vline ,
              22 modsapt-modtext,
              95 sy-vline.
            ENDLOOP.
            WRITE:/(95) sy-uline.
            DESCRIBE TABLE jtab.
            SKIP.
            FORMAT COLOR COL_TOTAL INTENSIFIED ON.
            WRITE:/ 'No of Exits:' , sy-tfill.
          ELSE.
            FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
            WRITE:/(95) 'No User Exit exists'.
          ENDIF.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'Transaction Code Does Not Exist'.
        ENDIF.
    Take the user to SMOD for the Exit that was selected.
      AT LINE-SELECTION.
        GET CURSOR FIELD field1.
        CHECK field1(4) EQ 'JTAB'.
        SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
        CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • How to find the cost center group from cycle/ segment in CO module?

    Hi All,
    I need to fetch the list of cost centers in the cost center group against the cycle.
    Is there any table which will store the list of cost centers against the cycle?
    or else, what I was thinking is use of BAPI BAPI_COSTCENTERGROUP_GETDETAIL, which will give me the list of cost centers,
    but we need to pass the controlling area + cost center grp to fetch the cost centers from BAPI, I have controlling area with me but not the cost center grp name, only I have Cycle info lke cycle name, segment name, seq number. so how to find the cost center grp name from the cycle name?
    Regards,
    Mrunal

    FM: RK_AL_CYCLE_READ
    CHECK TABLE: T811K

Maybe you are looking for