Skip to content

/AWS1/IF_MPI=>GETLISTING()

About GetListing

Provides details about a listing, such as descriptions, badges, categories, pricing model summaries, reviews, and associated products and offers.

Method Signature

METHODS /AWS1/IF_MPI~GETLISTING
  IMPORTING
    !IV_LISTINGID TYPE /AWS1/MPILISTINGID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpigetlistingoutput
  RAISING
    /AWS1/CX_MPIACCESSDENIEDEX
    /AWS1/CX_MPIINTERNALSERVEREX
    /AWS1/CX_MPITHROTTLINGEX
    /AWS1/CX_MPIVLDTNEXCEPTION
    /AWS1/CX_MPIRESOURCENOTFOUNDEX
    /AWS1/CX_MPICLIENTEXC
    /AWS1/CX_MPISERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_listingid TYPE /AWS1/MPILISTINGID /AWS1/MPILISTINGID

The unique identifier of the listing to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_mpigetlistingoutput /AWS1/CL_MPIGETLISTINGOUTPUT

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->getlisting( |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_associatedentities( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_productinformation = lo_row_1->get_product( ).
      IF lo_productinformation IS NOT INITIAL.
        lv_productid = lo_productinformation->get_productid( ).
        lv_nonemptystring = lo_productinformation->get_productname( ).
        lo_sellerinformation = lo_productinformation->get_manufacturer( ).
        IF lo_sellerinformation IS NOT INITIAL.
          lv_sellerprofileid = lo_sellerinformation->get_sellerprofileid( ).
          lv_nonemptystring = lo_sellerinformation->get_displayname( ).
        ENDIF.
      ENDIF.
      lo_offerinformation = lo_row_1->get_offer( ).
      IF lo_offerinformation IS NOT INITIAL.
        lv_offerid = lo_offerinformation->get_offerid( ).
        lv_nullablestring = lo_offerinformation->get_offername( ).
        lo_sellerinformation = lo_offerinformation->get_sellerofrecord( ).
        IF lo_sellerinformation IS NOT INITIAL.
          lv_sellerprofileid = lo_sellerinformation->get_sellerprofileid( ).
          lv_nonemptystring = lo_sellerinformation->get_displayname( ).
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_badges( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lv_nonemptystring = lo_row_3->get_displayname( ).
      lv_listingbadgetype = lo_row_3->get_badgetype( ).
    ENDIF.
  ENDLOOP.
  lv_catalog = lo_result->get_catalog( ).
  LOOP AT lo_result->get_categories( ) into lo_row_4.
    lo_row_5 = lo_row_4.
    IF lo_row_5 IS NOT INITIAL.
      lv_nonemptystring = lo_row_5->get_categoryid( ).
      lv_nonemptystring = lo_row_5->get_displayname( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_fulfllmtoptionsummaries( ) into lo_row_6.
    lo_row_7 = lo_row_6.
    IF lo_row_7 IS NOT INITIAL.
      lv_fulfillmentoptiontype = lo_row_7->get_fulfillmentoptiontype( ).
      lv_nonemptystring = lo_row_7->get_displayname( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_highlights( ) into lo_row_8.
    lo_row_9 = lo_row_8.
    IF lo_row_9 IS NOT INITIAL.
      lv_nonemptystring = lo_row_9->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_nullablestring = lo_result->get_integrationguide( ).
  lv_listingid = lo_result->get_listingid( ).
  lv_nonemptystring = lo_result->get_listingname( ).
  lv_url = lo_result->get_logothumbnailurl( ).
  lv_nonemptystring = lo_result->get_longdescription( ).
  LOOP AT lo_result->get_pricingmodels( ) into lo_row_10.
    lo_row_11 = lo_row_10.
    IF lo_row_11 IS NOT INITIAL.
      lv_pricingmodeltype = lo_row_11->get_pricingmodeltype( ).
      lv_nonemptystring = lo_row_11->get_displayname( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_pricingunits( ) into lo_row_12.
    lo_row_13 = lo_row_12.
    IF lo_row_13 IS NOT INITIAL.
      lv_pricingunittype = lo_row_13->get_pricingunittype( ).
      lv_nonemptystring = lo_row_13->get_displayname( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_promotionalmedia( ) into lo_row_14.
    lo_row_15 = lo_row_14.
    IF lo_row_15 IS NOT INITIAL.
      lo_promotionalembeddedimag = lo_row_15->get_embeddedimage( ).
      IF lo_promotionalembeddedimag IS NOT INITIAL.
        lv_nonemptystring = lo_promotionalembeddedimag->get_title( ).
        lv_url = lo_promotionalembeddedimag->get_url( ).
        lv_nullablestring = lo_promotionalembeddedimag->get_description( ).
      ENDIF.
      lo_promotionalembeddedvide = lo_row_15->get_embeddedvideo( ).
      IF lo_promotionalembeddedvide IS NOT INITIAL.
        lv_nonemptystring = lo_promotionalembeddedvide->get_title( ).
        lv_url = lo_promotionalembeddedvide->get_url( ).
        lv_url = lo_promotionalembeddedvide->get_preview( ).
        lv_url = lo_promotionalembeddedvide->get_thumbnail( ).
        lv_nullablestring = lo_promotionalembeddedvide->get_description( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
  lo_sellerinformation = lo_result->get_publisher( ).
  IF lo_sellerinformation IS NOT INITIAL.
    lv_sellerprofileid = lo_sellerinformation->get_sellerprofileid( ).
    lv_nonemptystring = lo_sellerinformation->get_displayname( ).
  ENDIF.
  LOOP AT lo_result->get_resources( ) into lo_row_16.
    lo_row_17 = lo_row_16.
    IF lo_row_17 IS NOT INITIAL.
      lv_resourcetype = lo_row_17->get_resourcetype( ).
      lv_resourcecontenttype = lo_row_17->get_contenttype( ).
      lv_nonemptystring = lo_row_17->get_value( ).
      lv_nullablestring = lo_row_17->get_displayname( ).
    ENDIF.
  ENDLOOP.
  lo_reviewsummary = lo_result->get_reviewsummary( ).
  IF lo_reviewsummary IS NOT INITIAL.
    LOOP AT lo_reviewsummary->get_reviewsourcesummaries( ) into lo_row_18.
      lo_row_19 = lo_row_18.
      IF lo_row_19 IS NOT INITIAL.
        lv_nonemptystring = lo_row_19->get_sourcename( ).
        lv_reviewsourceid = lo_row_19->get_sourceid( ).
        lv_url = lo_row_19->get_sourceurl( ).
        lv_nonemptystring = lo_row_19->get_averagerating( ).
        lv_nonnegativecount = lo_row_19->get_totalreviews( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  LOOP AT lo_result->get_sellerengagements( ) into lo_row_20.
    lo_row_21 = lo_row_20.
    IF lo_row_21 IS NOT INITIAL.
      lv_sellerengagementtype = lo_row_21->get_engagementtype( ).
      lv_sellerengagementcontent = lo_row_21->get_contenttype( ).
      lv_nonemptystring = lo_row_21->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_nonemptystring = lo_result->get_shortdescription( ).
  LOOP AT lo_result->get_usecases( ) into lo_row_22.
    lo_row_23 = lo_row_22.
    IF lo_row_23 IS NOT INITIAL.
      lo_usecase = lo_row_23->get_usecase( ).
      IF lo_usecase IS NOT INITIAL.
        lv_nonemptystring = lo_usecase->get_description( ).
        lv_nonemptystring = lo_usecase->get_displayname( ).
        lv_nonemptystring = lo_usecase->get_value( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDIF.

GetListing for SaaS listing

GetListing for SaaS listing

DATA(lo_result) = lo_client->getlisting( |prodview-sampleSaasId| ).

GetListing for AMI listing with video

GetListing for AMI listing with video

DATA(lo_result) = lo_client->getlisting( |prodview-sampleAmiId| ).

GetListing for multi-product listing

GetListing for multi-product listing

DATA(lo_result) = lo_client->getlisting( |prodview-sampleMultiProductId| ).