Fonction SAP BAPI_SERVICE_GETDETAILBOS - Read Detailed Data for a Service Master Record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
SERVICENUMBER BAPISRVPAR-SERVICE C 18 Service Master Record Number
SERVICETEXTS BAPISRVPAR-SELECTION C 1 SPACE X Indicator for Output of Long Text

Paramètre Reférence Type Long. Description
SERVICEGENERALDATA BAPISRVBOS u 269 General Data on Service

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancements for Export
RETURN BAPIRET2 548 X Return Messages
SERVICETEXTLINES BAPISRVTXT 156 X Long Text of Service Master Record

Functionality
You can use this method to read detail data for a service master recordand return this data to the calling program.

Example

Notes
As selection criterion, transfer the service master number in theimport parameters ServiceNumber. A service master record isidentified via this search criterion.
The parameter ServiceTexts controls whether the long text forthe service master is displayed or not.
Return
The data for the service master record that corresponds to theselection criterion is returned in the following tables:

  • Service data via table ServiceGeneralData

  • Long text via table ServiceTextLines

  • Customer fields - table ASMD can be read via structureExtensionOut.
    Handling of Errors
    If errors occur during processing, they are returned in the tableparameter Return. Information messages are also logged in thistable parameter.

    Further information
    You require the authorization to display service master data if thedata is to be read successfully.

    Description
    This structure is used to return the general service data to thecalling program.
    General data for the service master record is, for example, short text,unit of measure and valuation class.

    Description
    The service master record number identifies a service uniquely.

    Value range
    Dictionary data type CHAR (field length 18)

    Default
    The parameter has to be entered (required entry field).

    Description
    Indicator that determines whether the system reads the long text for aservice master record.

    Value range
    SPACE,,no long texts are displayed.
    X,,long texts are displayed.

    Default
    SPACE,,

    Description
    If you have defined your own customer fields in the service masterrecord using the SAP enhancement SRVASMD, you can transfer thedata in these fields using this parameter.

    Description
    If errors occur during processing, they are returned in the tableparameter Return. Information messages are also logged in thistable parameter.

    Value range
    If no error occurs, the return parameter is initial. Otherwise theappropriate error messages with short text are displayed.

    Description
    Displays the long text for a service master record.
    The long text is only read if you have set the ServiceTexts(read long text) parameter.