cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger the org determination procedures manually

ChrisKuehne
Explorer
0 Kudos

Hi,

in the WebUI Opportunity there is the automatical sales org determination. which is taking the sales org automatically (if one) or shows a popup with all sales organization units matching the customizing rules.

But how can I trigger the sales org determination manually?

I need the same table which is shown in the WebUI as an internal table as returning parameter.

I can not find the place where the global table is filled for the WebUI....

CL_CRM_ORDER_RUN_BTIL --> GET_ORGDATA only reads out the global table but any "where used check" did not show the place where the tables are filled...

(Table: GT_ORGMAN_POPUP_INFO_1020 has all those fields...but from where is this table coming or where is it filled????)

CRM_ORGMAN_GET_PROFIL_ID just returns the profile...

Any body an Idea?

Thanks for your input

View Entire Topic
former_member198837
Active Participant
0 Kudos

Hi,

Check in SPRO settings:

CRM->Master Data->Organizational Management->Organizational Data Determination->Change Rule and Profiles->Maintain Organizational Data Profile

Change the rule maintained with the corresponding FM you want to determine the Org.

Regards,

Karthik.

ChrisKuehne
Explorer
0 Kudos

Hi

the rule is fine and working in the WebUI.

the question is how I can call the correct rule / FM and retrieve the sales orgs matching this rule.

-> Profile -> Rule -> Table with sales org data

I need to do it via coding to return all possible sales ors in a WebService

former_member198837
Active Participant
0 Kudos

Hi,

I think you need to copy the code from FM and change the importing parameters and understand the logic written in FM of how Org is getting determined. Like based on End customer or Etc.

Then you need to use the created FM in Web Service and you can consume it.

Regards,

Karthik.

ChrisKuehne
Explorer
0 Kudos

Copying the FM makes no sense.

If the rule and FM is changed I would also have to adopt the copied logic.

So I need a "standard way" wo consume the logic and retrive the correct values.

Like the WebUI is doing it somehow

the question is HOW?!