SAP Function Modules

FMFG_SD_DOC_PREFETCH_RFC SAP Function module - RFC for doc. prefetch







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

Associated Function Group: FMFG_LORD_RFC
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FMFG_SD_DOC_PREFETCH_RFC - FMFG SD DOC PREFETCH RFC





CALL FUNCTION 'FMFG_SD_DOC_PREFETCH_RFC' "RFC for doc. prefetch
  EXPORTING
    i_sales_view =              " order_view    View for Mass Selection of Sales Orders
    i_memory_read =             " mem_access    Buffer access to SD tables
  TABLES
    i_vbak_keytab =             " sales_key     Structure for Mass Accesses to SD Documents
    fxkomv =                    " komv          Pricing Communications-Condition Record
    .  "  FMFG_SD_DOC_PREFETCH_RFC

ABAP code example for Function Module FMFG_SD_DOC_PREFETCH_RFC





The ABAP code below is a full code listing to execute function module FMFG_SD_DOC_PREFETCH_RFC 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_i_vbak_keytab  TYPE STANDARD TABLE OF SALES_KEY,"TABLES PARAM
wa_i_vbak_keytab  LIKE LINE OF it_i_vbak_keytab ,
it_fxkomv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_fxkomv  LIKE LINE OF it_fxkomv .

DATA(ld_i_sales_view) = 'Check type of data required'.
DATA(ld_i_memory_read) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_vbak_keytab to it_i_vbak_keytab.

"populate fields of struture and append to itab
append wa_fxkomv to it_fxkomv. . CALL FUNCTION 'FMFG_SD_DOC_PREFETCH_RFC' EXPORTING i_sales_view = ld_i_sales_view i_memory_read = ld_i_memory_read TABLES i_vbak_keytab = it_i_vbak_keytab fxkomv = it_fxkomv . " FMFG_SD_DOC_PREFETCH_RFC
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_i_sales_view  TYPE ORDER_VIEW ,
it_i_vbak_keytab  TYPE STANDARD TABLE OF SALES_KEY ,
wa_i_vbak_keytab  LIKE LINE OF it_i_vbak_keytab,
ld_i_memory_read  TYPE MEM_ACCESS ,
it_fxkomv  TYPE STANDARD TABLE OF KOMV ,
wa_fxkomv  LIKE LINE OF it_fxkomv.

ld_i_sales_view = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_vbak_keytab to it_i_vbak_keytab.
ld_i_memory_read = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fxkomv to it_fxkomv.

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