SAP CO_SD_ORDERTABLES_FILL Function Module for Füllen Vorgangstabellen aus Arbeitsplan
CO_SD_ORDERTABLES_FILL is a standard co sd ordertables fill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Füllen Vorgangstabellen aus Arbeitsplan 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 co sd ordertables fill FM, simply by entering the name CO_SD_ORDERTABLES_FILL into the relevant SAP transaction such as SE37 or SE38.
Function Group: COSD
Program Name: SAPLCOSD
Main Program: SAPLCOSD
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_SD_ORDERTABLES_FILL 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 'CO_SD_ORDERTABLES_FILL'"Füllen Vorgangstabellen aus Arbeitsplan.
EXPORTING
CAUFVD_IMP = "
* NO_STAT_IMP = ' ' "
* PRODCOST = ' ' "Indicator: operations
* AFPOD_IMP = "Order Item Dialog Structure
IMPORTING
CAUFVD_EXP = "
EXCEPTIONS
NO_ROUTING_FOUND = 1
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_SAPLCOSD_001 Storage Location/Backflushing on Order Creation
EXIT_SAPLCOSD_002 Customer Exit: Additional Attributes Document Link
IMPORTING Parameters details for CO_SD_ORDERTABLES_FILL
CAUFVD_IMP -
Data type: CAUFVDOptional: No
Call by Reference: No ( called with pass by value option)
NO_STAT_IMP -
Data type: SY-DATARDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRODCOST - Indicator: operations
Data type: TCA11-FLG_OPRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AFPOD_IMP - Order Item Dialog Structure
Data type: AFPODOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CO_SD_ORDERTABLES_FILL
CAUFVD_EXP -
Data type: CAUFVDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ROUTING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_SD_ORDERTABLES_FILL 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_caufvd_exp | TYPE CAUFVD, " | |||
| lv_caufvd_imp | TYPE CAUFVD, " | |||
| lv_no_routing_found | TYPE CAUFVD, " | |||
| lv_no_stat_imp | TYPE SY-DATAR, " ' ' | |||
| lv_prodcost | TYPE TCA11-FLG_OPR, " SPACE | |||
| lv_afpod_imp | TYPE AFPOD. " |
|   CALL FUNCTION 'CO_SD_ORDERTABLES_FILL' "Füllen Vorgangstabellen aus Arbeitsplan |
| EXPORTING | ||
| CAUFVD_IMP | = lv_caufvd_imp | |
| NO_STAT_IMP | = lv_no_stat_imp | |
| PRODCOST | = lv_prodcost | |
| AFPOD_IMP | = lv_afpod_imp | |
| IMPORTING | ||
| CAUFVD_EXP | = lv_caufvd_exp | |
| EXCEPTIONS | ||
| NO_ROUTING_FOUND = 1 | ||
| . " CO_SD_ORDERTABLES_FILL | ||
ABAP code using 7.40 inline data declarations to call FM CO_SD_ORDERTABLES_FILL
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 DATAR FROM SY INTO @DATA(ld_no_stat_imp). | ||||
| DATA(ld_no_stat_imp) | = ' '. | |||
| "SELECT single FLG_OPR FROM TCA11 INTO @DATA(ld_prodcost). | ||||
| DATA(ld_prodcost) | = ' '. | |||
Search for further information about these or an SAP related objects