SAP ALE_CLASS_CREATE Function Module for BAPI -> IDoc: ALE_CLASS_CREATE
ALE_CLASS_CREATE is a standard ale class create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI -> IDoc: ALE_CLASS_CREATE 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 ale class create FM, simply by entering the name ALE_CLASS_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLBP
Program Name: SAPLCLBP
Main Program: SAPLCLBP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ALE_CLASS_CREATE 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 'ALE_CLASS_CREATE'"BAPI -> IDoc: ALE_CLASS_CREATE.
EXPORTING
CLASSNUMNEW = "Class
CLASSTYPENEW = "Class Type
* CHANGENUMBER = "Change Number
CLASSBASICDATA = "Basic Data
* CLASSDOCUMENT = "Document Information
* CLASSADDITIONAL = "Additional Data
* CLASSSTANDARD = "Standards Data
* SERIAL_ID = '0' "
TABLES
CLASSDESCRIPTIONS = "Class Description / Keywords
* CLASSLONGTEXTS = "Long Texts
* CLASSCHARACTERISTICS = "Characteristics
* CHARACTOVERWRITE = "Overwritten Characteristic Attributes
* CHARACTVALUEOVERWRITE = "Overwritten Characteristic Values
* CHARACTVALUETEXTOVR = "Overwritten Characteristic Descriptions
RECEIVERS = "
* COMMUNICATION_DOCUMENTS = "
* APPLICATION_OBJECTS = "
EXCEPTIONS
ERROR_CREATING_IDOCS = 1
IMPORTING Parameters details for ALE_CLASS_CREATE
CLASSNUMNEW - Class
Data type: BAPI_CLASS_KEY-CLASSNUMOptional: No
Call by Reference: No ( called with pass by value option)
CLASSTYPENEW - Class Type
Data type: BAPI_CLASS_KEY-CLASSTYPEOptional: No
Call by Reference: No ( called with pass by value option)
CHANGENUMBER - Change Number
Data type: BAPI1003_KEY-CHANGENUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
CLASSBASICDATA - Basic Data
Data type: BAPI1003_BASICOptional: No
Call by Reference: No ( called with pass by value option)
CLASSDOCUMENT - Document Information
Data type: BAPI1003_DOCUOptional: Yes
Call by Reference: No ( called with pass by value option)
CLASSADDITIONAL - Additional Data
Data type: BAPI1003_ADDOptional: Yes
Call by Reference: No ( called with pass by value option)
CLASSSTANDARD - Standards Data
Data type: BAPI1003_STANDOptional: Yes
Call by Reference: No ( called with pass by value option)
SERIAL_ID -
Data type: SERIAL-CHNUMDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ALE_CLASS_CREATE
CLASSDESCRIPTIONS - Class Description / Keywords
Data type: BAPI1003_CATCHOptional: No
Call by Reference: No ( called with pass by value option)
CLASSLONGTEXTS - Long Texts
Data type: BAPI1003_LONGTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
CLASSCHARACTERISTICS - Characteristics
Data type: BAPI1003_CHARACTOptional: Yes
Call by Reference: No ( called with pass by value option)
CHARACTOVERWRITE - Overwritten Characteristic Attributes
Data type: BAPI1003_CHARACT_OVERWROptional: Yes
Call by Reference: No ( called with pass by value option)
CHARACTVALUEOVERWRITE - Overwritten Characteristic Values
Data type: BAPI1003_CHARACT_VALUE_OVROptional: Yes
Call by Reference: No ( called with pass by value option)
CHARACTVALUETEXTOVR - Overwritten Characteristic Descriptions
Data type: BAPI1003_CHARVALTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
RECEIVERS -
Data type: BDI_LOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
COMMUNICATION_DOCUMENTS -
Data type: SWOTOBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
APPLICATION_OBJECTS -
Data type: SWOTOBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_CREATING_IDOCS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ALE_CLASS_CREATE 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_classnumnew | TYPE BAPI_CLASS_KEY-CLASSNUM, " | |||
| lt_classdescriptions | TYPE STANDARD TABLE OF BAPI1003_CATCH, " | |||
| lv_error_creating_idocs | TYPE BAPI1003_CATCH, " | |||
| lv_classtypenew | TYPE BAPI_CLASS_KEY-CLASSTYPE, " | |||
| lt_classlongtexts | TYPE STANDARD TABLE OF BAPI1003_LONGTEXT, " | |||
| lv_changenumber | TYPE BAPI1003_KEY-CHANGENUMBER, " | |||
| lt_classcharacteristics | TYPE STANDARD TABLE OF BAPI1003_CHARACT, " | |||
| lv_classbasicdata | TYPE BAPI1003_BASIC, " | |||
| lt_charactoverwrite | TYPE STANDARD TABLE OF BAPI1003_CHARACT_OVERWR, " | |||
| lv_classdocument | TYPE BAPI1003_DOCU, " | |||
| lt_charactvalueoverwrite | TYPE STANDARD TABLE OF BAPI1003_CHARACT_VALUE_OVR, " | |||
| lv_classadditional | TYPE BAPI1003_ADD, " | |||
| lt_charactvaluetextovr | TYPE STANDARD TABLE OF BAPI1003_CHARVALTEXT, " | |||
| lt_receivers | TYPE STANDARD TABLE OF BDI_LOGSYS, " | |||
| lv_classstandard | TYPE BAPI1003_STAND, " | |||
| lv_serial_id | TYPE SERIAL-CHNUM, " '0' | |||
| lt_communication_documents | TYPE STANDARD TABLE OF SWOTOBJID, " | |||
| lt_application_objects | TYPE STANDARD TABLE OF SWOTOBJID. " |
|   CALL FUNCTION 'ALE_CLASS_CREATE' "BAPI -> IDoc: ALE_CLASS_CREATE |
| EXPORTING | ||
| CLASSNUMNEW | = lv_classnumnew | |
| CLASSTYPENEW | = lv_classtypenew | |
| CHANGENUMBER | = lv_changenumber | |
| CLASSBASICDATA | = lv_classbasicdata | |
| CLASSDOCUMENT | = lv_classdocument | |
| CLASSADDITIONAL | = lv_classadditional | |
| CLASSSTANDARD | = lv_classstandard | |
| SERIAL_ID | = lv_serial_id | |
| TABLES | ||
| CLASSDESCRIPTIONS | = lt_classdescriptions | |
| CLASSLONGTEXTS | = lt_classlongtexts | |
| CLASSCHARACTERISTICS | = lt_classcharacteristics | |
| CHARACTOVERWRITE | = lt_charactoverwrite | |
| CHARACTVALUEOVERWRITE | = lt_charactvalueoverwrite | |
| CHARACTVALUETEXTOVR | = lt_charactvaluetextovr | |
| RECEIVERS | = lt_receivers | |
| COMMUNICATION_DOCUMENTS | = lt_communication_documents | |
| APPLICATION_OBJECTS | = lt_application_objects | |
| EXCEPTIONS | ||
| ERROR_CREATING_IDOCS = 1 | ||
| . " ALE_CLASS_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM ALE_CLASS_CREATE
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 CLASSNUM FROM BAPI_CLASS_KEY INTO @DATA(ld_classnumnew). | ||||
| "SELECT single CLASSTYPE FROM BAPI_CLASS_KEY INTO @DATA(ld_classtypenew). | ||||
| "SELECT single CHANGENUMBER FROM BAPI1003_KEY INTO @DATA(ld_changenumber). | ||||
| "SELECT single CHNUM FROM SERIAL INTO @DATA(ld_serial_id). | ||||
| DATA(ld_serial_id) | = '0'. | |||
Search for further information about these or an SAP related objects