View of organizational unit in Service request

Hi everyone,
In our service request, we are trying to visualise all the organizational unit (of the organization model) of a BP.
We achieve to see the direct service group where the BP is assigned but we are trying to see more of the link to the organizational model.
For example : our organizational model looks like this:
For user AJAUSSAUD1, I can see the direct link to PSE Equiment in my service request (this is determined in the partner schema determination)
However, we would like to be able to see MC1 (here 3 level above) in the service request.
We are using service organization as function and all the organizational unit are determined as service organization as we are using it to authorizations access.
Does anyone know if there is a way to see the link with all the organizational unit of a user in a service request?
Would it be with the attribute available in the ppoma-crm, but how to add the field and make them available in the service request view?
Thank you,
Regards,
Anaïs

Hello Anais,
As far as I know, there is no standard way to view an organizational hierarchy in a service request. You will need to do some developments. There are two options -
1. If you want the 3 org levels to be stored in data base table for future reference and reporting
You can add 3 fields in ORGMAN sub object using AET. This will add the fields to table CRMD_ORGMAN. After org determination has happened in your service request, you can use BAdi - CRM_ORGMAN_BADI, methd - CRM_ORGMAN_MERGE to fill values of these 3 org levels. You have to recursively use functions or query table HRP1001 to get the parent of determined service org and then its parent and so on.
Remember once these 3 fields are added at database level, they are available for all transaction types of one order. These fields can be made available to BW queues also at time of adding them.
2. If you do not want the 3 org levels to be stored in data base table
This would mean you only want these fields for display to end user.
Add 3 model nodes in the web ui component. In the getter method of 1st field, add select query or call function to get parent of determined service org. Similarly for other 2 fields.
Hope this will help. Maybe you also get some different suggestion from other guys.
Regards,
Niraj

