SAP TEXT_REORG_INTERNAL Function Module for
TEXT_REORG_INTERNAL is a standard text reorg internal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for text reorg internal FM, simply by entering the name TEXT_REORG_INTERNAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: KXSC
Program Name: SAPLKXSC
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TEXT_REORG_INTERNAL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'TEXT_REORG_INTERNAL'".
EXPORTING
* ASPET = '000' "Aspect, if no dialog
* DIALOG = 'X' "Dialog call yes/no ('X'/' '); Default yes
TABLE_NAME = "Name of the table texts are reorga
* TEST = ' ' "Reorganization run in test (default: no)
* TEXT_ID = 'COMM' "Text ID (maintained in TTXID)
* TEXT_OBJECT = 'RKC_EIS' "Text object (maintained in TTXOB)
* YEARB = '0000' "Fiscal year, if no dialog
IMPORTING
FUNCTION = "Reorganization status (R: reorgani
NUMBR_PROBL_CASES = "Number of occured problems
NUMBR_REORG_ENTRS = "Number of reorganized entries in T242P, CF
NUMBR_REORG_FLAGS = "Number of reorganized text flags o
NUMBR_REORG_TEXTS = "Number of reorganized texts in STX
EXCEPTIONS
NOT_ALL_TEXTS_REORGANIZED = 1
IMPORTING Parameters details for TEXT_REORG_INTERNAL
ASPET - Aspect, if no dialog
Data type: CFPAR-ASPETDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG - Dialog call yes/no ('X'/' '); Default yes
Data type: CFVTAB-OPERADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_NAME - Name of the table texts are reorga
Data type: CFPAR-CFNNNOptional: No
Call by Reference: No ( called with pass by value option)
TEST - Reorganization run in test (default: no)
Data type: CFVTAB-OPERADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_ID - Text ID (maintained in TTXID)
Data type: THEAD-TDIDDefault: 'COMM'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_OBJECT - Text object (maintained in TTXOB)
Data type: THEAD-TDOBJECTDefault: 'RKC_EIS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
YEARB - Fiscal year, if no dialog
Data type: CFHDR-YEARBDefault: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TEXT_REORG_INTERNAL
FUNCTION - Reorganization status (R: reorgani
Data type: CFVTAB-OPERAOptional: No
Call by Reference: No ( called with pass by value option)
NUMBR_PROBL_CASES - Number of occured problems
Data type: CFKY2-RECNROptional: No
Call by Reference: No ( called with pass by value option)
NUMBR_REORG_ENTRS - Number of reorganized entries in T242P, CF
Data type: CFKY2-RECNROptional: No
Call by Reference: No ( called with pass by value option)
NUMBR_REORG_FLAGS - Number of reorganized text flags o
Data type: CFKY2-RECNROptional: No
Call by Reference: No ( called with pass by value option)
NUMBR_REORG_TEXTS - Number of reorganized texts in STX
Data type: CFKY2-RECNROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_ALL_TEXTS_REORGANIZED - Not all texts for the table were r
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TEXT_REORG_INTERNAL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_aspet | TYPE CFPAR-ASPET, " '000' | |||
| lv_function | TYPE CFVTAB-OPERA, " | |||
| lv_not_all_texts_reorganized | TYPE CFVTAB, " | |||
| lv_dialog | TYPE CFVTAB-OPERA, " 'X' | |||
| lv_numbr_probl_cases | TYPE CFKY2-RECNR, " | |||
| lv_table_name | TYPE CFPAR-CFNNN, " | |||
| lv_numbr_reorg_entrs | TYPE CFKY2-RECNR, " | |||
| lv_test | TYPE CFVTAB-OPERA, " ' ' | |||
| lv_numbr_reorg_flags | TYPE CFKY2-RECNR, " | |||
| lv_text_id | TYPE THEAD-TDID, " 'COMM' | |||
| lv_numbr_reorg_texts | TYPE CFKY2-RECNR, " | |||
| lv_text_object | TYPE THEAD-TDOBJECT, " 'RKC_EIS' | |||
| lv_yearb | TYPE CFHDR-YEARB. " '0000' |
|   CALL FUNCTION 'TEXT_REORG_INTERNAL' " |
| EXPORTING | ||
| ASPET | = lv_aspet | |
| DIALOG | = lv_dialog | |
| TABLE_NAME | = lv_table_name | |
| TEST | = lv_test | |
| TEXT_ID | = lv_text_id | |
| TEXT_OBJECT | = lv_text_object | |
| YEARB | = lv_yearb | |
| IMPORTING | ||
| FUNCTION | = lv_function | |
| NUMBR_PROBL_CASES | = lv_numbr_probl_cases | |
| NUMBR_REORG_ENTRS | = lv_numbr_reorg_entrs | |
| NUMBR_REORG_FLAGS | = lv_numbr_reorg_flags | |
| NUMBR_REORG_TEXTS | = lv_numbr_reorg_texts | |
| EXCEPTIONS | ||
| NOT_ALL_TEXTS_REORGANIZED = 1 | ||
| . " TEXT_REORG_INTERNAL | ||
ABAP code using 7.40 inline data declarations to call FM TEXT_REORG_INTERNAL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single ASPET FROM CFPAR INTO @DATA(ld_aspet). | ||||
| DATA(ld_aspet) | = '000'. | |||
| "SELECT single OPERA FROM CFVTAB INTO @DATA(ld_function). | ||||
| "SELECT single OPERA FROM CFVTAB INTO @DATA(ld_dialog). | ||||
| DATA(ld_dialog) | = 'X'. | |||
| "SELECT single RECNR FROM CFKY2 INTO @DATA(ld_numbr_probl_cases). | ||||
| "SELECT single CFNNN FROM CFPAR INTO @DATA(ld_table_name). | ||||
| "SELECT single RECNR FROM CFKY2 INTO @DATA(ld_numbr_reorg_entrs). | ||||
| "SELECT single OPERA FROM CFVTAB INTO @DATA(ld_test). | ||||
| DATA(ld_test) | = ' '. | |||
| "SELECT single RECNR FROM CFKY2 INTO @DATA(ld_numbr_reorg_flags). | ||||
| "SELECT single TDID FROM THEAD INTO @DATA(ld_text_id). | ||||
| DATA(ld_text_id) | = 'COMM'. | |||
| "SELECT single RECNR FROM CFKY2 INTO @DATA(ld_numbr_reorg_texts). | ||||
| "SELECT single TDOBJECT FROM THEAD INTO @DATA(ld_text_object). | ||||
| DATA(ld_text_object) | = 'RKC_EIS'. | |||
| "SELECT single YEARB FROM CFHDR INTO @DATA(ld_yearb). | ||||
| DATA(ld_yearb) | = '0000'. | |||
Search for further information about these or an SAP related objects