In 0CRM_LEAD_H, there are two fields PATH_GUID and TERR_GUID. You may wonder what territory information is filled in them.
During extraction, the lead orders data is firstly retrieved and then the data will be mapped to and filled in data structure of 0CRM_LEAD_H in the following FM CRM_BW_LEAD_H_MAP.
In CRM_BW_LEAD_H_MAP, the partners that has a valid territory will be put in LS_BDOC_MSG - ATTR_TERRITORY.
It calls PERFORM territory_determine to map territory data in LS_BDOC_MSG - ATTR_TERRITORY to path GUID and Terr GUID in 0CRM_LEAD_H.
Which territory will be mapped to that in the 0CRM_LEAD_H is determined by territory_determine.
Its logic is that,
It does not consider the partner function during territory determination.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.