SAP Reports / Programs | Application Platform | Master Data | Central Part of Product Master(AP-MD-PRO) SAP AP

COM_PME_API_DEMO SAP ABAP Report - Program COM_PME_API_DEMO







COM_PME_API_DEMO is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter COM_PME_API_DEMO into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT COM_PME_API_DEMO. "Basic submit
SUBMIT COM_PME_API_DEMO AND RETURN. "Return to original report after report execution complete
SUBMIT COM_PME_API_DEMO VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Program COM_PME_API_DEMO


INCLUDES used within this REPORT COM_PME_API_DEMO

INCLUDE COM_PME_API_DEMOTOP.
INCLUDE COM_PME_API_DEMO_01.
INCLUDE COM_PME_API_DEMO_02.
INCLUDE COM_PME_API_DEMO_04.
INCLUDE _PME_API_DEMO_START_PME_UIF01.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

COM_PME_SESSION_CLOSE CALL FUNCTION 'COM_PME_SESSION_CLOSE' EXPORTING crm_hierarchy_guid = hierarchy_guid EXCEPTIONS no_active_session = 1 close_session_failed = 2 OTHERS = 3.

COM_PME_SESSION_SAVE CALL FUNCTION 'COM_PME_SESSION_SAVE' EXPORTING crm_hierarchy_guid = hierarchy_guid i_update_task = update_task EXCEPTIONS no_active_session = 1 api_error = 2 OTHERS = 3.

COM_PME_CLASS_NAME_EXIST CALL FUNCTION 'COM_PME_CLASS_NAME_EXIST' EXPORTING crm_hierarchy_name = crm_hierarchy_name crm_object_name = parent_key crm_object_type = 1 pr_org_type = comt_pme_crm_map-pr_org_type pr_org_id = comt_pme_crm_map-pr_org_id log_sys = g_logsys IMPORTING name_exist = parent_exist pme_crm_map = parent_map EXCEPTIONS OTHERS = 0.

COM_PME_CLASS_NAME_EXIST CALL FUNCTION 'COM_PME_CLASS_NAME_EXIST' EXPORTING crm_hierarchy_name = crm_hierarchy_name crm_object_name = parent_key crm_object_type = 1 pr_org_type = '00' log_sys = g_logsys IMPORTING name_exist = parent_exist pme_crm_map = parent_map EXCEPTIONS OTHERS = 0.

COM_PME_CLASS_NAME_EXIST CALL FUNCTION 'COM_PME_CLASS_NAME_EXIST' EXPORTING crm_hierarchy_name = crm_hierarchy_name crm_object_name = object_key crm_object_type = pme_class_type pr_org_type = '00' log_sys = g_logsys IMPORTING name_exist = class_already_exist pme_crm_map = test_map EXCEPTIONS OTHERS = 0.

SYSTEM_UUID_CREATE CALL FUNCTION 'SYSTEM_UUID_CREATE' IMPORTING uuid = comt_pme_crm_map-crm_object_guid.

COM_PME_CLASS_CREATE CALL FUNCTION 'COM_PME_CLASS_CREATE' EXPORTING crm_hierarchy_guid = hierarchy_guid crm_object_guid = comt_pme_crm_map-crm_object_guid crm_object_name = object_key crm_object_type = pme_class_type parent_guid = comt_pme_crm_map-crm_parent_guid pr_org_type = comt_pme_crm_map-pr_org_type pr_org_id = comt_pme_crm_map-pr_org_id log_sys = g_logsys configurable = gv_is_configurable IMPORTING pme_crm_map_key = actual_map_key TABLES class_descr = class_texts EXCEPTIONS no_active_session = 1 class_already_exists = 2 api_error = 3 foreign_lock = 4 OTHERS = 5.

