SAP ISH_CMSTATUS_SET Function Module for
ISH_CMSTATUS_SET is a standard ish cmstatus set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ish cmstatus set FM, simply by entering the name ISH_CMSTATUS_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: NC21
Program Name: SAPLNC21
Main Program: SAPLNC21
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_CMSTATUS_SET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ISH_CMSTATUS_SET'".
EXPORTING
EDIPROC = "
* INSTITUTION = "
* CASENUMBER = "
* PATNUMBER = "
* EXTPATID = "
CMSTATUS = "
IMPORTING
RC = "
EXCEPTIONS
MISSING_PARAMETERS = 1
IMPORTING Parameters details for ISH_CMSTATUS_SET
EDIPROC -
Data type: NCSTA-EDIPROCOptional: No
Call by Reference: No ( called with pass by value option)
INSTITUTION -
Data type: NCSTA-EINRIOptional: Yes
Call by Reference: No ( called with pass by value option)
CASENUMBER -
Data type: NFAL-FALNROptional: Yes
Call by Reference: No ( called with pass by value option)
PATNUMBER -
Data type: NPAT-PATNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXTPATID -
Data type: NPAT-EXTNROptional: Yes
Call by Reference: No ( called with pass by value option)
CMSTATUS -
Data type: NCSTA-CMSTATUSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_CMSTATUS_SET
RC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MISSING_PARAMETERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_CMSTATUS_SET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_rc | TYPE SY-SUBRC, " | |||
| lv_ediproc | TYPE NCSTA-EDIPROC, " | |||
| lv_missing_parameters | TYPE NCSTA, " | |||
| lv_institution | TYPE NCSTA-EINRI, " | |||
| lv_casenumber | TYPE NFAL-FALNR, " | |||
| lv_patnumber | TYPE NPAT-PATNR, " | |||
| lv_extpatid | TYPE NPAT-EXTNR, " | |||
| lv_cmstatus | TYPE NCSTA-CMSTATUS. " |
|   CALL FUNCTION 'ISH_CMSTATUS_SET' " |
| EXPORTING | ||
| EDIPROC | = lv_ediproc | |
| INSTITUTION | = lv_institution | |
| CASENUMBER | = lv_casenumber | |
| PATNUMBER | = lv_patnumber | |
| EXTPATID | = lv_extpatid | |
| CMSTATUS | = lv_cmstatus | |
| IMPORTING | ||
| RC | = lv_rc | |
| EXCEPTIONS | ||
| MISSING_PARAMETERS = 1 | ||
| . " ISH_CMSTATUS_SET | ||
ABAP code using 7.40 inline data declarations to call FM ISH_CMSTATUS_SET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single SUBRC FROM SY INTO @DATA(ld_rc). | ||||
| "SELECT single EDIPROC FROM NCSTA INTO @DATA(ld_ediproc). | ||||
| "SELECT single EINRI FROM NCSTA INTO @DATA(ld_institution). | ||||
| "SELECT single FALNR FROM NFAL INTO @DATA(ld_casenumber). | ||||
| "SELECT single PATNR FROM NPAT INTO @DATA(ld_patnumber). | ||||
| "SELECT single EXTNR FROM NPAT INTO @DATA(ld_extpatid). | ||||
| "SELECT single CMSTATUS FROM NCSTA INTO @DATA(ld_cmstatus). | ||||
Search for further information about these or an SAP related objects