SAP Function Modules

ISU_EXCEPTIONAL_REPAIR SAP Function module







ISU_EXCEPTIONAL_REPAIR 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 ISU_EXCEPTIONAL_REPAIR into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BRE_UTIL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_EXCEPTIONAL_REPAIR - ISU EXCEPTIONAL REPAIR





CALL FUNCTION 'ISU_EXCEPTIONAL_REPAIR' "
  EXPORTING
    x_setno =                   " instset-setno
    x_msgid =                   " instset-msgid
    x_msgno =                   " instset-msgno
    x_anlage =                  " instset-anlage
    x_msgv1 =                   " instset-msgv1
    x_msgv2 =                   " instset-msgv2
    x_msgv3 =                   " instset-msgv3
    x_msgv4 =                   " instset-msgv4
    x_cause =                   " instcause-cause
  EXCEPTIONS
    GENERAL_FAULT = 1           "
    NO_AUTOMATIC_CORR_POSSIBLE = 2  "
    CAUSE_NOT_FITTING = 3       "
    .  "  ISU_EXCEPTIONAL_REPAIR

ABAP code example for Function Module ISU_EXCEPTIONAL_REPAIR





The ABAP code below is a full code listing to execute function module ISU_EXCEPTIONAL_REPAIR 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).

 

SELECT single SETNO
FROM INSTSET
INTO @DATA(ld_x_setno).


SELECT single MSGID
FROM INSTSET
INTO @DATA(ld_x_msgid).


SELECT single MSGNO
FROM INSTSET
INTO @DATA(ld_x_msgno).


SELECT single ANLAGE
FROM INSTSET
INTO @DATA(ld_x_anlage).


SELECT single MSGV1
FROM INSTSET
INTO @DATA(ld_x_msgv1).


SELECT single MSGV2
FROM INSTSET
INTO @DATA(ld_x_msgv2).


SELECT single MSGV3
FROM INSTSET
INTO @DATA(ld_x_msgv3).


SELECT single MSGV4
FROM INSTSET
INTO @DATA(ld_x_msgv4).


SELECT single CAUSE
FROM INSTCAUSE
INTO @DATA(ld_x_cause).
. CALL FUNCTION 'ISU_EXCEPTIONAL_REPAIR' EXPORTING x_setno = ld_x_setno x_msgid = ld_x_msgid x_msgno = ld_x_msgno x_anlage = ld_x_anlage x_msgv1 = ld_x_msgv1 x_msgv2 = ld_x_msgv2 x_msgv3 = ld_x_msgv3 x_msgv4 = ld_x_msgv4 x_cause = ld_x_cause EXCEPTIONS GENERAL_FAULT = 1 NO_AUTOMATIC_CORR_POSSIBLE = 2 CAUSE_NOT_FITTING = 3 . " ISU_EXCEPTIONAL_REPAIR
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_x_setno  TYPE INSTSET-SETNO ,
ld_x_msgid  TYPE INSTSET-MSGID ,
ld_x_msgno  TYPE INSTSET-MSGNO ,
ld_x_anlage  TYPE INSTSET-ANLAGE ,
ld_x_msgv1  TYPE INSTSET-MSGV1 ,
ld_x_msgv2  TYPE INSTSET-MSGV2 ,
ld_x_msgv3  TYPE INSTSET-MSGV3 ,
ld_x_msgv4  TYPE INSTSET-MSGV4 ,
ld_x_cause  TYPE INSTCAUSE-CAUSE .


SELECT single SETNO
FROM INSTSET
INTO ld_x_setno.


SELECT single MSGID
FROM INSTSET
INTO ld_x_msgid.


SELECT single MSGNO
FROM INSTSET
INTO ld_x_msgno.


SELECT single ANLAGE
FROM INSTSET
INTO ld_x_anlage.


SELECT single MSGV1
FROM INSTSET
INTO ld_x_msgv1.


SELECT single MSGV2
FROM INSTSET
INTO ld_x_msgv2.


SELECT single MSGV3
FROM INSTSET
INTO ld_x_msgv3.


SELECT single MSGV4
FROM INSTSET
INTO ld_x_msgv4.


SELECT single CAUSE
FROM INSTCAUSE
INTO ld_x_cause.

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 ISU_EXCEPTIONAL_REPAIR or its description.