COM_PME_CLASS_OPEN_WRITE CALL FUNCTION 'COM_PME_CLASS_OPEN_WRITE' EXPORTING crm_hierarchy_guid = hierarchy_guid crm_object_guid = comt_pme_crm_map-crm_object_guid parent_guid = comt_pme_crm_map-crm_parent_guid crm_object_type = pme_class_type pr_org_type = comt_pme_crm_map-pr_org_type pr_org_id = comt_pme_crm_map-pr_org_id valid_on = comt_pme_crm_map-fromdate IMPORTING pme_crm_map_key = actual_map_key locking_user = locking_user EXCEPTIONS no_active_session = 1 class_not_found = 2 api_error = 3 foreign_lock = 4 OTHERS = 5.

COM_PME_CLASS_DELETE CALL FUNCTION 'COM_PME_CLASS_DELETE' EXPORTING crm_hierarchy_guid = hierarchy_guid crm_object_guid = comt_pme_crm_map-crm_object_guid crm_parent_guid = comt_pme_crm_map-crm_parent_guid crm_object_type = pme_class_type pr_org_type = comt_pme_crm_map-pr_org_type pr_org_id = comt_pme_crm_map-pr_org_id * VALID_ON = SY-DATUM EXCEPTIONS no_active_session = 1 class_not_found = 2 api_error = 3 system_error = 4 conflict = 5 OTHERS = 6 .

COM_PME_CLASS_ADD_CSTIC CALL FUNCTION 'COM_PME_CLASS_ADD_CSTIC' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key pme_cstic_data = cstic_data pme_cstic_field_control = pme_cstic_field_control TABLES * CSTIC_DOMAIN = GT_CSTIC_SYM_DOMAIN * VALUE_DESCR = GT_VALUE_DESCR cstic_descr = cstic_texts EXCEPTIONS no_active_session = 1 class_not_open = 2 already_exist = 3 key_char_check = 4 OTHERS = 5.

COM_PME_CLASS_ADD_CSTIC CALL FUNCTION 'COM_PME_CLASS_ADD_CSTIC' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key pme_cstic_data = cstic_data pme_cstic_field_control = pme_cstic_field_control TABLES * CSTIC_DOMAIN = GT_CSTIC_NUM_DOMAIN * VALUE_DESCR = GT_VALUE_DESCR cstic_descr = cstic_texts EXCEPTIONS no_active_session = 1 class_not_open = 2 already_exist = 3 key_char_check = 4 OTHERS = 5.

COM_PME_CLASS_GET_INFO CALL FUNCTION 'COM_PME_CLASS_GET_INFO' EXPORTING pme_crm_map_key = actual_map_key TABLES required_languages = languages class_names = names basic_attrs = basic add_attrs = add cstic_descrs = descr cstic_values = values cstic_defaults = defaults cstic_domains = domains cstic_value_descrs = val_desc EXCEPTIONS no_active_session = 1 class_not_open = 2 OTHERS = 5.

COM_PME_CLASS_OPEN_READ CALL FUNCTION 'COM_PME_CLASS_OPEN_READ' EXPORTING crm_hierarchy_guid = hierarchy_guid crm_object_guid = comt_pme_crm_map-crm_object_guid parent_guid = comt_pme_crm_map-crm_parent_guid crm_object_type = pme_class_type pr_org_type = comt_pme_crm_map-pr_org_type pr_org_id = comt_pme_crm_map-pr_org_id valid_on = comt_pme_crm_map-fromdate IMPORTING pme_crm_map_key = actual_map_key EXCEPTIONS no_active_session = 1 class_not_found = 2 api_error = 3 OTHERS = 5.

COM_PME_CLASS_GET_CSTICS CALL FUNCTION 'COM_PME_CLASS_GET_CSTICS' EXPORTING pme_crm_map_key = actual_map_key IMPORTING cstics = cstics EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_RESTRICT_DOMAIN CALL FUNCTION 'COM_PME_CSTIC_RESTRICT_DOMAIN' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_domain = gt_cstic_sym_domain value_descr = gt_value_descr EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 conflict = 4 OTHERS = 5.

COM_PME_CSTIC_RESTRICT_DOMAIN CALL FUNCTION 'COM_PME_CSTIC_RESTRICT_DOMAIN' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_domain = gt_cstic_num_domain value_descr = gt_value_descr EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 conflict = 4 OTHERS = 5.

