SAP LSO_GET_KONT Function Module for
LSO_GET_KONT is a standard lso get kont SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 lso get kont FM, simply by entering the name LSO_GET_KONT into the relevant SAP transaction such as SE37 or SE38.
Function Group: LSO_RHV1
Program Name: SAPLLSO_RHV1
Main Program: SAPLLSO_RHV1
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LSO_GET_KONT 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 'LSO_GET_KONT'".
EXPORTING
* EXTEND = 'X' "
* BEGDA = '19000101' "Start Date
* ENDDA = '99991231' "End Date
* ISTAT = ' ' "Status
EVEID = "
EVETY = "
* WITH_PRICE = 'X' "
TABLES
KONT_TAB = "Entry table
KOSTL_TAB = "
EXCEPTIONS
NOTHING_FOUND = 1 NO_PRICE_FOUND = 2
IMPORTING Parameters details for LSO_GET_KONT
EXTEND -
Data type: HRRHDB-EXTENDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEGDA - Start Date
Data type: PLOG-BEGDADefault: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENDDA - End Date
Data type: PLOG-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ISTAT - Status
Data type: PLOG-ISTATDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EVEID -
Data type: PLOG-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
EVETY -
Data type: PLOG-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
WITH_PRICE -
Data type: HRRHV1-FLAGPDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LSO_GET_KONT
KONT_TAB - Entry table
Data type: HRVKONTOptional: No
Call by Reference: No ( called with pass by value option)
KOSTL_TAB -
Data type: HRVKOSTLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PRICE_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LSO_GET_KONT 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_extend | TYPE HRRHDB-EXTEND, " 'X' | |||
| lt_kont_tab | TYPE STANDARD TABLE OF HRVKONT, " | |||
| lv_nothing_found | TYPE HRVKONT, " | |||
| lv_begda | TYPE PLOG-BEGDA, " '19000101' | |||
| lt_kostl_tab | TYPE STANDARD TABLE OF HRVKOSTL, " | |||
| lv_no_price_found | TYPE HRVKOSTL, " | |||
| lv_endda | TYPE PLOG-ENDDA, " '99991231' | |||
| lv_istat | TYPE PLOG-ISTAT, " SPACE | |||
| lv_eveid | TYPE PLOG-OBJID, " | |||
| lv_evety | TYPE PLOG-OTYPE, " | |||
| lv_with_price | TYPE HRRHV1-FLAGP. " 'X' |
|   CALL FUNCTION 'LSO_GET_KONT' " |
| EXPORTING | ||
| EXTEND | = lv_extend | |
| BEGDA | = lv_begda | |
| ENDDA | = lv_endda | |
| ISTAT | = lv_istat | |
| EVEID | = lv_eveid | |
| EVETY | = lv_evety | |
| WITH_PRICE | = lv_with_price | |
| TABLES | ||
| KONT_TAB | = lt_kont_tab | |
| KOSTL_TAB | = lt_kostl_tab | |
| EXCEPTIONS | ||
| NOTHING_FOUND = 1 | ||
| NO_PRICE_FOUND = 2 | ||
| . " LSO_GET_KONT | ||
ABAP code using 7.40 inline data declarations to call FM LSO_GET_KONT
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 EXTEND FROM HRRHDB INTO @DATA(ld_extend). | ||||
| DATA(ld_extend) | = 'X'. | |||
| "SELECT single BEGDA FROM PLOG INTO @DATA(ld_begda). | ||||
| DATA(ld_begda) | = '19000101'. | |||
| "SELECT single ENDDA FROM PLOG INTO @DATA(ld_endda). | ||||
| DATA(ld_endda) | = '99991231'. | |||
| "SELECT single ISTAT FROM PLOG INTO @DATA(ld_istat). | ||||
| DATA(ld_istat) | = ' '. | |||
| "SELECT single OBJID FROM PLOG INTO @DATA(ld_eveid). | ||||
| "SELECT single OTYPE FROM PLOG INTO @DATA(ld_evety). | ||||
| "SELECT single FLAGP FROM HRRHV1 INTO @DATA(ld_with_price). | ||||
| DATA(ld_with_price) | = 'X'. | |||
Search for further information about these or an SAP related objects