Skip to content

/AWS1/IF_AG2=>UPDATEPRODUCTPAGE()

About UpdateProductPage

Updates a product page of a portal product.

Method Signature

METHODS /AWS1/IF_AG2~UPDATEPRODUCTPAGE
  IMPORTING
    !IO_DISPLAYCONTENT TYPE REF TO /AWS1/CL_AG2DISPLAYCONTENT OPTIONAL
    !IV_PORTALPRODUCTID TYPE /AWS1/AG2__STRING OPTIONAL
    !IV_PRODUCTPAGEID TYPE /AWS1/AG2__STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ag2updateprodpagersp
  RAISING
    /AWS1/CX_AG2ACCESSDENIEDEX
    /AWS1/CX_AG2BADREQUESTEX
    /AWS1/CX_AG2NOTFOUNDEXCEPTION
    /AWS1/CX_AG2TOOMANYREQUESTSEX
    /AWS1/CX_AG2CLIENTEXC
    /AWS1/CX_AG2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_portalproductid TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

The portal product identifier.

iv_productpageid TYPE /AWS1/AG2__STRING /AWS1/AG2__STRING

The portal product identifier.

Optional arguments:

io_displaycontent TYPE REF TO /AWS1/CL_AG2DISPLAYCONTENT /AWS1/CL_AG2DISPLAYCONTENT

The content of the product page.

RETURNING

oo_output TYPE REF TO /aws1/cl_ag2updateprodpagersp /AWS1/CL_AG2UPDATEPRODPAGERSP

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->updateproductpage(
  io_displaycontent = new /aws1/cl_ag2displaycontent(
    iv_body = |string|
    iv_title = |string|
  )
  iv_portalproductid = |string|
  iv_productpageid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_displaycontent = lo_result->get_displaycontent( ).
  IF lo_displaycontent IS NOT INITIAL.
    lv___stringmin1max32768 = lo_displaycontent->get_body( ).
    lv___stringmin1max255 = lo_displaycontent->get_title( ).
  ENDIF.
  lv___timestampiso8601 = lo_result->get_lastmodified( ).
  lv___stringmin20max2048 = lo_result->get_productpagearn( ).
  lv___stringmin10max30patte = lo_result->get_productpageid( ).
ENDIF.