Skip to content

/AWS1/CL_BCF=>GETACCOUNTACTIVITY()

About GetAccountActivity

Returns a specific activity record that is available to the customer.

Method Signature

IMPORTING

Required arguments:

iv_activityid TYPE /AWS1/BCFACTIVITYID /AWS1/BCFACTIVITYID

A unique identifier that identifies the activity.

Optional arguments:

iv_languagecode TYPE /AWS1/BCFLANGUAGECODE /AWS1/BCFLANGUAGECODE

The language code used to return translated title and description fields.

RETURNING

oo_output TYPE REF TO /aws1/cl_bcfgetacctactivityrsp /AWS1/CL_BCFGETACCTACTIVITYRSP

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_bcf~getaccountactivity(
  iv_activityid = |string|
  iv_languagecode = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_activityid = lo_result->get_activityid( ).
  lv_genericstring = lo_result->get_title( ).
  lv_genericstring = lo_result->get_description( ).
  lv_activitystatus = lo_result->get_status( ).
  lv_genericstring = lo_result->get_instructionsurl( ).
  lo_activityreward = lo_result->get_reward( ).
  IF lo_activityreward IS NOT INITIAL.
    lo_monetaryamount = lo_activityreward->get_credit( ).
    IF lo_monetaryamount IS NOT INITIAL.
      lv_genericdouble = lo_monetaryamount->get_amount( ).
      lv_currencycode = lo_monetaryamount->get_unit( ).
    ENDIF.
  ENDIF.
  lv_integer = lo_result->get_estimatedtimetocomplin00( ).
  lv_timestamp = lo_result->get_expiresat( ).
  lv_timestamp = lo_result->get_startedat( ).
  lv_timestamp = lo_result->get_completedat( ).
ENDIF.

Fetching an Account activity by id

Fetching an Account activity by id

DATA(lo_result) = lo_client->/aws1/if_bcf~getaccountactivity(
  iv_activityid = |d622f48bf4014286a2686ab10cacfb2e|
  iv_languagecode = |en-US|
).