cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Attributes from an org unit

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try FM BBP_READ_ATTRIBUTES.

Keith

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

Thanks.

<u>The earlier mentioned are the only conditions in your case or you have some more conditions to be coded for N-Level Approver BADI - BBP_WFL_APPROV_BADI (in SE18 transaction).

If yes, Better to create a function module and then call the FM inside the BADI and code your conditions in various subroutines in order to avoid any Hard-coding and easily manageabale code.</u>

<b>Please mention all your detials in one go andlet me know.</b>

Hope this will help.

Please reward suitable points, incase it suits your requirements.

Regards

- Atul

Former Member
0 Kudos

Hi Atul

There are some 19 criteria with 19 conditions. It may be possible that there may be more criteria ie depending on the roles.

I didnt get what u said.Ya I am thinking of creating0 a FM and coding in it. But I do not know how to go about making it dynamic so that if anything has to be added then there wont be any coding required for changing it.

I did not understand about the subroutines too.

Please explain.

Thanks.

Former Member
0 Kudos

Hi

Please send me the detailed screen shots as well as the conditions in details what are required to be created for this BADI in your system on my email id for futher analysis.

Email -> atul.kant@gmail.com

Hope this will help.

Regards

- Atul

Former Member
0 Kudos

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

Former Member
0 Kudos

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