SAP Function Modules

EXIT_SAPLV45L_004 SAP Function module - Reset the Cumulative Delivered Quantity At Fiscal Year End







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

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


Pattern for FM EXIT_SAPLV45L_004 - EXIT SAPLV45L 004





CALL FUNCTION 'EXIT_SAPLV45L_004' "Reset the Cumulative Delivered Quantity At Fiscal Year End
  EXPORTING
    i_kunnr =                   " vbak-kunnr    Customer Number (Sold-To Party)
    i_matnr =                   " vbap-matnr    Material Number
    i_vbeln =                   " vblb-vbeln    Scheduling Agreement Number
    i_posnr =                   " vblb-posnr    Scheduling Agreement Item Number
  IMPORTING
    e_reset_cdq =               " c             Reset the Cumulative Delivered Quantity
    e_reset_with_cydat =        " c
    e_reset_with_lfnkd =        " c
    e_reset_to_crq =            " i
    e_no_of_del =               " i
    .  "  EXIT_SAPLV45L_004

ABAP code example for Function Module EXIT_SAPLV45L_004





The ABAP code below is a full code listing to execute function module EXIT_SAPLV45L_004 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:
ld_e_reset_cdq  TYPE C ,
ld_e_reset_with_cydat  TYPE C ,
ld_e_reset_with_lfnkd  TYPE C ,
ld_e_reset_to_crq  TYPE I ,
ld_e_no_of_del  TYPE I .


SELECT single KUNNR
FROM VBAK
INTO @DATA(ld_i_kunnr).


SELECT single MATNR
FROM VBAP
INTO @DATA(ld_i_matnr).


SELECT single VBELN
FROM VBLB
INTO @DATA(ld_i_vbeln).


SELECT single POSNR
FROM VBLB
INTO @DATA(ld_i_posnr).
. CALL FUNCTION 'EXIT_SAPLV45L_004' EXPORTING i_kunnr = ld_i_kunnr i_matnr = ld_i_matnr i_vbeln = ld_i_vbeln i_posnr = ld_i_posnr IMPORTING e_reset_cdq = ld_e_reset_cdq e_reset_with_cydat = ld_e_reset_with_cydat e_reset_with_lfnkd = ld_e_reset_with_lfnkd e_reset_to_crq = ld_e_reset_to_crq e_no_of_del = ld_e_no_of_del . " EXIT_SAPLV45L_004
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_e_reset_cdq  TYPE C ,
ld_i_kunnr  TYPE VBAK-KUNNR ,
ld_e_reset_with_cydat  TYPE C ,
ld_i_matnr  TYPE VBAP-MATNR ,
ld_e_reset_with_lfnkd  TYPE C ,
ld_i_vbeln  TYPE VBLB-VBELN ,
ld_e_reset_to_crq  TYPE I ,
ld_i_posnr  TYPE VBLB-POSNR ,
ld_e_no_of_del  TYPE I .


SELECT single KUNNR
FROM VBAK
INTO ld_i_kunnr.


SELECT single MATNR
FROM VBAP
INTO ld_i_matnr.


SELECT single VBELN
FROM VBLB
INTO ld_i_vbeln.


SELECT single POSNR
FROM VBLB
INTO ld_i_posnr.

SAP Documentation for FM EXIT_SAPLV45L_004


This customer enhancement controls resetting of the cumulative quantity when the fiscal year changes. You can use this function to deactivate ...See here for full SAP fm documentation

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