SAP Reports / Programs | Logistics - General | Logistics Basic Data | Bills of Material(LO-MD-BOM) SAP LO

RCSALOTR SAP ABAP Report - documentation and ABAP source code







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


Text pool values


Selection Text: P_VBPOS = D Item
Selection Text: P_VBELN = D Sales document
Selection Text: P_MEMORY = D Work with internal buffering
Selection Text: P_DETECT = Include manual assemblies
Selection Text: P_DELETE = D Delete the order spec. assign
Selection Text: P_CAPID = D BOM application
Selection Text: P_AUFART = D Order Type
Selection Text: P_AENNR = D Change number
Text Symbol: 001 = Please select the assemblies to be processed


INCLUDES used within this REPORT RCSALOTR

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:

CP_99_MAT_RESET_TABLES CALL FUNCTION 'CP_99_MAT_RESET_TABLES'.

ENQUEUE_EVVBAKE CALL FUNCTION 'ENQUEUE_EVVBAKE' EXPORTING MANDT = SY-MANDT VBELN = p_vbeln EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

CS_BT_INIT CALL FUNCTION 'CS_BT_INIT'.

SD_VBAP_SELECT CALL FUNCTION 'SD_VBAP_SELECT' EXPORTING i_document_number = p_vbeln i_item_number = p_vbpos IMPORTING e_vbap = l_vbap EXCEPTIONS item_not_found = 1 OTHERS = 2.

CC_CHANGE_NUMBER_READ CALL FUNCTION 'CC_CHANGE_NUMBER_READ' "14 EXPORTING EAENNR = P_AENNR IMPORTING ADATUV = L_DATUM_AENNR EXCEPTIONS NO_RECORD_FOUND = 1 OTHERS = 2.

CS_BOM_EXPL_KND_V1 CALL FUNCTION 'CS_BOM_EXPL_KND_V1' EXPORTING capid = p_capid cuobj = l_vbap-cuobj datuv = l_datum *optional emeng = l_emeng "note525295 mehrs = c_cross mtnrv = l_vbap-matnr mmory = p_memory vbeln = p_vbeln vbpos = p_vbpos *d werks = l_vbap-werks "note 576422 werks = l_xwerks "note 576422 IMPORTING topmat = l_topmat TABLES stb = lt_stpox matcat = lt_matcat EXCEPTIONS alt_not_found = 1 call_invalid = 2 material_not_found = 3 missing_authorization = 4 no_bom_found = 5 no_plant_data = 6 no_suitable_bom_found = 7 conversion_error = 8 OTHERS = 9.

CP_99_MAT_ALLOC_PREPARE_NEW CALL FUNCTION 'CP_99_MAT_ALLOC_PREPARE_NEW' EXPORTING matnr = l_root-idnrk werks = l_root-werks vbeln = p_vbeln posnr = p_vbpos sttag = l_datum i_flg_report = c_cross i_auart = p_aufart TABLES trans_tab = lt_ob_trans EXCEPTIONS wrong_bom_type = 1 bom_key_incomplete = 2 OTHERS = 3.

CP_99_MAT_ALLOC_DELETE_NEW CALL FUNCTION 'CP_99_MAT_ALLOC_DELETE_NEW' EXPORTING i_vbeln = p_vbeln i_posnr = p_vbpos EXCEPTIONS no_deletion_by_user = 1 OTHERS = 2.

CP_99_MAT_ALLOC_TRANSFORM_NEW CALL FUNCTION 'CP_99_MAT_ALLOC_TRANSFORM_NEW' EXCEPTIONS system_failure = 1 foreign_lock = 2 OTHERS = 3.

MD_VERSION_SELECTION CALL FUNCTION 'MD_VERSION_SELECTION' EXPORTING date = l_datum lotsize = l_emeng matnr = u_matnr plant = u_werks select_id = l_tc04-cslid IMPORTING mkal_e = l_mkal EXCEPTIONS no_version_selected = 1 selection_id_not_found = 2 OTHERS = 3.

CS_ALT_SELECT_MAT CALL FUNCTION 'CS_ALT_SELECT_MAT' EXPORTING all = c_space capid = p_capid datuv = l_datum losgr = l_emeng matnr = l_matnr_bom notab = l_notab werks = u_werks stlan = l_stlan TABLES mastb_wa = lt_mastb stkob_wa = lt_stkob stzub_wa = lt_stzub EXCEPTIONS alt_not_found = 1 bom_not_active = 2 bom_not_found = 3 call_invalid = 4 no_alt_found = 5 no_bom_found = 6 OTHERS = 7.

GET_STPO CALL FUNCTION 'GET_STPO' EXPORTING all = c_cross alter = l_topmat-stlal datub = '99991231' datuv = '19000101' set = c_cross no_buffer = l_no_buff valid = c_cross TABLES add_wa = lt_wa_cszalt wa = lt_wa_stpob EXCEPTIONS call_invalid = 1 end_of_table = 2 get_without_set = 3 key_incomplete = 4 key_invalid = 5 no_record_found = 6 viewname_invalid = 7 OTHERS = 8.

GET_STPO CALL FUNCTION 'GET_STPO' EXPORTING all = c_cross alter = lt_stpox_hd-xtlal datub = '99991231' datuv = '19000101' no_buffer = l_no_buff set = c_cross valid = c_cross TABLES add_wa = lt_wa_cszalt wa = lt_wa_stpob EXCEPTIONS call_invalid = 1 end_of_table = 2 get_without_set = 3 key_incomplete = 4 key_invalid = 5 no_record_found = 6 viewname_invalid = 7 OTHERS = 8.

GET_STPO CALL FUNCTION 'GET_STPO' EXPORTING all = c_cross alter = l_stlal datub = '99991231' datuv = '19000101' no_buffer = l_no_buff set = c_cross valid = c_cross TABLES add_wa = lt_wa_cszalt wa = lt_wa_stpob EXCEPTIONS call_invalid = 1 end_of_table = 2 get_without_set = 3 key_incomplete = 4 key_invalid = 5 no_record_found = 6 viewname_invalid = 7 OTHERS = 8.

MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = u_matnr werks = u_werks IMPORTING wmarc = lt_marc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.

CS_ME_GET_CSORDER_MAT CALL FUNCTION 'CS_ME_GET_CSORDER_MAT' EXPORTING is_csorder_mat = ls_csorder_mat TABLES et_csorder_mat = lt_csorder_mat EXCEPTIONS err_wrong_order_env = 1 err_no_record = 2 err_on_lock = 3 OTHERS = 4.

SD_VBAP_SELECT CALL FUNCTION 'SD_VBAP_SELECT' EXPORTING i_document_number = p_vbeln i_item_number = l_uepos IMPORTING e_vbap = lt_vbap EXCEPTIONS item_not_found = 1 OTHERS = 2.

GET_MAST CALL FUNCTION 'GET_MAST' EXPORTING all = c_cross no_buffer = l_no_buff set = c_cross TABLES wa = lt_mastb EXCEPTIONS call_invalid = 1 end_of_table = 2 get_without_set = 3 key_incomplete = 4 key_invalid = 5 no_record_found = 6 OTHERS = 7.

F4IF_INT_TABLE_VALUE_REQUEST





CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING ddic_structure = 'MASTB' retfield = 'STLNR' window_title = text-001 value_org = 'S' callback_program = 'RCSALOTR' TABLES value_tab = lt_mastb return_tab = lt_ret_mastb EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.



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