SAP MCI1_WORKORDER_LIS_NEW Function Module for NOTRANSL: PMIS: Fortschreibung der Aufträge für den Neuaufbau









MCI1_WORKORDER_LIS_NEW is a standard mci1 workorder lis new 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: PMIS: Fortschreibung der Aufträge für den Neuaufbau 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 mci1 workorder lis new FM, simply by entering the name MCI1_WORKORDER_LIS_NEW into the relevant SAP transaction such as SE37 or SE38.

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



Function MCI1_WORKORDER_LIS_NEW 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 'MCI1_WORKORDER_LIS_NEW'"NOTRANSL: PMIS: Fortschreibung der Aufträge für den Neuaufbau
EXPORTING
* I_VRSIO = '000' "
* I_BATCH = ' ' "Background processing update
* I_STAFO = '000026' "Update group
* I_ZEITP = 'I3' "Event
N_VIAUFK = "Order header - new
* O_VIAUFK = "Order header - old

TABLES
* N_PMCO = "
* O_PMCO = "
* I_MCINF = "
* N_PMCOQT = "
* O_PMCOQT = "
.




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_SAPLMCI1_001 PMIS/QMIS User Exit: Update

IMPORTING Parameters details for MCI1_WORKORDER_LIS_NEW

I_VRSIO -

Data type: MCCONTROL-VRSIO
Default: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BATCH - Background processing update

Data type: SY-BATCH
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STAFO - Update group

Data type: TMC2F-STAFO
Default: '000026'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ZEITP - Event

Data type: TMC20-ZEITP
Default: 'I3'
Optional: Yes
Call by Reference: No ( called with pass by value option)

N_VIAUFK - Order header - new

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

O_VIAUFK - Order header - old

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

TABLES Parameters details for MCI1_WORKORDER_LIS_NEW

N_PMCO -

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

O_PMCO -

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

I_MCINF -

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

N_PMCOQT -

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

O_PMCOQT -

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

Copy and paste ABAP code example for MCI1_WORKORDER_LIS_NEW 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_n_pmco  TYPE STANDARD TABLE OF PMCO, "   
lv_i_vrsio  TYPE MCCONTROL-VRSIO, "   '000'
lt_o_pmco  TYPE STANDARD TABLE OF PMCO, "   
lv_i_batch  TYPE SY-BATCH, "   SPACE
lt_i_mcinf  TYPE STANDARD TABLE OF MCSOINF, "   
lv_i_stafo  TYPE TMC2F-STAFO, "   '000026'
lv_i_zeitp  TYPE TMC20-ZEITP, "   'I3'
lt_n_pmcoqt  TYPE STANDARD TABLE OF PMCOQT, "   
lv_n_viaufk  TYPE CAUFVD, "   
lt_o_pmcoqt  TYPE STANDARD TABLE OF PMCOQT, "   
lv_o_viaufk  TYPE CAUFVD. "   

  CALL FUNCTION 'MCI1_WORKORDER_LIS_NEW'  "NOTRANSL: PMIS: Fortschreibung der Aufträge für den Neuaufbau
    EXPORTING
         I_VRSIO = lv_i_vrsio
         I_BATCH = lv_i_batch
         I_STAFO = lv_i_stafo
         I_ZEITP = lv_i_zeitp
         N_VIAUFK = lv_n_viaufk
         O_VIAUFK = lv_o_viaufk
    TABLES
         N_PMCO = lt_n_pmco
         O_PMCO = lt_o_pmco
         I_MCINF = lt_i_mcinf
         N_PMCOQT = lt_n_pmcoqt
         O_PMCOQT = lt_o_pmcoqt
. " MCI1_WORKORDER_LIS_NEW




ABAP code using 7.40 inline data declarations to call FM MCI1_WORKORDER_LIS_NEW

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 VRSIO FROM MCCONTROL INTO @DATA(ld_i_vrsio).
DATA(ld_i_vrsio) = '000'.
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_batch).
DATA(ld_i_batch) = ' '.
 
 
"SELECT single STAFO FROM TMC2F INTO @DATA(ld_i_stafo).
DATA(ld_i_stafo) = '000026'.
 
"SELECT single ZEITP FROM TMC20 INTO @DATA(ld_i_zeitp).
DATA(ld_i_zeitp) = 'I3'.
 
 
 
 
 


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!