SAP Reports / Programs

RS_TRANSLATION_EXPORT_TRADOS SAP ABAP Report - Export Texts in TRADOS Format







RS_TRANSLATION_EXPORT_TRADOS 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 RS_TRANSLATION_EXPORT_TRADOS 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 RS_TRANSLATION_EXPORT_TRADOS. "Basic submit
SUBMIT RS_TRANSLATION_EXPORT_TRADOS AND RETURN. "Return to original report after report execution complete
SUBMIT RS_TRANSLATION_EXPORT_TRADOS 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: SEL_LAN = Langs
Selection Text: OBJLIST = Object List
Selection Text: NO_CHECK = Deactivate Status Check
Selection Text: DIRECTRY = Directory
Selection Text: BYD = Attributes as Text Flds (ByD)
Selection Text: BATCH = Execute in Background
Title: Export Texts in TRADOS Format
Text Symbol: T00 = Select From Graphs
Text Symbol: 051 = Specify an Object List
Text Symbol: 050 = Specify Languages
Text Symbol: 012 = Directory can only be 44 characters long in backgrd processg
Text Symbol: 011 = Background job scheduled:
Text Symbol: 010 = Error scheduling background job
Text Symbol: 009 = Error writing to file
Text Symbol: 008 = No data found
Text Symbol: 007 = Unable to open file:
Text Symbol: 006 = Check path name and file name:
Text Symbol: 005 = Cannot identify codepage for target language
Text Symbol: 004 = Cannot identify codepage for source language
Text Symbol: 003 = Cannot process target language
Text Symbol: 002 = Cannot process source language
Text Symbol: 001 = Parameters are not complete


INCLUDES used within this REPORT RS_TRANSLATION_EXPORT_TRADOS

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:

LXE_AUTH_CHECK_PERMISSION CALL FUNCTION 'LXE_AUTH_CHECK_PERMISSION' EXPORTING root = 'X' EXCEPTIONS permission_denied = 1 internal_error = 2 OTHERS = 3.

FILE_GET_NAME * CALL FUNCTION 'FILE_GET_NAME' * EXPORTING * logical_filename = c_logsubdir_name * including_dir = 'X' * IMPORTING * file_name = directry * EXCEPTIONS * OTHERS = 1.

LXE_COMMON_IS_SAP CALL FUNCTION 'LXE_COMMON_IS_SAP' EXCEPTIONS no_sap = 1 OTHERS = 2.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = cl_lxe_constants=>c_logical_subdir_pp including_dir = abap_true IMPORTING file_name = directry EXCEPTIONS OTHERS = 1.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_TREE' text = space info = text-t00 IMPORTING result = b_graf.

SLWY_START_BATCHJOB CALL FUNCTION 'SLWY_START_BATCHJOB' EXPORTING jobname = lv_jobname reportname = 'RS_TRANSLATION_EXPORT_TRADOS' no_periodic = 'X' TABLES seltab = lt_seltab EXCEPTIONS start_error = 1 OTHERS = 2.

LXE_T002_CHECK_LANGUAGE CALL FUNCTION 'LXE_T002_CHECK_LANGUAGE' EXPORTING language = s_lang IMPORTING o_r3_lang = lv_r3_s_lang EXCEPTIONS language_not_in_cp = 1 unknown = 2 OTHERS = 3.

LXE_T002_X_GET_LCID CALL FUNCTION 'LXE_T002_X_GET_LCID' EXPORTING r3_lang = lv_r3_s_lang " Sprachenschlüssel IMPORTING tradoskey = lv_trados_s_lang EXCEPTIONS not_defined = 1 OTHERS = 2.

LXE_T002_CHECK_LANGUAGE CALL FUNCTION 'LXE_T002_CHECK_LANGUAGE' EXPORTING language = t_lang IMPORTING o_r3_lang = lv_r3_t_lang EXCEPTIONS language_not_in_cp = 1 unknown = 2 OTHERS = 3.

LXE_T002_X_GET_LCID CALL FUNCTION 'LXE_T002_X_GET_LCID' EXPORTING r3_lang = lv_r3_t_lang " Sprachenschlüssel IMPORTING tradoskey = lv_trados_t_lang EXCEPTIONS not_defined = 1 OTHERS = 2.

SCP_CODEPAGE_FOR_LANGUAGE CALL FUNCTION 'SCP_CODEPAGE_FOR_LANGUAGE' EXPORTING language = lv_r3_s_lang IMPORTING codepage = lv_s_incode EXCEPTIONS no_codepage = 1 OTHERS = 2.

