SAP M60V_PROFIL_FOR_PLAN Function Module for NOTRANSL: Lesen Vorplanungsprofil für Planung
M60V_PROFIL_FOR_PLAN is a standard m60v profil for plan 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: Lesen Vorplanungsprofil für Planung 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 for plan FM, simply by entering the name M60V_PROFIL_FOR_PLAN 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_FOR_PLAN 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_FOR_PLAN'"NOTRANSL: Lesen Vorplanungsprofil für Planung.
EXPORTING
* OBJEKT = "Key of Object to be Classified
* PROFILID = "Name of planning profile
* BUFFER_FREE = "Checkbox
* KEY_DATE = SY-DATUM "Valid-From Date
* I_PL_REL = 'X' "Relevant for Characteristics Planning
* VISUD = "Update Sales Information System
IMPORTING
EXP_VALUE = "
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for M60V_PROFIL_FOR_PLAN
OBJEKT - Key of Object to be Classified
Data type: INOB-OBJEKOptional: Yes
Call by Reference: No ( called with pass by value option)
PROFILID - Name of planning profile
Data type: TPHVP-PROFILIDOptional: Yes
Call by Reference: No ( called with pass by value option)
BUFFER_FREE - Checkbox
Data type: AM60X-FLG01Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_DATE - Valid-From Date
Data type: RM60B-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PL_REL - Relevant for Characteristics Planning
Data type: TPSVP-PL_RELDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VISUD - Update Sales Information System
Data type: TPHVP-VISUDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for M60V_PROFIL_FOR_PLAN
EXP_VALUE -
Data type: M60VT_PROFILOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for M60V_PROFIL_FOR_PLAN 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_objekt | TYPE INOB-OBJEK, " | |||
| lv_exp_value | TYPE M60VT_PROFIL, " | |||
| lv_not_found | TYPE M60VT_PROFIL, " | |||
| lv_profilid | TYPE TPHVP-PROFILID, " | |||
| lv_buffer_free | TYPE AM60X-FLG01, " | |||
| lv_key_date | TYPE RM60B-DATUM, " SY-DATUM | |||
| lv_i_pl_rel | TYPE TPSVP-PL_REL, " 'X' | |||
| lv_visud | TYPE TPHVP-VISUD. " |
|   CALL FUNCTION 'M60V_PROFIL_FOR_PLAN' "NOTRANSL: Lesen Vorplanungsprofil für Planung |
| EXPORTING | ||
| OBJEKT | = lv_objekt | |
| PROFILID | = lv_profilid | |
| BUFFER_FREE | = lv_buffer_free | |
| KEY_DATE | = lv_key_date | |
| I_PL_REL | = lv_i_pl_rel | |
| VISUD | = lv_visud | |
| IMPORTING | ||
| EXP_VALUE | = lv_exp_value | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " M60V_PROFIL_FOR_PLAN | ||
ABAP code using 7.40 inline data declarations to call FM M60V_PROFIL_FOR_PLAN
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 OBJEK FROM INOB INTO @DATA(ld_objekt). | ||||
| "SELECT single PROFILID FROM TPHVP INTO @DATA(ld_profilid). | ||||
| "SELECT single FLG01 FROM AM60X INTO @DATA(ld_buffer_free). | ||||
| "SELECT single DATUM FROM RM60B INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
| "SELECT single PL_REL FROM TPSVP INTO @DATA(ld_i_pl_rel). | ||||
| DATA(ld_i_pl_rel) | = 'X'. | |||
| "SELECT single VISUD FROM TPHVP INTO @DATA(ld_visud). | ||||
Search for further information about these or an SAP related objects