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

RCPDMCLASSMATERIALIMP SAP ABAP INCLUDE - Implementation of ABAP class MATERIAL







RCPDMCLASSMATERIALIMP 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 RCPDMCLASSMATERIALIMP 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 RCPDMCLASSMATERIALIMP. "Basic submit
SUBMIT RCPDMCLASSMATERIALIMP AND RETURN. "Return to original report after report execution complete
SUBMIT RCPDMCLASSMATERIALIMP 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 MATERIAL


INCLUDES used within this REPORT RCPDMCLASSMATERIALIMP

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:

REVISION_LEVEL_TABLE_EXPORT CALL FUNCTION 'REVISION_LEVEL_TABLE_EXPORT' EXPORTING ematnr = materialnumber
TABLES wa = matrev_tab.

DOKUMENTE_ZU_OBJEKT CALL FUNCTION 'DOKUMENTE_ZU_OBJEKT' EXPORTING key = aux_objky objekt = mara_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_mara
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_mara standard_type_only = space 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_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.

CS_ALT_SELECT_MAT CALL FUNCTION 'CS_ALT_SELECT_MAT' EXPORTING all = cross datuv = validfrom matnr = materialnumber stlal = aux_mastb_wa-stlal stlan = aux_mastb_wa-stlan werks = aux_mastb_wa-werks
TABLES mastb_wa = aux_mastb_tab1 stkob_wa = aux_stkob_tab stzub_wa = aux_stzub_tab
EXCEPTIONS alt_not_found = 01 bom_not_active = 02 bom_not_found = 03 call_invalid = 04 no_alt_found = 05 no_bom_found = 06.

CS_WHERE_USED_MAT CALL FUNCTION 'CS_WHERE_USED_MAT' EXPORTING datub = validfrom datuv = validfrom matnr = materialnumber werks = generic_plant retcode_only = exist_only
IMPORTING topmat = aux_topmat
TABLES wultb = whereused equicat = aux_billofeqi_tab kndcat = aux_billofcus_tab matcat = aux_billofmat_tab stdcat = aux_billofstd_tab tplcat = aux_billofflc_tab prjcat = aux_billofprj_tab
EXCEPTIONS call_invalid = 01 material_not_found = 02 no_where_used_rec_found = 03 no_where_used_rec_selected = 04 no_where_used_rec_valid = 05.

CS_WHERE_USED_MAT_VIA_CLA CALL FUNCTION 'CS_WHERE_USED_MAT_VIA_CLA' EXPORTING datub = validfrom datuv = validfrom matnr = materialnumber postp = dummy_postp stlan = dummy_stlan werks = generic_plant
IMPORTING topmat = aux_topmat
TABLES wultb = whereused equicat = aux_billofeqi_tab kndcat = aux_billofcus_tab matcat = aux_billofmat_tab stdcat = aux_billofstd_tab tplcat = aux_billofflc_tab
EXCEPTIONS call_invalid = 01 material_not_found = 02 no_where_used_rec_found = 03 no_where_used_rec_selected = 04 no_where_used_rec_valid = 05.

CA_BUILD_OBJECT_KEYFIELDSTRING CALL FUNCTION 'CA_BUILD_OBJECT_KEYFIELDSTRING' EXPORTING object_type = material_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.

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_mtk_sel = mtk_sel i_cpsc_tsk_sel = tsk_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_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_mtk_sel = mtk_sel i_cpsc_tsk_sel = tsk_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_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_mtk_sel = mtk_sel i_cpsc_tsk_sel = tsk_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_CC_S_LOAD_COMPLEX_BY_OPR CALL FUNCTION 'CP_CC_S_LOAD_COMPLEX_BY_OPR' EXPORTING i_class = class_p i_classes_in_workarea = workarea i_cpsc_prt_sel = prt_sel i_date_from = validfrom i_date_to = validfrom
IMPORTING e_opr_ident = opr_ident
EXCEPTIONS workarea_not_found = 01 workarea_wrong_type = 02 class_wrong_type = 03 class_in_workarea_inconsistent = 04 workarea_not_specified = 05 opr_not_found = 06 no_selection_criteria = 07 invalid_selection_period = 08 key_date_required_for_ecm = 09.

QMS3_MATSPEC_INCLUDES_MIC CALL FUNCTION 'QMS3_MATSPEC_INCLUDES_MIC' EXPORTING i_matnr = materialnumber
TABLES t_qpmkkey_tab = qpmkkey_tab
EXCEPTIONS no_entry = 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.

QSS1_MATERIAL_SPEC_SHOW





CALL FUNCTION 'QSS1_MATERIAL_SPEC_SHOW' EXPORTING i_matnr = materialnumber
EXCEPTIONS no_spec = 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.

MARA_AUTHORITY_CHECK CALL FUNCTION 'MARA_AUTHORITY_CHECK' EXPORTING aktyp = aktypa
EXCEPTIONS only_display = 01 no_authority = 02.

BEGRU_MAT_AUTHORITY_CHECK CALL FUNCTION 'BEGRU_MAT_AUTHORITY_CHECK' EXPORTING aktyp = aktypa begru = lcl_begru
EXCEPTIONS no_authority = 01.

T023_SINGLE_READ CALL FUNCTION 'T023_SINGLE_READ' EXPORTING t023_matkl = lcl_matkl
IMPORTING wt023 = lcl_t023
EXCEPTIONS not_found = 01.

BEGRU_WGR_AUTHORITY_CHECK CALL FUNCTION 'BEGRU_WGR_AUTHORITY_CHECK' EXPORTING aktyp = aktypa begru = lcl_t023-begru
EXCEPTIONS no_authority = 01.

QMSP_MATERIAL_SPEC_CHK CALL FUNCTION 'QMSP_MATERIAL_SPEC_CHK' EXPORTING i_matnr = materialnumber i_only_check = cross
EXCEPTIONS no_spec = 01.

C_PDM_APPLY_FILTER_TO_OBJECT CALL FUNCTION 'C_PDM_APPLY_FILTER_TO_OBJECT' EXPORTING object_type = material check_form = filter_material_form check_program = filter_material_program material_data = aux_material_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 RCPDMCLASSMATERIALIMP or its description.