SAP MPE_SFO_OBJECTS_POST Function Module for Post Shop Floor Order Objects









MPE_SFO_OBJECTS_POST is a standard mpe sfo objects post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post Shop Floor Order Objects 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 mpe sfo objects post FM, simply by entering the name MPE_SFO_OBJECTS_POST into the relevant SAP transaction such as SE37 or SE38.

Function Group: MPE_OAN_INST_POST
Program Name: SAPLMPE_OAN_INST_POST
Main Program: SAPLMPE_OAN_INST_POST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 1



Function MPE_SFO_OBJECTS_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 'MPE_SFO_OBJECTS_POST'"Post Shop Floor Order Objects
EXPORTING
* IT_OANI_INSERT = "Operation Activity Instances
* IT_VSOAI_INSERT = "
* IT_VSOAI_UPDATE = "
* IT_VSOAI_DELETE = "
* IT_COMP_OAI_INSERT = "Component Assignment to Operation Activity Instances
* IT_COMP_OAI_UPDATE = "Component Assignment to Operation Activity Instances
* IT_COMP_OAI_DELETE = "Component Assignment to Operation Activity Instances
* IT_VSCOMP_OAI_INSERT = "
* IT_VSCOMP_OAI_UPDATE = "
* IT_VSCOMP_OAI_DELETE = "
* IT_OAI_SAS_STATUS_INSERT = "Operation Activity Instance Status
* IT_OANI_UPDATE = "Operation Activity Instances
* IT_OAI_SAS_STATUS_UPDATE = "Operation Activity Instance Status
* IT_OAI_SAS_STATUS_DELETE = "Operation Activity Instance Status
* IT_PRT_OAI_INSERT = "PRT Assignment to Operation Activity Instances
* IT_PRT_OAI_DELETE = "PRT Assignment to Operation Activity Instances
* IT_VSPRT_OAI_INSERT = "
* IT_VSPRT_OAI_DELETE = "
* IT_CMP_OAI_INST_INSERT = "Component Instances at Operation Activity Instance
* IT_CMP_OAI_INST_DELETE = "Component Instances at Operation Activity Instance
* IT_VSCMP_OAI_INST_INSERT = "Component Instances at Operation Activity Instance
* IT_VSCMP_OAI_INST_DELETE = "Component Instances at Operation Activity Instance
* IT_OANI_DELETE = "Operation Activity Instances
* IT_OANI_BT = "OAN Instance Buffer Table
* IT_OAI_BT = "OA Instance Buffer Table
* IT_COMP_OAI_BT = "Component to OAI Allocation Buffer Table
* IT_CMP_OAI_INST_BT = "Component Instances at OAI Allocation Buffer Table
* IT_PRT_OAI_BT = "PRT to OAI Allocation Buffer Table
* IT_HEADER = "
* IT_ITEM = "
* IT_SEQUENCE = "
* IT_OPERATION = "
* IT_COMPONENT = "
* IT_VSOANI_INSERT = "
* IT_DOCLINK = "
* IT_PRT_ALLOCATION = "
* IT_PLANNED_ORDER = "
* IT_VSOANI_UPDATE = "
* IT_VSOANI_DELETE = "
* IT_OAI_INSERT = "Operation Activity Instances
* IT_OAI_UPDATE = "Operation Activity Instances
* IT_OAI_DELETE = "Operation Activity Instances
.



IMPORTING Parameters details for MPE_SFO_OBJECTS_POST

IT_OANI_INSERT - Operation Activity Instances

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

IT_VSOAI_INSERT -

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

IT_VSOAI_UPDATE -

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

IT_VSOAI_DELETE -

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

IT_COMP_OAI_INSERT - Component Assignment to Operation Activity Instances

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

IT_COMP_OAI_UPDATE - Component Assignment to Operation Activity Instances

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

IT_COMP_OAI_DELETE - Component Assignment to Operation Activity Instances

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

IT_VSCOMP_OAI_INSERT -

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

IT_VSCOMP_OAI_UPDATE -

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

IT_VSCOMP_OAI_DELETE -

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

IT_OAI_SAS_STATUS_INSERT - Operation Activity Instance Status

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

IT_OANI_UPDATE - Operation Activity Instances

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

IT_OAI_SAS_STATUS_UPDATE - Operation Activity Instance Status

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

IT_OAI_SAS_STATUS_DELETE - Operation Activity Instance Status

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

