RCSBI040 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for With this program, you can transfer BOMs
If you would like to execute this report or see the full code listing simply enter RCSBI040 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
OS45 - Copy BOM with description
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.
Selection Text: LOG_NAME = Logical file name
Title: Create BOMs with all long texts using Batch Input
Text Symbol: 001 = Processing the data records imported from the file:
Text Symbol: 002 = Create session
Text Symbol: 003 = Selected: Always create BI sessions
Text Symbol: 004 = Not selected: Create BI sessions in case of error only
Text Symbol: 006 = Read file from application server
Text Symbol: 007 = Read file from presentation server
Text Symbol: 008 = Read file from external application server
Text Symbol: 009 = Storage location of file to be read
Text Symbol: 010 = Server name
Text Symbol: 011 = The following messages were displayed:
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
TH_SELECT_SERVER call function 'TH_SELECT_SERVER' exporting services = msxxlist-msgtypes
importing server = server
exceptions no_server_list_received = 04 no_server_selected = 08.
FILE_GET_NAME call function 'FILE_GET_NAME' exporting logical_filename = log_name use_presentation_server = data_frn
importing file_name = ds_phy_name
exceptions file_not_found = 04.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_logfile_ldm CHANGING PHYSICAL_FILENAME = ds_phy_name EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2.
TH_SERVER_LIST call function 'TH_SERVER_LIST' exporting services = msxxlist-msgtypes
tables list = server_tab.
CS_BI_GET_BOM_FILE_REMOTE_HOST call function 'CS_BI_GET_BOM_FILE_REMOTE_HOST' destination server exporting bom_filename = ds_phy_name log_filename = log_name "n 1524781 tables bom_file = pc_data_tab exceptions logical_filename_not_found = 01 "n 1524781 validation_failed = 02 "n 1524781 open_failure = 04 file_contains_no_data = 08.
BDC_CLOSE_GROUP call function 'BDC_CLOSE_GROUP'. "note 303260
BDC_CLOSE_GROUP call function 'BDC_CLOSE_GROUP'. "note 303260
BDC_CLOSE_GROUP call function 'BDC_CLOSE_GROUP' "note535720 exceptions "note535720 others = 1. "note535720
CS_BI_BOM_CREATE_WITH_LONGTEXT call function 'CS_BI_BOM_CREATE_WITH_LONGTEXT' exporting bdc_flag = bdc_flag bom_header = bom_header close_group = close_group group_data = bgr00 new_group = new_group tcode_mode = tcd_mode tcode_update = tcd_update
importing msgty = message_type msgid = message_id msgno = message_number msgv1 = message_var1 msgv2 = message_var2 msgv3 = message_var3 msgv4 = message_var4
tables bom_alternative_text = bom_alt_text bom_header_text = bom_text bom_items = bom_items bom_items_texts = ltext_tab bom_sub_items = bom_sub_items.
CS_BI_BOM_CREATE_WITH_LONGTEXT call function 'CS_BI_BOM_CREATE_WITH_LONGTEXT' exporting bdc_flag = local_bdc_flag bom_header = bom_header close_group = close_group group_data = bgr00 new_group = new_group tcode_mode = tcd_mode tcode_update = tcd_update
importing msgty = message_type msgid = message_id msgno = message_number msgv1 = message_var1 msgv2 = message_var2 msgv3 = message_var3 msgv4 = message_var4
tables bom_alternative_text = bom_alt_text bom_header_text = bom_text bom_items = bom_items bom_items_texts = ltext_tab bom_sub_items = bom_sub_items.
WRITE_MESSAGE call function 'WRITE_MESSAGE' exporting msgid = aux_msgid msgno = aux_msgno msgty = aux_msgty msgv1 = w_msgv1 msgv2 = w_msgv2 msgv3 = w_msgv3 msgv4 = w_msgv4 msgv5 = space
importing error = error_flag messg = loc_aux_message msgln = message_length.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RCSBI040 - Create BOMs with all long texts using Batch Input RCSBI040 - Create BOMs with all long texts using Batch Input RCSBI030 - Create Variant BOMs using Batch Input RCSBI030 - Create Variant BOMs using Batch Input RCSBI020 - Change BOMs using Batch Input RCSBI020 - Change BOMs using Batch Input