欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

SAP Portal 上传资源到WRR

程序员文章站 2022-08-05 21:36:21
Uploading Resources to the Web Resource Repository Prerequisites You have been assigned the Content Administrator role. Context You can upload Web res ......

uploading resources to the web resource repository

prerequisites

you have been assigned the content administrator role.

context

you can upload web resources to the web resource repository, so that they can be used by different portal components and applications. when you upload resources, they are saved as objects in the portal content directory (pcd) and are also copied to the file system of the portal server (in the same folder hierarchy, and synchronized with any changes that you make). this allows the consumption of resources at runtime using relative paths. for example, a .css file that is saved in the web resource repository can use a resource that is also saved in the web resource repository, by specifying the following in one of its classes: background: url('../images/logo.png') .

following are some guidelines for selecting resource files to upload:

  • all resource file names that you want to upload must contain only legal characters ( a-z , 0-9 , . , _ , % , ~ , - , ( , and ) )
  • maximum file name length is 100 characters
  • to render, in microsoft internet explorer, icons with an .ico extension that are saved in the web resource repository, you need to enable support for .ico images in sap netweaver administrator.

in sap netweaver administrator, navigate to configuration  infrastructure  java system properties  services  http provider. to the mime property, add the following value: \{.ico,image/x-icon\} .

  • keep the folder hierarchy depth minimal, because the maximum file path for resource file storage is 120 characters (assuming that the root web resources folder is located here:c:\usr\sap\rom\j00\j2ee\cluster\apps\sap.com\com.sap.portal.resourcerepository\servlet_jsp\com.sap.portal.resourcerepository\root\repo)

note

to upload multiple resources simultaneously, add them to a compressed (.zip) file and then upload the compressed file.

if you have configured the virus scan interface on your as java, all resource files are automatically scanned during the upload process.

procedure

  1. choose content administration  web resource repository.
  2. in the portal catalog, expand the web resources node and navigate to the folder into which you want to upload resources.
  3. from the context menu of the selected folder, choose upload resources . the first page of the upload resources wizard appears.
  4. in the resource file field, choose the browse button and select the file to upload from the file system. choose open .
  5. choose add to upload table . the selected file is added to the list of files to be uploaded. if you selected a compressed (.zip) file in the previous step, the contents of the file are extracted and added to the table, each file or folder in a single row.

in the list of files to be uploaded, each file has a status that indicates whether it can be uploaded. if a file cannot be uploaded, the reason is given (for example, a file may contain invalid characters or it may exceed the maximum file size allowed). for information about changing the maximum file size, see modifying the uploadable file size . use the filter by status field to more easily see the problematic files. a summary of the number of files with each status is displayed at the top of the table.

note

to remove a resource or folder from the list of files to be uploaded, select it in the upload table and choose remove . if you select a folder, all resources and folders located below that folder are removed from the list.

  1. by default, new files with duplicate names in the same folder in the web resource repository are not uploaded during the upload process. to upload files with duplicate names and overwrite the existing files in the web resource repository, choose the overwrite existing resources checkbox.

note

this option applies to all the duplicate files in the upload table.

checks for duplicate resource names are not case-sensitive, meaning that my.png and my.png are treated as duplicate files.

  1. choose start upload . the upload process starts, and the files with the valid (green) status are uploaded.

when the upload process is complete, the second page of the upload resources wizard appears. this page shows a list of all the files that were uploaded, and those that were not uploaded. a summary of the number of files that were and were not uploaded is displayed at the top of the table. if a file was not uploaded, the reason is given. use the filter by status field to more easily see the files that were not uploaded.

you can now see the added resource files in the portal catalog, in the folder to which you uploaded them.

  1. to upload additional files, choose restart wizard ; otherwise choose close .

 SAP Portal 上传资源到WRR

SAP Portal 上传资源到WRR