Skip to content

/AWS1/CL_TBD=>CREATESTORAGEPROFILE()

About CreateStorageProfile

Creates a storage profile that specifies the operating system, file type, and file location of resources used on a farm.

Method Signature

IMPORTING

Required arguments:

iv_farmid TYPE /AWS1/TBDFARMID /AWS1/TBDFARMID

The farm ID of the farm to connect to the storage profile.

iv_displayname TYPE /AWS1/TBDRESOURCENAME /AWS1/TBDRESOURCENAME

The display name of the storage profile.

This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

iv_osfamily TYPE /AWS1/TBDSTRGPFLOPERATINGSYS00 /AWS1/TBDSTRGPFLOPERATINGSYS00

The type of operating system (OS) for the storage profile.

Optional arguments:

iv_clienttoken TYPE /AWS1/TBDCLIENTTOKEN /AWS1/TBDCLIENTTOKEN

The unique token which the server uses to recognize retries of the same request.

it_filesystemlocations TYPE /AWS1/CL_TBDFILESYSTEMLOCATION=>TT_FILESYSTEMLOCATIONSLIST TT_FILESYSTEMLOCATIONSLIST

File system paths to include in the storage profile.

RETURNING

oo_output TYPE REF TO /aws1/cl_tbdcreatestrgpflrsp /AWS1/CL_TBDCREATESTRGPFLRSP

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_tbd~createstorageprofile(
  it_filesystemlocations = VALUE /aws1/cl_tbdfilesystemlocation=>tt_filesystemlocationslist(
    (
      new /aws1/cl_tbdfilesystemlocation(
        iv_name = |string|
        iv_path = |string|
        iv_type = |string|
      )
    )
  )
  iv_clienttoken = |string|
  iv_displayname = |string|
  iv_farmid = |string|
  iv_osfamily = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_storageprofileid = lo_result->get_storageprofileid( ).
ENDIF.