/AWS1/CL_PPT=>CREATESMSTEMPLATE()
¶
About CreateSmsTemplate¶
Creates a message template for messages that are sent through the SMS channel.
Method Signature¶
IMPORTING¶
Required arguments:¶
io_smstemplaterequest
TYPE REF TO /AWS1/CL_PPTSMSTEMPLATEREQUEST
/AWS1/CL_PPTSMSTEMPLATEREQUEST
¶
SMSTemplateRequest
iv_templatename
TYPE /AWS1/PPT__STRING
/AWS1/PPT__STRING
¶
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_pptcreatesmstmplrsp
/AWS1/CL_PPTCREATESMSTMPLRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->/aws1/if_ppt~createsmstemplate(
io_smstemplaterequest = new /aws1/cl_pptsmstemplaterequest(
it_tags = VALUE /aws1/cl_pptmapof__string_w=>tt_mapof__string(
(
VALUE /aws1/cl_pptmapof__string_w=>ts_mapof__string_maprow(
key = |string|
value = new /aws1/cl_pptmapof__string_w( |string| )
)
)
)
iv_body = |string|
iv_defaultsubstitutions = |string|
iv_recommenderid = |string|
iv_templatedescription = |string|
)
iv_templatename = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_createtemplatemessagebo = lo_result->get_createtmplmessagebody( ).
IF lo_createtemplatemessagebo IS NOT INITIAL.
lv___string = lo_createtemplatemessagebo->get_arn( ).
lv___string = lo_createtemplatemessagebo->get_message( ).
lv___string = lo_createtemplatemessagebo->get_requestid( ).
ENDIF.
ENDIF.