SAP K41C_DOCUMENTS_POST Function Module for
K41C_DOCUMENTS_POST is a standard k41c documents post 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 k41c documents post FM, simply by entering the name K41C_DOCUMENTS_POST into the relevant SAP transaction such as SE37 or SE38.
Function Group: K41C
Program Name: SAPLK41C
Main Program: SAPLK41C
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K41C_DOCUMENTS_POST 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 'K41C_DOCUMENTS_POST'".
EXPORTING
ID_RUN_ID = "
* ID_AUTO = ' ' "
* ID_TEST = ' ' "Test Mode
* ID_POST_PROCESSING = ' ' "
* ID_IGNORE_WARNINGS = ' ' "Ignore Warnings
* ID_EXTERNAL_NUMBERS = ' ' "External Document No. Assignt
EXCEPTIONS
ERROR_IN_MESSAGE_HANDLER = 1 ERROR_CREATING_ERROR_POOL = 2
IMPORTING Parameters details for K41C_DOCUMENTS_POST
ID_RUN_ID -
Data type: GUIDOptional: No
Call by Reference: Yes
ID_AUTO -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
ID_TEST - Test Mode
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
ID_POST_PROCESSING -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
ID_IGNORE_WARNINGS - Ignore Warnings
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
ID_EXTERNAL_NUMBERS - External Document No. Assignt
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_IN_MESSAGE_HANDLER - Error in the message collector
Data type:Optional: No
Call by Reference: Yes
ERROR_CREATING_ERROR_POOL - Error while writing the postprocessing list
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for K41C_DOCUMENTS_POST 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_id_run_id | TYPE GUID, " | |||
| lv_error_in_message_handler | TYPE GUID, " | |||
| lv_id_auto | TYPE BOOLE_D, " SPACE | |||
| lv_error_creating_error_pool | TYPE BOOLE_D, " | |||
| lv_id_test | TYPE BOOLE_D, " SPACE | |||
| lv_id_post_processing | TYPE BOOLE_D, " SPACE | |||
| lv_id_ignore_warnings | TYPE BOOLE_D, " SPACE | |||
| lv_id_external_numbers | TYPE BOOLE_D. " SPACE |
|   CALL FUNCTION 'K41C_DOCUMENTS_POST' " |
| EXPORTING | ||
| ID_RUN_ID | = lv_id_run_id | |
| ID_AUTO | = lv_id_auto | |
| ID_TEST | = lv_id_test | |
| ID_POST_PROCESSING | = lv_id_post_processing | |
| ID_IGNORE_WARNINGS | = lv_id_ignore_warnings | |
| ID_EXTERNAL_NUMBERS | = lv_id_external_numbers | |
| EXCEPTIONS | ||
| ERROR_IN_MESSAGE_HANDLER = 1 | ||
| ERROR_CREATING_ERROR_POOL = 2 | ||
| . " K41C_DOCUMENTS_POST | ||
ABAP code using 7.40 inline data declarations to call FM K41C_DOCUMENTS_POST
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.| DATA(ld_id_auto) | = ' '. | |||
| DATA(ld_id_test) | = ' '. | |||
| DATA(ld_id_post_processing) | = ' '. | |||
| DATA(ld_id_ignore_warnings) | = ' '. | |||
| DATA(ld_id_external_numbers) | = ' '. | |||
Search for further information about these or an SAP related objects