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

CS_SCR_FORM SAP ABAP INCLUDE - CSSCRFORM







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


INCLUDES used within this REPORT CS_SCR_FORM

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:

CS_CL_S_BOM_AUTHORITY_CHECK CALL FUNCTION 'CS_CL_S_BOM_AUTHORITY_CHECK' EXPORTING i_ecn_s = i_ecn i_key_date_s = i_key_date "#EC DOM_EQUAL i_stlty = i_stlty i_stlnr = i_stlnr i_stlal = i_stlal i_activity = authority-change IMPORTING e_message = no_authority EXCEPTIONS bom_not_found = 1 no_valid_bom = 2 no_authority = 3 ecm_data_not_suitable = 4.

TCSPR_READ CALL FUNCTION 'TCSPR_READ' EXPORTING csusr = sy-uname "#EC DOM_EQUAL IMPORTING struct = e_tcspr EXCEPTIONS no_entry = 1 OTHERS = 2.

TCS03_READ CALL FUNCTION 'TCS03_READ' EXPORTING agb29 = field_of_work-29 IMPORTING struct = e_tcs03 EXCEPTIONS no_entry = 1 OTHERS = 2.

CS_CL_S_BOM_AUTHORITY_CHECK CALL FUNCTION 'CS_CL_S_BOM_AUTHORITY_CHECK' EXPORTING i_ecn_s = i_ecn i_key_date_s = i_key_date "#EC DOM_EQUAL i_stlty = i_stlty i_stlnr = i_stlnr i_stlal = i_stlal i_activity = authority-change IMPORTING e_message = no_authority EXCEPTIONS bom_not_found = 1 no_valid_bom = 2 no_authority = 3 ecm_data_not_suitable = 4.

CS_CL_S_BOM_PROVIDE CALL FUNCTION 'CS_CL_S_BOM_PROVIDE' EXPORTING i_date_from = i_key_date i_date_to = i_key_date i_stlty = i_stlty i_stlnr = i_stlnr i_stlal = i_stlal i_exstl = i_exstl TABLES e_bom_class_data = bom_data.

CP_RC_EFF_DATA_SET CALL FUNCTION 'CP_RC_EFF_DATA_SET' EXCEPTIONS no_values_were_set = 1.

CP_CC_S_RELOAD_BY_BOM CALL FUNCTION 'CP_CC_S_RELOAD_BY_BOM' EXPORTING i_flg_set_lock = const-flg_yes IMPORTING e_bom_lock = bom_unlocked[] CHANGING c_bom_ident = bom_ident[] EXCEPTIONS OTHERS = 1.

CS_OV_BOM_LIST_OF_FAILED_LOCKS CALL FUNCTION 'CS_OV_BOM_LIST_OF_FAILED_LOCKS' IMPORTING e_flg_bom_relock = flg_relock e_bom_ident = bom_ident TABLES i_bom_unlocked = bom_unlocked.

CP_RC_GROUP_STATUS_PROVIDE CALL FUNCTION 'CP_RC_GROUP_STATUS_PROVIDE' IMPORTING e_flg_itm_bgr_mode_active = flg_bgr_mode.

CP_RC_EFF_DATA_SET CALL FUNCTION 'CP_RC_EFF_DATA_SET' EXCEPTIONS no_values_were_set = 1.

CP_CC_S_RELOAD_BY_ITM CALL FUNCTION 'CP_CC_S_RELOAD_BY_ITM' EXPORTING i_flg_set_lock = const-flg_yes i_flg_itm_bgr_ident = flg_bgr_mode IMPORTING e_itm_lock = itm_unlocked[] CHANGING c_itm_ident = itm_ident[] EXCEPTIONS OTHERS = 1.

CS_OV_ITM_LIST_OF_FAILED_LOCKS CALL FUNCTION 'CS_OV_ITM_LIST_OF_FAILED_LOCKS' IMPORTING e_flg_itm_relock = flg_relock e_itm_ident = itm_ident TABLES i_itm_unlocked = itm_unlocked.

