Fonction SAP CBIH_MP30_MP_FIND_BY_DEVICE - EHS: Search for Measurement Projects via Devices

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_DATERANGE RCGDATERANGE u 16 X Period for Historical Search
I_MPDVREC CIHPD_MPDVAPI_WA_TYPE 0 Selection Criteria Device List
I_SEARCHMODE ESESEARCHMODE C 1 ESP1_SEARCHMODE-WEAK X Search Mode
I_VALDAT RCGUADM-VALTO D 8 SY-DATUM X Key Date

Paramètre Reférence Type Long. Description
E_RECORDS_FOUND SYST-TABIX I 4 No. of entries found

Paramètre Reférence Long. Facultatif Description
E_KEY_TAB CIHMP_KEYTAB_TAB_TYPE 0 Record Number of Measurement Projects Found
I_RESTRICTION_TAB CIHMP_KEYTAB_TAB_TYPE 0 X Restriction via Record Numbers

Exception Description
INTERNAL_ERROR Internal Program/System Error

Functionality
This function module is used to determine measurement project recordnumbers by running a search based on the parameters entered by the userfor the device list.
The function module has the following parameters:

  • I_MPDVREC

  • A data record of the device list with search parameters. The searchparameters are linked with an AND logic operation.
    • I_VALDAT

    • Only data valid on this date is read.
      • I_SEARCHMODE

      • Search mode for the historical search, default value is 'w' = weak.
        • I_DATERANGE

        • If I_DATERANGE is filled, the historical search is run. I_DATERANGEcontains the time period for the historical search. When searching withI_DATERANGE, only the search mode 'w' = weak is permitted.
          • E_RECORDS_FOUND

          • Returns the number of measurement project keys found.
            • I_RESTRICTION_TAB

            • Restriction to the search by predefined measurement project recordnumbers. If no measurement project record numbers are passed, the searchis run on all records of the measurement project header.
              • E_KEY_TAB

              • All measurement project record numbers found are entered in this resulttable.

                Note
                The search for a discrete "valid from" or "valid to" date within theheader record I_MPREC is not supported. These values are used forselection in conjunction with the parameters I_VALDAT and I_DATERANGE.
                The function module does not support a search via the change number.Before you call the function, the "valid from" date of the change numbermust be set in the parameter I_VALDAT.