SAP Function Modules

MAFI_REMOVE_FIXED_LONGTEXTS SAP Function module







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

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


Pattern for FM MAFI_REMOVE_FIXED_LONGTEXTS - MAFI REMOVE FIXED LONGTEXTS





CALL FUNCTION 'MAFI_REMOVE_FIXED_LONGTEXTS' "
  EXPORTING
    iv_matnr =                  " mara-matnr    Material Number
    iv_matfi =                  " mara-matfi    Material is Locked
  IMPORTING
    ev_grun_fixed =             " xfeld         Checkbox
    ev_best_fixed =             " xfeld         Checkbox
    ev_prue_fixed =             " xfeld         Checkbox
    ev_vert_fixed =             " xfeld         Checkbox
    ev_iver_fixed =             " xfeld         Checkbox
    ev_note_fixed =             " xfeld         Checkbox
  TABLES
    ct_ltx1 =                   " ltx1          Data Transfer: Long Texts Data Division
    ct_ltx1_del =               " ltx1          Data Transfer: Long Texts Data Division
    .  "  MAFI_REMOVE_FIXED_LONGTEXTS

ABAP code example for Function Module MAFI_REMOVE_FIXED_LONGTEXTS





The ABAP code below is a full code listing to execute function module MAFI_REMOVE_FIXED_LONGTEXTS 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_ev_grun_fixed  TYPE XFELD ,
ld_ev_best_fixed  TYPE XFELD ,
ld_ev_prue_fixed  TYPE XFELD ,
ld_ev_vert_fixed  TYPE XFELD ,
ld_ev_iver_fixed  TYPE XFELD ,
ld_ev_note_fixed  TYPE XFELD ,
it_ct_ltx1  TYPE STANDARD TABLE OF LTX1,"TABLES PARAM
wa_ct_ltx1  LIKE LINE OF it_ct_ltx1 ,
it_ct_ltx1_del  TYPE STANDARD TABLE OF LTX1,"TABLES PARAM
wa_ct_ltx1_del  LIKE LINE OF it_ct_ltx1_del .


SELECT single MATNR
FROM MARA
INTO @DATA(ld_iv_matnr).


SELECT single MATFI
FROM MARA
INTO @DATA(ld_iv_matfi).


"populate fields of struture and append to itab
append wa_ct_ltx1 to it_ct_ltx1.

"populate fields of struture and append to itab
append wa_ct_ltx1_del to it_ct_ltx1_del. . CALL FUNCTION 'MAFI_REMOVE_FIXED_LONGTEXTS' EXPORTING iv_matnr = ld_iv_matnr iv_matfi = ld_iv_matfi IMPORTING ev_grun_fixed = ld_ev_grun_fixed ev_best_fixed = ld_ev_best_fixed ev_prue_fixed = ld_ev_prue_fixed ev_vert_fixed = ld_ev_vert_fixed ev_iver_fixed = ld_ev_iver_fixed ev_note_fixed = ld_ev_note_fixed TABLES ct_ltx1 = it_ct_ltx1 ct_ltx1_del = it_ct_ltx1_del . " MAFI_REMOVE_FIXED_LONGTEXTS
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_ev_grun_fixed  TYPE XFELD ,
ld_iv_matnr  TYPE MARA-MATNR ,
it_ct_ltx1  TYPE STANDARD TABLE OF LTX1 ,
wa_ct_ltx1  LIKE LINE OF it_ct_ltx1,
ld_ev_best_fixed  TYPE XFELD ,
ld_iv_matfi  TYPE MARA-MATFI ,
it_ct_ltx1_del  TYPE STANDARD TABLE OF LTX1 ,
wa_ct_ltx1_del  LIKE LINE OF it_ct_ltx1_del,
ld_ev_prue_fixed  TYPE XFELD ,
ld_ev_vert_fixed  TYPE XFELD ,
ld_ev_iver_fixed  TYPE XFELD ,
ld_ev_note_fixed  TYPE XFELD .


SELECT single MATNR
FROM MARA
INTO ld_iv_matnr.


"populate fields of struture and append to itab
append wa_ct_ltx1 to it_ct_ltx1.

SELECT single MATFI
FROM MARA
INTO ld_iv_matfi.


"populate fields of struture and append to itab
append wa_ct_ltx1_del to it_ct_ltx1_del.

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