Skip to Content

Dear SAP Users,

The following information is already well known to many of the users. However, I felt this is not aggregated at one place. So, I took this opportunity to document this simple process as a blog with an example.

In recent times, I had a requirement to fetch the Service Organization based on the Country Key in CRM. Hope this document solves the purpose for the users who are actually looking for the same requirement. Using this process, we can as well fetch many other details maintained in the Organizational model.

Begin of document:

The attributes for the Organization Unit are maintained through the transaction PPOMA. Based on the Attributes Maintenance Scenario that is selected at this level, the attributes differ. In the current discussion, we will concentrate on the SERVICE scenario. 

Transaction: PPOMA

For Ex, here the Service Organization is 0351, and the Country maintained is GB.

/wp-content/uploads/2013/07/1_250340.jpg

In the Attributes tab, select the ‘Attributes Maintenance Scenario’ as Service. Here, the Country key is specified as GB. 

/wp-content/uploads/2013/07/2_250341.jpg

Now, if we have the country key at some point of the code and want to fetch the Service Organization associated with it, we can use the below method:

Class:     CL_CRM_ORGMAN_INTERFACE

Method:  FIND_ATTRIBUTES


Provide the following data as the input to the method

Scenario:          SERVICE

Search Values:

                            Attrib: COUNTRY

                            Value: GB

/wp-content/uploads/2013/07/3_250342.jpg

/wp-content/uploads/2013/07/4_250346.jpg

The same can be coded as,


CALL METHOD cl_crm_orgman_interface=>find_attributes
EXPORTING
scenario           = ‘SERVICE’
search_values = i_search_values (Attrib = ‘COUNTRY’ and Value = Country Key)
IMPORTING
hitlist                 = i_hitlist (Result list containing the Service Organization).

Just for the additional information,

To convert the HR Org Unit to R/3 Sales Org.

Class:    CL_CRM_ORGMAN_SERVICES

Method: MAP_HROBJECT_TO_R3_SALES_ORG

/wp-content/uploads/2013/07/5_250347.jpg

To convert the R/3 Sales Org to the HR Org Unit.

Class:    CL_CRM_ORGMAN_SERVICES

Method: MAP_R3_SALES_ORG_TO_HROBJECT

/wp-content/uploads/2013/07/6_250348.jpg

The class CL_CRM_ORGMAN_INTERFACE can be used to fetch other information as well, related to the service organization.

Thanks & Regards,

Narayana Raju.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply