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

RCSBI020 SAP ABAP Report - Change BOMs using Batch Input







RCSBI020 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is used to copy changes to BOMs from an external system to the SAP System...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RCSBI020 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

OS43 - Copy BOM changes


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 RCSBI020. "Basic submit
SUBMIT RCSBI020 AND RETURN. "Return to original report after report execution complete
SUBMIT RCSBI020 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: BDC_FLAG = ?...(BDC_FLAG)
Selection Text: DATA_APP = ?...(DATA_APP)
Selection Text: DATA_REM = ?...(DATA_REM)
Selection Text: DS_NAME = File Name
Selection Text: LOG_NAME = Logical File Name
Selection Text: SERVER = External Application Server
Title: Change BOMs using Batch Input
Text Symbol: 001 = Processing the data records imported from the file:
Text Symbol: 002 = Create Folder
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:
Text Symbol: 012 = Application Server
Text Symbol: 013 = Presentation Server
Text Symbol: 014 = Edit folder '&'
Text Symbol: 015 = Edit BOM '& & & &'


INCLUDES used within this REPORT RCSBI020

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:

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = d020s-prog dynumb = d020s-dnum
TABLES dynpfields = dynp_value_tab
EXCEPTIONS invalid_abapworkarea = 04 invalid_dynprofield = 08 invalid_dynproname = 12 invalid_dynpronummer = 16 invalid_request = 20 no_fielddescription = 24 undefind_error = 28.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = space def_path = ds_name mask = mask mode = 'O' title = space
IMPORTING filename = ds_name rc = dummy
EXCEPTIONS inv_winsys = 04 no_batch = 08 selection_cancel = 12 selection_error = 16.

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
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'.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP' EXCEPTIONS OTHERS = 1.

CS_BC_BOM_CHANGE_BATCH_INPUT CALL FUNCTION 'CS_BC_BOM_CHANGE_BATCH_INPUT' EXPORTING bdc_flag = bdc_flag bom_header = bom_header close_group = close_group commit_work = commit_work group_data = bgr00 new_group = new_group tcode_mode = tcd_mode tcode_update = 'A'
IMPORTING msgty = message_type msgid = message_id msgno = message_number msgv1 = message_var1 msgv2 = message_var2 msgv3 = message_var3 msgv4 = message_var4 new_group_out = new_group
TABLES bom_item = bom_items bom_sub_item = bom_sub_items.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

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.



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