Fonction SAP BAPI_ADMGMTSO_GETLIST - IS-M: BAPI Select Sales Document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BOOKING_UNIT BAPIBUSISM008_SEL-BOOKING_UNIT C 10 X Booking Unit
BOOKING_UNIT_SEL_TYPE BAPIBUSISM008_SEL-BOOKING_UNIT_SEL_TYPE C 1 X Search Type for Selection Using Booking Unit
BOX_NO BAPIBUSISM008_SEL-BOX_NO C 10 X IS-M/AM: Box Number
CHANGEDBY BAPIBUSISM008_SEL-CHANGEDBY C 12 X Last Changed By
CHANGEDON_FROM BAPIBUSISM008_SEL-CHANGEDON_FROM D 8 X Last Change From Date
CHANGEDON_TO BAPIBUSISM008_SEL-CHANGEDON_TO D 8 X Last Change To Date
COPY_NO_FROM BAPIBUSISM008_SEL-COPY_NO_FROM C 14 X Start Copy Number for Item
COPY_NO_TO BAPIBUSISM008_SEL-COPY_NO_TO C 14 X End Copy Number for Item
CREATEDBY BAPIBUSISM008_SEL-CREATEDBY C 12 X Created By
CREATEDON_FROM BAPIBUSISM008_SEL-CREATEDON_FROM D 8 X From Entry Date
CREATEDON_TO BAPIBUSISM008_SEL-CREATEDON_TO D 8 X To Entry Date
DATE_FROM BAPIBUSISM008_SEL-DATE_FROM D 8 X Start Date for Item
DATE_TO BAPIBUSISM008_SEL-DATE_TO D 8 X End Date for Item
DISTR_CHAN BAPIBUSISM008_SEL-DISTR_CHAN C 2 X Distribution Channel
DIVISION BAPIBUSISM008_SEL-DIVISION C 2 X Division
ITEM_TYPE BAPIBUSISM008_SEL-ITEM_TYPE C 2 X Item Type
SALESORG BAPIBUSISM008_SEL-SALESORG C 4 X Sales Organization

Paramètre Reférence Long. Facultatif Description
EXTENSION_IN BAPIPAREX 990 X Reference Structure for BAPI ExtensionIn/ExtensionOut Parameters
HEADER_LIST BAPIBUSISM008_HEAD_KEY 10 X Sales Documents Selected
ITEM_CATEGORY BAPIBUSISM008_ITEM_CAT_SEL 4 X Select Using Item Categories
ITEM_LIST BAPIBUSISM008_ITEM_KEY 13 X Sales Document Items Selected
PARTNER BAPIBUSISM008_PARTNER_SEL 30 X Select Using Business Partners
PARTN_ROLE BAPIBUSISM008_PARTN_ROLE_SEL 2 X Select Using Business Partner Roles
RETURN BAPIRET2 548 X Return Parameters
SELECTION BAPIF4D 255 X Select Using Free Criteria

Functionality
This method is used to select sales documents from the AdvertisingManagement component according to various criteria.
The AdMgmtSalesOrder.GetDetail methodis used to read detailed data for selected sales documents.
The system evaluates selection criteria at header and item level andreturns all selected sales document items with the associated salesdocuuments.

