SAP Function Modules

ISU_MIO_REVERSE_METHOD SAP Function module - INTERNAL: Reverses FI-CA Documents and Automatic Billing Documents







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

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


Pattern for FM ISU_MIO_REVERSE_METHOD - ISU MIO REVERSE METHOD





CALL FUNCTION 'ISU_MIO_REVERSE_METHOD' "INTERNAL: Reverses FI-CA Documents and Automatic Billing Documents
* EXPORTING
*   x_blart_storno =            " fkkko-blart   Document Type
*   x_blart_ausgl =             " fkkko-blart   Document Type
*   x_fikey =                   " fkkko-fikey   Reconciliation Key for General Ledger
*   x_bcreason =                " bcreason      Reversal Reason
  IMPORTING
    y_message_in_log =          " regen-kennzx
  TABLES
    tx_to_reverse =             " fkkrevds_2    Used for Mass Reversal of Documents
    ty_reverse_docs =           " fkkrevds      Used for Returning Corresponding Numbers of Reverse Doc.
    ty_affected_docs =          " fkkrevds      Used for Returning Corresponding Numbers of Reverse Doc.
    tx_erch =                   " erch          Number of a billing document
    ty_lognumbers =             " balnri        Application Log: APPL_LOG_WRITE_DB interface
  EXCEPTIONS
    UNEXPECTED = 1              "
    .  "  ISU_MIO_REVERSE_METHOD

ABAP code example for Function Module ISU_MIO_REVERSE_METHOD





The ABAP code below is a full code listing to execute function module ISU_MIO_REVERSE_METHOD 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_y_message_in_log  TYPE REGEN-KENNZX ,
it_tx_to_reverse  TYPE STANDARD TABLE OF FKKREVDS_2,"TABLES PARAM
wa_tx_to_reverse  LIKE LINE OF it_tx_to_reverse ,
it_ty_reverse_docs  TYPE STANDARD TABLE OF FKKREVDS,"TABLES PARAM
wa_ty_reverse_docs  LIKE LINE OF it_ty_reverse_docs ,
it_ty_affected_docs  TYPE STANDARD TABLE OF FKKREVDS,"TABLES PARAM
wa_ty_affected_docs  LIKE LINE OF it_ty_affected_docs ,
it_tx_erch  TYPE STANDARD TABLE OF ERCH,"TABLES PARAM
wa_tx_erch  LIKE LINE OF it_tx_erch ,
it_ty_lognumbers  TYPE STANDARD TABLE OF BALNRI,"TABLES PARAM
wa_ty_lognumbers  LIKE LINE OF it_ty_lognumbers .


DATA(ld_x_blart_storno) = some text here

DATA(ld_x_blart_ausgl) = some text here

DATA(ld_x_fikey) = some text here
DATA(ld_x_bcreason) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tx_to_reverse to it_tx_to_reverse.

"populate fields of struture and append to itab
append wa_ty_reverse_docs to it_ty_reverse_docs.

"populate fields of struture and append to itab
append wa_ty_affected_docs to it_ty_affected_docs.

"populate fields of struture and append to itab
append wa_tx_erch to it_tx_erch.

"populate fields of struture and append to itab
append wa_ty_lognumbers to it_ty_lognumbers. . CALL FUNCTION 'ISU_MIO_REVERSE_METHOD' * EXPORTING * x_blart_storno = ld_x_blart_storno * x_blart_ausgl = ld_x_blart_ausgl * x_fikey = ld_x_fikey * x_bcreason = ld_x_bcreason IMPORTING y_message_in_log = ld_y_message_in_log TABLES tx_to_reverse = it_tx_to_reverse ty_reverse_docs = it_ty_reverse_docs ty_affected_docs = it_ty_affected_docs tx_erch = it_tx_erch ty_lognumbers = it_ty_lognumbers EXCEPTIONS UNEXPECTED = 1 . " ISU_MIO_REVERSE_METHOD
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_y_message_in_log  TYPE REGEN-KENNZX ,
ld_x_blart_storno  TYPE FKKKO-BLART ,
it_tx_to_reverse  TYPE STANDARD TABLE OF FKKREVDS_2 ,
wa_tx_to_reverse  LIKE LINE OF it_tx_to_reverse,
ld_x_blart_ausgl  TYPE FKKKO-BLART ,
it_ty_reverse_docs  TYPE STANDARD TABLE OF FKKREVDS ,
wa_ty_reverse_docs  LIKE LINE OF it_ty_reverse_docs,
ld_x_fikey  TYPE FKKKO-FIKEY ,
it_ty_affected_docs  TYPE STANDARD TABLE OF FKKREVDS ,
wa_ty_affected_docs  LIKE LINE OF it_ty_affected_docs,
ld_x_bcreason  TYPE BCREASON ,
it_tx_erch  TYPE STANDARD TABLE OF ERCH ,
wa_tx_erch  LIKE LINE OF it_tx_erch,
it_ty_lognumbers  TYPE STANDARD TABLE OF BALNRI ,
wa_ty_lognumbers  LIKE LINE OF it_ty_lognumbers.


ld_x_blart_storno = some text here

"populate fields of struture and append to itab
append wa_tx_to_reverse to it_tx_to_reverse.

ld_x_blart_ausgl = some text here

"populate fields of struture and append to itab
append wa_ty_reverse_docs to it_ty_reverse_docs.

ld_x_fikey = some text here

"populate fields of struture and append to itab
append wa_ty_affected_docs to it_ty_affected_docs.
ld_x_bcreason = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tx_erch to it_tx_erch.

"populate fields of struture and append to itab
append wa_ty_lognumbers to it_ty_lognumbers.

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