SAP SD_SALES_DOCUMENT_PREFETCH Function Module for NOTRANSL: Prefetch auf Verkaufsbelege









SD_SALES_DOCUMENT_PREFETCH is a standard sd sales document prefetch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Prefetch auf Verkaufsbelege processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sd sales document prefetch FM, simply by entering the name SD_SALES_DOCUMENT_PREFETCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: V45I
Program Name: SAPLV45I
Main Program: SAPLV45I
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_SALES_DOCUMENT_PREFETCH pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'"NOTRANSL: Prefetch auf Verkaufsbelege
EXPORTING
I_SALES_VIEW = "
* I_MEMORY_READ = "
* I_PRINT_MODE = ' ' "
* I_DET_DYNDAT = ' ' "
* I_DOWNLOAD_CRM = ' ' "

TABLES
I_VBAK_KEYTAB = "
* FXKOMV = "
* FXKONH = "
* FXKONP = "
* FXKONM = "
* FXKONW = "
* FXVEDA = "
* FXTHEAD = "
* FXTLINE = "Function
* FXVBFA = "
* FCUREF = "
* FXVBAK = "
* FCUCFG = "
* FCUINS = "
* FCUPRT = "
* FCUVAL = "
* FCUBLB = "
* FCUVK = "
* FXFPLA = "
* FXFPLT = "
* FXVBUV = "
* RETURN = "Return Parameter(s)
* FXVBAP = "
* FXVBEP = "
* FXVBKD = "
* FXVBPA = "
* FXSADR = "
* FXVBUK = "
* FXVBUP = "
.



IMPORTING Parameters details for SD_SALES_DOCUMENT_PREFETCH

I_SALES_VIEW -

Data type: ORDER_VIEW
Optional: No
Call by Reference: Yes

I_MEMORY_READ -

Data type: ORDER_READ-MEM_ACCESS
Optional: Yes
Call by Reference: Yes

I_PRINT_MODE -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_DET_DYNDAT -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_DOWNLOAD_CRM -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SD_SALES_DOCUMENT_PREFETCH

I_VBAK_KEYTAB -

Data type: SALES_KEY
Optional: No
Call by Reference: No ( called with pass by value option)

FXKOMV -

Data type: KOMV
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXKONH -

Data type: KONH
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXKONP -

Data type: KONP
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXKONM -

Data type: KONM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXKONW -

Data type: KONW
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVEDA -

Data type: VEDAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXTHEAD -

Data type: THEADVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXTLINE - Function

Data type: BAPITEXTLI
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBFA -

Data type: V45I_VBFA_TABL
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUREF -

Data type: BAPICUREFM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBAK -

Data type: VBAK
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUCFG -

Data type: BAPICUCFGM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUINS -

Data type: BAPICUINSM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUPRT -

Data type: BAPICUPRTM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUVAL -

Data type: BAPICUVALM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUBLB -

Data type: BAPICUBLBM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCUVK -

Data type: BAPICUVKM
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXFPLA -

Data type: FPLAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXFPLT -

Data type: FPLTVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBUV -

Data type: VBUVVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN - Return Parameter(s)

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

FXVBAP -

Data type: VBAPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBEP -

Data type: VBEPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBKD -

Data type: VBKDVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBPA -

Data type: VBPAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXSADR -

Data type: SADRVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBUK -

Data type: VBUKVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

FXVBUP -

