SAP IASP_SERVICE_INSERT Function Module for
IASP_SERVICE_INSERT is a standard iasp service insert 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 iasp service insert FM, simply by entering the name IASP_SERVICE_INSERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SIAC_VERSION_MANAGEMENT
Program Name: SAPLSIAC_VERSION_MANAGEMENT
Main Program: SAPLSIAC_VERSION_MANAGEMENT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IASP_SERVICE_INSERT 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 'IASP_SERVICE_INSERT'".
EXPORTING
SERVICE_NAME = "Template Name
* R3STATE = "ABAP: Program Status (Active, Saved, Transported...)
TABLES
PIACSERVICE = "Internet Application Components with ITS
PIACSERVP = "Parameters for service description
PW3SERINTP = "WAB: Interface Parameters for Services
* PW3SERINTPT = "WAB: Texts for Interface Parameters for Services
* PW3SERVICET = "Short Text for Internet Services
* PIACS = "
* PIACST = "
* PIACS_C = "
EXCEPTIONS
OBJECT_NOT_FOUND = 1
IMPORTING Parameters details for IASP_SERVICE_INSERT
SERVICE_NAME - Template Name
Data type: E071-OBJ_NAMEOptional: No
Call by Reference: Yes
R3STATE - ABAP: Program Status (Active, Saved, Transported...)
Data type: D010SINF-R3STATEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for IASP_SERVICE_INSERT
PIACSERVICE - Internet Application Components with ITS
Data type: IACSERVICEOptional: No
Call by Reference: No ( called with pass by value option)
PIACSERVP - Parameters for service description
Data type: IACSERVPOptional: No
Call by Reference: No ( called with pass by value option)
PW3SERINTP - WAB: Interface Parameters for Services
Data type: W3SERINTPOptional: No
Call by Reference: Yes
PW3SERINTPT - WAB: Texts for Interface Parameters for Services
Data type: W3SERINTPTOptional: Yes
Call by Reference: Yes
PW3SERVICET - Short Text for Internet Services
Data type: W3SERVICETOptional: Yes
Call by Reference: Yes
PIACS -
Data type: IACSOptional: Yes
Call by Reference: Yes
PIACST -
Data type: IACSTOptional: Yes
Call by Reference: Yes
PIACS_C -
Data type: IACS_COptional: Yes
Call by Reference: Yes
EXCEPTIONS details
OBJECT_NOT_FOUND - Unable to Find Template
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IASP_SERVICE_INSERT 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: | ||||
| lt_piacservice | TYPE STANDARD TABLE OF IACSERVICE, " | |||
| lv_service_name | TYPE E071-OBJ_NAME, " | |||
| lv_object_not_found | TYPE E071, " | |||
| lv_r3state | TYPE D010SINF-R3STATE, " | |||
| lt_piacservp | TYPE STANDARD TABLE OF IACSERVP, " | |||
| lt_pw3serintp | TYPE STANDARD TABLE OF W3SERINTP, " | |||
| lt_pw3serintpt | TYPE STANDARD TABLE OF W3SERINTPT, " | |||
| lt_pw3servicet | TYPE STANDARD TABLE OF W3SERVICET, " | |||
| lt_piacs | TYPE STANDARD TABLE OF IACS, " | |||
| lt_piacst | TYPE STANDARD TABLE OF IACST, " | |||
| lt_piacs_c | TYPE STANDARD TABLE OF IACS_C. " |
|   CALL FUNCTION 'IASP_SERVICE_INSERT' " |
| EXPORTING | ||
| SERVICE_NAME | = lv_service_name | |
| R3STATE | = lv_r3state | |
| TABLES | ||
| PIACSERVICE | = lt_piacservice | |
| PIACSERVP | = lt_piacservp | |
| PW3SERINTP | = lt_pw3serintp | |
| PW3SERINTPT | = lt_pw3serintpt | |
| PW3SERVICET | = lt_pw3servicet | |
| PIACS | = lt_piacs | |
| PIACST | = lt_piacst | |
| PIACS_C | = lt_piacs_c | |
| EXCEPTIONS | ||
| OBJECT_NOT_FOUND = 1 | ||
| . " IASP_SERVICE_INSERT | ||
ABAP code using 7.40 inline data declarations to call FM IASP_SERVICE_INSERT
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 OBJ_NAME FROM E071 INTO @DATA(ld_service_name). | ||||
| "SELECT single R3STATE FROM D010SINF INTO @DATA(ld_r3state). | ||||
Search for further information about these or an SAP related objects