This function has been extended with SP 5.2.6.0 / 1.1.6.0.
The function fnc.fld.export.docs (Export Originals (Including Folder Structure)) allows you via an XML file to define which folder content to export.
For example, with this function you can only export the dependent documents from a folder.
To define which contents to export, you need to add a parameter to the function fnc.fld.export.docs. Define the parameters in the file %PLM_INSTDIR%\customize\config\exportFolderProfiles.xml. Here, you can specify one or more export profiles.
All XML tags save <name> are optional.
Default values:
<explosion_rule>
If not defined here, the value is taken from the load options which are defined in SAP ECTR.
<document_filter>
If no filter is referenced, there will be no filtering. Only one filter may be referenced per profile.
<document_transform>
If no transformation macro is referenced, there will be no transformation. The document length remains unchanged. Only one transformation macro may be referenced per profile.
failOnError is false by default. If the value is true, the export is stopped with an error message.
<folder_name_section>
Value is an existing attribute section. If a non-existent attribute section is referenced, the process is stopped with an error message. If the whole XML tag hasn't been defined, the folder description is used by default.
Note: The filters are used on the transformed documents, not on the selected documents.
<?xml version="1.0" encoding="utf-8"?> <folder_export_profiles xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../basis/aux-files/folder-export.xsd"> <folder_export_profile> <name> ExportNonmaster </name> <description> Export master and appropriate nonmaster </description> <folder_explosion> <explosion_rule> <as_saved /> <!-- Either <latest/> or <as_saved/> --> </explosion_rule> </folder_explosion> <download_rules> <download_rule dtypes="NXDRW"> <!-- Default is MasterWsappl, if nothing is defined --> <original workstation_application="UGI" /> </download_rule> <download_rule dtypes="PINT"> <original workstation_application="UGI" rename_section="EXPORT_FOLDER_ORIG_RENAME" /> <original workstation_application="JT" rename_section="EXPORT_FOLDER_ORIG_RENAME" /> <original workstation_application="EPJ" rename_section="EXPORT_FOLDER_ORIG_RENAME" /> </download_rule> </download_rules> <document_filter filter="material"> <!-- Like ObrPropertyFilter e.g. only UGM documents with this status --> </document_filter> <document_transform transformMacro="C:\ECTR_Installations\SAP_ECTR\customize\config\transform.js" failOnError="true"> <!-- Tranformation macro: The document is read in and zero or n documents returned, e.g. master document is read in and only the dependent document is returned. --> </document_transform> <folder_name_section> EXPORT_FOLDER_FOL_NAME </folder_name_section> </folder_export_profile> </folder_export_profiles>