SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | SAPscript(BC-SRV-SCR) SAP BC

RSTXTCPY SAP ABAP Report - Copy Texts Between Clients







RSTXTCPY 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 RSTXTCPY 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

QCYT - QM standard texts (general)


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 RSTXTCPY. "Basic submit
SUBMIT RSTXTCPY AND RETURN. "Return to original report after report execution complete
SUBMIT RSTXTCPY 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: DIAL = Overwrite after confirmation
Selection Text: OBJEKT = Object name
Selection Text: PROTOKOL = Action log
Selection Text: QUELMAND = Source client
Selection Text: QUELNAME = Text Name
Selection Text: SPRACHE = Language
Selection Text: TEXTID = Text ID
Selection Text: ZIELNAME = Target Name
Title: Copy Texts Between Clients
Text Symbol: 014 = Overwrite standard text &
Text Symbol: 015 = in target client & ?
Text Symbol: 016 = Copying standard texts
Text Symbol: 017 = Standard texts &
Text Symbol: 020 = List of text modules already available in target client
Text Symbol: 021 = Select those texts that are to be overwritten
Text Symbol: 022 = The request (client copy &1 -> &2) was executed on &3


INCLUDES used within this REPORT RSTXTCPY

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:

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = gd_log_header IMPORTING e_log_handle = gd_log_handle.

BAL_LOG_HDR_READ CALL FUNCTION 'BAL_LOG_HDR_READ' EXPORTING i_log_handle = gd_log_handle IMPORTING e_statistics = gd_log_stat.

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = gd_log_prof.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = gd_log_prof.

SELECT_TEXT call function 'SELECT_TEXT' exporting client = quelmand database_only = 'X' id = textid language = sprache name = quelname object = objekt importing entries = entries tables selections = src_header exceptions others = 1.

SELECT_TEXT call function 'SELECT_TEXT' exporting client = sy-mandt database_only = 'X' id = textid language = sprache name = zieltextname object = objekt importing entries = entries exceptions others = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Kopieren von Standardtexten'(016) text_question = ld_question default_button = '1' display_cancel_button = space IMPORTING answer = answer.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = ld_msg.

BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_msgty = msg_ty i_text = msgtext.

CHECK_TEXT_NAME call function 'CHECK_TEXT_NAME' exporting name = tname exceptions name = 1 others = 2.

SELECT_TEXT call function 'SELECT_TEXT' exporting client = sy-mandt database_only = 'X' id = textid language = sprache name = zieltextname object = objekt importing entries = dst_entries tables selections = dst_header exceptions others = 1.

SELECT_TEXT call function 'SELECT_TEXT' exporting client = sy-mandt database_only = 'X' id = textid language = sprache name = zieltextname object = objekt importing entries = dst_entries tables selections = dst_header exceptions others = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'STXH_KEY' CHANGING ct_fieldcat = lt_fieldcat.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = sy-repid i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'ALV_CALLBACK' is_layout = ld_layout it_fieldcat = lt_fieldcat it_events = lt_event IMPORTING e_exit_caused_by_caller = ld_exec TABLES t_outtab = crossed_header.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_comment.

DB_COMMIT call function 'DB_COMMIT'.

SELECT_TEXT call function 'SELECT_TEXT' exporting client = sy-mandt database_only = 'X' id = p_selection-tdid language = p_selection-tdspras name = p_selection-tdname object = p_selection-tdobject importing entries = dst_entries tables selections = dst_header exceptions others = 1.

CHECK_TEXT_AUTHORITY call function 'CHECK_TEXT_AUTHORITY' exporting language = sprache object = objekt name = quelname id = textid activity = 'SHOW' exceptions others = 4.

READ_TEXT





call function 'READ_TEXT' exporting client = quelmand id = text_header-tdid language = text_header-tdspras name = text_header-tdname object = text_header-tdobject importing header = header tables lines = lines exceptions id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 others = 8.

CHECK_TEXT_AUTHORITY call function 'CHECK_TEXT_AUTHORITY' exporting language = sprache object = objekt name = zielname id = textid activity = 'CREA' exceptions others = 4.

SAVE_TEXT call function 'SAVE_TEXT' exporting client = sy-mandt header = header savemode_direct = 'X' importing newheader = header tables lines = lines exceptions id = 1 language = 2 name = 3 object = 4 others = 5.



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