SAP CO1O_PROD_ORDER_INTERFACE Function Module for NOTRANSL: Logistics Interface for Production Orders









CO1O_PROD_ORDER_INTERFACE is a standard co1o prod order interface SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Logistics Interface for Production Orders 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 co1o prod order interface FM, simply by entering the name CO1O_PROD_ORDER_INTERFACE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CO1O
Program Name: SAPLCO1O
Main Program: SAPLCO1O
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CO1O_PROD_ORDER_INTERFACE 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 'CO1O_PROD_ORDER_INTERFACE'"NOTRANSL: Logistics Interface for Production Orders
TABLES
* T_ORDER = "
* T_OPERATION = "
* T_RESB = "
* T_PP_HEADER_EXP = "Order Information: as CLOIORD but with E3AFKOL
* T_PP_SEQUENCE_EXP = "Sequence in Order: as CLOIORDSEQ but with E3AFFL
* T_PP_OPERATION_EXP = "Operation Information for Order: as CLOIOPER but with E3AF

EXCEPTIONS
SAVE_NOT_POSSIBLE = 1 SAVE_ONLY_ONCE = 2
.



TABLES Parameters details for CO1O_PROD_ORDER_INTERFACE

T_ORDER -

Data type: CO1_PROD_ORDER_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_OPERATION -

Data type: CO1_PROD_OPR_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_RESB -

Data type: CO1_PROD_RESB_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_PP_HEADER_EXP - Order Information: as CLOIORD but with E3AFKOL

Data type: CLOIORD3
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_PP_SEQUENCE_EXP - Sequence in Order: as CLOIORDSEQ but with E3AFFL

Data type: CLOIORDSQ3
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_PP_OPERATION_EXP - Operation Information for Order: as CLOIOPER but with E3AF

Data type: CLOIOPER3
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

SAVE_NOT_POSSIBLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SAVE_ONLY_ONCE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CO1O_PROD_ORDER_INTERFACE 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:
lt_t_order  TYPE STANDARD TABLE OF CO1_PROD_ORDER_TAB, "   
lv_save_not_possible  TYPE CO1_PROD_ORDER_TAB, "   
lt_t_operation  TYPE STANDARD TABLE OF CO1_PROD_OPR_TAB, "   
lv_save_only_once  TYPE CO1_PROD_OPR_TAB, "   
lt_t_resb  TYPE STANDARD TABLE OF CO1_PROD_RESB_TAB, "   
lt_t_pp_header_exp  TYPE STANDARD TABLE OF CLOIORD3, "   
lt_t_pp_sequence_exp  TYPE STANDARD TABLE OF CLOIORDSQ3, "   
lt_t_pp_operation_exp  TYPE STANDARD TABLE OF CLOIOPER3. "   

  CALL FUNCTION 'CO1O_PROD_ORDER_INTERFACE'  "NOTRANSL: Logistics Interface for Production Orders
    TABLES
         T_ORDER = lt_t_order
         T_OPERATION = lt_t_operation
         T_RESB = lt_t_resb
         T_PP_HEADER_EXP = lt_t_pp_header_exp
         T_PP_SEQUENCE_EXP = lt_t_pp_sequence_exp
         T_PP_OPERATION_EXP = lt_t_pp_operation_exp
    EXCEPTIONS
        SAVE_NOT_POSSIBLE = 1
        SAVE_ONLY_ONCE = 2
. " CO1O_PROD_ORDER_INTERFACE




ABAP code using 7.40 inline data declarations to call FM CO1O_PROD_ORDER_INTERFACE

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!