SAP SLMP_API_GET Function Module for Get data on entities









SLMP_API_GET is a standard slmp api get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get data on entities 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 slmp api get FM, simply by entering the name SLMP_API_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: SLMP_EXTERNAL_API
Program Name: SAPLSLMP_EXTERNAL_API
Main Program: SAPLSLMP_EXTERNAL_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled + BasXML supported
Update:



Function SLMP_API_GET 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 'SLMP_API_GET'"Get data on entities
EXPORTING
IV_ENTITY_SET = "Name of the entity set to get from
* IV_KEY = "Key predicate of entity
* IV_TO_ENTITY_SET = "Entity set to navigate to
* IV_PROVIDER_ID = 'STC' "ID of Provider to call
* IS_FORMAT_OPTIONS = "Format options of SLMP API

IMPORTING
EV_DATA = "Data resulting from GET
EV_MEDIA_TYPE = "Media Type of Binary Data

TABLES
* TT_QUERY_STRING = "Options in SLMP API
* TT_ERROR_MESSAGES = "Out: Error Messages
.



IMPORTING Parameters details for SLMP_API_GET

IV_ENTITY_SET - Name of the entity set to get from

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

IV_KEY - Key predicate of entity

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

IV_TO_ENTITY_SET - Entity set to navigate to

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

IV_PROVIDER_ID - ID of Provider to call

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

IS_FORMAT_OPTIONS - Format options of SLMP API

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

EXPORTING Parameters details for SLMP_API_GET

EV_DATA - Data resulting from GET

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

EV_MEDIA_TYPE - Media Type of Binary Data

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

TABLES Parameters details for SLMP_API_GET

TT_QUERY_STRING - Options in SLMP API

Data type: SLMP_API_OPTIONS_S
Optional: Yes
Call by Reference: Yes

TT_ERROR_MESSAGES - Out: Error Messages

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for SLMP_API_GET 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_data  TYPE XSTRING, "   
lv_iv_entity_set  TYPE STRING, "   
lt_tt_query_string  TYPE STANDARD TABLE OF SLMP_API_OPTIONS_S, "   
lv_iv_key  TYPE STRING, "   
lv_ev_media_type  TYPE STRING, "   
lt_tt_error_messages  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_to_entity_set  TYPE STRING, "   
lv_iv_provider_id  TYPE STRING, "   'STC'
lv_is_format_options  TYPE SLMP_API_FORMAT_OPTIONS_S. "   

  CALL FUNCTION 'SLMP_API_GET'  "Get data on entities
    EXPORTING
         IV_ENTITY_SET = lv_iv_entity_set
         IV_KEY = lv_iv_key
         IV_TO_ENTITY_SET = lv_iv_to_entity_set
         IV_PROVIDER_ID = lv_iv_provider_id
         IS_FORMAT_OPTIONS = lv_is_format_options
    IMPORTING
         EV_DATA = lv_ev_data
         EV_MEDIA_TYPE = lv_ev_media_type
    TABLES
         TT_QUERY_STRING = lt_tt_query_string
         TT_ERROR_MESSAGES = lt_tt_error_messages
. " SLMP_API_GET




ABAP code using 7.40 inline data declarations to call FM SLMP_API_GET

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_provider_id) = 'STC'.
 
 


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!