SAP CRM_IST_OBJECTS_REPORTING Function Module for Lesen von CRM IS-T Objekten
CRM_IST_OBJECTS_REPORTING is a standard crm ist objects reporting SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Lesen von CRM IS-T Objekten processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for crm ist objects reporting FM, simply by entering the name CRM_IST_OBJECTS_REPORTING into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_IST_SO_SERVICES
Program Name: SAPLCRM_IST_SO_SERVICES
Main Program: SAPLCRM_IST_SO_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CRM_IST_OBJECTS_REPORTING pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CRM_IST_OBJECTS_REPORTING'"Lesen von CRM IS-T Objekten.
EXPORTING
* IV_OBJTYPE = 'BUS2000155' "Object Type
* IT_BUAG_ID = "Table Type for CRMT_BUAG_ID
* IT_SOLD_TO = "Table Category for Category BU_PARTNER
* IV_MAX_HITS = "
* IV_MYSELF = "Logical Variable
* IV_MYSHOP = "Logical Variable
* IV_WHERECONDITION = "Selection Condition
* IV_CHECK_AUTHORITY = ' ' "Berechtigungsprüfung CRM-Order durchführen (Performance!)
* IV_EXT_REF_ID = "External Telecommunications Contract Number
* IV_OBJECT_ID = "Business Transaction Number
* IV_NUMBER = "External Telecommunications Contract Number
* IV_ACTIVE_ONLY = "Logical Variable
* IV_CREATED_FROM = "Hauptposition CREATED_FROM
* IV_CREATED_TO = "Hauptposition CREATED_TO
* IV_ISTCONTSRTTS = "Beginn Vertragszeitscheibe
* IV_ISTCONTENDTS = "Ende Vertragszeitscheibe
IMPORTING
ET_RESULT = "IS-T: Table Type for Order Selection
ET_BAPIRETURN = "Error messages
EV_LIMITED_RESULT = "Logical Variable
EXCEPTIONS
INTERNAL_ERROR = 1 NOTHING_FOUND = 2
IMPORTING Parameters details for CRM_IST_OBJECTS_REPORTING
IV_OBJTYPE - Object Type
Data type: SWO_OBJTYPDefault: 'BUS2000155'
Optional: No
Call by Reference: Yes
IT_BUAG_ID - Table Type for CRMT_BUAG_ID
Data type: CRMT_BUAG_ID_TOptional: Yes
Call by Reference: Yes
IT_SOLD_TO - Table Category for Category BU_PARTNER
Data type: BU_PARTNER_TOptional: Yes
Call by Reference: Yes
IV_MAX_HITS -
Data type: IOptional: Yes
Call by Reference: Yes
IV_MYSELF - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_MYSHOP - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_WHERECONDITION - Selection Condition
Data type: STRINGOptional: Yes
Call by Reference: Yes
IV_CHECK_AUTHORITY - Berechtigungsprüfung CRM-Order durchführen (Performance!)
Data type: FLAGDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_EXT_REF_ID - External Telecommunications Contract Number
Data type: CRMT_IST_TELCO_ORDER_IDOptional: Yes
Call by Reference: Yes
IV_OBJECT_ID - Business Transaction Number
Data type: CRMT_OBJECT_ID_DBOptional: Yes
Call by Reference: Yes
IV_NUMBER - External Telecommunications Contract Number
Data type: CRMT_IST_TELCO_ORDER_IDOptional: Yes
Call by Reference: Yes
IV_ACTIVE_ONLY - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_CREATED_FROM - Hauptposition CREATED_FROM
Data type: DATSOptional: Yes
Call by Reference: Yes
IV_CREATED_TO - Hauptposition CREATED_TO
Data type: DATSOptional: Yes
Call by Reference: Yes
IV_ISTCONTSRTTS - Beginn Vertragszeitscheibe
Data type: DATSOptional: Yes
Call by Reference: Yes
IV_ISTCONTENDTS - Ende Vertragszeitscheibe
Data type: DATSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CRM_IST_OBJECTS_REPORTING
ET_RESULT - IS-T: Table Type for Order Selection
Data type: CRMT_IST_ORDER_ITEM_TABOptional: No
Call by Reference: Yes
ET_BAPIRETURN - Error messages
Data type: BAPIRET2_TABOptional: No
Call by Reference: Yes
EV_LIMITED_RESULT - Logical Variable
Data type: CRMT_BOOLEANOptional: No
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR - Internal Error
Data type:Optional: No
Call by Reference: Yes
NOTHING_FOUND - No result
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CRM_IST_OBJECTS_REPORTING Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_et_result | TYPE CRMT_IST_ORDER_ITEM_TAB, " | |||
lv_iv_objtype | TYPE SWO_OBJTYP, " 'BUS2000155' | |||
lv_internal_error | TYPE SWO_OBJTYP, " | |||
lv_it_buag_id | TYPE CRMT_BUAG_ID_T, " | |||
lv_it_sold_to | TYPE BU_PARTNER_T, " | |||
lv_iv_max_hits | TYPE I, " | |||
lv_iv_myself | TYPE CRMT_BOOLEAN, " | |||
lv_iv_myshop | TYPE CRMT_BOOLEAN, " | |||
lv_iv_wherecondition | TYPE STRING, " | |||
lv_iv_check_authority | TYPE FLAG, " ' ' | |||
lv_et_bapireturn | TYPE BAPIRET2_TAB, " | |||
lv_iv_ext_ref_id | TYPE CRMT_IST_TELCO_ORDER_ID, " | |||
lv_nothing_found | TYPE CRMT_IST_TELCO_ORDER_ID, " | |||
lv_iv_object_id | TYPE CRMT_OBJECT_ID_DB, " | |||
lv_ev_limited_result | TYPE CRMT_BOOLEAN, " | |||
lv_iv_number | TYPE CRMT_IST_TELCO_ORDER_ID, " | |||
lv_iv_active_only | TYPE CRMT_BOOLEAN, " | |||
lv_iv_created_from | TYPE DATS, " | |||
lv_iv_created_to | TYPE DATS, " | |||
lv_iv_istcontsrtts | TYPE DATS, " | |||
lv_iv_istcontendts | TYPE DATS. " |
  CALL FUNCTION 'CRM_IST_OBJECTS_REPORTING' "Lesen von CRM IS-T Objekten |
