SAP Reports / Programs | Logistics - General | Product Data Management | Product Structure Browser(LO-PDM-GF-OBR) SAP LO

RCPDMCLASSECMIMP SAP ABAP INCLUDE - Implementation of ABAP class ECM







RCPDMCLASSECMIMP is a standard ABAP INCLUDE 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 RCPDMCLASSECMIMP 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 RCPDMCLASSECMIMP. "Basic submit
SUBMIT RCPDMCLASSECMIMP AND RETURN. "Return to original report after report execution complete
SUBMIT RCPDMCLASSECMIMP VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Implementation of ABAP class ECM


INCLUDES used within this REPORT RCPDMCLASSECMIMP

No INCLUDES are used within this REPORT code!


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:

BU_INIT CALL FUNCTION 'BU_INIT'.

CCBR_GET_ECR_NOTIFICATION CALL FUNCTION 'CCBR_GET_ECR_NOTIFICATION' EXPORTING i_aennr = ecmnumber
TABLES te_notifications = aux_qmnum_tab
EXCEPTIONS not_found = 01 error_relation = 02.

DOKUMENTE_ZU_OBJEKT CALL FUNCTION 'DOKUMENTE_ZU_OBJEKT' EXPORTING key = aux_objky objekt = aenr_dokob
TABLES doktab = doc_tab
EXCEPTIONS kein_dokument = 01.

CLCV_CONVERT_FIELDS_TO_OBJECT CALL FUNCTION 'CLCV_CONVERT_FIELDS_TO_OBJECT' EXPORTING rmclfstru = aux_rmclf table = table_aenr
IMPORTING rmclfstru = aux_rmclf tcode = syst-tcode
EXCEPTIONS tclo_not_found = 04.

CLAP_DDB_GET_CLASSIFICATION CALL FUNCTION 'CLAP_DDB_GET_CLASSIFICATION' EXPORTING object = aux_rmclf-objek obtab = table_aenr standard_type_only = cross "note 1852797 object_eq_class = space spras = syst-langu only_varklart = varklart pobtab = pobtab date_of_change = validfrom read_only = read_only
TABLES allocations = aux_class_tab
EXCEPTIONS no_allocation = 01 set_aennr = 02 change_nr_not_exist = 03 date_in_past = 04 error_class = 05 error_date_restriction = 06 error_status = 07.

CLAP_DDB_INIT_CLASSIFICATION CALL FUNCTION 'CLAP_DDB_INIT_CLASSIFICATION'.

GET_KDST_AOV CALL FUNCTION 'GET_KDST_AOV' EXPORTING no_buffer = cross
TABLES kdstb_tab = aux_kdstb_tab
CHANGING wa_kdstb_tab = aux_kdstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_DOST_AOV CALL FUNCTION 'GET_DOST_AOV' EXPORTING no_buffer = cross
TABLES dostb_tab = aux_dostb_tab
CHANGING wa_dostb_tab = aux_dostb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_EQST_AOV CALL FUNCTION 'GET_EQST_AOV' EXPORTING no_buffer = cross
TABLES eqstb_tab = aux_eqstb_tab
CHANGING wa_eqstb_tab = aux_eqstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_TPST_AOV CALL FUNCTION 'GET_TPST_AOV' EXPORTING no_buffer = cross
TABLES tpstb_tab = aux_tpstb_tab
CHANGING wa_tpstb_tab = aux_tpstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_MAST_AOV CALL FUNCTION 'GET_MAST_AOV' EXPORTING no_buffer = cross
TABLES mastb_tab = aux_mastb_tab
CHANGING wa_mastb_tab = aux_mastb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_PRST_AOV CALL FUNCTION 'GET_PRST_AOV' EXPORTING no_buffer = cross
TABLES prstb_tab = aux_prstb_tab
CHANGING wa_prstb_tab = aux_prstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_DOST_AOV CALL FUNCTION 'GET_DOST_AOV' EXPORTING no_buffer = cross
TABLES dostb_tab = aux_dostb_tab
CHANGING wa_dostb_tab = aux_dostb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_EQST_AOV CALL FUNCTION 'GET_EQST_AOV' EXPORTING no_buffer = cross
TABLES eqstb_tab = aux_eqstb_tab
CHANGING wa_eqstb_tab = aux_eqstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_KDST_AOV CALL FUNCTION 'GET_KDST_AOV' EXPORTING no_buffer = cross
TABLES kdstb_tab = aux_kdstb_tab
CHANGING wa_kdstb_tab = aux_kdstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_MAST_AOV CALL FUNCTION 'GET_MAST_AOV' EXPORTING no_buffer = cross
TABLES mastb_tab = aux_mastb_tab
CHANGING wa_mastb_tab = aux_mastb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

