SAP /SAPSLL/GEN_APPEND_DATA_DECL Function Module for
/SAPSLL/GEN_APPEND_DATA_DECL is a standard /sapsll/gen append data decl 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 /sapsll/gen append data decl FM, simply by entering the name /SAPSLL/GEN_APPEND_DATA_DECL into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPSLL/GEN_SRV_MODULES
Program Name: /SAPSLL/SAPLGEN_SRV_MODULES
Main Program: /SAPSLL/SAPLGEN_SRV_MODULES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPSLL/GEN_APPEND_DATA_DECL 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 '/SAPSLL/GEN_APPEND_DATA_DECL'".
EXPORTING
* IV_PREFIX = "
IV_VAR = "
IV_TYPE = "
* IV_FLAG_FIELD_SYMBOL = ' ' "
* IV_TABIX = "
* IV_SHIFTRIGHT = "
* IV_MAX_LINE_LENGTH = 72 "
* IS_DEBUG = GS_DEBUG "
IMPORTING
EV_VAR = "
CHANGING
CT_CODE = "
EXCEPTIONS
INVALID_CALL = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for /SAPSLL/GEN_APPEND_DATA_DECL
IV_PREFIX -
Data type: COptional: Yes
Call by Reference: Yes
IV_VAR -
Data type: COptional: No
Call by Reference: Yes
IV_TYPE -
Data type: COptional: No
Call by Reference: Yes
IV_FLAG_FIELD_SYMBOL -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_TABIX -
Data type: IOptional: Yes
Call by Reference: Yes
IV_SHIFTRIGHT -
Data type: IOptional: Yes
Call by Reference: Yes
IV_MAX_LINE_LENGTH -
Data type: IDefault: 72
Optional: Yes
Call by Reference: Yes
IS_DEBUG -
Data type: /SAPSLL/DEBUG_SDefault: GS_DEBUG
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPSLL/GEN_APPEND_DATA_DECL
EV_VAR -
Data type: DDOBJNAMEOptional: No
Call by Reference: Yes
CHANGING Parameters details for /SAPSLL/GEN_APPEND_DATA_DECL
CT_CODE -
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_CALL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPSLL/GEN_APPEND_DATA_DECL 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_ev_var | TYPE DDOBJNAME, " | |||
| lv_ct_code | TYPE STANDARD TABLE, " | |||
| lv_iv_prefix | TYPE C, " | |||
| lv_invalid_call | TYPE C, " | |||
| lv_iv_var | TYPE C, " | |||
| lv_internal_error | TYPE C, " | |||
| lv_iv_type | TYPE C, " | |||
| lv_iv_flag_field_symbol | TYPE XFELD, " ' ' | |||
| lv_iv_tabix | TYPE I, " | |||
| lv_iv_shiftright | TYPE I, " | |||
| lv_iv_max_line_length | TYPE I, " 72 | |||
| lv_is_debug | TYPE /SAPSLL/DEBUG_S. " GS_DEBUG |
|   CALL FUNCTION '/SAPSLL/GEN_APPEND_DATA_DECL' " |
| EXPORTING | ||
| IV_PREFIX | = lv_iv_prefix | |
| IV_VAR | = lv_iv_var | |
| IV_TYPE | = lv_iv_type | |
| IV_FLAG_FIELD_SYMBOL | = lv_iv_flag_field_symbol | |
| IV_TABIX | = lv_iv_tabix | |
| IV_SHIFTRIGHT | = lv_iv_shiftright | |
| IV_MAX_LINE_LENGTH | = lv_iv_max_line_length | |
| IS_DEBUG | = lv_is_debug | |
| IMPORTING | ||
| EV_VAR | = lv_ev_var | |
| CHANGING | ||
| CT_CODE | = lv_ct_code | |
| EXCEPTIONS | ||
| INVALID_CALL = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " /SAPSLL/GEN_APPEND_DATA_DECL | ||
ABAP code using 7.40 inline data declarations to call FM /SAPSLL/GEN_APPEND_DATA_DECL
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.| DATA(ld_iv_flag_field_symbol) | = ' '. | |||
| DATA(ld_iv_max_line_length) | = 72. | |||
| DATA(ld_is_debug) | = GS_DEBUG. | |||
Search for further information about these or an SAP related objects