Skip to content

/AWS1/IF_SAG=>UPDATESECURITYREQPACK()

About UpdateSecurityRequirementPack

Updates a security requirement pack. For customer managed packs, both metadata and status can be updated. For AWS managed packs, only status can be updated.

Method Signature

METHODS /AWS1/IF_SAG~UPDATESECURITYREQPACK
  IMPORTING
    !IV_PACKID TYPE /AWS1/SAGSECURITYREQPACKID OPTIONAL
    !IV_NAME TYPE /AWS1/SAGSECURITYREQPACKNAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/SAGSTRING OPTIONAL
    !IV_STATUS TYPE /AWS1/SAGSECURITYREQPACKSTATUS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagupdsecreqpackout
  RAISING
    /AWS1/CX_SAGACCESSDENIEDEX
    /AWS1/CX_SAGCONFLICTEXCEPTION
    /AWS1/CX_SAGINTERNALSERVEREX
    /AWS1/CX_SAGRESOURCENOTFOUNDEX
    /AWS1/CX_SAGTHROTTLINGEX
    /AWS1/CX_SAGVLDTNEXCEPTION
    /AWS1/CX_SAGCLIENTEXC
    /AWS1/CX_SAGSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_packid TYPE /AWS1/SAGSECURITYREQPACKID /AWS1/SAGSECURITYREQPACKID

The unique identifier of the security requirement pack to update.

Optional arguments:

iv_name TYPE /AWS1/SAGSECURITYREQPACKNAME /AWS1/SAGSECURITYREQPACKNAME

The updated name of the security requirement pack.

iv_description TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

The updated description of the security requirement pack.

iv_status TYPE /AWS1/SAGSECURITYREQPACKSTATUS /AWS1/SAGSECURITYREQPACKSTATUS

The updated status of the security requirement pack.

RETURNING

oo_output TYPE REF TO /aws1/cl_sagupdsecreqpackout /AWS1/CL_SAGUPDSECREQPACKOUT

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->updatesecurityreqpack(
  iv_description = |string|
  iv_name = |string|
  iv_packid = |string|
  iv_status = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_securityrequirementpack = lo_result->get_packid( ).
  lv_securityrequirementpack_1 = lo_result->get_name( ).
  lv_string = lo_result->get_description( ).
  lv_securityrequirementpack_2 = lo_result->get_status( ).
ENDIF.