SAP SD_CREDIT_VALUE_DELIVERY Function Module for NOTRANSL: Kreditmanagement: Ermitteln aktueller Kreditwert einer Lieferung









SD_CREDIT_VALUE_DELIVERY is a standard sd credit value delivery 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: Kreditmanagement: Ermitteln aktueller Kreditwert einer Lieferung 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 credit value delivery FM, simply by entering the name SD_CREDIT_VALUE_DELIVERY into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_CREDIT_VALUE_DELIVERY 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_CREDIT_VALUE_DELIVERY'"NOTRANSL: Kreditmanagement: Ermitteln aktueller Kreditwert einer Lieferung
EXPORTING
LIKP = "Delivery document
* POSNR = ' ' "Item number
* IV_OPT = ' ' "

IMPORTING
AMTBL = "Current credit value in credit currency
AMTBL_WAERK = "Current credit value in document currency
KWKKG = "
KWKKG_WAERK = "

TABLES
LVBAK = "Orders header
LVBAP = "Order items
XLIPS = "Delivery items
XVBKD = "Business data
XVBUP = "Item status
.



IMPORTING Parameters details for SD_CREDIT_VALUE_DELIVERY

LIKP - Delivery document

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

POSNR - Item number

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

IV_OPT -

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

EXPORTING Parameters details for SD_CREDIT_VALUE_DELIVERY

AMTBL - Current credit value in credit currency

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

AMTBL_WAERK - Current credit value in document currency

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

KWKKG -

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

KWKKG_WAERK -

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

TABLES Parameters details for SD_CREDIT_VALUE_DELIVERY

LVBAK - Orders header

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

LVBAP - Order items

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

XLIPS - Delivery items

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

XVBKD - Business data

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

XVBUP - Item status

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

Copy and paste ABAP code example for SD_CREDIT_VALUE_DELIVERY 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_likp  TYPE LIKP, "   
lv_amtbl  TYPE LIKP-AMTBL, "   
lt_lvbak  TYPE STANDARD TABLE OF VBAK, "   
lt_lvbap  TYPE STANDARD TABLE OF VBAPVB, "   
lv_posnr  TYPE LIPS-POSNR, "   SPACE
lv_amtbl_waerk  TYPE LIKP-AMTBL, "   
lv_kwkkg  TYPE VBKRED-KWKKG, "   
lt_xlips  TYPE STANDARD TABLE OF LIPSVB, "   
lv_iv_opt  TYPE BOOLEAN, "   SPACE
lt_xvbkd  TYPE STANDARD TABLE OF VBKDVB, "   
lv_kwkkg_waerk  TYPE VBKRED-KWKKG, "   
lt_xvbup  TYPE STANDARD TABLE OF VBUPVB. "   

  CALL FUNCTION 'SD_CREDIT_VALUE_DELIVERY'  "NOTRANSL: Kreditmanagement: Ermitteln aktueller Kreditwert einer Lieferung
    EXPORTING
         LIKP = lv_likp
         POSNR = lv_posnr
         IV_OPT = lv_iv_opt
    IMPORTING
         AMTBL = lv_amtbl
         AMTBL_WAERK = lv_amtbl_waerk
         KWKKG = lv_kwkkg
         KWKKG_WAERK = lv_kwkkg_waerk
    TABLES
         LVBAK = lt_ltbak
         LVBAP = lt_ltbap
         XLIPS = lt_xlips
         XVBKD = lt_xvbkd
         XVBUP = lt_xvbup
. " SD_CREDIT_VALUE_DELIVERY




ABAP code using 7.40 inline data declarations to call FM SD_CREDIT_VALUE_DELIVERY

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 AMTBL FROM LIKP INTO @DATA(ld_amtbl).
 
 
 
"SELECT single POSNR FROM LIPS INTO @DATA(ld_posnr).
DATA(ld_posnr) = ' '.
 
"SELECT single AMTBL FROM LIKP INTO @DATA(ld_amtbl_waerk).
 
"SELECT single KWKKG FROM VBKRED INTO @DATA(ld_kwkkg).
 
 
DATA(ld_iv_opt) = ' '.
 
 
"SELECT single KWKKG FROM VBKRED INTO @DATA(ld_kwkkg_waerk).
 
 


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!