Notes
Authorizations
The system checks the following authorizations:

  • Authorization to display a sales document (J_ORDER
  • authorization object).
    • Authorization to display a sales document item (

    • J_ORD_POS authorization object).
      Any sales documents or sales document items for which user does nothave display authorization are deleted from the list.
      User-defined selection criteria
      Use the Selection or ExtensionIn parameter and theISM_AM_ORDER_BAPI BAdI to process your own selection criteria.
      Performance
      Note that the system does not provide the same level of support in theform of database indexes for all selection criteria combinations. Itmay be necessary to insert any missing indexes required, such as thoserequired for selection using the created by data.

      Further information
      INCLUDE ISM_BAPI_SEE_AM_ORDER_DOCU

      Description
      This parameter contains the booking unit that is to be used in thesales document items selected.
      Information on the significance of the booking unit is available in thecorresponding data element documentation.

      Value range
      Note that generic selection using the '*' wildcard is also possible forthis parameter. This means that if you enter LOK*, the system selectsby LOK-NORD, LOK-OST, LOK-WEST and LOK-SÜD.

      Description
      Information on the search type for the booking unit is available in thecorresponding data elementdocumentation.

      Description
      Information on the meaning of the box number is available in thecorresponding data element documentation.

      Description
      Information on the significance of the last modifier is available inthe corresponding data element documentation.

      Description
      Information on the significance of the date of the last change isavailable in the corresponding data elementdocumentation.

      Description
      Information on the significance of the date of the last change isavailable in the corresponding data elementdocumentation.
      INCLUDE BAPI_ADMGMTSO_COPY_NO
      Information on the significance of the copy number is available in thecorresponding data element documentation.
      INCLUDE BAPI_ADMGMTSO_COPY_NO
      Information on the significance of the copy number is available in thecorresponding data element documentation.

      Description
      Information on the significance of the creation user is available inthe corresponding data element documentation.

      Description
      Information on the significance of the entry date is available in thecorresponding data element documentation.

      Description
      Information on the significance of the entry date is available in thecorresponding data element documentation.

      Description
      Information on the significance of the start date is available in thecorresponding data element documentation.
      If no entry is made in this field, no time restrictions are made whenthe orders are read. Using a start date for selection will improveperformance here.

      Description
      Information on the significance of the end date is available in thecorresponding data element documentation. If noentry is made in this field, no time restrictions are made when theorders are read. Using an end date for selection will improveperformance here.

      Description
      Information on the significance of the distribution channel isavailable in the corresponding data element documentation
      .

      Description
      Information on the significance of the division is available in thecorresponding data element documentation.

      Description
      Information on the significance of the item type is available in thecorresponding data element documentation.

      Description
      Information on the significance of the sales organization is availablein the corresponding data element documentation.

      Description
      This parameter is used to transfer customer enhancements to a BAPI. Thecustomer should make entries in this parameter. If customer fields arenot required for selection, the ExtensionIn parameter should betransferred with an initial value.
      The BAPI_GETLIST_ADD_SELECTS method in the ISM_AM_ORDER_BAPI BAdI isused to evaluate additional selection criteria.

      Further information
      Additional information is available in the Customer Enhancement Conceptfor BAPIs in the BAPI programming guidelines.

      Description
      This parameter contains the sales documents that were selected usingthe selection criteria transferred.

      Description
      This parameter contains the item categories that the sales documentitems selected are to contain.
      INCLUDE BAPI_DATAELEMENT

      Value range
      If this parameter is transferred with an initial value, the systemselects sales document items independently of the item category.

      Description
      This parameter contains the sales document items that were selectedusing the selection criteria transferred.

      Description
      This parameter contains the business partner whose sales documents areto be selected.
      The system only takes account of business partner assignments at headerand item level during selection.
      INCLUDE BAPI_DATAELEMENT

      Value range
      If this parameter is transferred with an initial value, the systemselects all sales document independently of the business partnersinvolved.

      Notes
      SAP BP
      INCLUDE ISM_BAPI_BPEXT
      Business partner number,,,, Business partner number in external system
      ADVERTISER,,,,ADVERTISER_EXTERNAL

      Description
      This parameter contains the business partner roles to be performed bybusiness partners in the sales documents selected.
      INCLUDE BAPI_DATAELEMENT

      Value range
      The system only evaluates this parameter if business partners are alsotransferred in the Partner
      parameter.
      If this parameter is transferred with an initial value, the systemselects sales documents for business partners independently of theroles that they perform.
      INCLUDE ISM_BAPI_RETURN

      Description
      This parameter is used to transfer additional selection criteria toselection using view JHVAPU1 in the form of an ABAP WHERE clause

      Example
      SELECT * FROM JHVAPU1 WHERE
      ....
      AND
      '( AVM_HRKNFT = '''I''' OR' "Selection[1]
      ' AVM_HRKNFT = '''T''' )' "Selection[2]
      .

      Notes
      Additional information on making entries in the parameter is availablein the Logical Requirements unit of the ABAP documentation.