EXPORTING | ||
IV_OBJTYPE | = lv_iv_objtype | |
IT_BUAG_ID | = lv_it_buag_id | |
IT_SOLD_TO | = lv_it_sold_to | |
IV_MAX_HITS | = lv_iv_max_hits | |
IV_MYSELF | = lv_iv_myself | |
IV_MYSHOP | = lv_iv_myshop | |
IV_WHERECONDITION | = lv_iv_wherecondition | |
IV_CHECK_AUTHORITY | = lv_iv_check_authority | |
IV_EXT_REF_ID | = lv_iv_ext_ref_id | |
IV_OBJECT_ID | = lv_iv_object_id | |
IV_NUMBER | = lv_iv_number | |
IV_ACTIVE_ONLY | = lv_iv_active_only | |
IV_CREATED_FROM | = lv_iv_created_from | |
IV_CREATED_TO | = lv_iv_created_to | |
IV_ISTCONTSRTTS | = lv_iv_istcontsrtts | |
IV_ISTCONTENDTS | = lv_iv_istcontendts | |
IMPORTING | ||
ET_RESULT | = lv_et_result | |
ET_BAPIRETURN | = lv_et_bapireturn | |
EV_LIMITED_RESULT | = lv_ev_limited_result | |
EXCEPTIONS | ||
INTERNAL_ERROR = 1 | ||
NOTHING_FOUND = 2 | ||
. " CRM_IST_OBJECTS_REPORTING |
ABAP code using 7.40 inline data declarations to call FM CRM_IST_OBJECTS_REPORTING
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.DATA(ld_iv_objtype) | = 'BUS2000155'. | |||
DATA(ld_iv_check_authority) | = ' '. | |||
Search for further information about these or an SAP related objects