SAP CRM Business Transaction: The main SAP CRM Tables and BAPI

partnership 526413 1280 e1459931749571

SAP CRM Business: In SAP CRM, Business Transaction in CRM is defined by Object Type which defines the kind of the Business Transaction.

In this post, you will find the most used SAP CRM transaction Codes and the related SAP CRM tables also more details about the usefull BAPI for Business Transaction BAPI.

SAP CRM Business Transaction

SAP CRM Business Transaction is the key to identify the type of SAP CRM Transaction .

The main SAP CRM transaction Codes are:

SAP CRM TRANSACTION CODESDESCRIPTION
SAP CRMSalesBUS200115
SAP CRMActivityBUS2000126
SAP CRMService ContractBUS2000112
SAP CRMLeadBUS2000108
SAP CRMOpportunityBUS2000111
SAP CRMTaskBUS2000125
SAP CRMUtility Contract ItemBUS2000147

Sample for SAP CRM Transaction Codes Relationship for Order

credit: https://help.sap.com

For more detail about SAP CRM, check these posts.

SAP CRM Transaction Main Tables

The main Tables for SAP CRM Business Transaction are CRMD_ORDERADM_H ( for header data).
All related Tables start with CRMD_*.
You will find following the main tables for SAP CRM Business Transaction:

SAP CRM TABLESDESCRIPTION
CRMD_ORDER_INDEXAll the transactions in CRM. Link BP & CRM Transaction
CRMD_CUSTOMER_HContract Details
CRMD_CUSTOMER_IAdditional Site Details
CRMD_ORDERADM_HHeader Details
CRMD_ORDERADM_IItem Details

SAP CRM Business Transaction Main BAPI

When Dealing with SAP CRM Business Transaction in ABAP, there is some BAPIs to know.
The main BAPI is CRM_ORDER_READ and it will be detailed later in this post.
First let’s introduce the main BAPIs :

BAPIDESCRIPTION
GUID_CREATECreate GUID for a Business Transaction
BAPI_BUSPROCESSND_SAVEBAPI to save trhe service Contracts
CRM_ORDERADM_H_READ_OWRead Header Details for a Business Transaction
CRM_ORDERADM_I_READ_OWRead Items Details for a Business Transaction
CRM_ORDER_READGet all Order/Service/Activity/Lead/Quotation/Opportunity – details.
CRM_ORDER_GETSTATUSRead Status of Business Transaction
BAPI_BUSPROCESSND_CHANGEMULTIChange Service Contratcs with ABAP
CRM_ORDER_SAVESave Transaction Change
CRM_APPT_MAINTAIN_SINGLE_OWMaintain Sate for service Contract. Call CRM_ORDER_SAVE after
CRM_STATUS_MAINTAIN_OWMaintain User Status for CRM Transaction

Check also SAP CRM Resources: Books and Courses

CRM_ORDER_READ

CRM_ORDER_READ cannot be called directly. Instead call the program with the same name CRM_ORDER_READ to read all the data.

The SAP CRM Transaction Codes pilot the type of the SAP CRM Action ( Order, Opportunity … )

Performance Tips CRM_ORDER_READ

Always pass the IT_REQUESTED_OBJECTS structure to CRM_ORDER_READ to fech only required details.

Important Structures

The related SAP CRM Tables for CRM Transaction will be retrieved into the following tables:

INPUT/OUTPUTDESCRIPTION
ET_ORDERADM_HHeader Details of a Business Transaction: OBJECT_ID / PROCESS_TYPE
ET_ORDERADM_IItems Details of a Business Transaction: PRODUCT/ PRODUCT_KIND/ HEADER
ET_ACTIVITY_HHeader of Activitiy Detail: PRIORITY/OBJECTIVE/Address
ET_ACTIVITY_IItems details for an activity
ET_PARTNERPartner Dtails at Header & Items Level
ET_STATUSStatus for Header & Items
ET_BILLINGBilling related details.
ET_DOC_FLOWDocuments flow of the Business Transaction