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

No comments

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( ).

ABAP Code, IC WebClient


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.


SAP Survey Suite

SAP Survey Suite

http://help.sap.com/saphelp_crm70/helpdata/EN/45/f6832b3a2a6789e10000000a155369/frameset.htm


Adobe interactiive form add/delete row

Adobe interactiive form add/delete row

https://forums.sdn.sap.com/thread.jspa?threadID=1132706


F4 help in adobe forms

F4 help in adobe forms


http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/a1900622ec062be10000000a42189d/frameset.htm


Account Factsheet

Factsheet

http://sites.google.com/site/rupeshpatil/tweets/addsalesordertoaccountfactsheet

 

http://help.sap.com/saphelp_crm70/helpdata/en/4d/2ae3f79e1d49d9be306f7768d55fba/frameset.htm



SAP BEST PRACTICES FOR CRM - BUILDING BLOCKS

SAP BEST PRACTICES FOR CRM - BUILDING BLOCKS


Defaulting Opportunity details

http://forums.sdn.sap.com/message.jspa?messageID=8472159

Creation of product in standalone system

Creation of product in standalone system

http://forums.sdn.sap.com/message.jspa?messageID=5366391

Retrieving Territory RSM, DSM etc through path ID

  1. Obtain the territory guid TERR_GUID from the table CRMM_TERRITORY using the obtained territory id TERR_ID.
  2. Obtain the corresponding guid from the table CRMM_TERRITORY_V by entering the above guid in the field TERR_GUID
  3. Use this new guid in the table CRMM_TERRSTRUCT ( field TERRITORY_V_GUID) to obtain the path id PATH_ID.
  4. Use the path id in the FM CRM_TERRMAN_TSTRUC_PATH_SELECT to return the list of sub-level entries.
  5. The above FM returns back all the sub-level paths.
  6. Use the path-ids in the table CRMM_TERRSTRUCT to obtain the territory V Guids.
  7. Use the territory v guids in the table CRMM_TERRITORY_V to obtain the territory guids
  8. Use the territory guids in the table CRMM_TERRITORY to obtain the territory ids and provide them as drop down list.