SAP STRUC_EDIT_WRAPPER_IDOC_ALE Function Module for









STRUC_EDIT_WRAPPER_IDOC_ALE is a standard struc edit wrapper idoc ale 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 struc edit wrapper idoc ale FM, simply by entering the name STRUC_EDIT_WRAPPER_IDOC_ALE into the relevant SAP transaction such as SE37 or SE38.

Function Group: STRUCTURE_EDIT_GENERIC
Program Name: SAPLSTRUCTURE_EDIT_GENERIC
Main Program: SAPLSTRUCTURE_EDIT_GENERIC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function STRUC_EDIT_WRAPPER_IDOC_ALE 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 'STRUC_EDIT_WRAPPER_IDOC_ALE'"
EXPORTING
* RECORDNAME = "
* CALL_LINE_EDITOR = "
* VIS_RECORDNAME = "
* VIS_RECORDDESCR = "
* DATA_AREA_IMP = "
* NODATA = ' ' "
* DISPLAY_ONLY = ' ' "
* TITLE_LINE = "
* WITH_RESET = 'X' "
* RESET_CHAR = '!' "

IMPORTING
DATA_AREA_EXP = "

TABLES
* HIDDEN_FIELDS = "
* READ_ONLY_FIELDS = "
* CBF_FIELDS = "
* ADDITIONAL_FIELDS = "

EXCEPTIONS
STRUCTURE_NOT_KNOWN = 1 STRUCTURE_NAME_NOT_GIVEN = 2 VISIBLE_FIELDNAMES_NOT_UNIQUE = 3 INTERNAL_ERROR = 4 NO_AUTHORITY = 5
.



IMPORTING Parameters details for STRUC_EDIT_WRAPPER_IDOC_ALE

RECORDNAME -

Data type: GENEDREC-RECORDNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALL_LINE_EDITOR -

Data type: XFLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

VIS_RECORDNAME -

Data type: GENEDREC-RECORDNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

VIS_RECORDDESCR -

Data type: DD02V-DDTEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATA_AREA_IMP -

Data type:
Optional: Yes
Call by Reference: Yes

NODATA -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY_ONLY -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_LINE -

Data type: TITLE-TEXT_LINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_RESET -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESET_CHAR -

Data type: C
Default: '!'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for STRUC_EDIT_WRAPPER_IDOC_ALE

DATA_AREA_EXP -

Data type:
Optional: No
Call by Reference: Yes

TABLES Parameters details for STRUC_EDIT_WRAPPER_IDOC_ALE

HIDDEN_FIELDS -

Data type: FLD_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_ONLY_FIELDS -

Data type: FLD_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

CBF_FIELDS -

Data type: PICKFIELDS
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDITIONAL_FIELDS -

Data type: ADDFIELDS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

STRUCTURE_NOT_KNOWN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

STRUCTURE_NAME_NOT_GIVEN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VISIBLE_FIELDNAMES_NOT_UNIQUE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR - Internal Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY - Missing Authorization

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for STRUC_EDIT_WRAPPER_IDOC_ALE 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_recordname  TYPE GENEDREC-RECORDNAME, "   
lv_data_area_exp  TYPE GENEDREC, "   
lt_hidden_fields  TYPE STANDARD TABLE OF FLD_ID, "   
lv_structure_not_known  TYPE FLD_ID, "   
lv_call_line_editor  TYPE XFLAG, "   
lv_vis_recordname  TYPE GENEDREC-RECORDNAME, "   
lt_read_only_fields  TYPE STANDARD TABLE OF FLD_ID, "   
lv_structure_name_not_given  TYPE FLD_ID, "   
lt_cbf_fields  TYPE STANDARD TABLE OF PICKFIELDS, "   
lv_vis_recorddescr  TYPE DD02V-DDTEXT, "   
lv_visible_fieldnames_not_unique  TYPE DD02V, "   
lv_data_area_imp  TYPE DD02V, "   
lv_internal_error  TYPE DD02V, "   
lt_additional_fields  TYPE STANDARD TABLE OF ADDFIELDS, "   
lv_nodata  TYPE C, "   ' '
lv_no_authority  TYPE C, "   
lv_display_only  TYPE C, "   ' '
lv_title_line  TYPE TITLE-TEXT_LINE, "   
lv_with_reset  TYPE C, "   'X'
lv_reset_char  TYPE C. "   '!'

  CALL FUNCTION 'STRUC_EDIT_WRAPPER_IDOC_ALE'  "
    EXPORTING
         RECORDNAME = lv_recordname
         CALL_LINE_EDITOR = lv_call_line_editor
         VIS_RECORDNAME = lv_vis_recordname
         VIS_RECORDDESCR = lv_vis_recorddescr
         DATA_AREA_IMP = lv_data_area_imp
         NODATA = lv_nodata
         DISPLAY_ONLY = lv_display_only
         TITLE_LINE = lv_title_line
         WITH_RESET = lv_with_reset
         RESET_CHAR = lv_reset_char
    IMPORTING
         DATA_AREA_EXP = lv_data_area_exp
    TABLES
         HIDDEN_FIELDS = lt_hidden_fields
         READ_ONLY_FIELDS = lt_read_only_fields
         CBF_FIELDS = lt_cbf_fields
         ADDITIONAL_FIELDS = lt_additional_fields
    EXCEPTIONS
        STRUCTURE_NOT_KNOWN = 1
        STRUCTURE_NAME_NOT_GIVEN = 2
        VISIBLE_FIELDNAMES_NOT_UNIQUE = 3
        INTERNAL_ERROR = 4
        NO_AUTHORITY = 5
. " STRUC_EDIT_WRAPPER_IDOC_ALE




ABAP code using 7.40 inline data declarations to call FM STRUC_EDIT_WRAPPER_IDOC_ALE

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 RECORDNAME FROM GENEDREC INTO @DATA(ld_recordname).
 
 
 
 
 
"SELECT single RECORDNAME FROM GENEDREC INTO @DATA(ld_vis_recordname).
 
 
 
 
"SELECT single DDTEXT FROM DD02V INTO @DATA(ld_vis_recorddescr).
 
 
 
 
 
DATA(ld_nodata) = ' '.
 
 
DATA(ld_display_only) = ' '.
 
"SELECT single TEXT_LINE FROM TITLE INTO @DATA(ld_title_line).
 
DATA(ld_with_reset) = 'X'.
 
DATA(ld_reset_char) = '!'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!