CP_CC_S_SAVE_INFO_PROVIDE CALL FUNCTION 'CP_CC_S_SAVE_INFO_PROVIDE' EXCEPTIONS data_to_save = 1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CS_CL_S_BOM_UNLOCK CALL FUNCTION 'CS_CL_S_BOM_UNLOCK' EXPORTING mode_bom_class_lock = 'E' stlty = wa_c_bom_ident-stlty stlnr = wa_c_bom_ident-stlnr stlal = wa_c_bom_ident-stlal EXCEPTIONS system_failure_lock = 3.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_CC_S_SAVE_INFO_PROVIDE CALL FUNCTION 'CP_CC_S_SAVE_INFO_PROVIDE' EXCEPTIONS data_to_save = 1.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CS_CL_S_ITM_UNLOCK





CALL FUNCTION 'CS_CL_S_ITM_UNLOCK' EXPORTING stlty = wa_c_itm_ident-stlty stlnr = wa_c_itm_ident-stlnr ident = wa_c_itm_ident-ident stvkn = wa_c_itm_ident-stvkn EXCEPTIONS system_failure_lock = 3.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CS_CL_S_BOM_AUTHORITY_CHECK CALL FUNCTION 'CS_CL_S_BOM_AUTHORITY_CHECK' EXPORTING i_ecn_s = i_ecn i_key_date_s = i_key_date i_stlty = i_stlty i_stlnr = i_stlnr i_stlal = i_stlal i_matnr = i_matnr i_werks = i_werks i_stlan = i_stlan i_activity = activity IMPORTING e_message = e_no_authority EXCEPTIONS bom_not_found = 1 no_valid_bom = 2 no_authority = 3 ecm_data_not_suitable = 4.

CS_CL_P_MBM_PROVIDE CALL FUNCTION 'CS_CL_P_MBM_PROVIDE' EXPORTING i_matnr = i_matnr i_stlan = i_stlan i_stlnr = i_stlnr i_stlal = i_stlal * I_FLG_NO_MAT_VARIANTS = ' ' * I_FLG_NO_ALLOCATIONS = ' ' i_flg_none_virtual = const-flg_no TABLES e_mbm_class_data = mbm_tab EXCEPTIONS wrong_key = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_MESSAGE_COLLECT CALL FUNCTION 'CP_MC_MESSAGE_COLLECT' EXCEPTIONS message_not_collected = 1 OTHERS = 2.

CP_MC_OPEN CALL FUNCTION 'CP_MC_OPEN' EXPORTING i_message_handler = message_handler-appl_log i_keep_protocoll = const-flg_yes EXCEPTIONS OTHERS = 1.

CP_MC_BOM_SET CALL FUNCTION 'CP_MC_BOM_SET' EXPORTING i_mandt = sy-mandt i_stlty = ini_stlty i_stlnr = ini_stlnr * I_STLAL = * IMPORTING * E_LOGNUMBER = EXCEPTIONS OTHERS = 1.

CS_CL_S_MAT_BOM_CHECK CALL FUNCTION 'CS_CL_S_MAT_BOM_CHECK' EXPORTING i_matnr = i_matnr i_werks = i_werks i_stlan = i_stlan i_key_date_s = i_key_date i_activity = i_activity IMPORTING "note e_message = e_message "note CHANGING c_stlnr = c_stlnr c_stlal = c_stlal c_exstl = c_exstl c_tetyp = c_tetyp EXCEPTIONS no_valid_material = 1 no_valid_plant = 2 no_valid_usage = 3 bom_not_found = 4 bom_already_exists = 5 multiple_bom = 6 variant_bom = 7 bom_in_plant_not_found = 8 OTHERS = 9.

CP_MC_CLOSE CALL FUNCTION 'CP_MC_CLOSE' EXCEPTIONS OTHERS = 1.




CS_CL_S_BOM_ALT_PROVIDE CALL FUNCTION 'CS_CL_S_BOM_ALT_PROVIDE' EXPORTING i_date_from = i_date_from i_date_to = i_date_to i_stlty = i_stlty i_stlnr = i_stlnr IMPORTING e_alternatives = l_alternatives.

CS_CL_S_ITM_ALLOCATION_PROVIDE CALL FUNCTION 'CS_CL_S_ITM_ALLOCATION_PROVIDE' EXPORTING i_date_from = i_date_from i_date_to = i_date_to i_stlty = i_stlty i_stlnr = i_stlnr i_stlkn = i_stlkn i_stpoz = i_stpoz IMPORTING e_itm_alloc_data = itm_alloc_data EXCEPTIONS wrong_key = 1 OTHERS = 2.



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