Take a look at how the standard OPPT determines organization:

In Transaction Type OPPT configuration, find Organization Data Profile: SPRO->CRM->Transactions->Basic Settings->Define Transaction Types

The configured profile is found to be 000000000005. Double-click the profile to find the corresponding profile.

It can be seen that the corresponding Organizational Model determin. Rule is 10000144, while the Responsibilities determin. Rule is not configured. Refer to the explanation on CR100:

Organizational Model Rule is to determine the Organizational Unit according to the results of the search. Responsibilities Rule is to specify the corresponding Organizational Unit directly.

Check the Determination Rule: SPRO->CRM->Master Data->Organizational Management->Organizational Data Determination->Maintain Determination Rules

Rule 10000144:

You can see that the FM used for the corresponding determination is CRM_ORGMAN_ORGOBJECTS_FIND_4

Click the Container TAB to see the parameter configured for rule 10000144:

Note In the FM CRM_ORGMAN_ORGOBJECTS_FIND_4 command, the two parameters are BP Number and Transaction Type:

The SPRO documentation contains an explanation of the standard Determination function:

The first two are for Sales transactions, the last two are for Service transactions, According to the description, FM CRM_ORGMAN_ORGOBJECTS_FIND_4 searches for Organizational Unit according to THE Sales Area of BP.

Enter CRM_ORGMAN_ORGOBJECTS_FIND_4 and get the GUID from the BP Number in the Container.

Obtain the corresponding Sales Area according to BP GUID:

Select * from CRMM_BUT_LNK0011 where BP Number corresponds to Sales Area

Select * from table CRMM_BUT_LNK0031 where Sales Area was not found

E.g. got the Sales Area of BP 4103080:

The Transaction Type parameter is used to check whether the Sales Area is valid based on the BP Number:

Then call FM CRM_ORGMAN_ORGOBJECTS_FIND_1 to find the organization based on the Sales Area attribute. According to the above documentation, CRM_ORGMAN_ORGOBJECTS_FIND_1 is actually a generic FM query based on the organization attribute

The attribute here is the attribute that Organizational Unit maintains in the Web UI:

Note that the Transaction Type is not directly compared with the Transaction Type attribute maintained by Organizational Unit.

Finally, the Organization obtained according to BP 4103080 is 5000732:

There is also a more abstract QUERY Org API FM: CRM_ORGMAN_DETERMINE_ORGOBJS, which returns a Sales Areas result set.

More of Jerry’s original articles can be found in “Wang Zixi “: