/AWS1/IF_LMW=>GETWEBFUNCTION()¶
About GetWebFunction¶
Retrieves details about a web function, including its current state and configuration.
Method Signature¶
METHODS /AWS1/IF_LMW~GETWEBFUNCTION
IMPORTING
!IV_FUNCTIONNAME TYPE /AWS1/LMWFUNCTIONNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmwgetwebfuncresponse
RAISING
/AWS1/CX_LMWACCESSDENIEDEX
/AWS1/CX_LMWINTERNALSERVEREX
/AWS1/CX_LMWRESOURCENOTFOUNDEX
/AWS1/CX_LMWTHROTTLINGEX
/AWS1/CX_LMWVLDTNEXCEPTION
/AWS1/CX_LMWCLIENTEXC
/AWS1/CX_LMWSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_functionname TYPE /AWS1/LMWFUNCTIONNAME /AWS1/LMWFUNCTIONNAME¶
The name of the web function to retrieve. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmwgetwebfuncresponse /AWS1/CL_LMWGETWEBFUNCRESPONSE¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getwebfunction( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_functionname = lo_result->get_functionname( ).
lv_functionarn = lo_result->get_functionarn( ).
lv_functionstate = lo_result->get_state( ).
lv_string = lo_result->get_statereason( ).
lv_datetime = lo_result->get_createdat( ).
lv_datetime = lo_result->get_updatedat( ).
ENDIF.