SAP SD_REV_REC_GET_CONTROL_LINES Function Module for NOTRANSL: Revenue Recognition: Get Control lines from VBREVK
SD_REV_REC_GET_CONTROL_LINES is a standard sd rev rec get control lines 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: Revenue Recognition: Get Control lines from VBREVK 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 rev rec get control lines FM, simply by entering the name SD_REV_REC_GET_CONTROL_LINES into the relevant SAP transaction such as SE37 or SE38.
Function Group: VFRR
Program Name: SAPLVFRR
Main Program: SAPLVFRR
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_REV_REC_GET_CONTROL_LINES 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_REV_REC_GET_CONTROL_LINES'"NOTRANSL: Revenue Recognition: Get Control lines from VBREVK.
EXPORTING
* FIF_VBELN_F = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_VBELN_T = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_POSNR_F = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_POSNR_T = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_SAKRR_F = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_SAKRRK_F = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_VBREVK_NO_SORT = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIF_OITC = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FIT_VBREVE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
FIT_VBREVK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
NO_DOCUMENT_NUMBER = 1 NO_CONTROL_LINES = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLVFRR_008 Revenue Recognition: Item Category Reference Checks
IMPORTING Parameters details for SD_REV_REC_GET_CONTROL_LINES
FIF_VBELN_F - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVK-VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_VBELN_T - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVK-VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_POSNR_F - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVK-POSNROptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_POSNR_T - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVK-POSNROptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_SAKRR_F - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVK-SAKRROptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_SAKRRK_F - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVK-SAKRRKOptional: Yes
Call by Reference: No ( called with pass by value option)
FIF_VBREVK_NO_SORT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FIF_OITC - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: Yes
FIT_VBREVE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RRPOL_VBREVEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for SD_REV_REC_GET_CONTROL_LINES
FIT_VBREVK - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBREVKVBOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DOCUMENT_NUMBER - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CONTROL_LINES - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_REV_REC_GET_CONTROL_LINES 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: | ||||
| lt_fit_vbrevk | TYPE STANDARD TABLE OF VBREVKVB, " | |||
| lv_fif_vbeln_f | TYPE VBREVK-VBELN, " | |||
| lv_no_document_number | TYPE VBREVK, " | |||
| lv_fif_vbeln_t | TYPE VBREVK-VBELN, " | |||
| lv_no_control_lines | TYPE VBREVK, " | |||
| lv_fif_posnr_f | TYPE VBREVK-POSNR, " | |||
| lv_fif_posnr_t | TYPE VBREVK-POSNR, " | |||
| lv_fif_sakrr_f | TYPE VBREVK-SAKRR, " | |||
| lv_fif_sakrrk_f | TYPE VBREVK-SAKRRK, " | |||
| lv_fif_vbrevk_no_sort | TYPE CHAR1, " SPACE | |||
| lv_fif_oitc | TYPE CHAR1, " SPACE | |||
| lv_fit_vbreve | TYPE RRPOL_VBREVE. " |
|   CALL FUNCTION 'SD_REV_REC_GET_CONTROL_LINES' "NOTRANSL: Revenue Recognition: Get Control lines from VBREVK |
| EXPORTING | ||
| FIF_VBELN_F | = lv_fif_vbeln_f | |
| FIF_VBELN_T | = lv_fif_vbeln_t | |
| FIF_POSNR_F | = lv_fif_posnr_f | |
| FIF_POSNR_T | = lv_fif_posnr_t | |
| FIF_SAKRR_F | = lv_fif_sakrr_f | |
| FIF_SAKRRK_F | = lv_fif_sakrrk_f | |
| FIF_VBREVK_NO_SORT | = lv_fif_vbrevk_no_sort | |
| FIF_OITC | = lv_fif_oitc | |
| FIT_VBREVE | = lv_fit_vbreve | |
| TABLES | ||
| FIT_VBREVK | = lt_fit_vbrevk | |
| EXCEPTIONS | ||
| NO_DOCUMENT_NUMBER = 1 | ||
| NO_CONTROL_LINES = 2 | ||
| . " SD_REV_REC_GET_CONTROL_LINES | ||
ABAP code using 7.40 inline data declarations to call FM SD_REV_REC_GET_CONTROL_LINES
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 VBELN FROM VBREVK INTO @DATA(ld_fif_vbeln_f). | ||||
| "SELECT single VBELN FROM VBREVK INTO @DATA(ld_fif_vbeln_t). | ||||
| "SELECT single POSNR FROM VBREVK INTO @DATA(ld_fif_posnr_f). | ||||
| "SELECT single POSNR FROM VBREVK INTO @DATA(ld_fif_posnr_t). | ||||
| "SELECT single SAKRR FROM VBREVK INTO @DATA(ld_fif_sakrr_f). | ||||
| "SELECT single SAKRRK FROM VBREVK INTO @DATA(ld_fif_sakrrk_f). | ||||
| DATA(ld_fif_vbrevk_no_sort) | = ' '. | |||
| DATA(ld_fif_oitc) | = ' '. | |||
Search for further information about these or an SAP related objects