COM_PME_CSTIC_SET_DEFAULTS CALL FUNCTION 'COM_PME_CSTIC_SET_DEFAULTS' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_sym_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_DEFAULTS CALL FUNCTION 'COM_PME_CSTIC_SET_DEFAULTS' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_num_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_VALUES





CALL FUNCTION 'COM_PME_CSTIC_SET_VALUES' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_sym_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_VALUES CALL FUNCTION 'COM_PME_CSTIC_SET_VALUES' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_num_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_DEFAULT CALL FUNCTION 'COM_PME_CSTIC_SET_DEFAULT' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key cstic_value_data = gw_cstic_sym_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_DEFAULT CALL FUNCTION 'COM_PME_CSTIC_SET_DEFAULT' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key cstic_value_data = gw_cstic_num_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_VALUE CALL FUNCTION 'COM_PME_CSTIC_SET_VALUE' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key cstic_value_data = gw_cstic_sym_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_SET_VALUE CALL FUNCTION 'COM_PME_CSTIC_SET_VALUE' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key cstic_value_data = gw_cstic_num_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CLASS_REMOVE_CSTIC * CALL FUNCTION 'COM_PME_CLASS_REMOVE_CSTIC' * EXPORTING * pme_crm_map_key = actual_map_key * cstic_key = comt_pme_cstic-cstic_key * EXCEPTIONS * no_active_session = 1 * class_not_open = 2 * api_error = 3 * OTHERS = 5.

COM_PME_CSTIC_GET_DEFAULTS CALL FUNCTION 'COM_PME_CSTIC_GET_DEFAULTS' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_sym_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_GET_VALUES CALL FUNCTION 'COM_PME_CSTIC_GET_VALUES' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_num_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_GET_VALUES CALL FUNCTION 'COM_PME_CSTIC_GET_VALUES' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_sym_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_GET_VALUES CALL FUNCTION 'COM_PME_CSTIC_GET_VALUES' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_values = gt_cstic_num_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_GET_DOMAIN CALL FUNCTION 'COM_PME_CSTIC_GET_DOMAIN' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_domain = gt_cstic_sym_domain value_descr = gt_value_descr EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CSTIC_GET_DOMAIN CALL FUNCTION 'COM_PME_CSTIC_GET_DOMAIN' EXPORTING pme_crm_map_key = actual_map_key cstic_key = comt_pme_cstic-cstic_key TABLES cstic_domain = gt_cstic_num_domain value_descr = gt_value_descr EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

SYSTEM_UUID_CREATE CALL FUNCTION 'SYSTEM_UUID_CREATE' IMPORTING uuid = hierarchy_guid.

COM_PME_SESSION_OPEN CALL FUNCTION 'COM_PME_SESSION_OPEN' EXPORTING crm_hierarchy_guid = hierarchy_guid IMPORTING session_id = g_session_id EXCEPTIONS session_already_active = 1 OTHERS = 4.

COM_PME_HIERARCHIE_CREATE CALL FUNCTION 'COM_PME_HIERARCHIE_CREATE' EXPORTING crm_hierarchy_guid = hierarchy_guid crm_hierarchy_name = crm_hierarchy_name EXCEPTIONS no_active_session = 1 hierarchy_already_exist = 2 OTHERS = 3.

COM_PME_HIERARCHIE_DELETE CALL FUNCTION 'COM_PME_HIERARCHIE_DELETE' EXPORTING crm_hierarchy_guid = hierarchy_guid EXCEPTIONS OTHERS = 2.

SYSTEM_UUID_CREATE * CALL FUNCTION 'SYSTEM_UUID_CREATE' * IMPORTING * uuid = inact_prd_guid.

COM_PME_CLASS_COPY_TO_INACTIVE * CALL FUNCTION 'COM_PME_CLASS_COPY_TO_INACTIVE' * EXPORTING * pme_crm_map_key = pme_crm_map_key * inact_prd_guid = inact_prd_guid * IMPORTING * inact_map_key = pme_crm_inactive_map_key * EXCEPTIONS * OTHERS = 0.

