SAP SD_KNVP_READ Function Module for NOTRANSL: Lesen eines oder mehrerer KNVP Sätze eines Debitors oder Kredito









SD_KNVP_READ is a standard sd knvp read 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: Lesen eines oder mehrerer KNVP Sätze eines Debitors oder Kredito 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 knvp read FM, simply by entering the name SD_KNVP_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_KNVP_READ 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_KNVP_READ'"NOTRANSL: Lesen eines oder mehrerer KNVP Sätze eines Debitors oder Kredito
EXPORTING
* FIF_VKORG = "Sales Organization
* FIF_VTWEG = "Distribution Channel
* FIF_SPART = "Division
* FIF_KUNNR = ' ' "Customer Number
* FIF_FILTER_PARVW = ' ' "Partner Function
* FIF_FILTER_PARNR = ' ' "Partner number
* FIF_CONSUMER = ' ' "Checkbox
* FIF_BUFFER_NOFILL = ' ' "Checkbox
* FIF_CLEAR_BUFFER = ' ' "Checkbox

IMPORTING
FES_KNVP = "Customer Master Partner Functions
FEF_KNVP_RECORDS_READ = "Predefined Type

TABLES
* FET_KNVP = "Customer Master Partner Functions

EXCEPTIONS
PARAMETER_INCOMPLETE = 1 NO_RECORD_FOUND = 2
.



IMPORTING Parameters details for SD_KNVP_READ

FIF_VKORG - Sales Organization

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

FIF_VTWEG - Distribution Channel

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

FIF_SPART - Division

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

FIF_KUNNR - Customer Number

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

FIF_FILTER_PARVW - Partner Function

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

FIF_FILTER_PARNR - Partner number

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

FIF_CONSUMER - Checkbox

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

FIF_BUFFER_NOFILL - Checkbox

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

FIF_CLEAR_BUFFER - Checkbox

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

EXPORTING Parameters details for SD_KNVP_READ

FES_KNVP - Customer Master Partner Functions

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

FEF_KNVP_RECORDS_READ - Predefined Type

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

TABLES Parameters details for SD_KNVP_READ

FET_KNVP - Customer Master Partner Functions

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

EXCEPTIONS details

PARAMETER_INCOMPLETE -

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

NO_RECORD_FOUND -

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

Copy and paste ABAP code example for SD_KNVP_READ 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_fes_knvp  TYPE KNVP, "   
lt_fet_knvp  TYPE STANDARD TABLE OF KNVP, "   
lv_fif_vkorg  TYPE VKORG, "   
lv_parameter_incomplete  TYPE VKORG, "   
lv_fif_vtweg  TYPE VTWEG, "   
lv_no_record_found  TYPE VTWEG, "   
lv_fef_knvp_records_read  TYPE I, "   
lv_fif_spart  TYPE SPART, "   
lv_fif_kunnr  TYPE KUNNR, "   SPACE
lv_fif_filter_parvw  TYPE PARVW, "   SPACE
lv_fif_filter_parnr  TYPE SD_PARTNER_PARNR, "   SPACE
lv_fif_consumer  TYPE XFELD, "   SPACE
lv_fif_buffer_nofill  TYPE XFELD, "   SPACE
lv_fif_clear_buffer  TYPE XFELD. "   SPACE

  CALL FUNCTION 'SD_KNVP_READ'  "NOTRANSL: Lesen eines oder mehrerer KNVP Sätze eines Debitors oder Kredito
    EXPORTING
         FIF_VKORG = lv_fif_vkorg
         FIF_VTWEG = lv_fif_vtweg
         FIF_SPART = lv_fif_spart
         FIF_KUNNR = lv_fif_kunnr
         FIF_FILTER_PARVW = lv_fif_filter_parvw
         FIF_FILTER_PARNR = lv_fif_filter_parnr
         FIF_CONSUMER = lv_fif_consumer
         FIF_BUFFER_NOFILL = lv_fif_buffer_nofill
         FIF_CLEAR_BUFFER = lv_fif_clear_buffer
    IMPORTING
         FES_KNVP = lv_fes_knvp
         FEF_KNVP_RECORDS_READ = lv_fef_knvp_records_read
    TABLES
         FET_KNVP = lt_fet_knvp
    EXCEPTIONS
        PARAMETER_INCOMPLETE = 1
        NO_RECORD_FOUND = 2
. " SD_KNVP_READ




ABAP code using 7.40 inline data declarations to call FM SD_KNVP_READ

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.

 
 
 
 
 
 
 
 
DATA(ld_fif_kunnr) = ' '.
 
DATA(ld_fif_filter_parvw) = ' '.
 
DATA(ld_fif_filter_parnr) = ' '.
 
DATA(ld_fif_consumer) = ' '.
 
DATA(ld_fif_buffer_nofill) = ' '.
 
DATA(ld_fif_clear_buffer) = ' '.
 


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!