SAP ECRM_ISU_API_GEN_STRUCTURE Function Module for ZFH_CI_TABLE_GEN









ECRM_ISU_API_GEN_STRUCTURE is a standard ecrm isu api gen structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ZFH_CI_TABLE_GEN processing and below is the pattern details for this FM, 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 ecrm isu api gen structure FM, simply by entering the name ECRM_ISU_API_GEN_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.

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



Function ECRM_ISU_API_GEN_STRUCTURE 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 'ECRM_ISU_API_GEN_STRUCTURE'"ZFH_CI_TABLE_GEN
EXPORTING
IV_TABNAME = "Name of ABAP Dictionary Object
* IV_ACTIVATE = 'X' "
IT_FIELDLIST = "Table Type for Structure DD03P
* IV_PACKAGE = '$TMP' "Package
* IV_TADIR_GEN = 'X' "
* IV_TYPE = 'TABL' "Parameter Value

IMPORTING
EV_RC = "Return Value from ABAP Statements

EXCEPTIONS
PUT_ERROR = 1 ACTIVATION_ERROR = 2 TADIR_ERROR = 3
.



IMPORTING Parameters details for ECRM_ISU_API_GEN_STRUCTURE

IV_TABNAME - Name of ABAP Dictionary Object

Data type: DDOBJNAME
Optional: No
Call by Reference: Yes

IV_ACTIVATE -

Data type:
Default: 'X'
Optional: No
Call by Reference: Yes

IT_FIELDLIST - Table Type for Structure DD03P

Data type: DD03TTYP
Optional: No
Call by Reference: Yes

IV_PACKAGE - Package

Data type: DEVCLASS
Default: '$TMP'
Optional: No
Call by Reference: Yes

IV_TADIR_GEN -

Data type:
Default: 'X'
Optional: No
Call by Reference: Yes

IV_TYPE - Parameter Value

Data type: TROBJTYPE
Default: 'TABL'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ECRM_ISU_API_GEN_STRUCTURE

EV_RC - Return Value from ABAP Statements

Data type: SYSUBRC
Optional: No
Call by Reference: Yes

EXCEPTIONS details

PUT_ERROR -

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

ACTIVATION_ERROR -

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

TADIR_ERROR -

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

Copy and paste ABAP code example for ECRM_ISU_API_GEN_STRUCTURE 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_rc  TYPE SYSUBRC, "   
lv_put_error  TYPE SYSUBRC, "   
lv_iv_tabname  TYPE DDOBJNAME, "   
lv_iv_activate  TYPE DDOBJNAME, "   'X'
lv_activation_error  TYPE DDOBJNAME, "   
lv_tadir_error  TYPE DDOBJNAME, "   
lv_it_fieldlist  TYPE DD03TTYP, "   
lv_iv_package  TYPE DEVCLASS, "   '$TMP'
lv_iv_tadir_gen  TYPE DEVCLASS, "   'X'
lv_iv_type  TYPE TROBJTYPE. "   'TABL'

  CALL FUNCTION 'ECRM_ISU_API_GEN_STRUCTURE'  "ZFH_CI_TABLE_GEN
    EXPORTING
         IV_TABNAME = lv_iv_tabname
         IV_ACTIVATE = lv_iv_activate
         IT_FIELDLIST = lv_it_fieldlist
         IV_PACKAGE = lv_iv_package
         IV_TADIR_GEN = lv_iv_tadir_gen
         IV_TYPE = lv_iv_type
    IMPORTING
         EV_RC = lv_ev_rc
    EXCEPTIONS
        PUT_ERROR = 1
        ACTIVATION_ERROR = 2
        TADIR_ERROR = 3
. " ECRM_ISU_API_GEN_STRUCTURE




ABAP code using 7.40 inline data declarations to call FM ECRM_ISU_API_GEN_STRUCTURE

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_activate) = 'X'.
 
 
 
 
DATA(ld_iv_package) = '$TMP'.
 
DATA(ld_iv_tadir_gen) = 'X'.
 
DATA(ld_iv_type) = 'TABL'.
 


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!