SYSTEM_UUID_CREATE CALL FUNCTION 'SYSTEM_UUID_CREATE' IMPORTING uuid = act_prd_guid.




COM_PME_CLASS_ACTIVATE_PRODUCT CALL FUNCTION 'COM_PME_CLASS_ACTIVATE_PRODUCT' EXPORTING target_product_guid = act_prd_guid CHANGING inact_prd_map_key = pme_crm_inactive_map_key act_prd_map_key = pme_crm_map_key EXCEPTIONS OTHERS = 0.

SYSTEM_UUID_CREATE CALL FUNCTION 'SYSTEM_UUID_CREATE' IMPORTING uuid = inact_prd_guid.

COM_PME_CLASS_SET_TO_INACTIVE CALL FUNCTION 'COM_PME_CLASS_SET_TO_INACTIVE' EXPORTING pme_crm_map_key = pme_crm_map_key inact_prd_guid = inact_prd_guid IMPORTING inact_map_key = pme_crm_inactive_map_key EXCEPTIONS OTHERS = 0.

COM_PME_CSTIC_CHECK_VALUES CALL FUNCTION 'COM_PME_CSTIC_CHECK_VALUES' EXPORTING pme_crm_map_key = pme_crm_map_key cstic_key = comt_pme_cstic-cstic_key TABLES values_to_check = lt_cstic_values_to_check wrong_values = lt_cstic_wrong_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 OTHERS = 5.

COM_PME_CLASS_ADD_PARENT CALL FUNCTION 'COM_PME_CLASS_ADD_PARENT' EXPORTING pme_crm_map_key = pme_crm_map_key pme_crm_parent_map_key = set_type_map_key EXCEPTIONS class_not_open = 1 api_error = 2 system_error = 3 OTHERS = 4.

COM_PME_CLASS_REMOVE_PARENT CALL FUNCTION 'COM_PME_CLASS_REMOVE_PARENT' EXPORTING pme_crm_map_key = pme_crm_map_key pme_crm_parent_map_key = set_type_map_key EXCEPTIONS class_not_open = 1 api_error = 2 conflict = 3 system_error = 4 OTHERS = 5.

COM_PME_CLASS_HAS_XREF CALL FUNCTION 'COM_PME_CLASS_HAS_XREF' EXPORTING pme_crm_map_key = pme_crm_map_key crm_object_type = pme_class_type cstic_key = comt_pme_cstic-cstic_key IMPORTING has_refs = has_refs TABLES values = lt_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 system_error = 4 OTHERS = 5.

COM_PME_CLASS_GET_XREF CALL FUNCTION 'COM_PME_CLASS_GET_XREF' EXPORTING pme_crm_map_key = pme_crm_map_key iv_crm_object_type = pme_class_type iv_cstic_key = comt_pme_cstic-cstic_key * IV_XREFS_IN_PRODUCTS = 'X' * IV_XREFS_IN_CATEGORIES = 'X' * IV_XREFS_IN_DEPS = 'X' * IV_XREFS_IN_VACOND = 'X' IMPORTING * ES_LOG_MSG = et_xrefs = lt_xrefs TABLES it_values = lt_values EXCEPTIONS no_active_session = 1 class_not_open = 2 api_error = 3 system_error = 4 pme_data_not_found = 5 OTHERS = 6 .

COM_PME_CSTIC_RENAME * CALL FUNCTION 'COM_PME_CSTIC_RENAME' * EXPORTING * pme_crm_map_key = actual_map_key * old_cstic_key = comt_pme_cstic-cstic_key * new_cstic_key = new_cstic_key * EXCEPTIONS * no_active_session = 1 * class_not_open = 2 * api_error = 3 * system_error = 4 * already_exist = 5 * already_used = 6 * key_char_check = 7 * OTHERS = 8.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name COM_PME_API_DEMO or its description.