MSS Selection Criteria: Organizational Unit selection excludes sub OUs

When a user selects an OU on the 'selection Criteria' iView, only members of that OU (and not any sub OUs) are included in the report. This is the opposite behavior to MDT, where all members of sub OUs are included.
Does anyone know of any configuration that can change this? Should I look at configuration of the Object and Data Provider?

Please check steps as mentioned here
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
check tje note 1431691
When the report is launched from
the portal, the program is reading the table:T77eo for the object
type-'O' , since there are no entries for the object 'O' in the table,
the switch INREL is not set, therefore the structure pchobjid is not
filled while calling the report as shown below. Now I know the
rootcause, but I don;t know the reason behind the table: T77EO not
having entries for object "O".
==============================================================
    SUBMIT (fcode_rec-progname)
    USING SELECTION-SET fcode_rec-variant
    AND RETURN
                   WITH pchplvar EQ act_plvar
                   WITH pchotype EQ act_otype
                   WITH pchobjid IN pchobjid
                   WITH pchsobid IN pchsobid
                   WITH pchobeg  EQ act_begda
                   WITH pchoend  EQ act_endda
                   WITH pchbegda EQ act_begda
                   WITH pchendda EQ act_endda.
try to use PNP database for seleciton only these paramters are passed to backend!

Similar Messages

  • Get active employees of organization unit and its sub organization unit

    Hi,
    I have OU in selection screen. If I give 50000000 in the selection screen and my list displays all the active employees under that organization unit.
    but under 50000000 OU,it contains some other OU like 500000010 nd so on.. (ie,sub OU). now i want to display the active emplyees of these sub OU also...
    give me any function module to get this???
    thanks n advance

    Eg:
    ACT_OTYPE        -
                   O
    ACT_OBJID         -
                  00100000
    ACT_WEGID          -
                 O-O-S-P
    ACT_INT_FLAG
    ACT_PLVAR            -
               DA
    ACT_BEGDA             -
              02.06.2009
    ACT_ENDDA           -
                02.06.2009
    ACT_TDEPTH                          0
    ACT_TFLAG       -
                    X
    ACT_VFLAG        -
                   X
    AUTHORITY_CHECK        -
             X
    TEXT_BUFFER_FILL
    BUFFER_MODE
    F8 - execute
    check for the result in
    RESULT_TAB
    u can check the level in RESULT_STRUC

  • Select criteria without using SELECTION SCREENs

    Hi everybody,
    I have a report with a single screen, 4 fields for search criteria and 2 alv grids for the output.
    I search db tables with a select statement.
    Is it possible to define a select statement that searches for 3 out of 4 criteria, if the fourth input field isn't filled it?
    Because right now the select statement doesn't return any data if I leave one parameter blank.
    And how can I provide the possibility to define more than one search criteria of one kind withour adding several input fields on the screen?
    For example: Data created on 20070101 and 20070105.
    I know that most of this can be done with selection screens, but is there a possibility to do this without a selection screen?
    Best regards
    Tobias

    You should use SELECT-OPTIONS on your selection screen.  This allows the user to enter all kinds of possiblities, including leaving something blank.  Then in your SELECT statement, you use the IN operator.
    select-options: s_datum for sy-datum.
    select * into table itab
               from ztable
                      where datum IN s_datum.
    If you truly do not want to use a Selection-screen, you could hard code values in the SELECT statement or create a range using the RANGE statement.  The RANGE statement works exactly like SELECT-OPTION statement but without the selection-screen.
    Regards,
    Rich Heilman

  • MSS ECM new column in Organization unit Tree structure

    Hi All
    Requirement is to add aditional column in in Selection Screen of ECM, when user selects dropdown value "Employee Selection by Organization Unit".
    Currently i get only Tree Structure of org unit.  Need to add Custom (or columns if provided by SAP ) in Org unit level.
    Thanks in advance.
    Regards,
    Chinmaya

    Employee search this is possible but not in Team  calendar
    In MSS 1.0 under employee information we have three pages:General
    Information, Compensation Information and Personnel Development .
    All these pages have different employee search iview.
    Basically employee search iview(properties) is responsible for display
    of Organization Hierarchy as table or tree.
    In employee search iview we have iview property "Organizational struct-
    ure with list display in navigation area" Sap.xss.tmv.navlistorgviews.
    This property enables you to define the navigation objects for an
    organizational structure view are to be displayed in a
    table as opposed to a tree hierarchy. In the standard system, navigation
    objects are displayed in a tree structure.
    You can enter the following organizational structure views:
    - Organizational structure views with a navigation area that belong to
    the organizational structure view group you defined with the property
    sap.xss.tmv.orgviewgroup. (Group of Organizational structure views)
    - Organizational structure view you define with the property sap.xss.tmv
    .orgview(Individual organizational structure view) provided it has
    navigation area.
    For e.g.,
    Let say, you would like to display maintain position requirements,
    navigation objects as table.
    Let say in backend you had defined following Organization structure
    views:
    MSS_TMV_EE_ORG1#Employees from Organizational Units
    MSS_TMV_EE_ORG2#Employees from Organizational Structure
    From Content administration ->Portal content ->#. Choose
    Employee Search iview (for compensation information).
    Now in the iview property "Organizational structure views with list
    display in navigation area"  maintain MSS_TMV_EE_ORG1,MSS_TMV_EE_ORG2
    Now for all cases you will get navigation objects as table display.

  • SUBMIT rkaep000 with "Further Selection Criteria"

    Hi all,
    Could anyone please tell me how to call the transaction KSB1 with it's "Further Selection Criteria" (i.e. Document Number). I have tried the following but it didn't work.
    SUBMIT rkaep000
      WITH p_tcode = 'KSB1'
      WITH kostl = '7062'
      WITH r_belnr BETWEEN '101727316' AND '101727316'
      WITH r_budat BETWEEN '20070101' AND '20070131'
      AND RETURN.
    Many thanks!
    Steve.

    try using submit rkaep000 with with selection-table t_Screen_tab.
    t_screen_tab is a table of type rsparams.
    rsparams is a structure with following field.
    SELNAME
    KIND
    SIGN
    OPTION
    LOW
    HIGH
    fill with an entry for each screen selection object.
    eg.
    t_screen_Tab-selname = 'R_BELNR'.
    t_Screen_tab-kind = 'S'. "S for select option, P for parameter
    t_Screen_tab-sign = 'I'. "I include E exclude
    t_screen_tab-option = 'BT'. "between, EQ or NE
    t_Screen_Tab-low = '101727316'.
    t_screen_tab-high = '101727316'.
    append t_screen_Tab.
    repeat for all selection entries required.
    Here is the abap help on topic
    Addition 3
    ... WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Note
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.

  • Displaying selection criteria in ALV report output

    Hello,
    I’ve been using REUSE_ALV_GRID_DISPLAY function module to display my report content in ALV.
    My report’s selection criteria has parameters, select options, checkboxes and radio buttons.  As part of the ALV output, I want to display the criteria that the user had selected in the selection screen.  I was hoping to do that via parameter "i_callback_top_of_page" and fill the selection criteria in the header area.  I'm using REUSE_ALV_COMMENTARY_WRITE to fill the header area. 
    However, the header area takes too much of view space in the output if I put all the selection screen information in it.
    Is there a way to make the header area scrollable?  What is a good way of displaying the selection criteria information as part of the report output?
    Appreciate your help.
    ss

    Hi SS,
    1. The purpose of displaying / writring
       selection information
       in alv is
       for identifying what the user has seleccted,
       directly from the report (when its printed)
    2. So, the option of priting/writing
       it on the TOP of alv, is ok.
    3. However, U can also choose to WRITE
      it at the BOTTOM (instead of top)
    4. Try to utilise maximum spacing (horizontally)
       field1 : abcd      fidl2 = xyz  field3 = ppp
       field4 : mnc       etc.         etc.
    regards,
    amit m.

  • How  to add field( VBAK-SUBMI) as a Selection Criteria - VL10

    Hi friends,
    Could u please help in sort out the below issues,
    1. Add field VBAK-SUBMI as a Selection Criteria to the Selection Screen for the VL10 - Program V50RINCL, user exit V50R_SELECT_OPTION_ADD
    2.Transfer the VBAK-SUBMI field to the report created during the VL10 transaction. – Program V50RINCL, user exit V50R_USEREXIT_TRANSF.
    I am bit new to enahancements, please provide some information to achieve the above objects.
    Poits will be rewarded.
    Thanks.
    Regards. VKRAO.

    Hi,
    <b>Plz find the explanation abt user-exit below</b>
    User exits :
    1. Introduction
    2. How to find user exits
    3. Using Project management of SAP Enhancements
    1. Introduction:
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak = vbak
    xvbuk = vbuk
    xkomk = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003
    2. How to find user exits?
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document.
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder.
    Note that Sold-to-party now automatically is "2155"
    <b>
    Reward points if it solves ur query or answer is helpful</b>
    Thanks
    Chinmay

  • Problem in selection criteria

    Hi folks,
      In my report i have five selections screen feilds.for each selection i have different selection criteria.for each selection -criteria i have to  write seprate code.if i select first feild i want that selection criteria only.if i select second one i want that particular selection only.how can i achieve this.for this iam trying to write in seprate form for each selection but iam getting the first selection data only for all the selections.
    please do needful.
    Thx in advance,
    Neelima.N

    Hi Neelima,
    If you have to select the data from same table with different conditions for different selection fields, you can build dynamic query depending upon slection criteria. It should solve your problem.
    You populate internal table and pass it in the where clause.
    data :begin of  querytab occurs 0 with header line,
                query(1028) type c,
             end of querytab.
    ***Popultae querytab.
    IF not p_1 is initial.
    *populate querytab
    elseif not p_2 is initial.
    *populate querytab
    elseif not p_3 is initial.
    *populate querytab
    elseif not p_4 is initial.
    *populate querytab
    elseif not p_5 is initial.
    *populate querytab
    endif.
    select *
    from dbtab
    where ( querytab )
    Regards,
    Anil.

  • Query Selection Criteria

    Hi Gurus,
    In the cube we have Valid from and Valid To date. in the Selection Criteria user needs to select Period (mm/yyyy) valid from and validto i e Start date and End date. If I am using intrvel in Valid from variable definition i .e selection criteria we are selecting the valid from start date and end date. We need to select valid from Start date and Valid to End date. how will we do this in the query.
    proper response will be rewarded with points.
    Thanks
    RK

    Hi,
    Create a variable and select the options as per your requirement wheather single value or multiple single values or interval range etc on the infoobject in the query which you want to see.
    Cheers,
    Malli.........

  • VL01N - add custom selection criteria

    Hi all,
    we have implemented custom batch search strategies with additional Z-tables.
    Is it possible to write custom selection criteria to the "selection criteria" in a delivery in order to have a monitoring on used restrictions?
    Any userexists/BADIS available?
    regards

    hi,
    this is to inform you that,
    In vl01n you can have it in batch selection criteria.
    please say toyour ABAPER to have a push button and assign your selection criteria.
    but this will become major development.
    Business Add-in:
    VB_BD_SELECTION : Preselection of Batches Within Batch Determination
    VB_GET_EXT_BATCHES : Access to Customer-Specific Batch Usage Data
    VB_GET_POS_PLANT : Enhancement of Automatic Site Determination in transn MB56
    VB_SLED_MANAGEMENT :Control of Shelf Life Expiration Date Processing
    BATCH_MASTER :Enhancements for Batch Master Transactions
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 15, 2010 5:23 PM

  • Can we change parameter descriptions in Selection Criteria. YES we can!

    Dear All,
    I have been struggling some time on some way to change the parameter descriptions in the Query - Selection Criteria screen.
    While doing numerous tests on trial-and-error, I accidentally hit upon a solution which appears to work!
    To change a parameter description, we simply have to reverse the order in which the WHERE clause is written.
    Please refer to the Query below:
    I used Customization Tools to create a UDT called @SCANNING
    and a UDF called U_ourref
              Title   : ourref
              Description : Our Reference
    If I use WHERE clause the conventional way, ie
    WHERE
    T1.[ImportLog] = @ourref
    I get the following Selection Criteria screen:
    Query - Selection Criteria Screen
    Import Log         .........................
    [OK]   [Cancel]
    If I write WHERE clause by interchanging the 2 sides of the equality, i.e
    WHERE
    @ourref = T1.[ImportLog]
    I get this screen:
    Query - Selection Criteria Screen
    Our Reference         .........................
    [OK]   [Cancel]
    Well! Is this not a way of changing the parameter description?
    And it works!
    My Problem
    The solution is nice. However, I wanted to use LIKE instead of EQUAL TO
    in order to allow Query to search for similar items.
    With the conventional clause, I can use '%[%1]%' in declaration and LIKE in the WHERE clause.
    With the reverse clause, I cannot figure out how to do it.
    Could anybody help?
    Thanks
    Leon Lai
    declare @ourref nvarchar (30)
    set @ourref =
    /*select T2.U_ourref FROM [dbo].[@SCANNING] T2 where T2.U_ourref*/ '[%1]'
    SELECT
    T0.[TaxDate] AS 'Doc Dt',
    T0.[DocNum] AS 'SAP Ref.',
    T0.[CardName]  AS 'Supplier Name',
    T0.[DocTotal]  AS 'Amount',
    T1.[ImportLog] AS 'Our Ref',
    T1.[BlockNum]  AS 'Reqn No.'
    FROM [dbo].[OPCH] T0
    INNER JOIN [dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN [dbo].[OJDT] T2 ON T0.[TransID] = T2.[TransID]
    WHERE
    @ourref = T1.[ImportLog]

    Dear István Korös  ,
    My main concern was modifying the Parameter Description in the Selection Criteria Screen.
    I certainly tried your suggestion, and it works, but unless I modified the WHERE Clause
    from :
    T1.[ImportLog].@ourref
    to:
    @ourref = T1.[ImportLog]
    the Selection Criteria screen shows:
    Query - Selection Criteria Screen
    Import Log         .........................
    [OK]   [Cancel]
    It is only after I have 'primed' the system by using:
    WHERE
    @ourref = T1.[ImportLog]
    that the Parameter Description changes to:
    Query - Selection Criteria Screen
    Our Reference         .........................
    [OK]   [Cancel]
    I can then use your line:
    WHERE T1.[ImportLog] like '%'@ourref'%'
    without any problem. The amended Parameter Description remains!
    I noticed something strange:
    Once I have 'primed' the system, it always shows the amended description on the Selection screen!
    Before priming, it always showed the system description.
    Don't know why?
    Anyway, I found a trick to 'prime' the system in all my queries to make sure the amended name appears
    on the Selection screen. I write:
    WHERE
    (@ourref    = T1.[ImportLog] OR
    T1.[ImportLog] like '%'@ourref'%')
    The first line is just for priming to ensure the Parameter Name will be changed.
    The 2nd line is the correct code to use.
    With this trick, we can change the Parameter Descriptions to whatever name we want.
    The only problem is that you lose the function List of available values.
    Thanks a lot,
    Leon Lai

  • Display user using complex selection criteria

    How to display user using complex selection criteria, I want to display user list with company code assigned to them?

    In t.code SUIM
    Select Users by complex selection criteria in that selection of values in authorization object give F_BKPF_BUK enter and then specify the company code & execute.
    It will give list of roles having company code. Highlight each role and click on user assignment.
    hope this helps

  • ADMT 3.2 Migrate users to the same organizational unit in the Target Domain as they are in the Source Domain?

    Hi,
    I am in the middle of a inter forest migration and have created the target domain (TargetDomain.local) 2008R2 and Source Domain (SourceDomain.Local) 2008R2 with a two way trust. I have installed ADMT 3.2 on a server in the Target Domain. I am able to migrate
    users form the source domain to the target domain. I have copied the OU Structure from the source domain to the target domain. The issue I am currently facing is that I would like to find a way to migrate all users from the source domain to the target domain
    and the users migrate to the same OU as the source. I have looked at the include file option but cannot find a way of specifying the source and target OU's.
    Please could someone help me with this, Thanks.

    Hi,
    You need to create the same OU on target domain, then do the user account migration.
    On Organizational Unit Selection page, select Browse and select target OU, then click OK.
    For the more and detail information, please refer to this article:
    http://social.technet.microsoft.com/wiki/contents/articles/16621.interforest-migration-with-admt-3-2-part-3.aspx#Group_Account_Migration
    Regards.
    Vivian Wang

  • CRMD_BUS2000108 - organizational unit and attributes for org. unit

    Hi all!
    As I'm customizing Lead creation (and in a second step lead generation)
    I would like to receive tips about "selection of organizational unit and attributes for org. unit".
    I expected that, by entering a BP number of a prospect or sold-to party, the organizational unit and its attributes would be displayed automatically on the tab "organization".
    This is not the case. When I start the lead creation, there is a pop-up screen inviting me to choose the organizational unit. afterwards a pop-up screen for the attributes of the org unit. Only after setting a flag in both pop-ups, I see the actual "lead" transaction. When I enter a BP number, the sales assistant and sales rep are found automatically.
    Could anybody please explain how to change the customizing?
    I would like to see the lead transaction (create) first, enter a bp number and than have the org unit and its attributes, the sales rep and sales assistant found automatically.
    Any usefull answer (would make my day ), will be rewarded.
    Thank you very much for your suggestions and time in advance!
    I. Van Acker

    hi
    this is happening because you have not done the org data determination in your transaction,just go to SPRO and there in org data determination ,you have many standard ORGMAN rules available which you can use which will pick the data according to the user ,BPs etc.
    it will enable you to first give BP and then the org data will be driven automatically from the system according to the rule in org data determination.
    so first go and use rule ,try using rule ORGMAN_12
    then attach this rule to the org data profile and then add this org data profile to the transaction in basic settings in transaction where you have defined your lead transaction.
    it will solve your purpose
    best regards
    ashish

  • CLM Company-Organization Unit in Master Agreement

    Hi guys
    In a CLM Master Agreement, after I select a company, I am able to select any organizational unit, even if it does not belong to that company. The system does not issue any error message. Is it standard behavior?
    Shouldnt the system validate that only the organizational units which are belonging to a particular company be displayed?
    Thanks and regards
    Ajay

    Hi,
    It looks it is standard behaviour.
    We have put in script to validate and added a query to query group so that user can search ORG UNIT by company code.
    //........................Gets company code
    getChildFieldByFieldId(parentFieldId,childFieldId){
            value=doc.getExtensionField(parentFieldId).get();
         if(hasValue(value)){
              parenthome=IBeanHomeLocator.lookup(session,value);
              parentbean=parenthome.find(value);
              childField=parentbean.getExtensionField(childFieldId).get();
              return childField;
         return null;
    validateCompanyCodes(parentfieldId,childFieldId){
            flag=false;
         maCompanyCode=doc.getExtensionField("SAPCCODE").get();
            companyCode=getChildFieldByFieldId(parentfieldId,childFieldId);
         if(companyCode==null @or !hasValue(maCompanyCode)){
              flag=false;
         }else if(maCompanyCode.equals(companyCode)){
              flag=true;
         return flag;
    purchasingOrgCompanyCodeMatch=validateCompanyCodes("SAPPORG","sapccode");

Maybe you are looking for

  • How to hotspot with WRT54G

    i cant get internet here right now so i had to get a u600 wireless prepaid broadband from virgin mobile. it is a wireless adapter usb that u plug in and get internet.  can i make a hotspot with it and my linksys router?? i have the asus m597a motherb

  • AT-MIO-16E-10 must work with Win XP computer w/o ISA slot using LV 7

    DAQ cards were working in old computers in ISA slots under Win NT 4 /SP 5/ LabVIEW 5.1. Now we need to make them work with new computers w/o ISA slots, Win XP Prof /SP 1 /LabVIEW 7. How to reinstall old cards? And s/w? Is any box to put AT-MIO-16E-10

  • Questions on creating a table.

    Hello, I would like to ask you guys on how do i create a table after getting the user to input 2 values. Example : Enter the table size : 3 3 and the program will create a table of column of 3 and row of 3. I'm current stuck at getting the the progra

  • Tasklist.exe does not list all Modules in Windows 7 64-bit

    tasklist.exe does not list all Modules in Windows 7 64-bit. If I want to look at the DLLs loaded by Excel, I would type:   tasklist /M /fi "imagename eq excel.exe" When I run this in XP or 32-bit Win7, it works fine, showing all the dlls loaded by ex

  • For Relaod Software:552 in BB8520 Curve

    Hi Everyone,    Can some one guide me how to tackle this situation? On my BB 8520 device it is displaying Reload software:552. I am unable to use Blackberry Desktop Manager also. Please help!!!!!!!!!!!!!