IT_PRT_OAI_INSERT - PRT Assignment to Operation Activity Instances

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

IT_PRT_OAI_DELETE - PRT Assignment to Operation Activity Instances

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

IT_VSPRT_OAI_INSERT -

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

IT_VSPRT_OAI_DELETE -

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

IT_CMP_OAI_INST_INSERT - Component Instances at Operation Activity Instance

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

IT_CMP_OAI_INST_DELETE - Component Instances at Operation Activity Instance

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

IT_VSCMP_OAI_INST_INSERT - Component Instances at Operation Activity Instance

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

IT_VSCMP_OAI_INST_DELETE - Component Instances at Operation Activity Instance

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

IT_OANI_DELETE - Operation Activity Instances

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

IT_OANI_BT - OAN Instance Buffer Table

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

IT_OAI_BT - OA Instance Buffer Table

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

IT_COMP_OAI_BT - Component to OAI Allocation Buffer Table

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

IT_CMP_OAI_INST_BT - Component Instances at OAI Allocation Buffer Table

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

IT_PRT_OAI_BT - PRT to OAI Allocation Buffer Table

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

IT_HEADER -

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

IT_ITEM -

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

IT_SEQUENCE -

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

IT_OPERATION -

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

IT_COMPONENT -

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

IT_VSOANI_INSERT -

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

IT_DOCLINK -

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

IT_PRT_ALLOCATION -

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

IT_PLANNED_ORDER -

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

IT_VSOANI_UPDATE -

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

IT_VSOANI_DELETE -

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

IT_OAI_INSERT - Operation Activity Instances

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

IT_OAI_UPDATE - Operation Activity Instances

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

IT_OAI_DELETE - Operation Activity Instances

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

