SAP TECHS_CREATE Function Module for









TECHS_CREATE is a standard techs create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 techs create FM, simply by entering the name TECHS_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CCTS
Program Name: SAPLCCTS
Main Program: SAPLCCTS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TECHS_CREATE 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 'TECHS_CREATE'"
EXPORTING
* MATNR = "Material Number
* POPUP_INACTIVE = "
* NO_FREIG = "
* HDM = "
* TRANSACTION_CCTM = "
* DATUV = "Valid-From Date
* AENNR = "
* FREIG_KALKULATION = "
* FREIG_PLANUNG = "
* FREIG_FERTIGUNG = "
* FREIG_SIMULATION = "
* TOPMATNR = "Material Number
* NUR_VORGABEN = "
* NO_BUTTON_VORGABEN = "

IMPORTING
OCM_VORGABE = "

CHANGING
TECHS = "
* OTEXT = "
* TECHS_MAINTAIN = "

EXCEPTIONS
NO_DATA_FOUND = 1 EXIT_IN_DYNPRO = 2 WRONG_FORMAT_IN_INPUT = 3
.



IMPORTING Parameters details for TECHS_CREATE

MATNR - Material Number

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

POPUP_INACTIVE -

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

NO_FREIG -

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

HDM -

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

TRANSACTION_CCTM -

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

DATUV - Valid-From Date

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

AENNR -

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

FREIG_KALKULATION -

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

FREIG_PLANUNG -

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

FREIG_FERTIGUNG -

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

FREIG_SIMULATION -

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

TOPMATNR - Material Number

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

NUR_VORGABEN -

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

NO_BUTTON_VORGABEN -

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

EXPORTING Parameters details for TECHS_CREATE

OCM_VORGABE -

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

CHANGING Parameters details for TECHS_CREATE

TECHS -

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

OTEXT -

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

TECHS_MAINTAIN -

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

EXCEPTIONS details

NO_DATA_FOUND -

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

EXIT_IN_DYNPRO -

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

WRONG_FORMAT_IN_INPUT -

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

Copy and paste ABAP code example for TECHS_CREATE 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_matnr  TYPE RC29A-MATNR, "   
lv_techs  TYPE TECS-TECHS, "   
lv_ocm_vorgabe  TYPE CC01_VALID_OR_INVALID_TYPE, "   
lv_no_data_found  TYPE CC01_VALID_OR_INVALID_TYPE, "   
lv_popup_inactive  TYPE CC01_CHAR1, "   
lv_no_freig  TYPE CC01_CHAR1, "   
lv_hdm  TYPE CC01_CHAR1, "   
lv_transaction_cctm  TYPE CC01_CHAR1, "   
lv_datuv  TYPE AENR-DATUV, "   
lv_aennr  TYPE AENR-AENNR, "   
lv_otext  TYPE TECT-OTEXT, "   
lv_exit_in_dynpro  TYPE TECT, "   
lv_techs_maintain  TYPE CC01_CHAR1, "   
lv_freig_kalkulation  TYPE TCC10-AEFRK, "   
lv_wrong_format_in_input  TYPE TCC10, "   
lv_freig_planung  TYPE TCC10-AEFRP, "   
lv_freig_fertigung  TYPE TCC10-AEFRF, "   
lv_freig_simulation  TYPE TCC10-AEFRS, "   
lv_topmatnr  TYPE RC29A-MATNR, "   
lv_nur_vorgaben  TYPE CC01_CHAR1, "   
lv_no_button_vorgaben  TYPE CC01_CHAR1. "   

  CALL FUNCTION 'TECHS_CREATE'  "
    EXPORTING
         MATNR = lv_matnr
         POPUP_INACTIVE = lv_popup_inactive
         NO_FREIG = lv_no_freig
         HDM = lv_hdm
         TRANSACTION_CCTM = lv_transaction_cctm
         DATUV = lv_datuv
         AENNR = lv_aennr
         FREIG_KALKULATION = lv_freig_kalkulation
         FREIG_PLANUNG = lv_freig_planung
         FREIG_FERTIGUNG = lv_freig_fertigung
         FREIG_SIMULATION = lv_freig_simulation
         TOPMATNR = lv_topmatnr
         NUR_VORGABEN = lv_nur_vorgaben
         NO_BUTTON_VORGABEN = lv_no_button_vorgaben
    IMPORTING
         OCM_VORGABE = lv_ocm_vorgabe
    CHANGING
         TECHS = lv_techs
         OTEXT = lv_otext
         TECHS_MAINTAIN = lv_techs_maintain
    EXCEPTIONS
        NO_DATA_FOUND = 1
        EXIT_IN_DYNPRO = 2
        WRONG_FORMAT_IN_INPUT = 3
. " TECHS_CREATE




ABAP code using 7.40 inline data declarations to call FM TECHS_CREATE

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 MATNR FROM RC29A INTO @DATA(ld_matnr).
 
"SELECT single TECHS FROM TECS INTO @DATA(ld_techs).
 
 
 
 
 
 
 
"SELECT single DATUV FROM AENR INTO @DATA(ld_datuv).
 
"SELECT single AENNR FROM AENR INTO @DATA(ld_aennr).
 
"SELECT single OTEXT FROM TECT INTO @DATA(ld_otext).
 
 
 
"SELECT single AEFRK FROM TCC10 INTO @DATA(ld_freig_kalkulation).
 
 
"SELECT single AEFRP FROM TCC10 INTO @DATA(ld_freig_planung).
 
"SELECT single AEFRF FROM TCC10 INTO @DATA(ld_freig_fertigung).
 
"SELECT single AEFRS FROM TCC10 INTO @DATA(ld_freig_simulation).
 
"SELECT single MATNR FROM RC29A INTO @DATA(ld_topmatnr).
 
 
 


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!