Data type: VBUPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SD_SALES_DOCUMENT_PREFETCH Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_sales_view  TYPE ORDER_VIEW, "   
lt_i_vbak_keytab  TYPE STANDARD TABLE OF SALES_KEY, "   
lt_fxkomv  TYPE STANDARD TABLE OF KOMV, "   
lt_fxkonh  TYPE STANDARD TABLE OF KONH, "   
lt_fxkonp  TYPE STANDARD TABLE OF KONP, "   
lt_fxkonm  TYPE STANDARD TABLE OF KONM, "   
lt_fxkonw  TYPE STANDARD TABLE OF KONW, "   
lt_fxveda  TYPE STANDARD TABLE OF VEDAVB, "   
lt_fxthead  TYPE STANDARD TABLE OF THEADVB, "   
lt_fxtline  TYPE STANDARD TABLE OF BAPITEXTLI, "   
lt_fxvbfa  TYPE STANDARD TABLE OF V45I_VBFA_TABL, "   
lt_fcuref  TYPE STANDARD TABLE OF BAPICUREFM, "   
lt_fxvbak  TYPE STANDARD TABLE OF VBAK, "   
lv_i_memory_read  TYPE ORDER_READ-MEM_ACCESS, "   
lt_fcucfg  TYPE STANDARD TABLE OF BAPICUCFGM, "   
lt_fcuins  TYPE STANDARD TABLE OF BAPICUINSM, "   
lt_fcuprt  TYPE STANDARD TABLE OF BAPICUPRTM, "   
lt_fcuval  TYPE STANDARD TABLE OF BAPICUVALM, "   
lt_fcublb  TYPE STANDARD TABLE OF BAPICUBLBM, "   
lt_fcuvk  TYPE STANDARD TABLE OF BAPICUVKM, "   
lt_fxfpla  TYPE STANDARD TABLE OF FPLAVB, "   
lt_fxfplt  TYPE STANDARD TABLE OF FPLTVB, "   
lt_fxvbuv  TYPE STANDARD TABLE OF VBUVVB, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_fxvbap  TYPE STANDARD TABLE OF VBAPVB, "   
lv_i_print_mode  TYPE CHAR1, "   SPACE
lt_fxvbep  TYPE STANDARD TABLE OF VBEPVB, "   
lv_i_det_dyndat  TYPE CHAR1, "   SPACE
lt_fxvbkd  TYPE STANDARD TABLE OF VBKDVB, "   
lv_i_download_crm  TYPE CHAR1, "   SPACE
lt_fxvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_fxsadr  TYPE STANDARD TABLE OF SADRVB, "   
lt_fxvbuk  TYPE STANDARD TABLE OF VBUKVB, "   
lt_fxvbup  TYPE STANDARD TABLE OF VBUPVB. "   

  CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'  "NOTRANSL: Prefetch auf Verkaufsbelege
    EXPORTING
         I_SALES_VIEW = lv_i_sales_view
         I_MEMORY_READ = lv_i_memory_read
         I_PRINT_MODE = lv_i_print_mode
         I_DET_DYNDAT = lv_i_det_dyndat
         I_DOWNLOAD_CRM = lv_i_download_crm
    TABLES
         I_VBAK_KEYTAB = lt_i_vbak_keytab
         FXKOMV = lt_fxkomv
         FXKONH = lt_fxkonh
         FXKONP = lt_fxkonp
         FXKONM = lt_fxkonm
         FXKONW = lt_fxkonw
         FXVEDA = lt_fxveda
         FXTHEAD = lt_fxthead
         FXTLINE = lt_fxtline
         FXVBFA = lt_fxvbfa
         FCUREF = lt_fcuref
         FXVBAK = lt_fxvbak
         FCUCFG = lt_fcucfg
         FCUINS = lt_fcuins
         FCUPRT = lt_fcuprt
         FCUVAL = lt_fcuval
         FCUBLB = lt_fcublb
         FCUVK = lt_fcuvk
         FXFPLA = lt_fxfpla
         FXFPLT = lt_fxfplt
         FXVBUV = lt_fxvbuv
         RETURN = lt_return
         FXVBAP = lt_fxvbap
         FXVBEP = lt_fxvbep
         FXVBKD = lt_fxvbkd
         FXVBPA = lt_fxvbpa
         FXSADR = lt_fxsadr
         FXVBUK = lt_fxvbuk
         FXVBUP = lt_fxvbup
. " SD_SALES_DOCUMENT_PREFETCH




ABAP code using 7.40 inline data declarations to call FM SD_SALES_DOCUMENT_PREFETCH

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single MEM_ACCESS FROM ORDER_READ INTO @DATA(ld_i_memory_read).
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_print_mode) = ' '.
 
 
DATA(ld_i_det_dyndat) = ' '.
 
 
DATA(ld_i_download_crm) = ' '.
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!