Similar Messages

  • Controlling of organizational units in approp request with position id data

    Dear Experts,
    I am using Investment Management for PS.
    I have created Investment management program and position ids, in Position ID master data, I ahve mentioned the Co area, Company Code, Plant and Business Area.
    Then creating an Appropriation request using IMA11 code, in control data tab, I mention the Investment program with position ID and Organizational data tab, I am mentioning the requesting cost center and Plant, system automatically populates the other fields in that tab.
    Here I want to have a check of the plant and business area of the appropriation request with that of the Investment Program position ID.
    Say the plant in position id is 1000, and plant in appropriation request is  1100, system allows to save the appropriation request.
    I want to stop it. Also, can system check the budget of the position id while saving the appropriation request, currently system doesnt check the budget also, while saving the approp request.
    I have searched for user exits and BADIs, but could not find out the appropriate one.
    Can some one help me out in solving this issue.
    Regards
    Praveen

    Hi Ahmed,
    Thanks for your reply.
    Have you ever worked with this BADI??
    I have gone through the documentation of the BADI and it seems to be okay.
    I need to check with my ABAPer as well.
    I'll get back on this once I implement the same.
    Regards,
    Praveen

  • Organizationnal unit and Service organization not recognized

    Dear experts,
    When trying to create a service request in our Web_UI, the following error message is popping up: "Enter a service organization" and "Enter an organizationnal unit (Service).
    This error is not happening with a SAP_ALL profile, which, to me, means there is no problem with the ppoma_crm customizing, but rather a missing authorisation object in our roles.
    But the ST01 authorisation trace is not showing any red line, so I can't tell which authorisation is missing.
    Please feel free to ask me for more context if you think an information is missing in my post.
    Thanks in advance for your help.

    Hello Flavien,
    could the issue related to the Solutionmanager area ?
    If Yes, try to add the authorization object PLOG to the relevant business role.
    From my past experience, due to missing the following authorization
    authorization ojbect PLOG
    PPFCODE   DISP
    PLVAR     01
    OTYPE     O
    INFOTYP   1222
    SUBTYP    0030
    Best Regards
    Gerhard

  • How to create a view for all Service Requests that are not approved by reviewer

    Hallo,
    I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
    I couldn't find this when creating the view. Thank you.

    So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not? 
    As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar: 
    <QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
    <Criteria>
    <FreeformCriteria>
    <Freeform>
    <Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
    <Expression>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    </And>
    </Expression>
    </Criteria>
    </Freeform>
    </FreeformCriteria>
    </Criteria>
    </QueryCriteria>
    This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
    Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
    for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$). 
    You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
    Anton's Advanced View Editor (or
    the free version) to do the criteria adjustment. 

  • How can I view previous soft-closed service requests on Metalink?

    Hi,
    I'm trying to find a previous service request that I lodged on Metalink that has been closed normally (soft-closed), however all I can find are currently open ones, and hard-closed ones (if I tick a box). How can I use Metalink to view these previous service requests?
    Thanks
    Adam

    I believe they automatically get hard-closed after a period of time (default 14 days unless you ask for more)? How old are the soft-closed ones? See metalink note: 166650.1 Working Effectively With Support

  • Group and Owner fields blank when viewing Service Request results via UWQ

    When looking at a row that represents a service request in either the UWQ or View Service Requests (search form) the group and owner columns are blank only for some of my users.
    If you look at the detail for the SR, there is a owner and group.
    Not sure what the issue is..? Inherited this role.
    -JP

    Which release is this occuring? At the first glance it looks like an issue that cropped up in 11.5.3. and has been fixed since.

  • Create a view - Service Requests and Incidents

    Hi all,
    I have a Service Manager 2012 environment that has gone through an in-place upgrade from SCSM 2010.
    In the SCSM 2010 environment, Service Requests were implemented by extending the Incident class with an attribute that would denote whether the work item was an Incident or a Service Request.
    In SCSM 2012 I would like to create a view that would combine the SCSM 2010 "Service Requests" with SCSM 2012 Service Requests.
    Is it possible to create a Type Projection that performs the job of an SQL UNION statement?  If I was doing this in SQL, I'd be writing a query similar to the following:
    Select *
    From ServiceRequestDim
    Union Select *
    From IncidentDim
    Where ServiceRequestType = 'Service Request'
    (Obviously, some mapping of attributes between the two class types would be needed...and perhaps that's the reason why a type projection of this sort would not be possible...)
    An alternate approach - attack this from the Work Item class.  It's trivial to create a view that contains Service Requests and Incidents - just set your criteria to be: ID begins with 'SR' or ID begins with 'IR'.  Unfortunately, that criteria
    returns all Incidents, and I only want the Incidents that have the attribute ServiceRequestType = 'Service Request'.  Is it possible to create a Type Projection starting with the Work Item type that employs criteria from child classes?

    Work Item is an abstract class, and can't be extended for implementation reasons. 
    i think Anders has understated the difficulty of combining these views: this is a bit like saying "show me all the orange things, given this bucket of cats and this bucket of fruit" yes, they are both "orange", but fur is not the same
    as fruit rind; they're not the same "orange".
    the 2010 Service Request implementation was never intended to be a serious use case (i assume you're talking about the SCSM Service Request demo implementation on codeplex), it was intended
    to be a demo of what you could do with the form and object interfaces. 
    The solution here should be simple, convince your client that their solution has been replaced by a newer, better version, Resolve Close and then deprecate these requests, and start reporting only the new type requests. these are history, and dirty data,
    and should be ignored. 

  • Could not execute view config service request. This usually happens when an invalid view config service request is made, or when a read only Oracle Endeca Server receives a view config service request. Error message: Error applying updates: Unsupported la

    Hi,
    I have some data loaded into the data-domain in Endeca 3.0. When I was creating views in studio I repeatedly get this message when I say save view:
    Could not execute view config service request. This usually happens when an invalid view config service request is made, or when a read only Oracle Endeca Server receives a view config service request. Error message: Error applying updates: Unsupported language ${DEFAULT_LANGUAGE}
    In the workspace.prm file I have set ${DEFAULT_LANGUAGE}=en
    May I know why this happening and a remedy for it. Appreciate you help.

    Hi,
    I have some data loaded into the data-domain in Endeca 3.0. When I was creating views in studio I repeatedly get this message when I say save view:
    Could not execute view config service request. This usually happens when an invalid view config service request is made, or when a read only Oracle Endeca Server receives a view config service request. Error message: Error applying updates: Unsupported language ${DEFAULT_LANGUAGE}
    In the workspace.prm file I have set ${DEFAULT_LANGUAGE}=en
    May I know why this happening and a remedy for it. Appreciate you help.

  • ICSS - Sales Unit Determination in Service Request

    Hi Experts,
    I want to know how the Sales Unit determination takes place in Service Request creation through ICSS, say if there are multiple Sales Units (Sales Org, Dist Chnl, Div) combinations present for a BP will ICSS also popup a windows asking for the desired combination as CRM Online or not? If there is no pop-up then which Sales Unit combination would ICSS pick?
    Hope you got my question.
    Many Thanks in Advance.
    SP

    Hi...
    Apologies for the delayed response. In ICSS, the first set of the determined Sales Unit is considered & is taken as a part of the Transaction.
    Hope that helps.
    Thnx,
    SP

  • Create a view - All Service Requests that contain a Completed Review Activity

    In the Service Manager 2012 console, is it possible to create a view that displays Service Requests, with the view criteria being something like as follows:
    Service Request status is In Progress
    Service Request contains a Review Activity where the Review Activity status is In Progress
    My intent is to provide a way for Service Desk Operators to be able to identify requests that are ready for implementation.
    From what I'm seeing in the console, this sort of view is not possible as it appears that any view criteria must be derived from the view's target class.

    Nothing like a bit of thread necromancy in the morning.
    It turns out the solution to this question was quite straight forward (once you know where to look...)
    The trick is creating a view based on one of the Service Request combination classes rather than the basic class itself, and then rephrasing my requirement after realising that what I was really after was a view containing Requests that have an In Progress
    Manual Activity.
    So...open the console, go to Work Items, right click on
    Service Request Fulfillment and select Create View
    On the General tab, give your view a name and select a Management in which it will be stored.
    On the Criteria tab, click Browse to select a specific object class.  Change the
    Frequently used basic classes filter to Combination classes then enter 'Service Request' in the filter field.
    Pick the Service Request and Activity class.
    Now when configuring the criteria, you'll notice a little arrow next to the
    Service Request class. Click on this arrow to expand the node, and select the
    Contains Activity class.
    Under the Available properties box, enter 'Status' in the search field. In my environment, I got two Status fields. Each corresponds to a specific Activity class. Select both of them and click
    Add.
    One of the Criteria will look like 'Contains Activity[Activity]Status'. Keep this one and delete the other from the Criteria box. Change the value to 'Completed'
    While we're at it, select the Service Request class and add a criteria for the Service Request Status = 'In Progress'.
    Click on the Display tab and select whatever fields you want to display in this view.  Click
    OK to save this view.
    Now go to the Administration workspace and select the
    Management Packs node. Export your management pack that contains your view and open the management pack in a text file viewer. Notepad++ works for me...
    First search for the string that you used to name your view. It will be found towards the bottom of the MP in a DisplayString element in the LanguagePacks XML element. This element will have an ElementID.
    Select the ElementID and search the entire file for this string. You want the instance that resides within a Presentation | Views | View element. From this point, scroll down until you get to a Criteria element. Within the Criteria element you will find
    the two Expressions that were entered via the GUI. One of the Expressions corresponds to the Service Request.Status=In Progress criteria, the other corresponds to the Activity.Status=In Progress criteria. We will be changing the Activity criteria so that it
    explicitly refers to a Manual Activity.
    Identify the Expression that has the Property containing the string 'System.WorkItemContainsActivity'. We will be changing the TypeConstraint attribute of this criteria.
    In this line, Replace the string 'System.WorkItem.Activity' with 'System.WorkItem.Activity.ManualActivity'
    Save this file and import the management pack into SCSM

  • Hierarchical + Analytical query for organizational unit parameters

    Hello gurus,
    I try for a couples of hour ago to make a query work as I would like.
    Our application need to store some parameters for our organization units. These organization units are typically organized in in an hierarchy manner: one top unit with many level of child units. The parameters are stored into another table with 1:1 relationship.
    For sake of visualisation, here is the data for the organization unit and parameter table in a more visual format:
    SQL> select * from organization_unit;
    UNIT_CODE  UNIT_NAME            PARENT_UNIT_CODE
    00000      Top level
    10         L2 unit #10          00000
    10-01      L3 unit #10-01       10
    10-02      L3 unit #10-02       10
    20         L2 unit #20          00000
    20-01      L3 unit #20-01       20
    20-02      L3 unit #20-02       20
    SQL>  select * from org_unit_parameters;
    UNIT_CODE  PARAM1               PARAM2               PARAM3               PARAM4
    00000      Default value        Default value        Default value        {null}
    10         {null}               Value from 10        Value from 10        {null}
    10-01      {null}               {null}               Value from 10-01     {null}
    10-02      {null}               {null}               {null}               Value from 10-02
    20         Value from 20        Value from 20        Value from 20        {null}
    20-01      {null}               Value from 20-01     {null}               {null}
    20-02      {null}               Value from 20-02     {null}               {null}The application will query the parameter table to get a parameter value for a given unit.
    The parameter resolution algorithm is rather simple: when querying a unit, the applicable parameter is the one defined at the requested level. If the parameter is not defined (null) at the requested level, the parameter value that must be returned is the next defined one in the parent hierarchy. In some rare cases, it can be null if a parameter is not defined anywhere from the requested level to top.
    I've made a query that seems to work when querying for one unit at a time. It use hierarchical operators (start with + connect by) with a bit of analytical functions. Here is a test & raw output example:
    SQL> WITH hierarchy
      2  AS
      3  (
      4    SELECT ou.unit_code,
      5         LEVEL            AS lvl
      6    FROM   organization_unit ou
      7    START WITH
      8      ou.unit_code = '20-01'
      9    CONNECT BY
    10      ou.unit_code = PRIOR ou.parent_unit_code
    11  )
    12  SELECT h.*,
    13       p.param1                                                        AS param1_raw,
    14       LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1_with_last,
    15       FIRST_VALUE(p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param1_with_first,
    16       p.param2                                                        AS param2_raw,
    17       LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2_with_last,
    18       FIRST_VALUE(p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param2_with_first,
    19       p.param3                                                        AS param3_raw,
    20       LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3_with_last,
    21       FIRST_VALUE(p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param3_with_first,
    22       p.param4                                                        AS param4_raw,
    23       LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4_with_last,
    24       FIRST_VALUE(p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param4_with_first
    25  FROM   hierarchy                                h
    26         LEFT JOIN org_unit_parameters         p
    27         ON h.unit_code = p.unit_code
    28  ORDER BY h.lvl DESC;
    UNIT_CODE   LVL PARAM1_RAW           PARAM1_WITH_LAST     PARAM1_WITH_FIRST    PARAM2_RAW           PARAM2_WITH_LAST     PARAM2_WITH_FIRST    PARAM3_RAW           PARAM3_WITH_LAST     PARAM3_WITH_FIRST    PARAM4_RAW           PARAM4_WITH_LAST     PARAM4_WITH_FIRST
    00000         3 Default value        Default value        Value from 20        Default value        Default value        Value from 20-01     Default value        Default value        Value from 20        {null}               {null}               {null}
    20            2 Value from 20        Value from 20        Value from 20        Value from 20        Value from 20        Value from 20-01     Value from 20        Value from 20        Value from 20        {null}               {null}               {null}
    20-01         1 {null}               Value from 20        {null}               Value from 20-01     Value from 20-01     Value from 20-01     {null}               Value from 20        {null}               {null}               {null}               {null}Seems pretty good, the upper parameters are well «propagated» down with LAST_VALUE function. But, I don't understand why the use of FIRST_VALUE and oppposite ordering doesn't give the same result. A little more playing with the last query for getting the final result for a given unit code:
    SQL> SELECT *
      2  FROM
      3  (
      4     WITH hierarchy
      5     AS
      6     (
      7        SELECT ou.unit_code,
      8               LEVEL            AS lvl
      9        FROM   organization_unit ou
    10        START WITH
    11           ou.unit_code = '20-01'
    12        CONNECT BY
    13           ou.unit_code = PRIOR ou.parent_unit_code
    14     )
    15     SELECT h.*,
    16            LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1,
    17            LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2,
    18            LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3,
    19            LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4
    20     FROM   hierarchy                                h
    21               LEFT JOIN org_unit_parameters         p
    22               ON h.unit_code = p.unit_code
    23     ORDER BY h.lvl
    24  )
    25  WHERE ROWNUM = 1;
    UNIT_CODE   LVL PARAM1               PARAM2               PARAM3               PARAM4
    20-01         1 Value from 20        Value from 20-01     Value from 20        {null}Works well!
    But, my ultimate goal is to create a view that resolve correctly all these parameters for each level of the organization with proper propagation rather then querying for each unit at a time. I played a bit, but without success. :( My current raw query is this one:
    SQL> WITH hierarchy
      2  AS
      3  (
      4     SELECT ou.unit_code,
      5            LPAD(' ',2*(LEVEL-1)) || ou.unit_code    AS tree,
      6            LEVEL                                    AS lvl
      7     FROM   organization_unit ou
      8     START WITH
      9        parent_unit_code IS NULL
    10     CONNECT BY
    11        PRIOR unit_code =  parent_unit_code
    12  )
    13  SELECT h.*,
    14         p.param1                                                        AS param1_raw,
    15         LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1_with_last,
    16         FIRST_VALUE(p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param1_with_first,
    17         p.param2                                                        AS param2_raw,
    18         LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2_with_last,
    19         FIRST_VALUE(p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param2_with_first,
    20         p.param3                                                        AS param3_raw,
    21         LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3_with_last,
    22         FIRST_VALUE(p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param3_with_first,
    23         p.param4                                                        AS param4_raw,
    24         LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4_with_last,
    25         FIRST_VALUE(p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param4_with_first
    26  FROM   hierarchy                          h
    27            LEFT JOIN org_unit_parameters   p
    28            ON h.unit_code = p.unit_code
    29  ORDER BY h.unit_code;
    UNIT_CODE  TREE        LVL PARAM1_RAW                PARAM1_WITH_LAST          PARAM1_WITH_FIRST      PARAM2_RAW                   PARAM2_WITH_LAST          PARAM2_WITH_FIRST         PARAM3_RAW                PARAM3_WITH_LAST          PARAM3_WITH_FIRST         PARAM4_RAW                PARAM4_WITH_LAST       PARAM4_WITH_FIRST
    00000      00000         1 Default value             Default value             Default value          Default value                Default value             Default value             Default value             Default value             Default value             {null}                    Value from 10-02       {null}
    10           10          2 {null}                    Value from 20             Default value          Value from 10                Value from 10             Default value             Value from 10             Value from 10             Default value             {null}                    Value from 10-02       {null}
    10-01          10-01     3 {null}                    {null}                    Default value          {null}                       Value from 20-02          Default value             Value from 10-01          Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    10-02          10-02     3 {null}                    {null}                    Default value          {null}                       Value from 20-02          Default value             {null}                    Value from 10-01          Default value             Value from 10-02          Value from 10-02       Value from 10-02
    20           20          2 Value from 20             Value from 20             Default value          Value from 20                Value from 10             Default value             Value from 20             Value from 10             Default value             {null}                    Value from 10-02       {null}
    20-01          20-01     3 {null}                    {null}                    Default value          Value from 20-01             Value from 20-02          Default value             {null}                    Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    20-02          20-02     3 {null}                    {null}                    Default value          Value from 20-02             Value from 20-02          Default value             {null}                    Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02As you can see, it's not as I expected. I know there's something to do with a PARTITION BY clause, but don't know how.
    Is anyone knows how to solve my problem?
    Thanks
    Bruno
    For reproductibility purposes, here is the code to create sturcture and data:
    Here is the format of my tables and some samble data:
    CREATE TABLE organization_unit (
       unit_code         VARCHAR2(5 CHAR)   NOT NULL PRIMARY KEY,
       unit_name         VARCHAR2(100 CHAR) NOT NULL,
       parent_unit_code  VARCHAR2(5 CHAR)  
    CREATE TABLE org_unit_parameters (
       unit_code         VARCHAR2(5 CHAR)   NOT NULL PRIMARY KEY,
       param1            VARCHAR2(100 CHAR),
       param2            VARCHAR2(100 CHAR),
       param3            VARCHAR2(100 CHAR),
       param4            VARCHAR2(100 CHAR)
    -- Inserting data
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('00000', 'Top level', NULL);
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('10', 'L2 unit #10', '00000');
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('10-01', 'L3 unit #10-01', '10');
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('10-02', 'L3 unit #10-02', '10');
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('20', 'L2 unit #20', '00000');
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('20-01', 'L3 unit #20-01', '20');
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code)
    VALUES ('20-02', 'L3 unit #20-02', '20');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param1, param2, param3)
    VALUES ('00000', 'Default value', 'Default value', 'Default value');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2, param3)
    VALUES ('10', 'Value from 10', 'Value from 10');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param3)
    VALUES ('10-01', 'Value from 10-01');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param4)
    VALUES ('10-02', 'Value from 10-02');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param1, param2, param3)
    VALUES ('20', 'Value from 20', 'Value from 20', 'Value from 20');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2)
    VALUES ('20-01', 'Value from 20-01');
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2)
    VALUES ('20-02', 'Value from 20-02');
    COMMIT;

    Now, I hoppe I got your reqs:
    WITH hierarchy AS (
                       SELECT  ou.unit_code,
                               LPAD(' ',2*(LEVEL-1)) || ou.unit_code    AS tree,
                               LEVEL                                    AS lvl,
                               param1                                   AS param1_raw,
                               param2                                   AS param2_raw,
                               param3                                   AS param3_raw,
                               param4                                   AS param4_raw,
                               SYS_CONNECT_BY_PATH(p.param1,'#') || '#' AS param1_path,
                               SYS_CONNECT_BY_PATH(p.param2,'#') || '#' AS param2_path,
                               SYS_CONNECT_BY_PATH(p.param3,'#') || '#' AS param3_path,
                               SYS_CONNECT_BY_PATH(p.param4,'#') || '#' AS param4_path
                         FROM  organization_unit ou LEFT JOIN org_unit_parameters p
                                 ON ou.unit_code = p.unit_code
                         START WITH parent_unit_code IS NULL
                         CONNECT BY PRIOR ou.unit_code =  parent_unit_code
    SELECT  unit_code,
            tree,
            lvl,
            param1_raw,
            REGEXP_SUBSTR(param1_path,'[^#]+',1,GREATEST(1,REGEXP_COUNT(param1_path,'[^#]+'))) AS param1_with_last,
            REGEXP_SUBSTR(param1_path,'[^#]+')                                                 AS param1_with_first,
            param2_raw,
            REGEXP_SUBSTR(param2_path,'[^#]+',1,GREATEST(1,REGEXP_COUNT(param2_path,'[^#]+'))) AS param2_with_last,
            REGEXP_SUBSTR(param2_path,'[^#]+')                                                 AS param2_with_first,
            param3_raw,
            REGEXP_SUBSTR(param3_path,'[^#]+',1,GREATEST(1,REGEXP_COUNT(param3_path,'[^#]+'))) AS param3_with_last,
            REGEXP_SUBSTR(param3_path,'[^#]+')                                                 AS param3_with_first,
            param4_raw,
            REGEXP_SUBSTR(param4_path,'[^#]+',1,GREATEST(1,REGEXP_COUNT(param4_path,'[^#]+'))) AS param4_with_last,
            REGEXP_SUBSTR(param4_path,'[^#]+')                                                 AS param4_with_first
      FROM  hierarchy
      ORDER BY unit_code
    UNIT_ TREE              LVL PARAM1_RAW       PARAM1_WITH_LAST PARAM1_WITH_FIRS PARAM2_RAW       PARAM2_WITH_LAST PARAM2_WITH_FIRS PARAM3_RAW       PARAM3_WITH_LAST PARAM3_WITH_FIRS PARAM4_RAW       PARAM4_WITH_LAST PARAM4_WITH_FIRS
    00000 00000               1 Default value    Default value    Default value    Default value    Default value    Default value    Default value    Default value    Default value
    10      10                2                  Default value    Default value    Value from 10    Value from 10    Default value    Value from 10    Value from 10    Default value
    10-01     10-01           3                  Default value    Default value                     Value from 10    Default value    Value from 10-01 Value from 10-01 Default value
    10-02     10-02           3                  Default value    Default value                     Value from 10    Default value                     Value from 10    Default value    Value from 10-02 Value from 10-02 Value from 10-02
    20      20                2 Value from 20    Value from 20    Default value    Value from 20    Value from 20    Default value    Value from 20    Value from 20    Default value
    20-01     20-01           3                  Value from 20    Default value    Value from 20-01 Value from 20-01 Default value                     Value from 20    Default value
    20-02     20-02           3                  Value from 20    Default value    Value from 20-02 Value from 20-02 Default value                     Value from 20    Default value
    7 rows selected.
    SQL>  SY.
    Edited by: Solomon Yakobson on Nov 12, 2010 10:09 AM

  • PPOMA_CRM - System does not find the correct Organizational Unit

    Dear Experts,
    we have done the following:
    1. We created a new Z-Field within table CRMD_ORDERADM_H with the Application Enhancement Tool. The name of the field is: ZZFLD000000.
    2. The we changed the View-Cluster T77OMATTR and added the attribute ZZFLD00000 (Name Postal Code).
    3. We added the attribute to the View in Component BT126H_APPT.
    4. In PPOMA_CRM we added the Z-Attribute to the Organizational Unit 'A' with a number range from '08030' to '08035'.
    5. Then we changed created a new Org. Determination Rule and assigned the new Determination Rule to a new Org. Data Profile which we assigned to the transaction type. We made a try and the determiantion rule is working!
    The point is, when we create an activity the user puts the postal code (in this example '08032') into the created Z-Field and then we expect that the specific organizational unit 'A' will be assigned like Service Organization.
    To solve the problem we put a breakpoint to all SET and GET Methods of the Attribute but the system is not stopping there. We missed something but we can not find really the problem.
    Which method we have to redefine so that SAP CRM is looking at the new created Z-Field and is searching within the Organizational Structure for the correct Organizational Unit?
    Best Regards
    Oliver

    Hi,
    This is my idea, I don't check this.
    But, I think it's have to work.
    Pass guid to CRM_ORDER_READ, and get parameters.
    After that, check where you can read postal code.
    I think it's in lT_CUSTOMER_H
    For example,
    call function 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid = ZGUID
        IMPORTING
          ZCUSTOMER_H        = lT_CUSTOMER_H
        EXCEPTIONS
            DOCUMENT_NOT_FOUND = 1
            ERROR_OCCURRED = 2
            DOCUMENT_LOCKED = 3
            NO_CHANGE_AUTHORITY = 4
            NO_DISPLAY_AUTHORITY = 5
            NO_CHANGE_ALLOWED = 6.

  • Organization Unit Replication..

    Hi All,
      <b>  we are doing upgrade srm3.0 to srm5.0.
        i am facing a problem in Organization unit in srm5.0.
       my question is how to replicate organization unit between two SRM systems, say for example. SRM3.0 instance is 'A' and SRM5.0 instance is 'B'.
    is there any way or t.code avilable to replicate all organization unit from 'A' system to 'B' system.
    generally when i create new organization in any system, transport request will not ask so i cant do by transport request, then how can we replicate organization unit between two system.
    please this is very urgent one.</b>
    thanks,
    john.

    FYI...you can get this document the service market place as described in OSS note 447651.
    <a href="https://service.sap.com/form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=447651&_NLANG=E">https://service.sap.com/form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=447651&_NLANG=E</a>
    This will avoid a bunch of email requests and makes the forum more useful for future users searching for help.
    Regards-
    b

  • Accounting iView in Organizational Unit Overview

    Hi there,
    When loading the Organizational Unit Overview Page, the Accouting iView returns the following error message when selecting a Org Unit to view:
    <b>"Error in R/3 System while reading organizational unit"</b>
    Then when selecting another Org Unit to view I get the following message:
    <b>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/uk.gov.escc.escc/mss/zmanagerselfservice/com.sap.pct.hcm.mystaff/nf_2/com.sap.pct.hcm.orgunitprofile/com.sap.pct.hcm.oprofile_accounting
    Component Name : com.sap.pct.hcm.oprofile_accounting.default
    Error occurs during the rendering of jsp component.
    Exception id: 08:47_03/10/06_0010_28968950
    See the details for the exception ID in the log file</b>
    Thanks

    My Log File has disappeared!
    Test and Configuration Tools -> Admin Tools -> No log file is there anywhere else it could be?

  • Error while creating a service request in WCEM E Service

    Hello Experts,
    We are getting below error while trying to a service request in WCEM E service.
    We are able to select the product from the catalog but when we click continue , but we are getting the below error
    Cannot process an HTTP request to servlet [Faces Servlet] in [main] web application.
    [EXCEPTION]
    com.sap.wec.tc.core.ui.processflow.WCFProcessFlowRuntimeException: Error while resolving ''EVALUATE'' operation for process flow servicerequest:serviceRequestCreationProcess, process step 1, source expression #{processFlowViewHandler.createServiceRequestUpdateProduct}, and target expression ; java.lang.NullPointerException: while trying to invoke the method com.sap.wec.tc.core.backend.genil.GenilDataContainer.getFirstChild(java.lang.String) of a null object loaded from local variable 'btServiceItemsAll'
    at com.sap.wec.tc.core.ui.processflow.ProcessFlowExceptionUtil.traceRuntimeException(ProcessFlowExceptionUtil.java:66)
    at com.sap.wec.tc.core.ui.processflow.ProcessFlowExceptionUtil.logAndRaiseRunTimeException(ProcessFlowExceptionUtil.java:108)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessFlowOperationEvaluate.runtimeError(ProcessFlowOperationEvaluate.java:83)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessFlowOperationEvaluate.execute(ProcessFlowOperationEvaluate.java:44)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessStepTransition.executePreTransitionOperations(ProcessStepTransition.java:83)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessStepTransition.execute(ProcessStepTransition.java:46)
    at com.sap.wec.tc.core.ui.processflow.runtime.TransitionableProcessStep.triggerTransition(TransitionableProcessStep.java:49)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessFlowBase.consumeInput(ProcessFlowBase.java:148)
    at com.sap.wec.tc.core.ui.processflow.runtime.UIProcessFlowController.next(UIProcessFlowController.java:248)
    at com.sap.wcf.beans.uiprocessflow.ProcessFlowButtonsVCHandler.next(ProcessFlowButtonsVCHandler.java:65)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:96)
    at org.apache.myfaces.view.facelets.el.LocationMethodExpression.invoke(LocationMethodExpression.java:116)
    at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:68)
    at javax.faces.component.UICommand.broadcast(UICommand.java:120)
    at com.sap.wec.tc.core.runtime.jsf.vc.ViewComponent.broadcast(ViewComponent.java:108)
    at com.sap.wec.tc.core.runtime.jsf.vc.ViewComponent.broadcast(ViewComponent.java:108)
    at com.sap.wec.tc.core.runtime.jsf.vc.ViewComponent.broadcast(ViewComponent.java:108)
    at com.sap.wec.tc.core.runtime.jsf.vc.ViewComponent.broadcast(ViewComponent.java:108)
    at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:1028)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:286)
    at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1375)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
    at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:38)
    at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
    at com.sap.wec.tc.core.filter.RequestSequencerFilter.synchronizeRequest(RequestSequencerFilter.java:134)
    at com.sap.wec.tc.core.filter.RequestSequencerFilter.doFilter(RequestSequencerFilter.java:111)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.HighContrastFilter.doFilter(HighContrastFilter.java:91)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.SecurityFilter.doFilter(SecurityFilter.java:194)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.XSRFTokenEvaluationFilter.doFilter(XSRFTokenEvaluationFilter.java:126)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.uicomponents.renderer.util.MultipartFilter.doFilter(MultipartFilter.java:74)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.FastSessionTimeoutFilter.doFilter(FastSessionTimeoutFilter.java:115)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.SessionInitialisationFilterBase.doFilter(SessionInitialisationFilterBase.java:152)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.HttpsSwitchFilter.doFilter(HttpsSwitchFilter.java:141)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.wec.tc.core.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:56)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: javax.el.ELException: java.lang.NullPointerException: while trying to invoke the method com.sap.wec.tc.core.backend.genil.GenilDataContainer.getFirstChild(java.lang.String) of a null object loaded from local variable 'btServiceItemsAll'
    at com.sun.el.parser.AstValue.invoke(AstValue.java:191)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessFlowOperation.resolve(ProcessFlowOperation.java:46)
    at com.sap.wec.tc.core.ui.processflow.runtime.ProcessFlowOperationEvaluate.execute(ProcessFlowOperationEvaluate.java:32)
    ... 86 more
    Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.wec.tc.core.backend.genil.GenilDataContainer.getFirstChild(java.lang.String) of a null object loaded from local variable 'btServiceItemsAll'
    at com.sap.wec.app.eservice.module.servicerequest.backend.crm.ServiceRequestCRM.setNewSRRefObjectData(ServiceRequestCRM.java:2343)
    at com.sap.wec.app.eservice.module.servicerequest.backend.crm.ServiceRequestCRM.createServiceRequestUpdateProduct(ServiceRequestCRM.java:615)
    at com.sap.wec.app.eservice.module.servicerequest.businessobject.impl.ServiceRequestImpl.createServiceRequestUpdateProduct(ServiceRequestImpl.java:260)
    at com.sap.wec.app.eservice.module.servicerequest.ui.handler.impl.ProcessFlowViewHandlerImpl.createServiceRequestUpdateProduct(ProcessFlowViewHandlerImpl.java:405)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
    ... 89 more

    Hi All,
    I found the solution, the problem was that i didn't have the last SP of WCEM 3.0.
    I have an another question for you guys:
    Is it possible to customize(rename the fields) the workcenter/menu on the WCEM?
    Thanks a lot for your help
    Anass

