SAP M60V_PROFIL_CREATE Function Module for NOTRANSL: Erzeugung eines Profils zu einem Objekt (ein Eintrag in der Tabe
M60V_PROFIL_CREATE is a standard m60v profil create 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: Erzeugung eines Profils zu einem Objekt (ein Eintrag in der Tabe 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 m60v profil create FM, simply by entering the name M60V_PROFIL_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: M60V
Program Name: SAPLM60V
Main Program: SAPLM60V
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function M60V_PROFIL_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 'M60V_PROFIL_CREATE'"NOTRANSL: Erzeugung eines Profils zu einem Objekt (ein Eintrag in der Tabe.
EXPORTING
OBJEKT = "Key of configurable object
* CLINT = "Internal Class Number
PROFILTEXT = "Profile text
* OBJEKTTABELLE = 'MARA' "Name of database table for object
* KLASSENART = '029' "Class Type
* KNOWN_PROFILID = '000000000000' "Name of planning profile
* CLASSTYPE = "Class Type
* LANGUAGE = "ABAP System Field: Language Key of Text Environment
* OBJECTID = "Name of database table for object
* OBJECT = "Key of object to be classified
TABLES
I_MVPL = "Structure for characteristics and values
I_MVPL1 = "Structure for Required Characteristics
* I_DATA_TPHVP = "Header: Planning Profile
* I_DATA_TPLVP = "Planning Profile
* I_DATA_TPSVP = "Planning profile lines
EXCEPTIONS
PROFIL_NOT_GENERATE = 1
IMPORTING Parameters details for M60V_PROFIL_CREATE
OBJEKT - Key of configurable object
Data type: TPHVP-OBJEKTOptional: No
Call by Reference: No ( called with pass by value option)
CLINT - Internal Class Number
Data type: KSSK-CLINTOptional: Yes
Call by Reference: Yes
PROFILTEXT - Profile text
Data type: TPHVP-PROFTXTOptional: No
Call by Reference: No ( called with pass by value option)
OBJEKTTABELLE - Name of database table for object
Data type: TPHVP-OBTABDefault: 'MARA'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KLASSENART - Class Type
Data type: TPHVP-KLARTDefault: '029'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KNOWN_PROFILID - Name of planning profile
Data type: TPHVP-PROFILIDDefault: '000000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASSTYPE - Class Type
Data type: KLAH-KLARTOptional: Yes
Call by Reference: Yes
LANGUAGE - ABAP System Field: Language Key of Text Environment
Data type: SY-LANGUOptional: Yes
Call by Reference: Yes
OBJECTID - Name of database table for object
Data type: TCLA-OBTABOptional: Yes
Call by Reference: Yes
OBJECT - Key of object to be classified
Data type: KSSK-OBJEKOptional: Yes
Call by Reference: Yes
TABLES Parameters details for M60V_PROFIL_CREATE
I_MVPL - Structure for characteristics and values
Data type: MVPLOptional: No
Call by Reference: No ( called with pass by value option)
I_MVPL1 - Structure for Required Characteristics
Data type: MVPL1Optional: No
Call by Reference: No ( called with pass by value option)
I_DATA_TPHVP - Header: Planning Profile
Data type: TPHVPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATA_TPLVP - Planning Profile
Data type: TPLVPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATA_TPSVP - Planning profile lines
Data type: TPSVPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PROFIL_NOT_GENERATE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for M60V_PROFIL_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: | ||||
| lt_i_mvpl | TYPE STANDARD TABLE OF MVPL, " | |||
| lv_objekt | TYPE TPHVP-OBJEKT, " | |||
| lv_profil_not_generate | TYPE TPHVP, " | |||
| lv_clint | TYPE KSSK-CLINT, " | |||
| lt_i_mvpl1 | TYPE STANDARD TABLE OF MVPL1, " | |||
| lv_profiltext | TYPE TPHVP-PROFTXT, " | |||
| lt_i_data_tphvp | TYPE STANDARD TABLE OF TPHVP, " | |||
| lv_objekttabelle | TYPE TPHVP-OBTAB, " 'MARA' | |||
| lv_klassenart | TYPE TPHVP-KLART, " '029' | |||
| lt_i_data_tplvp | TYPE STANDARD TABLE OF TPLVP, " | |||
| lt_i_data_tpsvp | TYPE STANDARD TABLE OF TPSVP, " | |||
| lv_known_profilid | TYPE TPHVP-PROFILID, " '000000000000' | |||
| lv_classtype | TYPE KLAH-KLART, " | |||
| lv_language | TYPE SY-LANGU, " | |||
| lv_objectid | TYPE TCLA-OBTAB, " | |||
| lv_object | TYPE KSSK-OBJEK. " |
|   CALL FUNCTION 'M60V_PROFIL_CREATE' "NOTRANSL: Erzeugung eines Profils zu einem Objekt (ein Eintrag in der Tabe |
| EXPORTING | ||
| OBJEKT | = lv_objekt | |
| CLINT | = lv_clint | |
| PROFILTEXT | = lv_profiltext | |
| OBJEKTTABELLE | = lv_objekttabelle | |
| KLASSENART | = lv_klassenart | |
| KNOWN_PROFILID | = lv_known_profilid | |
| CLASSTYPE | = lv_classtype | |
| LANGUAGE | = lv_language | |
| OBJECTID | = lv_objectid | |
| OBJECT | = lv_object | |
| TABLES | ||
| I_MVPL | = lt_i_mvpl | |
| I_MVPL1 | = lt_i_mvpl1 | |
| I_DATA_TPHVP | = lt_i_data_tphvp | |
| I_DATA_TPLVP | = lt_i_data_tpltp | |
| I_DATA_TPSVP | = lt_i_data_tpsvp | |
| EXCEPTIONS | ||
| PROFIL_NOT_GENERATE = 1 | ||
| . " M60V_PROFIL_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM M60V_PROFIL_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 OBJEKT FROM TPHVP INTO @DATA(ld_objekt). | ||||
| "SELECT single CLINT FROM KSSK INTO @DATA(ld_clint). | ||||
| "SELECT single PROFTXT FROM TPHVP INTO @DATA(ld_profiltext). | ||||
| "SELECT single OBTAB FROM TPHVP INTO @DATA(ld_objekttabelle). | ||||
| DATA(ld_objekttabelle) | = 'MARA'. | |||
| "SELECT single KLART FROM TPHVP INTO @DATA(ld_klassenart). | ||||
| DATA(ld_klassenart) | = '029'. | |||
| "SELECT single PROFILID FROM TPHVP INTO @DATA(ld_known_profilid). | ||||
| DATA(ld_known_profilid) | = '000000000000'. | |||
| "SELECT single KLART FROM KLAH INTO @DATA(ld_classtype). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| "SELECT single OBTAB FROM TCLA INTO @DATA(ld_objectid). | ||||
| "SELECT single OBJEK FROM KSSK INTO @DATA(ld_object). | ||||
Search for further information about these or an SAP related objects