Copy and paste ABAP code example for MPE_SFO_OBJECTS_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_it_oani_insert  TYPE MPET_OAN_INSTANCE, "   
lv_it_vsoai_insert  TYPE MPET_VSOA_INST, "   
lv_it_vsoai_update  TYPE MPET_VSOA_INST, "   
lv_it_vsoai_delete  TYPE MPET_VSOA_INST, "   
lv_it_comp_oai_insert  TYPE MPET_COMP_OAI, "   
lv_it_comp_oai_update  TYPE MPET_COMP_OAI, "   
lv_it_comp_oai_delete  TYPE MPET_COMP_OAI, "   
lv_it_vscomp_oai_insert  TYPE MPET_VSCOMP_OAI, "   
lv_it_vscomp_oai_update  TYPE MPET_VSCOMP_OAI, "   
lv_it_vscomp_oai_delete  TYPE MPET_VSCOMP_OAI, "   
lv_it_oai_sas_status_insert  TYPE MPET_OA_I_SAS_STS, "   
lv_it_oani_update  TYPE MPET_OAN_INSTANCE, "   
lv_it_oai_sas_status_update  TYPE MPET_OA_I_SAS_STS, "   
lv_it_oai_sas_status_delete  TYPE MPET_OA_I_SAS_STS, "   
lv_it_prt_oai_insert  TYPE MPET_PRT_OAI, "   
lv_it_prt_oai_delete  TYPE MPET_PRT_OAI, "   
lv_it_vsprt_oai_insert  TYPE MPET_VSPRT_OAI, "   
lv_it_vsprt_oai_delete  TYPE MPET_VSPRT_OAI, "   
lv_it_cmp_oai_inst_insert  TYPE MPET_CMP_OAI_INST, "   
lv_it_cmp_oai_inst_delete  TYPE MPET_CMP_OAI_INST, "   
lv_it_vscmp_oai_inst_insert  TYPE MPET_VSCMP_OAI_INST, "   
lv_it_vscmp_oai_inst_delete  TYPE MPET_VSCMP_OAI_INST, "   
lv_it_oani_delete  TYPE MPET_OAN_INSTANCE, "   
lv_it_oani_bt  TYPE MPET_OAN_INSTANCE_BT, "   
lv_it_oai_bt  TYPE MPET_OA_INSTANCE_BT, "   
lv_it_comp_oai_bt  TYPE MPET_COMP_OAI_BT, "   
lv_it_cmp_oai_inst_bt  TYPE MPET_CMP_OAI_INST_BT, "   
lv_it_prt_oai_bt  TYPE MPET_PRT_OAI_BT, "   
lv_it_header  TYPE COBAI_T_HEADER, "   
lv_it_item  TYPE COBAI_T_ITEM, "   
lv_it_sequence  TYPE COBAI_T_SEQUENCE, "   
lv_it_operation  TYPE COBAI_T_OPERATION, "   
lv_it_component  TYPE COBAI_T_COMPONENT, "   
lv_it_vsoani_insert  TYPE MPET_VSOAN_INST, "   
lv_it_doclink  TYPE COBAI_T_DOCLINK, "   
lv_it_prt_allocation  TYPE COBAI_T_PRT_ALLOCATION, "   
lv_it_planned_order  TYPE COBAI_T_PLANNED_ORDER, "   
lv_it_vsoani_update  TYPE MPET_VSOAN_INST, "   
lv_it_vsoani_delete  TYPE MPET_VSOAN_INST, "   
lv_it_oai_insert  TYPE MPET_OA_INSTANCE, "   
lv_it_oai_update  TYPE MPET_OA_INSTANCE, "   
lv_it_oai_delete  TYPE MPET_OA_INSTANCE. "   

  CALL FUNCTION 'MPE_SFO_OBJECTS_POST'  "Post Shop Floor Order Objects
    EXPORTING
         IT_OANI_INSERT = lv_it_oani_insert
         IT_VSOAI_INSERT = lv_it_vsoai_insert
         IT_VSOAI_UPDATE = lv_it_vsoai_update
         IT_VSOAI_DELETE = lv_it_vsoai_delete
         IT_COMP_OAI_INSERT = lv_it_comp_oai_insert
         IT_COMP_OAI_UPDATE = lv_it_comp_oai_update
         IT_COMP_OAI_DELETE = lv_it_comp_oai_delete
         IT_VSCOMP_OAI_INSERT = lv_it_vscomp_oai_insert
         IT_VSCOMP_OAI_UPDATE = lv_it_vscomp_oai_update
         IT_VSCOMP_OAI_DELETE = lv_it_vscomp_oai_delete
         IT_OAI_SAS_STATUS_INSERT = lv_it_oai_sas_status_insert
         IT_OANI_UPDATE = lv_it_oani_update
         IT_OAI_SAS_STATUS_UPDATE = lv_it_oai_sas_status_update
         IT_OAI_SAS_STATUS_DELETE = lv_it_oai_sas_status_delete
         IT_PRT_OAI_INSERT = lv_it_prt_oai_insert
         IT_PRT_OAI_DELETE = lv_it_prt_oai_delete
         IT_VSPRT_OAI_INSERT = lv_it_vsprt_oai_insert
         IT_VSPRT_OAI_DELETE = lv_it_vsprt_oai_delete
         IT_CMP_OAI_INST_INSERT = lv_it_cmp_oai_inst_insert
         IT_CMP_OAI_INST_DELETE = lv_it_cmp_oai_inst_delete
         IT_VSCMP_OAI_INST_INSERT = lv_it_vscmp_oai_inst_insert
         IT_VSCMP_OAI_INST_DELETE = lv_it_vscmp_oai_inst_delete
         IT_OANI_DELETE = lv_it_oani_delete
         IT_OANI_BT = lv_it_oani_bt
         IT_OAI_BT = lv_it_oai_bt
         IT_COMP_OAI_BT = lv_it_comp_oai_bt
         IT_CMP_OAI_INST_BT = lv_it_cmp_oai_inst_bt
         IT_PRT_OAI_BT = lv_it_prt_oai_bt
         IT_HEADER = lv_it_header
         IT_ITEM = lv_it_item
         IT_SEQUENCE = lv_it_sequence
         IT_OPERATION = lv_it_operation
         IT_COMPONENT = lv_it_component
         IT_VSOANI_INSERT = lv_it_vsoani_insert
         IT_DOCLINK = lv_it_doclink
         IT_PRT_ALLOCATION = lv_it_prt_allocation
         IT_PLANNED_ORDER = lv_it_planned_order
         IT_VSOANI_UPDATE = lv_it_vsoani_update
         IT_VSOANI_DELETE = lv_it_vsoani_delete
         IT_OAI_INSERT = lv_it_oai_insert
         IT_OAI_UPDATE = lv_it_oai_update
         IT_OAI_DELETE = lv_it_oai_delete
. " MPE_SFO_OBJECTS_POST




ABAP code using 7.40 inline data declarations to call FM MPE_SFO_OBJECTS_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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!