SAP Reports / Programs | Basis Components | BW Service API(BC-BW) SAP BC

ROSOA_CHANGE_KEY SAP ABAP Report - DataSource A Version: Key Definition







ROSOA_CHANGE_KEY 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 ROSOA_CHANGE_KEY 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 ROSOA_CHANGE_KEY. "Basic submit
SUBMIT ROSOA_CHANGE_KEY AND RETURN. "Return to original report after report execution complete
SUBMIT ROSOA_CHANGE_KEY 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_CHNG = Make Change to Key
Selection Text: P_DATE = Date
Selection Text: P_LOGS = Display Logs
Selection Text: P_DS = D .
Selection Text: P_LOGNR = D .
Selection Text: P_USER = D .
Title: DataSource A Version: Key Definition
Text Symbol: 001 = Definition of Key Fields
Text Symbol: 002 = Confirmation Prompt
Text Symbol: 003 = Copy Changes?
Text Symbol: 004 = Yes
Text Symbol: 005 = No
Text Symbol: 006 = DataSource (Active Version)
Text Symbol: 007 = Application Logs
Text Symbol: 010 = DataSource
Text Symbol: 011 = Log


INCLUDES used within this REPORT ROSOA_CHANGE_KEY

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:

RSA2_SYSTEMTYPE_GET CALL FUNCTION 'RSA2_SYSTEMTYPE_GET' EXPORTING i_with_buffer = 'X' IMPORTING e_systemtype = l_systemtype e_contentsys = l_contentsys.

RSA1_SINGLE_OLTPSOURCE_GET CALL FUNCTION 'RSA1_SINGLE_OLTPSOURCE_GET' EXPORTING i_with_buf = ' ' i_oltpsource = i_ds i_objvers = rsaot_c_objvers-active * I_T_LANGU = * I_NO_TEXT = ' ' i_no_authority = rsaot_c_flag-off i_leanmode = rsaot_c_flag-off EXCEPTIONS no_authority = 1 not_exist = 2 inconsistent = 3 OTHERS = 4.

RSA1_DSOURCE_GET CALL FUNCTION 'RSA1_DSOURCE_GET' EXPORTING i_ds = i_ds i_objvers = rsaot_c_objvers-active i_with_check = rsaot_c_flag-off IMPORTING e_cs_ds = lsx_ds.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'DD03L' CHANGING ct_fieldcat = lt_fc_dd03l[] EXCEPTIONS OTHERS = 0.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'ROOSFIELD' CHANGING ct_fieldcat = lt_fc_os[] EXCEPTIONS OTHERS = 0.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = g_txt_title * i_selection = 'X' i_allow_no_selection = '' * I_ZEBRA = ' ' i_screen_start_column = 5 i_screen_start_line = 5 i_screen_end_column = 150 i_screen_end_line = 30 i_checkbox_fieldname = 'MARKED' * I_LINEMARK_FIELDNAME = * I_SCROLL_TO_SEL_LINE = 'X' i_tabname = 'LT_OSKEY' * i_structure_name = '' it_fieldcat = lt_fieldcat * it_excluding = lt_excluding * I_CALLBACK_PROGRAM = * I_CALLBACK_USER_COMMAND = * IS_PRIVATE = IMPORTING es_selfield = ls_selected e_exit = l_exit TABLES t_outtab = lt_oskey EXCEPTIONS program_error = 1 OTHERS = 2.

RSA1_DSOURCE_AUTHORITY_CHECK CALL FUNCTION 'RSA1_DSOURCE_AUTHORITY_CHECK' EXPORTING i_oltpsource = lsx_corr-datasource * I_APCO = i_activity = rsaot_c_authority-change EXCEPTIONS internal_error = 1 no_authority = 2 OTHERS = 3.

RSA1_INT_DSOURCE_TRANSPORT CALL FUNCTION 'RSA1_INT_DSOURCE_TRANSPORT' EXPORTING i_content = ' ' i_workmode = rsaot_c_tr-insert i_no_trans = ' ' i_delfl = rsaot_c_flag-off CHANGING c_cs_ds = lsx_ds EXCEPTIONS transport_error = 1 error_occured = 2 OTHERS = 3.

ENQUEUE_E_OSOURCE CALL FUNCTION 'ENQUEUE_E_OSOURCE' EXPORTING mode_roosource = 'E' mode_roosourcet = 'E' mode_roosfield = 'E' oltpsource = i_oltpsource objvers = i_objvers _scope = '1' EXCEPTIONS OTHERS = 1.

