SAP ISIDE_ESP_STOACT_CREATE Function Module for Create Stoact Idocs









ISIDE_ESP_STOACT_CREATE is a standard iside esp stoact 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 Create Stoact Idocs 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 iside esp stoact create FM, simply by entering the name ISIDE_ESP_STOACT_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: DE_ESP
Program Name: SAPLDE_ESP
Main Program: SAPLDE_ESP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ISIDE_ESP_STOACT_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 'ISIDE_ESP_STOACT_CREATE'"Create Stoact Idocs
EXPORTING
IS_STOACT_IDOC = "Stoact Idoc data

IMPORTING
IDOC_NUM = "IDoc number

EXCEPTIONS
OTHER_FIELDS_INVALID = 1 CREATION_FAILED = 10 OTHERS = 11 IDENTIFIER_INVALID = 2 IDOC_CONTAINERS_EMPTY = 3 PARAMETER_ERROR = 4 SEGMENT_NUMBER_NOT_SEQUENTIAL = 5 DOCUMENT_NOT_OPEN = 6 DOCUMENT_NO_KEY = 7 FAILURE_IN_DB_WRITE = 8 IDOC_NOT_SAVED = 9
.



IMPORTING Parameters details for ISIDE_ESP_STOACT_CREATE

IS_STOACT_IDOC - Stoact Idoc data

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

EXPORTING Parameters details for ISIDE_ESP_STOACT_CREATE

IDOC_NUM - IDoc number

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

EXCEPTIONS details

OTHER_FIELDS_INVALID -

Data type:
Optional: No
Call by Reference: Yes

CREATION_FAILED -

Data type:
Optional: No
Call by Reference: Yes

OTHERS -

Data type:
Optional: No
Call by Reference: Yes

IDENTIFIER_INVALID -

Data type:
Optional: No
Call by Reference: Yes

IDOC_CONTAINERS_EMPTY -

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: Yes

SEGMENT_NUMBER_NOT_SEQUENTIAL -

Data type:
Optional: No
Call by Reference: Yes

DOCUMENT_NOT_OPEN -

Data type:
Optional: No
Call by Reference: Yes

DOCUMENT_NO_KEY -

Data type:
Optional: No
Call by Reference: Yes

FAILURE_IN_DB_WRITE -

Data type:
Optional: No
Call by Reference: Yes

IDOC_NOT_SAVED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISIDE_ESP_STOACT_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_idoc_num  TYPE EDIDC-DOCNUM, "   
lv_is_stoact_idoc  TYPE ISI_STOACT_IDOC, "   
lv_other_fields_invalid  TYPE ISI_STOACT_IDOC, "   
lv_creation_failed  TYPE ISI_STOACT_IDOC, "   
lv_others  TYPE ISI_STOACT_IDOC, "   
lv_identifier_invalid  TYPE ISI_STOACT_IDOC, "   
lv_idoc_containers_empty  TYPE ISI_STOACT_IDOC, "   
lv_parameter_error  TYPE ISI_STOACT_IDOC, "   
lv_segment_number_not_sequential  TYPE ISI_STOACT_IDOC, "   
lv_document_not_open  TYPE ISI_STOACT_IDOC, "   
lv_document_no_key  TYPE ISI_STOACT_IDOC, "   
lv_failure_in_db_write  TYPE ISI_STOACT_IDOC, "   
lv_idoc_not_saved  TYPE ISI_STOACT_IDOC. "   

  CALL FUNCTION 'ISIDE_ESP_STOACT_CREATE'  "Create Stoact Idocs
    EXPORTING
         IS_STOACT_IDOC = lv_is_stoact_idoc
    IMPORTING
         IDOC_NUM = lv_idoc_num
    EXCEPTIONS
        OTHER_FIELDS_INVALID = 1
        CREATION_FAILED = 10
        OTHERS = 11
        IDENTIFIER_INVALID = 2
        IDOC_CONTAINERS_EMPTY = 3
        PARAMETER_ERROR = 4
        SEGMENT_NUMBER_NOT_SEQUENTIAL = 5
        DOCUMENT_NOT_OPEN = 6
        DOCUMENT_NO_KEY = 7
        FAILURE_IN_DB_WRITE = 8
        IDOC_NOT_SAVED = 9
. " ISIDE_ESP_STOACT_CREATE




ABAP code using 7.40 inline data declarations to call FM ISIDE_ESP_STOACT_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 DOCNUM FROM EDIDC INTO @DATA(ld_idoc_num).
 
 
 
 
 
 
 
 
 
 
 
 
 


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!