SAP C_PDM_PRODUCTFOLDER_CREATE Function Module for NOTRANSL: Instantiieren einer Instanz der ABAP-Klasse PRODUCTFOLDER









C_PDM_PRODUCTFOLDER_CREATE is a standard c pdm productfolder 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: Instantiieren einer Instanz der ABAP-Klasse PRODUCTFOLDER 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 c pdm productfolder create FM, simply by entering the name C_PDM_PRODUCTFOLDER_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CPDMDATACOLLECTOR2
Program Name: SAPLCPDMDATACOLLECTOR2
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function C_PDM_PRODUCTFOLDER_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 'C_PDM_PRODUCTFOLDER_CREATE'"NOTRANSL: Instantiieren einer Instanz der ABAP-Klasse PRODUCTFOLDER
EXPORTING
PRODUCT_ID = "Business Key of the Product
FOLDER_ID = "Configuration Folder
LC_PHASE = "Description of Life-Cycle Phase of a Configuration Folder
* EXT_FORMAT = ' ' "Checkbox
* RFCDEST = "Logical Destination (Specified When Function Is Called)
* VALIDFROM = SYST-DATUM "Date and Time, Current (Application Server) Date

IMPORTING
PRODUCT_FOLDER_DATA = "Product folder data in the Product Structure Browser

TABLES
* FILTER_DEF = "Operative Filter Entries for Product Structure Browser

EXCEPTIONS
EXCL_BY_FILTER = 1 NOT_EXIST = 2
.



IMPORTING Parameters details for C_PDM_PRODUCTFOLDER_CREATE

PRODUCT_ID - Business Key of the Product

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

FOLDER_ID - Configuration Folder

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

LC_PHASE - Description of Life-Cycle Phase of a Configuration Folder

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

EXT_FORMAT - Checkbox

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

RFCDEST - Logical Destination (Specified When Function Is Called)

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

VALIDFROM - Date and Time, Current (Application Server) Date

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

EXPORTING Parameters details for C_PDM_PRODUCTFOLDER_CREATE

PRODUCT_FOLDER_DATA - Product folder data in the Product Structure Browser

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

TABLES Parameters details for C_PDM_PRODUCTFOLDER_CREATE

FILTER_DEF - Operative Filter Entries for Product Structure Browser

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

EXCEPTIONS details

EXCL_BY_FILTER -

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

NOT_EXIST -

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

Copy and paste ABAP code example for C_PDM_PRODUCTFOLDER_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_filter_def  TYPE STANDARD TABLE OF FILTERDEF, "   
lv_product_id  TYPE FOLDER_DYNP_FIELDS-PRODUCT_ID, "   
lv_excl_by_filter  TYPE FOLDER_DYNP_FIELDS, "   
lv_product_folder_data  TYPE PDM_PROD_FOLDER, "   
lv_folder_id  TYPE FOLDER_DYNP_FIELDS-FOLDER_ID, "   
lv_not_exist  TYPE FOLDER_DYNP_FIELDS, "   
lv_lc_phase  TYPE FOLDER_DYNP_FIELDS-LC_PHASE, "   
lv_ext_format  TYPE CSDATA-XFELD, "   SPACE
lv_rfcdest  TYPE PDM_TREE-RFCDEST, "   
lv_validfrom  TYPE SY-DATUM. "   SYST-DATUM

  CALL FUNCTION 'C_PDM_PRODUCTFOLDER_CREATE'  "NOTRANSL: Instantiieren einer Instanz der ABAP-Klasse PRODUCTFOLDER
    EXPORTING
         PRODUCT_ID = lv_product_id
         FOLDER_ID = lv_folder_id
         LC_PHASE = lv_lc_phase
         EXT_FORMAT = lv_ext_format
         RFCDEST = lv_rfcdest
         VALIDFROM = lv_validfrom
    IMPORTING
         PRODUCT_FOLDER_DATA = lv_product_folder_data
    TABLES
         FILTER_DEF = lt_filter_def
    EXCEPTIONS
        EXCL_BY_FILTER = 1
        NOT_EXIST = 2
. " C_PDM_PRODUCTFOLDER_CREATE




ABAP code using 7.40 inline data declarations to call FM C_PDM_PRODUCTFOLDER_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 PRODUCT_ID FROM FOLDER_DYNP_FIELDS INTO @DATA(ld_product_id).
 
 
 
"SELECT single FOLDER_ID FROM FOLDER_DYNP_FIELDS INTO @DATA(ld_folder_id).
 
 
"SELECT single LC_PHASE FROM FOLDER_DYNP_FIELDS INTO @DATA(ld_lc_phase).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_ext_format).
DATA(ld_ext_format) = ' '.
 
"SELECT single RFCDEST FROM PDM_TREE INTO @DATA(ld_rfcdest).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_validfrom).
DATA(ld_validfrom) = SYST-DATUM.
 


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!