/AWS1/IF_TRN=>CREATEPROFILE()¶
About CreateProfile¶
Creates the local or partner profile to use for AS2 transfers.
Method Signature¶
METHODS /AWS1/IF_TRN~CREATEPROFILE
IMPORTING
!IV_AS2ID TYPE /AWS1/TRNAS2ID OPTIONAL
!IV_PROFILETYPE TYPE /AWS1/TRNPROFILETYPE OPTIONAL
!IT_CERTIFICATEIDS TYPE /AWS1/CL_TRNCERTIFICATEIDS_W=>TT_CERTIFICATEIDS OPTIONAL
!IT_TAGS TYPE /AWS1/CL_TRNTAG=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trncreateprofilersp
RAISING
/AWS1/CX_TRNINTERNALSVCERROR
/AWS1/CX_TRNINVALIDREQUESTEX
/AWS1/CX_TRNRESOURCENOTFOUNDEX
/AWS1/CX_TRNSERVICEUNAVAILEX
/AWS1/CX_TRNTHROTTLINGEX
/AWS1/CX_TRNCLIENTEXC
/AWS1/CX_TRNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_as2id TYPE /AWS1/TRNAS2ID /AWS1/TRNAS2ID¶
The
As2Idis the AS2-name, as defined in the RFC 4130. For inbound transfers, this is theAS2-Fromheader for the AS2 messages sent from the partner. For outbound connectors, this is theAS2-Toheader for the AS2 messages sent to the partner using theStartFileTransferAPI operation. This ID cannot include spaces.
iv_profiletype TYPE /AWS1/TRNPROFILETYPE /AWS1/TRNPROFILETYPE¶
Determines the type of profile to create:
Specify
LOCALto create a local profile. A local profile represents the AS2-enabled Transfer Family server organization or party.Specify
PARTNERto create a partner profile. A partner profile represents a remote organization, external to Transfer Family.
Optional arguments:¶
it_certificateids TYPE /AWS1/CL_TRNCERTIFICATEIDS_W=>TT_CERTIFICATEIDS TT_CERTIFICATEIDS¶
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
it_tags TYPE /AWS1/CL_TRNTAG=>TT_TAGS TT_TAGS¶
Key-value pairs that can be used to group and search for AS2 profiles.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trncreateprofilersp /AWS1/CL_TRNCREATEPROFILERSP¶
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->createprofile(
it_certificateids = VALUE /aws1/cl_trncertificateids_w=>tt_certificateids(
( new /aws1/cl_trncertificateids_w( |string| ) )
)
it_tags = VALUE /aws1/cl_trntag=>tt_tags(
(
new /aws1/cl_trntag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_as2id = |string|
iv_profiletype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_profileid = lo_result->get_profileid( ).
ENDIF.