SAP Function Modules

BAPI_CASEPROCEDURE_CHANGEMULT SAP Function module - IS-H BAPI CaseProcedure.ChangeMultiple - Change Case-Related Procedures







BAPI_CASEPROCEDURE_CHANGEMULT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_CASEPROCEDURE_CHANGEMULT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: 1303
Released Date: 28.07.2005
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_CASEPROCEDURE_CHANGEMULT - BAPI CASEPROCEDURE CHANGEMULT





CALL FUNCTION 'BAPI_CASEPROCEDURE_CHANGEMULT' "IS-H BAPI CaseProcedure.ChangeMultiple - Change Case-Related Procedures
  EXPORTING
    client =                    " bapinall-client  Client
    institution =               " bapi1303data-institution  Institution
    patcaseid =                 " bapi1303data-patcaseid  Case Number
*   testrun = SPACE             " bapinall-testrun  Test Mode (No Changes in Database)
  IMPORTING
    worst_returned_msgty =      " bapinall-worstretmsg  Most Severe Message Type
  TABLES
    caseprocedure_cdata =       " bapi1303cdata  Data for Procedures to Be Created
*   caseprocedure_casssrv =     " bapi1303casssrv  Assignments to Services to Be Created
*   caseprocedure_cassdia =     " bapi1303cassdia  Assignments to Diagnoses to Be Created
*   return =                    " bapiret2      Return Messages
    .  "  BAPI_CASEPROCEDURE_CHANGEMULT

ABAP code example for Function Module BAPI_CASEPROCEDURE_CHANGEMULT





The ABAP code below is a full code listing to execute function module BAPI_CASEPROCEDURE_CHANGEMULT including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_worst_returned_msgty  TYPE BAPINALL-WORSTRETMSG ,
it_caseprocedure_cdata  TYPE STANDARD TABLE OF BAPI1303CDATA,"TABLES PARAM
wa_caseprocedure_cdata  LIKE LINE OF it_caseprocedure_cdata ,
it_caseprocedure_casssrv  TYPE STANDARD TABLE OF BAPI1303CASSSRV,"TABLES PARAM
wa_caseprocedure_casssrv  LIKE LINE OF it_caseprocedure_casssrv ,
it_caseprocedure_cassdia  TYPE STANDARD TABLE OF BAPI1303CASSDIA,"TABLES PARAM
wa_caseprocedure_cassdia  LIKE LINE OF it_caseprocedure_cassdia ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_client) = Check type of data required

DATA(ld_institution) = some text here

DATA(ld_patcaseid) = some text here

DATA(ld_testrun) = some text here

"populate fields of struture and append to itab
append wa_caseprocedure_cdata to it_caseprocedure_cdata.

"populate fields of struture and append to itab
append wa_caseprocedure_casssrv to it_caseprocedure_casssrv.

"populate fields of struture and append to itab
append wa_caseprocedure_cassdia to it_caseprocedure_cassdia.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_CASEPROCEDURE_CHANGEMULT' EXPORTING client = ld_client institution = ld_institution patcaseid = ld_patcaseid * testrun = ld_testrun IMPORTING worst_returned_msgty = ld_worst_returned_msgty TABLES caseprocedure_cdata = it_caseprocedure_cdata * caseprocedure_casssrv = it_caseprocedure_casssrv * caseprocedure_cassdia = it_caseprocedure_cassdia * return = it_return . " BAPI_CASEPROCEDURE_CHANGEMULT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_worst_returned_msgty  TYPE BAPINALL-WORSTRETMSG ,
ld_client  TYPE BAPINALL-CLIENT ,
it_caseprocedure_cdata  TYPE STANDARD TABLE OF BAPI1303CDATA ,
wa_caseprocedure_cdata  LIKE LINE OF it_caseprocedure_cdata,
ld_institution  TYPE BAPI1303DATA-INSTITUTION ,
it_caseprocedure_casssrv  TYPE STANDARD TABLE OF BAPI1303CASSSRV ,
wa_caseprocedure_casssrv  LIKE LINE OF it_caseprocedure_casssrv,
ld_patcaseid  TYPE BAPI1303DATA-PATCASEID ,
it_caseprocedure_cassdia  TYPE STANDARD TABLE OF BAPI1303CASSDIA ,
wa_caseprocedure_cassdia  LIKE LINE OF it_caseprocedure_cassdia,
ld_testrun  TYPE BAPINALL-TESTRUN ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.


ld_client = Check type of data required

"populate fields of struture and append to itab
append wa_caseprocedure_cdata to it_caseprocedure_cdata.

ld_institution = some text here

"populate fields of struture and append to itab
append wa_caseprocedure_casssrv to it_caseprocedure_casssrv.

ld_patcaseid = some text here

"populate fields of struture and append to itab
append wa_caseprocedure_cassdia to it_caseprocedure_cassdia.

ld_testrun = some text here

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM BAPI_CASEPROCEDURE_CHANGEMULT


It changes procedures for a specific case. Service assignments and diagnosis assignments can be created for the procedures. For this to be ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_CASEPROCEDURE_CHANGEMULT or its description.