SAP K_GET_INTERNAL_SETTLEMENT_DOC Function Module for
K_GET_INTERNAL_SETTLEMENT_DOC is a standard k get internal settlement doc 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 k get internal settlement doc FM, simply by entering the name K_GET_INTERNAL_SETTLEMENT_DOC into the relevant SAP transaction such as SE37 or SE38.
Function Group: KO72
Program Name: SAPLKO72
Main Program: SAPLKO72
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_GET_INTERNAL_SETTLEMENT_DOC 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 'K_GET_INTERNAL_SETTLEMENT_DOC'".
IMPORTING
E_AUAK = "
E_AUAK_ORIGINAL = "
E_COBRA = "
E_TKB1A = "
TABLES
* ET_AUAA = "
* ET_AUAA_ORIGINAL = "
* ET_AUAB_ORIGINAL = "
* ET_AUAO_ORIGINAL = "
* ET_AUAS_ORIGINAL = "
* ET_AUAV_ORIGINAL = "
* ET_AUAI_ORIGINAL = "
* ET_AUAW_ORIGINAL = "
* ET_AUAY_ORIGINAL = "
* ET_AUAT_ORIGINAL = "
* ET_AUAB = "
* ET_AUAO = "
* ET_AUAS = "
* ET_AUAV = "
* ET_AUAI = "
* ET_AUAW = "
* ET_AUAY = "
* ET_AUAT = "
EXCEPTIONS
NO_DOCUMENT_FOUND = 1
EXPORTING Parameters details for K_GET_INTERNAL_SETTLEMENT_DOC
E_AUAK -
Data type: AUAKOptional: No
Call by Reference: No ( called with pass by value option)
E_AUAK_ORIGINAL -
Data type: AUAKOptional: No
Call by Reference: No ( called with pass by value option)
E_COBRA -
Data type: COBRAOptional: No
Call by Reference: No ( called with pass by value option)
E_TKB1A -
Data type: TKB1AOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_GET_INTERNAL_SETTLEMENT_DOC
ET_AUAA -
Data type: AUAAOptional: Yes
Call by Reference: Yes
ET_AUAA_ORIGINAL -
Data type: AUAAOptional: Yes
Call by Reference: Yes
ET_AUAB_ORIGINAL -
Data type: AUABOptional: Yes
Call by Reference: Yes
ET_AUAO_ORIGINAL -
Data type: AUAOOptional: Yes
Call by Reference: Yes
ET_AUAS_ORIGINAL -
Data type: AUASOptional: Yes
Call by Reference: Yes
ET_AUAV_ORIGINAL -
Data type: AUAVOptional: Yes
Call by Reference: Yes
ET_AUAI_ORIGINAL -
Data type: AUAIOptional: Yes
Call by Reference: Yes
ET_AUAW_ORIGINAL -
Data type: AUAWOptional: Yes
Call by Reference: Yes
ET_AUAY_ORIGINAL -
Data type: AUAYOptional: Yes
Call by Reference: Yes
ET_AUAT_ORIGINAL -
Data type: AUATOptional: Yes
Call by Reference: Yes
ET_AUAB -
Data type: AUABOptional: Yes
Call by Reference: Yes
ET_AUAO -
Data type: AUAOOptional: Yes
Call by Reference: Yes
ET_AUAS -
Data type: AUASOptional: Yes
Call by Reference: Yes
ET_AUAV -
Data type: AUAVOptional: Yes
Call by Reference: Yes
ET_AUAI -
Data type: AUAIOptional: Yes
Call by Reference: Yes
ET_AUAW -
Data type: AUAWOptional: Yes
Call by Reference: Yes
ET_AUAY -
Data type: AUAYOptional: Yes
Call by Reference: Yes
ET_AUAT -
Data type: AUATOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DOCUMENT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for K_GET_INTERNAL_SETTLEMENT_DOC 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_e_auak | TYPE AUAK, " | |||
| lt_et_auaa | TYPE STANDARD TABLE OF AUAA, " | |||
| lv_no_document_found | TYPE AUAA, " | |||
| lt_et_auaa_original | TYPE STANDARD TABLE OF AUAA, " | |||
| lt_et_auab_original | TYPE STANDARD TABLE OF AUAB, " | |||
| lt_et_auao_original | TYPE STANDARD TABLE OF AUAO, " | |||
| lt_et_auas_original | TYPE STANDARD TABLE OF AUAS, " | |||
| lt_et_auav_original | TYPE STANDARD TABLE OF AUAV, " | |||
| lt_et_auai_original | TYPE STANDARD TABLE OF AUAI, " | |||
| lt_et_auaw_original | TYPE STANDARD TABLE OF AUAW, " | |||
| lt_et_auay_original | TYPE STANDARD TABLE OF AUAY, " | |||
| lt_et_auat_original | TYPE STANDARD TABLE OF AUAT, " | |||
| lt_et_auab | TYPE STANDARD TABLE OF AUAB, " | |||
| lv_e_auak_original | TYPE AUAK, " | |||
| lt_et_auao | TYPE STANDARD TABLE OF AUAO, " | |||
| lv_e_cobra | TYPE COBRA, " | |||
| lt_et_auas | TYPE STANDARD TABLE OF AUAS, " | |||
| lv_e_tkb1a | TYPE TKB1A, " | |||
| lt_et_auav | TYPE STANDARD TABLE OF AUAV, " | |||
| lt_et_auai | TYPE STANDARD TABLE OF AUAI, " | |||
| lt_et_auaw | TYPE STANDARD TABLE OF AUAW, " | |||
| lt_et_auay | TYPE STANDARD TABLE OF AUAY, " | |||
| lt_et_auat | TYPE STANDARD TABLE OF AUAT. " |
|   CALL FUNCTION 'K_GET_INTERNAL_SETTLEMENT_DOC' " |
| IMPORTING | ||
| E_AUAK | = lv_e_auak | |
| E_AUAK_ORIGINAL | = lv_e_auak_original | |
| E_COBRA | = lv_e_cobra | |
| E_TKB1A | = lv_e_tkb1a | |
| TABLES | ||
| ET_AUAA | = lt_et_auaa | |
| ET_AUAA_ORIGINAL | = lt_et_auaa_original | |
| ET_AUAB_ORIGINAL | = lt_et_auab_original | |
| ET_AUAO_ORIGINAL | = lt_et_auao_original | |
| ET_AUAS_ORIGINAL | = lt_et_auas_original | |
| ET_AUAV_ORIGINAL | = lt_et_auav_original | |
| ET_AUAI_ORIGINAL | = lt_et_auai_original | |
| ET_AUAW_ORIGINAL | = lt_et_auaw_original | |
| ET_AUAY_ORIGINAL | = lt_et_auay_original | |
| ET_AUAT_ORIGINAL | = lt_et_auat_original | |
| ET_AUAB | = lt_et_auab | |
| ET_AUAO | = lt_et_auao | |
| ET_AUAS | = lt_et_auas | |
| ET_AUAV | = lt_et_auav | |
| ET_AUAI | = lt_et_auai | |
| ET_AUAW | = lt_et_auaw | |
| ET_AUAY | = lt_et_auay | |
| ET_AUAT | = lt_et_auat | |
| EXCEPTIONS | ||
| NO_DOCUMENT_FOUND = 1 | ||
| . " K_GET_INTERNAL_SETTLEMENT_DOC | ||
ABAP code using 7.40 inline data declarations to call FM K_GET_INTERNAL_SETTLEMENT_DOC
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.Search for further information about these or an SAP related objects