Fonction SAP BAPI_CASEPROCEDURE_CANCELMULT - IS-H BAPI CaseProcedure.CancelMultiple - Cancel Case-Related Procedures

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPI1303DATA-INSTITUTION C 4 Institution
PATCASEID BAPI1303DATA-PATCASEID C 10 Case Number
TESTRUN BAPINALL-TESTRUN C 1 SPACE X Test Mode (No Changes in Database)

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

Paramètre Reférence Long. Facultatif Description
CASEPROCEDURE_CANCEL BAPI1303CANCEL 34 Procedures to Be Canceled
RETURN BAPIRET2 548 X Return Messages

Functionality
INCLUDE NBAPI_ISH
It is used to cancel procedures (including service assignments anddiagnosis assignments) of a specific case.
Any existing service and diagnosis assignments are deleted and notcanceled.

Notes
INCLUDE NBAPI_PRECOND_AUTHORITIES
RESET N1
N_NICP_FAL
Creation, modification and deletion of procedures with assignments
The method attempts to process each CASEPROCEDURE_CANCEL recordpassed. Records containing errors are skipped.
Test mode enables you to check whether the procedures passed tothe method can be canceled.
INCLUDE BAPI_RET

Further information
The following activities are not implemented in the currentversion of this method:
The deletion of SAPscript texts for canceled procedures. Here the BAPIbehaves in the same way as the dialog transaction.
INCLUDE NBAPI_WORST_RETURNED_MSGTY
INCLUDE NBAPI_CLIENT
INCLUDE NBAPI_INSTITUTION
INCLUDE NBAPI_PATCASEID
INCLUDE NBAPI_TESTRUN

Description
In this table you specify the procedures to be canceled.
In the field SURPROC_SEQNO specify the sequence number of the procedureto be canceled.
In the field RULETYPE you can specify an identification key for therule type that is to also be included in the database. Since the ruletype is currently not active, this field can be left blank.
A procedure cannot be canceled if, for example, the case has been finalbilled (setting can be made in Customizing), if the procedure has anassignment to a service which had been billed for, or if the medicalstatus prohibits changes to procedures.
If the procedure can be canceled, all assignments of the procedure toservices and diagnoses will be deleted.

Description
Errors that occurred are returned in this table.

Value range
The following error messages can occur:

  • NC603:,,,,Current client is , but data is
  • determined for client
    • MC600:,,,,System error occurred during lock management

    • MC601:,,,,Object requested is currently locked by user

      • MC602:,,,,The requested object is locked by another
      • transaction
        • MC603:,,,,Lock table overflow

        • NS016:,,,,Institution does not exist

        • N1117:,,,,Institution does not exist

        • N1034:,,,,Case does not exist

        • N1613:,,,,You are not authorized to process this case
        • in institution
          • N1601:,,,,Number of parameters in check object <(>

          • <<)>AUTHORITY_OBJECT> is invalid
            • N1602:,,,,Specified object <(>

            • <<)>AUTHORITY_OBJECT> is not maintained in user master
              • N1603:,,,,No profile is entered in user master

              • N1604:,,,,Authorization for
              • to be checked not found in user master
                • N1605:,,,,User master is set up incorrectly
                • (SY-SUBRC = ).
                  • N1606:,,,,You are not authorized to carry out actions
                  • in the SAP System
                    • N1026:,,,,Case is canceled

                    • N3298:,,,,Case is billed; You can only make certain
                    • changes to procedures
                      • BS005:,,,,Process & is not supported (

                      • ) (med. status)
                        • BS006:,,,,"&" is not allowed (&) (Med. Status)

                        • BS059:,,,,No authorization for activating user status &

                        • BS060:,,,,No authorization for deleting user status &

                        • NICP035:,,Missing entry in field LNRIC

                        • NICP003:,,You are not authorized to cancel procedures

                        • NICP004:,,Procedure &1/&2/&3 does not exist

                        • NICP005:,,Invalid processing mode (only & allowed
                        • here)
                          • N1002:,,,,Case & & has no other movements

                          • N3279:,,,,Assignment to service &. Service has already
                          • been billed for.
                            • N3247:,,,,Visit is billed; check procedure entry.

                            • N3854:,,,,You have not set the main code ind. for a
                            • surg. procedure (check)
                              The following warning messages can occur:
                              • N3432:,,,,No services match the specified selection
                              • criteria
                                • N3851:,,,,Main code indicator set more than once
                                • (check)