SAP CO_IH_ORDER_GENER_4 Function Module for NOTRANSL: Simulation IH-Auftrag zwecks Kalkulation









CO_IH_ORDER_GENER_4 is a standard co ih order gener 4 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: Simulation IH-Auftrag zwecks Kalkulation 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 ih order gener 4 FM, simply by entering the name CO_IH_ORDER_GENER_4 into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_IH_ORDER_GENER_4 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_IH_ORDER_GENER_4'"NOTRANSL: Simulation IH-Auftrag zwecks Kalkulation
EXPORTING
* ILOA_I = ' ' "Location Data
* TRTYP_I = ' ' "Transaction Type
* GSBER_I = ' ' "Business Area
* EQUNR_I = ' ' "Equipment Number
* BAUTL_I = ' ' "
* TPLNR_I = ' ' "
* PLNNR_I = ' ' "Task List Number
* PLNTY_I = ' ' "TL Type
* PLNAL_I = ' ' "Alternative task list
* IWERK_I = ' ' "Maintenance Planning Plant
* GSTRP_I = SY-DATUM "Basic Start Date
* GLTRP_I = SY-DATUM "Basic Finish Date
* AUART_I = ' ' "Order Type
* AUTYP_I = ' ' "Order Category

IMPORTING
AUFNR = "Order Number
ES_CAUFVD = "Dialog Structure for Order Headers and Item
.




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_SAPLCOIH_001 Create Maintenance Sub-Order: Customer-Specific Additions for Order Header
EXIT_SAPLCOIH_002 PM Order: Customer Exit Before Release
EXIT_SAPLCOIH_003 PM Order: USER-Specific Determination of Task Lists for PM Order
EXIT_SAPLCOIH_004 PM Order: Customer Exit for Technical Completion Event
EXIT_SAPLCOIH_005 PM Order: Customer Enhancement to Determine Profit Center
EXIT_SAPLCOIH_006 PM Order: Customer Enhancement for Exclusion of Function Codes
EXIT_SAPLCOIH_007 PM Order: Customer Enhancement for Permits
EXIT_SAPLCOIH_008 PM Order: Customer Enhancement to Determine Tax Jurisdiction Code
EXIT_SAPLCOIH_009 PM Order: Customer Check for 'Save' Event
EXIT_SAPLCOIH_010 PM Order: Customer Enhancement for Determination of WBS Element
EXIT_SAPLCOIH_012 Maintenance Order: Priority Handling on Central Header
EXIT_SAPLCOIH_014 Maintenance Order: Priority Handling on Central Header
EXIT_SAPLCOIH_015 PM Order: F4 Help for User Fields on Operation
EXIT_SAPLCOIH_016 PM Order: Check Entry of User Fields on Operation
EXIT_SAPLCOIH_017 PM Order: Determine External Order Number by Customer Logic
EXIT_SAPLCOIH_018 PM Order: User Fields for Order Header PBO
EXIT_SAPLCOIH_019 PM Order: Customer Enhancement for User Fields for Order Header PAI
EXIT_SAPLCOIH_020 PM Order: Automatic Inclusion of Task List Using IW31, IW34, IW36
EXIT_SAPLCOIH_021 PM: Automatic Task List Transfer when Order Generated from Notification
EXIT_SAPLCOIH_025 Customer Determination of Cost Center Responsible
EXIT_SAPLCOIH_026 Customer Check Status 'Not Performed'
EXIT_SAPLCOIH_030 Transfer User Fields from Maintenance Plan to Order
EXIT_SAPLCOIH_031 Hide personnel number in PM/SM order
EXIT_SAPLCOIH_032 Transfer User Fields from Notification to Order
EXIT_SAPLCOIH_100 Create Service Order: Customer Enhancements of Order Header

IMPORTING Parameters details for CO_IH_ORDER_GENER_4

ILOA_I - Location Data

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

TRTYP_I - Transaction Type

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

GSBER_I - Business Area

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

EQUNR_I - Equipment Number

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

BAUTL_I -

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

TPLNR_I -

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

PLNNR_I - Task List Number

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

PLNTY_I - TL Type

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

PLNAL_I - Alternative task list

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

IWERK_I - Maintenance Planning Plant

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

GSTRP_I - Basic Start Date

Data type: CAUFVD-GSTRP
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

GLTRP_I - Basic Finish Date

Data type: CAUFVD-GLTRP
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUART_I - Order Type

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

AUTYP_I - Order Category

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

EXPORTING Parameters details for CO_IH_ORDER_GENER_4

AUFNR - Order Number

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