DEQUEUE_E_OSOURCE CALL FUNCTION 'DEQUEUE_E_OSOURCE' EXPORTING mode_roosource = 'E' mode_roosourcet = 'E' mode_roosfield = 'E' oltpsource = i_oltpsource objvers = i_objvers _scope = '1' _synchron = 'X'.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = i_title * DIAGNOSE_OBJECT = ' ' text_question = i_text text_button_1 = g_txt_yes * ICON_BUTTON_1 = ' ' text_button_2 = g_txt_no * ICON_BUTTON_2 = ' ' default_button = '2' display_cancel_button = ' ' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = l_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

RSA1_DSOURCE_CHECK CALL FUNCTION 'RSA1_DSOURCE_CHECK' CHANGING c_cs_ds = lsx_ds.

BAL_LOG_MSG_ADD call function 'BAL_LOG_MSG_ADD' exporting i_log_handle = l_log_handle i_s_msg = ls_bal_msg exceptions log_not_found = 0.

LIST_FREE_MEMORY CALL FUNCTION 'LIST_FREE_MEMORY'.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = l_log_handle.

BAL_DB_SAVE_PREPARE CALL FUNCTION 'BAL_DB_SAVE_PREPARE' EXPORTING i_t_replace_in_these_logs = ct_log_handle EXCEPTIONS OTHERS = 0.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_t_log_handle = ct_log_handle EXCEPTIONS log_not_found = 0 save_not_allowed = 0 numbering_error = 0.

BAL_DSP_PROFILE_POPUP_GET





CALL FUNCTION 'BAL_DSP_PROFILE_POPUP_GET' IMPORTING e_s_display_profile = lsx_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = lsx_profile i_t_log_handle = its_log_handle IMPORTING e_s_exit_command = ls_exit EXCEPTIONS OTHERS = 1.

BAL_LOG_REFRESH CALL FUNCTION 'BAL_LOG_REFRESH' EXPORTING i_log_handle = EXCEPTIONS OTHERS = 0.

BAL_DB_LOAD CALL FUNCTION 'BAL_DB_LOAD' EXPORTING i_t_lognumber = lt_lognr IMPORTING e_t_log_handle = lts_log EXCEPTIONS no_logs_specified = 1 log_not_found = 2 log_already_loaded = 3 OTHERS = 4.

BAL_DB_LOAD CALL FUNCTION 'BAL_DB_LOAD' EXPORTING i_t_lognumber = lt_lognr IMPORTING e_t_log_handle = lts_log EXCEPTIONS no_logs_specified = 1 log_not_found = 2 log_already_loaded = 3 OTHERS = 4.

BAL_DB_SEARCH CALL FUNCTION 'BAL_DB_SEARCH' EXPORTING i_s_log_filter = lsx_log_filter IMPORTING e_t_log_header = ct_logheader EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'BALHDR' CHANGING ct_fieldcat = lt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = g_txt_logs * I_SELECTION = 'X' * I_ALLOW_NO_SELECTION = i_zebra = 'X' i_screen_start_column = 5 i_screen_start_line = 5 i_screen_end_column = 180 i_screen_end_line = 25 * I_CHECKBOX_FIELDNAME = * I_LINEMARK_FIELDNAME = * I_SCROLL_TO_SEL_LINE = 'X' i_tabname = 'BALHDR' it_fieldcat = lt_fcat it_excluding = lt_exclude * I_CALLBACK_PROGRAM = * I_CALLBACK_USER_COMMAND = * IS_PRIVATE = IMPORTING es_selfield = ls_selfield e_exit = l_exit TABLES t_outtab = lt_logheader EXCEPTIONS program_error = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = lt_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 OTHERS = 10.

CONVERSION_EXIT_SDATE_INPUT CALL FUNCTION 'CONVERSION_EXIT_SDATE_INPUT' EXPORTING input = ls_dynpfields-fieldvalue IMPORTING output = l_date.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-repid dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-repid dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = lt_dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 OTHERS = 10.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * DDIC_STRUCTURE = ' ' retfield = 'DATASOURCE' * PVALKEY = ' ' dynpprog = sy-cprog dynpnr = sy-dynnr dynprofield = 'P_DS' * STEPL = 0 window_title = g_txt_ds * VALUE = ' ' value_org = 'S' * MULTIPLE_CHOICE = ' ' * DISPLAY = ' ' * CALLBACK_PROGRAM = ' ' * CALLBACK_FORM = ' ' * CALLBACK_METHOD = * MARK_TAB = * IMPORTING * USER_RESET = TABLES value_tab = lt_value * FIELD_TAB = lt_field_tab * RETURN_TAB = * DYNPFLD_MAPPING = 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 ROSOA_CHANGE_KEY or its description.