Showing posts with label CRM. Show all posts
Showing posts with label CRM. Show all posts

Thursday, January 31, 2019

Lean configuration for CRM contracts

Table to maintain Lean configuration for CRM contracts

CRMC_IU_FLDMAP  -  Go to SM30 and configure.  A field must be created in ORDERAMI prior to this.  These appear in IUCONFIG component.

Thursday, November 9, 2017

CRM ABAP load Core with component set


Code to set Core to a particular component.  This works if u r writing a stand-alone program or function.  If this is not written, then you may not get relations loaded and get issues.  You need to put right component set name (in place of 'IUICALL') in below code

DATA:  lr_core            TYPE REF TO cl_crm_bol_core.


  lr_core = cl_crm_bol_core=>get_instance( ).

  CHECK lr_core IS BOUND.

  TRY.
      lr_core->load_component_set( iv_component_set_name = 'IUICALL' ).
    CATCH cx_crm_genil_general_error .
  ENDTRY.

Wednesday, September 14, 2016

CRM Product Group Tables

Product Group Tables (for corresponding TVM1, TVM2, TVM3 etc.. in R3 – ie., MVGR1, MVGR2 etc..)

CRMC_PRC_GRP1
CRMC_PRC_GRP2
CRMC_PRC_GRP3

Monday, August 8, 2016

CRM Sales group table


View to get Sales area, Sales group and Sales office in CRM for a business partner:

CRMV_BP_FRG0140

Tables in view:
BUT000
CRMM_BUT_LNK0141
CRMM_BUT_SET0140

For transaction level data – eg: to get org data for an opportunity – use table CRMD_ORGMAN  (you may need to link with CRMD_LINK)

Tuesday, July 26, 2016

CRM LORD - Functionalities that are NOT supported

LORD -  Functionalities that are not supported by LORD are given in below SAP note.

SAP note: 1236015

https://launchpad.support.sap.com/#/notes/1236015/E

Thursday, April 21, 2016

Product history in CRM - Function Module

FM -  CRM_PRODUCT_HISTORY_GET  - Product history in CRM – good one – need to give product guid


COMM_PRODUCTH - Table for Product History

COMM_PRODUCT - Table for Product master - we can get Guid here 

Tuesday, March 29, 2016

Partner functions ECC vs CRM


http://scn.sap.com/community/crm/master-data-and-middleware/blog/2013/09/03/partner-functions--what-how-and-where

Friday, March 4, 2016

CRM Web UI Message type Id etc..



In most cases, the method responsible to bring the messages into the screen is ADD_MESSAGE of class CL_BSP_WD_MESSAGE_SERVICE.

https://scn.sap.com/thread/3163753

Thursday, March 3, 2016

CRM ECC Contact mapping tables


CRM table for Contact mapping - CRMM_BUT_CONTNO
ECC table for Contact mapping is CRMPARNR

For Customer to Business Partner mapping

CRM table for mapping:  CRMV_BUPA_CUSTNO
and  CRMM_BUT_CUSTNO contains mapping between Customer and BP Guid

Thursday, February 4, 2016

FM to read Identification numbers from CRM Account overview


To get Identification numbers from CRM Account overview

Function module:  BAPI_IDENTIFICATIONDETAILS_GET

FM to read Marketing Attributes


1> Get Market Attribute Set List By

    call function 'CRM_MKTBP_READ_ALL_TPL' (Input is simply BP guid, output is listed of market attr set)
      

then call   
      call function 'CRM_MKTBP_READ_BP_DATA' by sending guid and market attribut set
The output will be the value list.

Thursday, November 19, 2015

CRM WebUI - Change text in Custom filter

Problem: Change Text description for an element in drop down (in this example:  From ‘Does not equal’ to ‘not equal’ – as user displaying them in alphabetical order, and want ‘equal’ to come first in dropdown)
Transaction SE80 -> BSP Application crm_thtmlb_util:
Method get_possible_operators:
Transaction SOTR_EDIT:

Friday, November 13, 2015

CRM Product status Locked mapped to ECC status

BADI  ‘PRODUCT_CUSTOMER2’ is used in CRM to map material status between ECC and CRM

Status from Material master’s Basic data and Sales data flow to CRM.

SAP Note 497101  

Thursday, November 12, 2015

CRM - Clear buffer for BOL entity

To reset (clear) buffer for BOL entity – use below code.
For eg: This is used in Search on quotes, which was retrieving old data of quote just after save.

    DATA lr_core TYPE REF TO cl_crm_bol_core.
    lr_core 
= cl_crm_bol_core=>get_instance( ).
    lr_core
->reset
( ).


Tuesday, September 29, 2015

CRM User status management

To create a user status profile, please go to T-cd: SPRO -> SAP Customizing Implementation Guide -> Customer Relationship Management -> Transactions -> Basic Settings -> Status Management -> Define Status Profile for User Status
 
 

 

Friday, September 4, 2015

CRM - Raise global message in Quote/Order

 Raise error in DO_VALIDATE_INPUT method as shown:
THIS WILL NOT BLOCK SAVING
To block saving use ORDER_SAVE BADI - method CHECK_BEFORE_SAVE

If there are error messages:
RAISE do_not_save.

Thursday, August 27, 2015

DO_PREPARE_OUTPUT - CRM Web UI example


Component/View:   BT125H_TASK/TaskDetails
Logic:

typed_context will contain all context nodes in view.


    DATA: lr_btstatus        TYPE REF TO cl_crm_bol_entity,
          lr_btadminh        TYPE REF TO cl_crm_bol_entity.
    DATA: lv_process_type    TYPE CRMT_PROCESS_TYPE_DB.



    TRY.
    lr_btadminh ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
    lr_btadminh->get_property_as_value(
                                    EXPORTING iv_attr_name = 'PROCESS_TYPE'
                                    IMPORTING ev_result    = lv_process_type ).

    lr_btstatus ?= me->typed_context->btstatus->collection_wrapper->get_current( ).

*   For Attachment tasks (ZATC), set status to 'Completed'
    IF lv_process_type = 'ZATC'.
      lr_btstatus->set_property(
        EXPORTING
          iv_attr_name =   'ACT_STATUS'
          iv_value     =    'E0003'
      ).

    ENDIF.
      CATCH cx_root.
   ENDTRY.