Skip to Content
avatar image
Former Member

Getting Attributes from an org unit

Hi

How can I get attributes and their values given an organization unit?? ie org id?

Is there any function module or any tables which contain the required data?Plz help out.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 12, 2007 at 11:16 AM

    Try FM BBP_READ_ATTRIBUTES.

    Keith

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 12, 2007 at 11:24 AM

    Hi

    <u>Incase you want to fetch the details using a Function module then use

    either of them -></u>

    <b>CRM_EMPLOYEE_GETORGUNIT

    HR_STRUC_GET_USER_FROM_ORGUNIT

    BBP_GET_ORGUNITS

    DWP_GET_RESPONSIBLE_ORGUNITS

    BBPU_GET_ORGUNIT_AND_COUNTRY

    BBPU_GET_USERS_OF_ORGUNIT</b>

    <b>Please use FM BBP_OM_STRUC_GET_USER_FROM_POS to get users given a position.

    Also try Using the FM "BBP_OM_STRUC_GET_USER_FROM_POS".

    Ofcourse, you can also check in PPOMA_BBP; Find by position.</b>

    <u>Also, the tables BUT000, BUT021 tables will help.</u>

    Hope this will help.

    Please reward suitable points.

    Regards

    - Atul

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 13, 2007 at 06:41 AM

    Hi Keith/Atul

    Thanks for the reply but m still not able to solve my problem

    I am working on SRM 5.0 and have some problem regarding filling of aprpover table in the n-step approval workflow badi.

    I am having a scenario in which there are some phases and some particular roles are attached to those phases. The roles have certain criteria to be fulfilled before assigning workitem to it.

    In my shopping Cart I get some values which i hav to compare with the role criteria, see which ones are satisfied and the fill approver table accordingly.

    The problem is that the criteria has to be dynamic ie can be changed any time (including teh fields). Also it contains AND and OR conditions.

    Eg Criteria:

    1) If Acc Assign Type = 'CC' AND cost center has values then role = 'MANAGER1'.

    2) If Acc Assign Type = 'CC' AND Cost Center has value OR Acc Assign Type = 'IO' AND InternalOrder ID has value OR Prdesecor system = 'SYS1' AND SC TOTAL >= APPROVER LIMIT

    Can anybody tell me how to go about solving this?I think i can have table or might be org structure but how to take care of AND/OR conditions?There should not be any hardcoding fo criteria conditions.

    Please help out.

    Thanks & regards

    Preeti

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      Thanks for the details.

      Your workflow configuration is quite strange.

      <u>Couple of questions to ask here :-></u>

      <b>1) what's your business requirement ?

      2) which SRM version are you using ?

      3) which SRM scenario have you implemented ? (Classic/Extended Classic/Standalone)

      4) What do yo mean by "I am thinking of creating a org structure with each row of criteria as one position say manager1, manager2 etc.". Are you talking about Workflow Configuration using PPOMA_BBP Transaction ? Are you looking for Functional aspect or you need to implement by coding (Technical Aspect) ?

      5) I remember you told in your earlier reply that you are looking for Technical aspect by creating a function module inside N-Level Approver BADI (BBP_WFL_APPROV_BADI in SE18). Have you completed that part ?

      6) Can you maintain a custom table (Z table) and maintain the conditions there and based on the Shopping cart

      values, we can manipulate the list of approvers decided.

      7) What about functional part ? Are you taking care of both Functional and technical aspects of the Workflow configuartion in this case ?</b>

      Please send me the detailed information.

      Hope this will help.

      Regards

      - Atul