ES_CAUFVD - Dialog Structure for Order Headers and Item

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

Copy and paste ABAP code example for CO_IH_ORDER_GENER_4 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_aufnr  TYPE CAUFVD-AUFNR, "   
lv_iloa_i  TYPE ILOA, "   SPACE
lv_trtyp_i  TYPE TC10-TRTYP, "   SPACE
lv_gsber_i  TYPE CAUFVD-GSBER, "   SPACE
lv_equnr_i  TYPE CAUFVD-EQUNR, "   SPACE
lv_bautl_i  TYPE CAUFVD-BAUTL, "   SPACE
lv_tplnr_i  TYPE CAUFVD-TPLNR, "   SPACE
lv_plnnr_i  TYPE PLPO-PLNNR, "   SPACE
lv_es_caufvd  TYPE CAUFVD, "   
lv_plnty_i  TYPE PLPO-PLNTY, "   SPACE
lv_plnal_i  TYPE PLKO-PLNAL, "   SPACE
lv_iwerk_i  TYPE PLKO-IWERK, "   SPACE
lv_gstrp_i  TYPE CAUFVD-GSTRP, "   SY-DATUM
lv_gltrp_i  TYPE CAUFVD-GLTRP, "   SY-DATUM
lv_auart_i  TYPE CAUFVD-AUART, "   SPACE
lv_autyp_i  TYPE CAUFVD-AUTYP. "   SPACE

  CALL FUNCTION 'CO_IH_ORDER_GENER_4'  "NOTRANSL: Simulation IH-Auftrag zwecks Kalkulation
    EXPORTING
         ILOA_I = lv_iloa_i
         TRTYP_I = lv_trtyp_i
         GSBER_I = lv_gsber_i
         EQUNR_I = lv_equnr_i
         BAUTL_I = lv_bautl_i
         TPLNR_I = lv_tplnr_i
         PLNNR_I = lv_plnnr_i
         PLNTY_I = lv_plnty_i
         PLNAL_I = lv_plnal_i
         IWERK_I = lv_iwerk_i
         GSTRP_I = lv_gstrp_i
         GLTRP_I = lv_gltrp_i
         AUART_I = lv_auart_i
         AUTYP_I = lv_autyp_i
    IMPORTING
         AUFNR = lv_aufnr
         ES_CAUFVD = lv_es_caufvd
. " CO_IH_ORDER_GENER_4




ABAP code using 7.40 inline data declarations to call FM CO_IH_ORDER_GENER_4

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 AUFNR FROM CAUFVD INTO @DATA(ld_aufnr).
 
DATA(ld_iloa_i) = ' '.
 
"SELECT single TRTYP FROM TC10 INTO @DATA(ld_trtyp_i).
DATA(ld_trtyp_i) = ' '.
 
"SELECT single GSBER FROM CAUFVD INTO @DATA(ld_gsber_i).
DATA(ld_gsber_i) = ' '.
 
"SELECT single EQUNR FROM CAUFVD INTO @DATA(ld_equnr_i).
DATA(ld_equnr_i) = ' '.
 
"SELECT single BAUTL FROM CAUFVD INTO @DATA(ld_bautl_i).
DATA(ld_bautl_i) = ' '.
 
"SELECT single TPLNR FROM CAUFVD INTO @DATA(ld_tplnr_i).
DATA(ld_tplnr_i) = ' '.
 
"SELECT single PLNNR FROM PLPO INTO @DATA(ld_plnnr_i).
DATA(ld_plnnr_i) = ' '.
 
 
"SELECT single PLNTY FROM PLPO INTO @DATA(ld_plnty_i).
DATA(ld_plnty_i) = ' '.
 
"SELECT single PLNAL FROM PLKO INTO @DATA(ld_plnal_i).
DATA(ld_plnal_i) = ' '.
 
"SELECT single IWERK FROM PLKO INTO @DATA(ld_iwerk_i).
DATA(ld_iwerk_i) = ' '.
 
"SELECT single GSTRP FROM CAUFVD INTO @DATA(ld_gstrp_i).
DATA(ld_gstrp_i) = SY-DATUM.
 
"SELECT single GLTRP FROM CAUFVD INTO @DATA(ld_gltrp_i).
DATA(ld_gltrp_i) = SY-DATUM.
 
"SELECT single AUART FROM CAUFVD INTO @DATA(ld_auart_i).
DATA(ld_auart_i) = ' '.
 
"SELECT single AUTYP FROM CAUFVD INTO @DATA(ld_autyp_i).
DATA(ld_autyp_i) = ' '.
 


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!