Skip to content

/AWS1/IF_BDK=>LISTADVNCDPROMPTOPTMZTNJOBS()

About ListAdvancedPromptOptimizationJobs

Lists the advanced prompt optimization jobs in your account.

Method Signature

METHODS /AWS1/IF_BDK~LISTADVNCDPROMPTOPTMZTNJOBS
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/BDKMAXRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/BDKPAGINATIONTOKEN OPTIONAL
    !IV_SORTBY TYPE /AWS1/BDKSORTJOBSBY OPTIONAL
    !IV_SORTORDER TYPE /AWS1/BDKSORTORDER OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdklstadvproptjobsrsp
  RAISING
    /AWS1/CX_BDKACCESSDENIEDEX
    /AWS1/CX_BDKINTERNALSERVEREX
    /AWS1/CX_BDKTHROTTLINGEX
    /AWS1/CX_BDKVALIDATIONEX
    /AWS1/CX_BDKCLIENTEXC
    /AWS1/CX_BDKSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/BDKMAXRESULTS /AWS1/BDKMAXRESULTS

The maximum number of results to return in the response.

iv_nexttoken TYPE /AWS1/BDKPAGINATIONTOKEN /AWS1/BDKPAGINATIONTOKEN

If the total number of results is greater than the maxResults value provided in the request, use this token in a subsequent request to get the next set of results.

iv_sortby TYPE /AWS1/BDKSORTJOBSBY /AWS1/BDKSORTJOBSBY

The field to sort the results by.

iv_sortorder TYPE /AWS1/BDKSORTORDER /AWS1/BDKSORTORDER

The sort order for the results.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdklstadvproptjobsrsp /AWS1/CL_BDKLSTADVPROPTJOBSRSP

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->listadvncdpromptoptmztnjobs(
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_sortby = |string|
  iv_sortorder = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_jobsummaries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_advancedpromptoptimizat = lo_row_1->get_jobarn( ).
      lv_advancedpromptoptimizat_1 = lo_row_1->get_jobname( ).
      lv_advancedpromptoptimizat_2 = lo_row_1->get_jobstatus( ).
      lv_timestamp = lo_row_1->get_creationtime( ).
      lv_timestamp = lo_row_1->get_lastmodifiedtime( ).
    ENDIF.
  ENDLOOP.
  lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.