READ_STZU_AOV CALL FUNCTION 'READ_STZU_AOV' CHANGING wa_stzub_tab = aux_stzub_wa
EXCEPTIONS call_invalid = 01 key_incomplete = 02 no_record_found = 03.

GET_PRST_AOV CALL FUNCTION 'GET_PRST_AOV' EXPORTING no_buffer = cross
TABLES prstb_tab = aux_prstb_tab
CHANGING wa_prstb_tab = aux_prstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

GET_TPST_AOV





CALL FUNCTION 'GET_TPST_AOV' EXPORTING no_buffer = cross
TABLES tpstb_tab = aux_tpstb_tab
CHANGING wa_tpstb_tab = aux_tpstb_wa
EXCEPTIONS call_invalid = 01 end_of_table = 02 key_incomplete = 03 key_invalid = 04 no_record_found = 05.

DOCUMENTS_TO_CHANGE_NUMBER CALL FUNCTION 'DOCUMENTS_TO_CHANGE_NUMBER' EXPORTING aennr = ecmnumber
TABLES documents = aux_draw.

CTR1_GET_CHARACT_FOR_CHG_NO CALL FUNCTION 'CTR1_GET_CHARACT_FOR_CHG_NO' EXPORTING change_number = ecmnumber key_date = validfrom
TABLES charact_data = aux_rctchar
EXCEPTIONS not_found = 01.

CP_CC_S_LOAD_COMPLEX_BY_TSK CALL FUNCTION 'CP_CC_S_LOAD_COMPLEX_BY_TSK' EXPORTING i_class = class_p i_classes_in_workarea = workarea i_cpsc_ecn_sel = ecm_sel i_date_from = validfrom i_date_to = validfrom
IMPORTING e_tsk_ident = tsk_ident
EXCEPTIONS workarea_not_found = 01 workarea_wrong_type = 02 class_in_workarea_inconsistent = 03 workarea_not_specified = 04 tsk_not_found = 05 no_selection_criteria = 06 invalid_selection_period = 07 key_date_required_for_ecm = 08.

CP_CL_S_TSK_ID_PROVIDE_BY_TGR CALL FUNCTION 'CP_CL_S_TSK_ID_PROVIDE_BY_TGR' EXPORTING i_plnty = loc_ccpln-plnty i_plnnr = loc_ccpln-plnnr
IMPORTING e_tsk_ident = tsk_ident_1.

CA_BUILD_OBJECT_KEYFIELDSTRING CALL FUNCTION 'CA_BUILD_OBJECT_KEYFIELDSTRING' EXPORTING object_type = ecm_objtp
IMPORTING objkey = aux_objkey
TABLES object_type_keyfield_values = obj_inst_key
EXCEPTIONS invalid_object_type_key_fields = 01 object_type_not_existent = 02.

SO_OBJECT_REFERENCES_IN_OFO CALL FUNCTION 'SO_OBJECT_REFERENCES_IN_OFO' EXPORTING object = aux_swotobjid owner = syst-uname
TABLES object_folder = aux_sood4.

STATUS_READ CALL FUNCTION 'STATUS_READ' EXPORTING objnr = aux_objnr
TABLES status = aux_status_tab
EXCEPTIONS object_not_found = 01.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = tcode
EXCEPTIONS ok = 00 not_ok = 01.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = tcode
EXCEPTIONS ok = 00 not_ok = 01.

BAPI_DOCUMENT_CHANGE2 CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2' EXPORTING documentnumber = document_inst->documentnumber documenttype = document_inst->documenttype documentpart = document_inst->documentpart documentversion = document_inst->documentversion documentdata = lcl_doc_data documentdatax = lcl_doc_datax
IMPORTING return = lcl_return
TABLES objectlinks = lcl_obj_links.

C_PDM_APPLY_FILTER_TO_OBJECT CALL FUNCTION 'C_PDM_APPLY_FILTER_TO_OBJECT' EXPORTING object_type = ecm1 check_form = filter_ecm_form check_program = filter_ecm_program ecm_data = aux_ecm_data
IMPORTING check_ok = check_ok.



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 RCPDMCLASSECMIMP or its description.