SAP Function Modules

FMFG_PAYMENT_CONVERSION SAP Function module - Create payment lines FMIFIIT/57 as needed







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

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


Pattern for FM FMFG_PAYMENT_CONVERSION - FMFG PAYMENT CONVERSION





CALL FUNCTION 'FMFG_PAYMENT_CONVERSION' "Create payment lines FMIFIIT/57 as needed
* TABLES
*   t_acchd =                   " tacchd        Table of acchd items (should be delete if core creates one)
*   t_accit_split_relevant =    " taccit        Accounting Interface: Item Information
*   t_acccr_split =             " tacccr        Accounting Interface: Currency Information
*   t_fmifihd_new_lines =       " tfmifihd      FI Header Table in Funds Management
*   t_fmifiit_new_lines =       " tfmifiit      FI Line Item Table in Funds Management
*   t_accit =                   " taccit        Table of ACCIT items (should be delete if core creates one)
* CHANGING
*   c_fmbuzei_total = 0         " i
    .  "  FMFG_PAYMENT_CONVERSION

ABAP code example for Function Module FMFG_PAYMENT_CONVERSION





The ABAP code below is a full code listing to execute function module FMFG_PAYMENT_CONVERSION 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:
it_t_acchd  TYPE STANDARD TABLE OF TACCHD,"TABLES PARAM
wa_t_acchd  LIKE LINE OF it_t_acchd ,
it_t_accit_split_relevant  TYPE STANDARD TABLE OF TACCIT,"TABLES PARAM
wa_t_accit_split_relevant  LIKE LINE OF it_t_accit_split_relevant ,
it_t_acccr_split  TYPE STANDARD TABLE OF TACCCR,"TABLES PARAM
wa_t_acccr_split  LIKE LINE OF it_t_acccr_split ,
it_t_fmifihd_new_lines  TYPE STANDARD TABLE OF TFMIFIHD,"TABLES PARAM
wa_t_fmifihd_new_lines  LIKE LINE OF it_t_fmifihd_new_lines ,
it_t_fmifiit_new_lines  TYPE STANDARD TABLE OF TFMIFIIT,"TABLES PARAM
wa_t_fmifiit_new_lines  LIKE LINE OF it_t_fmifiit_new_lines ,
it_t_accit  TYPE STANDARD TABLE OF TACCIT,"TABLES PARAM
wa_t_accit  LIKE LINE OF it_t_accit .

DATA(ld_c_fmbuzei_total) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_acchd to it_t_acchd.

"populate fields of struture and append to itab
append wa_t_accit_split_relevant to it_t_accit_split_relevant.

"populate fields of struture and append to itab
append wa_t_acccr_split to it_t_acccr_split.

"populate fields of struture and append to itab
append wa_t_fmifihd_new_lines to it_t_fmifihd_new_lines.

"populate fields of struture and append to itab
append wa_t_fmifiit_new_lines to it_t_fmifiit_new_lines.

"populate fields of struture and append to itab
append wa_t_accit to it_t_accit. . CALL FUNCTION 'FMFG_PAYMENT_CONVERSION' * TABLES * t_acchd = it_t_acchd * t_accit_split_relevant = it_t_accit_split_relevant * t_acccr_split = it_t_acccr_split * t_fmifihd_new_lines = it_t_fmifihd_new_lines * t_fmifiit_new_lines = it_t_fmifiit_new_lines * t_accit = it_t_accit * CHANGING * c_fmbuzei_total = ld_c_fmbuzei_total . " FMFG_PAYMENT_CONVERSION
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_c_fmbuzei_total  TYPE I ,
it_t_acchd  TYPE STANDARD TABLE OF TACCHD ,
wa_t_acchd  LIKE LINE OF it_t_acchd,
it_t_accit_split_relevant  TYPE STANDARD TABLE OF TACCIT ,
wa_t_accit_split_relevant  LIKE LINE OF it_t_accit_split_relevant,
it_t_acccr_split  TYPE STANDARD TABLE OF TACCCR ,
wa_t_acccr_split  LIKE LINE OF it_t_acccr_split,
it_t_fmifihd_new_lines  TYPE STANDARD TABLE OF TFMIFIHD ,
wa_t_fmifihd_new_lines  LIKE LINE OF it_t_fmifihd_new_lines,
it_t_fmifiit_new_lines  TYPE STANDARD TABLE OF TFMIFIIT ,
wa_t_fmifiit_new_lines  LIKE LINE OF it_t_fmifiit_new_lines,
it_t_accit  TYPE STANDARD TABLE OF TACCIT ,
wa_t_accit  LIKE LINE OF it_t_accit.

ld_c_fmbuzei_total = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_acchd to it_t_acchd.

"populate fields of struture and append to itab
append wa_t_accit_split_relevant to it_t_accit_split_relevant.

"populate fields of struture and append to itab
append wa_t_acccr_split to it_t_acccr_split.

"populate fields of struture and append to itab
append wa_t_fmifihd_new_lines to it_t_fmifihd_new_lines.

"populate fields of struture and append to itab
append wa_t_fmifiit_new_lines to it_t_fmifiit_new_lines.

"populate fields of struture and append to itab
append wa_t_accit to it_t_accit.

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