K_SETTLEMENT_CHECK 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 K_SETTLEMENT_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
KO77
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'K_SETTLEMENT_CHECK' "
EXPORTING
* ignore_warnings = ' ' " c
profil = " cobra-aprof Settlement Profile
* i_wkg_only = ' ' " c
* inv_massn = " taprf-invma
* testrun = " c
TABLES
aa = " auaa
ab = " auab
ao = " auao
as = " auas
av = " auav
ai = " auai
* ai_rest = " auai
* t_coiob = " coiob
* aw = " auaw
CHANGING
ak = " auak
EXCEPTIONS
ERROR_OCCURRED = 1 " An Error Has Occurred
MESSAGES_STORED = 2 "
CORRECTIONS_WANTED = 3 "
. " K_SETTLEMENT_CHECK
The ABAP code below is a full code listing to execute function module K_SETTLEMENT_CHECK 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).
| it_aa | TYPE STANDARD TABLE OF AUAA,"TABLES PARAM |
| wa_aa | LIKE LINE OF it_aa , |
| it_ab | TYPE STANDARD TABLE OF AUAB,"TABLES PARAM |
| wa_ab | LIKE LINE OF it_ab , |
| it_ao | TYPE STANDARD TABLE OF AUAO,"TABLES PARAM |
| wa_ao | LIKE LINE OF it_ao , |
| it_as | TYPE STANDARD TABLE OF AUAS,"TABLES PARAM |
| wa_as | LIKE LINE OF it_as , |
| it_av | TYPE STANDARD TABLE OF AUAV,"TABLES PARAM |
| wa_av | LIKE LINE OF it_av , |
| it_ai | TYPE STANDARD TABLE OF AUAI,"TABLES PARAM |
| wa_ai | LIKE LINE OF it_ai , |
| it_ai_rest | TYPE STANDARD TABLE OF AUAI,"TABLES PARAM |
| wa_ai_rest | LIKE LINE OF it_ai_rest , |
| it_t_coiob | TYPE STANDARD TABLE OF COIOB,"TABLES PARAM |
| wa_t_coiob | LIKE LINE OF it_t_coiob , |
| it_aw | TYPE STANDARD TABLE OF AUAW,"TABLES PARAM |
| wa_aw | LIKE LINE OF it_aw . |
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_ak | TYPE AUAK , |
| ld_ignore_warnings | TYPE C , |
| it_aa | TYPE STANDARD TABLE OF AUAA , |
| wa_aa | LIKE LINE OF it_aa, |
| ld_profil | TYPE COBRA-APROF , |
| it_ab | TYPE STANDARD TABLE OF AUAB , |
| wa_ab | LIKE LINE OF it_ab, |
| ld_i_wkg_only | TYPE C , |
| it_ao | TYPE STANDARD TABLE OF AUAO , |
| wa_ao | LIKE LINE OF it_ao, |
| ld_inv_massn | TYPE TAPRF-INVMA , |
| it_as | TYPE STANDARD TABLE OF AUAS , |
| wa_as | LIKE LINE OF it_as, |
| ld_testrun | TYPE C , |
| it_av | TYPE STANDARD TABLE OF AUAV , |
| wa_av | LIKE LINE OF it_av, |
| it_ai | TYPE STANDARD TABLE OF AUAI , |
| wa_ai | LIKE LINE OF it_ai, |
| it_ai_rest | TYPE STANDARD TABLE OF AUAI , |
| wa_ai_rest | LIKE LINE OF it_ai_rest, |
| it_t_coiob | TYPE STANDARD TABLE OF COIOB , |
| wa_t_coiob | LIKE LINE OF it_t_coiob, |
| it_aw | TYPE STANDARD TABLE OF AUAW , |
| wa_aw | LIKE LINE OF it_aw. |
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 K_SETTLEMENT_CHECK or its description.