SAP CM_F_SET_OBJECT Function Module for NOTRANSL: Vermerkt das Objekt bzw. Unterobj.für die im folgenden auftreten









CM_F_SET_OBJECT is a standard cm f set object 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: Vermerkt das Objekt bzw. Unterobj.für die im folgenden auftreten 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 cm f set object FM, simply by entering the name CM_F_SET_OBJECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CMFE
Program Name: SAPLCMFE
Main Program: SAPLCMFE
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CM_F_SET_OBJECT 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 'CM_F_SET_OBJECT'"NOTRANSL: Vermerkt das Objekt bzw. Unterobj.für die im folgenden auftreten
EXPORTING
* DISPO = ' ' "MRP group
* SUBOBJ = ' ' "Specification of the subobject
* WERKS = ' ' "Plant
* EKGRP = ' ' "Purchasing group
* FEVOR = ' ' "Planner Group
* KOKRS = ' ' "Controlling area
* KOSTL = ' ' "Cost center
* LABOR = ' ' "Laboratory/Design Office
* OBJECT = ' ' "Object Specification
* OBJECT_ID = ' ' "Object type
* PLANR = ' ' "Capacity planner group
.



IMPORTING Parameters details for CM_F_SET_OBJECT

DISPO - MRP group

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

SUBOBJ - Specification of the subobject

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

WERKS - Plant

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

EKGRP - Purchasing group

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

FEVOR - Planner Group

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

KOKRS - Controlling area

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

KOSTL - Cost center

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

LABOR - Laboratory/Design Office

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

OBJECT - Object Specification

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

OBJECT_ID - Object type

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

PLANR - Capacity planner group

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

Copy and paste ABAP code example for CM_F_SET_OBJECT 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_dispo  TYPE T024D-DISPO, "   SPACE
lv_subobj  TYPE T024D, "   SPACE
lv_werks  TYPE T001W-WERKS, "   SPACE
lv_ekgrp  TYPE T024-EKGRP, "   SPACE
lv_fevor  TYPE T024A-FEVOR, "   SPACE
lv_kokrs  TYPE TKA01-KOKRS, "   SPACE
lv_kostl  TYPE CSKS-KOSTL, "   SPACE
lv_labor  TYPE T024L-LABOR, "   SPACE
lv_object  TYPE T024L, "   SPACE
lv_object_id  TYPE TCMF5-OBJECT_ID, "   SPACE
lv_planr  TYPE TC27-PLANR. "   SPACE

  CALL FUNCTION 'CM_F_SET_OBJECT'  "NOTRANSL: Vermerkt das Objekt bzw. Unterobj.für die im folgenden auftreten
    EXPORTING
         DISPO = lv_dispo
         SUBOBJ = lv_subobj
         WERKS = lv_werks
         EKGRP = lv_ekgrp
         FEVOR = lv_fevor
         KOKRS = lv_kokrs
         KOSTL = lv_kostl
         LABOR = lv_labor
         OBJECT = lv_object
         OBJECT_ID = lv_object_id
         PLANR = lv_planr
. " CM_F_SET_OBJECT




ABAP code using 7.40 inline data declarations to call FM CM_F_SET_OBJECT

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 DISPO FROM T024D INTO @DATA(ld_dispo).
DATA(ld_dispo) = ' '.
 
DATA(ld_subobj) = ' '.
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_werks).
DATA(ld_werks) = ' '.
 
"SELECT single EKGRP FROM T024 INTO @DATA(ld_ekgrp).
DATA(ld_ekgrp) = ' '.
 
"SELECT single FEVOR FROM T024A INTO @DATA(ld_fevor).
DATA(ld_fevor) = ' '.
 
"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_kokrs).
DATA(ld_kokrs) = ' '.
 
"SELECT single KOSTL FROM CSKS INTO @DATA(ld_kostl).
DATA(ld_kostl) = ' '.
 
"SELECT single LABOR FROM T024L INTO @DATA(ld_labor).
DATA(ld_labor) = ' '.
 
DATA(ld_object) = ' '.
 
"SELECT single OBJECT_ID FROM TCMF5 INTO @DATA(ld_object_id).
DATA(ld_object_id) = ' '.
 
"SELECT single PLANR FROM TC27 INTO @DATA(ld_planr).
DATA(ld_planr) = ' '.
 


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!