SCP_CODEPAGE_FOR_LANGUAGE CALL FUNCTION 'SCP_CODEPAGE_FOR_LANGUAGE' EXPORTING language = lv_r3_t_lang IMPORTING codepage = lv_t_incode EXCEPTIONS no_codepage = 1 OTHERS = 2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = c_logsubdir_name CHANGING physical_filename = lv_filepath EXCEPTIONS OTHERS = 1.

LXE_ATTOB_OBJECT_TYPES_GET CALL FUNCTION 'LXE_ATTOB_OBJECT_TYPES_GET' TABLES * EX_ATTOBT = ex_attob = lt_attob EXCEPTIONS no_type_found = 1 OTHERS = 2.

LXE_COLOB_COLOB_SELECT CALL FUNCTION 'LXE_COLOB_COLOB_SELECT' EXPORTING objlist = objlist * CUSTMNR = '' * OBJTYPE = '' * OBJNAME = '' * ORIG_LANG = '' * COLLTYP = '' * COLLNAM = '' * DOMATYP = '' * DOMANAM = '' * BYPASSINGBUFFER = '' IMPORTING pstatus = lv_pstatus TABLES ex_colob = lt_colob.

LXE_OBJ_CONVERT_OL_WLB CALL FUNCTION 'LXE_OBJ_CONVERT_OL_WLB' EXPORTING in_custmnr = lt_colob-custmnr in_objtype = lt_colob-objtype in_objname = lt_colob-objname IMPORTING custmnr = ls_wrkob-custmnr objtype = ls_wrkob-objtype objname = ls_wrkob-objname.

LXE_OBJ_TEXT_PAIR_READ CALL FUNCTION 'LXE_OBJ_TEXT_PAIR_READ' EXPORTING t_lang = t_lang s_lang = s_lang custmnr = ls_wrkob-custmnr objtype = ls_wrkob-objtype objname = ls_wrkob-objname IMPORTING colltyp = lv_colltyp collnam = lv_collnam domatyp = lv_domatyp domanam = lv_domanam pstatus = lv_pstatus TABLES lt_pcx_s1 = lt_pcx_s1.

LXE_PP1_TRANSLATION_EVAL * CALL FUNCTION 'LXE_PP1_TRANSLATION_EVAL' * EXPORTING * t_lang = t_lang * s_lang = s_lang * custmnr = ls_wrkob-custmnr * objtype = ls_wrkob-objtype * domatyp = lv_domatyp * domanam = lv_domanam * s_text = lt_pcx_s1-s_text * t_text = lt_pcx_s1-t_text * unitmlt = lt_pcx_s1-unitmlt * IMPORTING * stattrn = lv_stattrn * pstatus = lv_pstatus.

LXE_T002_SELECT_LANGUAGE





* CALL FUNCTION 'LXE_T002_SELECT_LANGUAGE' * EXPORTING * flag_plus = '' * flag_star = '' * IMPORTING * language = s_lang * EXCEPTIONS * parameter_error = 1 * no_values_found = 2 * OTHERS = 3.

LXE_T002_SELECT_LANGUAGE * CALL FUNCTION 'LXE_T002_SELECT_LANGUAGE' * EXPORTING * flag_plus = '' * flag_star = '' * IMPORTING * language = t_lang * EXCEPTIONS * parameter_error = 1 * no_values_found = 2 * OTHERS = 3.

LXE_COLOB_OBJL_SELECT CALL FUNCTION 'LXE_COLOB_OBJL_SELECT' EXPORTING non_deleted = 'X' IMPORTING objlist = objlist EXCEPTIONS no_selection = 1 OTHERS = 2.

SAPGUI_SET_FUNCTIONCODE * CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'.

SCP_TRANSLATE_CHARS_46 CALL FUNCTION 'SCP_TRANSLATE_CHARS_46' EXPORTING inbuff = p_exportc incode = p_incode * OUTBUFFLG = P_I outcode = p_outcode ctrlcode = 'T' IMPORTING outbuff = p_exportx outoverflow = outoverflow outused = p_used EXCEPTIONS invalid_codepage = 1 internal_error = 2 cannot_convert = 3 fields_bad_type = 4 OTHERS = 5.

LXE_GRAPH_LANG_PAIRS_SELECT CALL FUNCTION 'LXE_GRAPH_LANG_PAIRS_SELECT' IMPORTING sel_done = lv_sel_done TABLES ex_lang_pair = lt_lang_pairs.



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