Thursday, December 30, 2010
creating new elm mapping format in CRM
Monday, December 27, 2010
Wednesday, November 24, 2010
Ecc sales order in crm
Ecc sales order in crm
http://forums.sdn.sap.com/thread.jspa?threadID=1419366
https://forums.sdn.sap.com/thread.jspa?threadID=1447571&tstart=0
lv_kunag = cl_crm_erp_conversion_tool=>convert_kunnr_to_bp( <doc>-kunnr ).
ls_qrorder-guid = cl_crm_erp_conversion_tool=>convert_vbeln_to_guid( ls_qrorder-vbeln ).
To get business role of user
To get business role of user
http://forums.sdn.sap.com/thread.jspa?messageID=9084510#9084510
CL_CRM_UI_PROFILE
and the method GET_PROFILE
if it asks for a authorization role check this function module
SUSR_USER_AUTH_FOR_OBJ_GET
V_PROFILE ?= CL_CRM_UI_PROFILE=>GET_INSTANCE( ).
CALL METHOD V_PROFILE->IF_CRM_UI_PROFILE~GET_PROFILE
RECEIVING
RV_RESULT = V_ROLE.
Determine the current WebClient Profile
APR 8TH
Posted by johanvz in ABAP Code
Sometimes you need to determine the WebClient Profile of the logged in user. The code below you allows you to accomplish this.
In CRM 4.0:
data: lv_profile type crmc_ic_profile .
lv_profile = cl_crm_ic_services=>get_customizing_profiles( ).
In CRM 5.0 and beyond:
data: lr_prof type ref to if_ic_profile,
lv_prof type string.
lr_prof = cl_ic_profile_service=>get_instance( ).
lv_prof = lr_prof->get_profile( ).
I dont remember from where i got the below code.. thanks to the author who posted it there..
The relationship of BP(Employee) to Username is as follows:
Tcode: SE16 , In Table HRP1000
Field OTYPE = CP
Field UNAME = Provide Employee username (Should be maintained in Tcode BP, Role= Employee in tab identification)
You'll get OBJID.
Use the OBJID from above in table HRP1001.
OTYPE = CP
OBJID = OBJID (from HRP1000)
RELAT = 207
You'll get the BP number in field SOBID.
use FM BP_CENTRALPERSON_GET to get BP from USERName and vice versa.
Retrieving Territory RSM, DSM etc through path ID
- Obtain the territory guid TERR_GUID from the table CRMM_TERRITORY using the obtained territory id TERR_ID.
- Obtain the corresponding guid from the table CRMM_TERRITORY_V by entering the above guid in the field TERR_GUID
- Use this new guid in the table CRMM_TERRSTRUCT ( field TERRITORY_V_GUID) to obtain the path id PATH_ID.
- Use the path id in the FM CRM_TERRMAN_TSTRUC_PATH_SELECT to return the list of sub-level entries.
- The above FM returns back all the sub-level paths.
- Use the path-ids in the table CRMM_TERRSTRUCT to obtain the territory V Guids.
- Use the territory v guids in the table CRMM_TERRITORY_V to obtain the territory guids
- Use the territory guids in the table CRMM_TERRITORY to obtain the territory ids and provide them as drop down list.