Maybe you are looking for

  • I cannot open or remember pass to get into PhotoMgrPro, help please?

    I have used too many different codes to get into so many different programs and stuff and now I cannot get into PhotoMgrPro on my iPad...

  • Bricked my iPhone using iFile! What do I do?

    So I was using iFile, and I wasn't thinking straight and I put the Library folder into the Media folder... now when I reboot I get stuck at the apple loading screen and can't get into my phone. Any help?

  • No iCloud Tabs from my Mac shown on my mobile devices

    I have a MacBook Pro, an iPhone 4 and an iPad Gen. 3. All running the latest OS / iOS. For some reasons, my iCloud tabs on my mac aren't showing on my iPad and iPhone. You know that you should have a break down showing those are the tabs from iPad, a

  • How to read values from the following XML?

    I have been using "extractValue" to get the values from a xmltype field and no problems until now. The xmltype now is like: <a>1</a> <b>2</b> <c>1221</c> <c>1412</c> <d>11111</d> <e>3333</e> I'm able to read values from 'a,b,d,e' but not from 'c'. Qu

  • Excecute a planning sequence when open Web Template (JUST ONE TIME)

    Hello experts, I want to excecute a planning sequence everytime when a webtemplate is opened. I use the "Action before first display" for this. The problem is, that the planning sequence is excecuted multiple times when I open the web template. The w