SAP Function Modules

FRE_MD_PRODUCT_MODIFY SAP Function module - Maintenance of Table FRE_MD_PRODUCT







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

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


Pattern for FM FRE_MD_PRODUCT_MODIFY - FRE MD PRODUCT MODIFY





CALL FUNCTION 'FRE_MD_PRODUCT_MODIFY' "Maintenance of Table FRE_MD_PRODUCT
  EXPORTING
    caller =                    " fre_prod_type  F&R Product Type for PRODUCT Interface
*   del_ind = ' '               " xfeld         Checkbox
    modus =                     " fre_modus     Modus for Database Access Function Modules
*   no_commit = ' '             " xfeld         No Commit work (no commit = X/Commit = ' ')
  TABLES
    it_fre_md_product =         " fre_md_product  Objects sent to F&R as Product
  EXCEPTIONS
    DATABASE_ERROR = 1          "
    DUPLICATE_KEY = 2           "
    .  "  FRE_MD_PRODUCT_MODIFY

ABAP code example for Function Module FRE_MD_PRODUCT_MODIFY





The ABAP code below is a full code listing to execute function module FRE_MD_PRODUCT_MODIFY 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_it_fre_md_product  TYPE STANDARD TABLE OF FRE_MD_PRODUCT,"TABLES PARAM
wa_it_fre_md_product  LIKE LINE OF it_it_fre_md_product .

DATA(ld_caller) = 'Check type of data required'.
DATA(ld_del_ind) = 'Check type of data required'.
DATA(ld_modus) = 'Check type of data required'.
DATA(ld_no_commit) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_fre_md_product to it_it_fre_md_product. . CALL FUNCTION 'FRE_MD_PRODUCT_MODIFY' EXPORTING caller = ld_caller * del_ind = ld_del_ind modus = ld_modus * no_commit = ld_no_commit TABLES it_fre_md_product = it_it_fre_md_product EXCEPTIONS DATABASE_ERROR = 1 DUPLICATE_KEY = 2 . " FRE_MD_PRODUCT_MODIFY
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 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_caller  TYPE FRE_PROD_TYPE ,
it_it_fre_md_product  TYPE STANDARD TABLE OF FRE_MD_PRODUCT ,
wa_it_fre_md_product  LIKE LINE OF it_it_fre_md_product,
ld_del_ind  TYPE XFELD ,
ld_modus  TYPE FRE_MODUS ,
ld_no_commit  TYPE XFELD .

ld_caller = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_fre_md_product to it_it_fre_md_product.
ld_del_ind = 'Check type of data required'.
ld_modus = 'Check type of data required'.
ld_no_commit = 'Check type of data required'.

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