Fonction SAP BAPI_MEDSRVCAT_DELETEITEM - IS-H*MED: BAPI MEDSrvCat.Delete - Deleting Service Master Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPINALL-INSTITUTION C 4 IS-H: Institution
SERVICEID BAPI1300N1TPMX-SERVICEID C 10 IS-H: Service in Service Catalog
SRVCATID BAPI1300N1TPMX-SRVCATID C 2 IS-H: Service Catalog Identification Key
TESTRUN BAPINALL-TESTRUN C 1 SPACE X IS-H: Test Run Without Database Changes (Checkbox)

Paramètre Reférence Type Long. Description
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 IS-H: Most Severe Message Type Generated

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Parameters
SRVDATA_TPLAB_INPUT BAPI1300N1TPLABDEL 31 X IS-H*MED: Required Laboratory Parameters
SRVDATA_TPLAB_OUTPUT BAPI1300N1TPLAB 154 X IS-H*MED: Deleted Laboratory Parameters
SRVDATA_TPLOK_INPUT BAPI1300N1TPLOK 21 X IS-H*MED: Radiology - Excluded Localization
SRVDATA_TPLOK_OUTPUT BAPI1300N1TPLOK 21 X IS-H*MED: Radiology - Deleted Excluded Localization
SRVDATA_TPP_INPUT BAPI1300N1TPPDEL 33 X IS-H*MED: Resource Profiles for Services
SRVDATA_TPP_OUTPUT BAPI1300N1TPP 45 X IS-H*MED: Deleted Resource Profile for Services
SRVDATA_TPTA_INPUT BAPI1300N1TPTA 21 X IS-H*MED: Excluded Transport Type
SRVDATA_TPTA_OUTPUT BAPI1300N1TPTA 21 X IS-H*MED: Deleted Excluded Transport Types

&FUNCTIONALITY&
This BAPI method is part of the basic data in the Clinical Systemindustry-specific component.
It is used to delete the medical and radiological data of an existingIS-H*MED service of a service catalog.

Notes
For correct processing, the import parameters and input tables must besupplied with the medical data to be deleted. The individual tables canbe optionally filled.
In the input tables you include the key attributes of the data recordswhich should be deleted from the database.
The following tables with key attributes for deleting a service can becan be transferred to the BAPI:
Table,,Description,,Key Attributes
SRVDATA_TPP_INPUT,,Resource profile for services,,CLIENT,INSTITUTION, SRVCATID, SERVICEID, PLANOBJECT, TASK
SRVDATA_TPLOK_INPUT,,Radiology: Excluded localization,,CLIENT,INSTITUTION, SRVCATID, SERVICEID, LOCALIZATION
SRVDATA_TPTA_INPUT,,Radiology: Excluded transport type,,CLIENT,INSTITUTION, SRVCATID, SERVICEID, TRANSPORT_TYPE
SRVDATA_TPLAB_INPUT,,Radiology: Laboratory parameters,,CLIENT,INSTITUTION, SRVCATID, SERVICEID, LAB_SRVCATID, LAB_SERVICEID
The system will return the deleted table entries to the correspondingOUTPUT tables.
The TESTRUN parameter is optional. If it is set to 'X', thesystem will runt the BAPI in test mode. The test mode is used to checkthe transferred data. In test mode, which you can use to check theconsistency of the data, the system will not write changes to thedatabase.
When you call the method, the system will first check the table forerrors and inconsistencies. If it finds an error in a record, this willbe logged internally and the system will not delete the entry from thedatabase. Any errors found during the check will be returned to theuser in the RETURN table.
You will find possible return values and their meanings in theparameter documentation of the RETURN table.

Further information
If you wish to delete attributes from the SRVDATA_TPK and SRVDATA_TPMtables, you must use the change BAPI ( BAPI_MEDSRVCAT_CHANGEITEM
).

Description
This return parameter contains the most severe message type generatedin the RETURN parameter. You can use this as a simple successanalysis, without having to examine the structure or the RETURNtable in detail. You can always limit this to the cases which contain'E' or 'A' here as the most severe type. With message types ' ', 'S','I' and 'W' processing is successfully
completed. With message types 'E' or 'A' the system could not processthe data.

Value range

' ': No message occurred

  • 'S': Success message

  • 'I': Information message

  • 'W': Warning

  • 'E': Error

  • 'A': Abort
  • Description
    In this field you must explicitly enter the client. The system willcheck this entry when you create or change objects, to guaranteeprocessing in the correct client.

    Value range
    All clients stored in the system.
    This field is alpha-converted, which means that you can omit theleading blanks or zeroes in entries which contain numbers only.

    Default
    The system will not preassign this value.

    Description
    You must manually enter the responsible institution in this field.

    Value range
    All institutions stored in the system.
    This field is alpha-converted, which means that you can omit theleading blanks or zeroes from entries which contain numbers only.

    Default
    No value is preassigned.

    Description
    Manual entry of service within corresponding service catalog.

    Value range
    This field is alpha-converted, which means that you can omit theleading blanks or zeroes from entries which contain numbers only.

    Default
    No value is preassigned.

    Description
    Manual entry of service catalog number within the corresponding
    institution.

    Value range
    This field is alpha-converted, which means that you can omit theleading blanks or zeroes from entries which contain numbers only.

    Default
    No value is preassigned.

    Description
    If you only wish to check the consistency of data to be deleted,without making any database changes, you can execute a test run.

    Value range
    You must set the parameter to 'X' if you wish to perform a test runwithout database changes.

    Default
    The parameter is not preset with 'X', but with SPACE.
    If the parameter is not taken into account when called the system willnot perform a test run, but will delete the data from the database(update run).

    Description
    Any errors which may have occurred will be returned to this table.

    Value range
    The following error messages may occur:

    • NC 601: Mandatory parameter not filled (module )

    • NFCL 146: Enter a valid client

    • NFCL 156: Enter a valid service catalog identification

    • NFCL 157: Enter a valid service identification within a service catalog

    • NFCL 211: Error while deleting medical enhancements for service catalog
    • items
      • NFCL 214: Error while deleting resource profile

      • NFCL 235: Entry with value does not exist in the database

      • NF1 305: Error while deleting the excluded localization (Radiology)

      • NF1 308: Error while deleting the excluded transport types

      • NF1 312: Error while deleting the lab parameter

      • N1 036: Enter a valid institution

      • N2 615: Error while deleting service

      • N2 300: User has no authorization in institution

      • N2 663: Service is not defined in catalog of
      • institution
        • N2 673: Institution does not exist

        • N2 674: Catalog does not exist
        • Description
          In this table you include the key fields of the lab parameters of theservice to be deleted.
          The system will process every transferred record as long as no errorsoccur in processing. Any errors which occur are collected in theRETURN parameter.

          Description
          The deleted laboratory parameters of the service are displayed in thistable.

          Description
          In this table you include the key fields of the excluded localizationof the service to be deleted.
          The system will process every transferred record as long as no errorsoccur in processing. Any errors which occur are collected in theRETURN gesammelt.

          Description
          The deleted excluded localizations of the service are displayed in thistable.

          Description
          In this table you include the key fields of the resource profile of theservice to be deleted.
          The system will process every transferred record as long as no errorsoccur in processing. Any errors which occur are collected in theRETURN gesammelt.

          Description
          The deleted resource profiles of the service are displayed in thistable.

          Description
          In this table you include the key fields of the excluded transporttypes of the service to be deleted.
          The system will process every transferred record as long as no errorsoccur in processing. Any errors which occur are collected in theRETURN gesammelt.

          Description
          The deleted excluded transport types of the service are displayed inthis table.