007 SAP Web Repository

General Topics

GuiXT scripts, images (gif, jpg) and InputScripts can be stored in:

Each of these solutions offers specific advantages and drawbacks:

  • local files are best used during development and for small user groups
  • central fileservers offer easier administration without increasing the load on the SAP database
  • http and ftp servers are a good choice when using several local networks
  • the SAP Web Repository offers a centralized administration with connection to the SAP transport and correction system. The built-in cache mechanism of GuiXT will keep the database and network load to a minimum as each object will be loaded only once per SAP session.

You can centrally store all GuiXT scripts, images, InputScripts and html templates in the SAP Web Repository
Specification in the profile
In the GuiXT profile, under Scripts1 ,… Scripts4 , you specify the string sapwr: followed by a freely chosen name.

The name should start with the letter Z, as customer specific objects start with Z in the SAP Web Repository.

Example: sapwr:z.guixtobjects

\ 357x52

Specification in a script
If you specify an image or an InputScript without indicating the path, it will automatically be searched for at the same place as where the script is located, in this case the Web Repository. You can also directly specify the Web Repository, i.e.:

Image … “SAPWR:Z.Images.logo.gif”

This notation is also possible in local scripts.

Optional specification of a different SAP system
If you want to access another SAP system, you can use the option dest=xxx to specify the identification of the selected system.

Example: sapwr,dest=S46:z.guixtobjects

In this case the access will be as specified in the file saprfc.ini (usually located in SAP workdirectory). Please refer to SAP documentation about Remote Function Call for additional details.

The option dest=xxx is especially useful when you want to use the scripts from a productive system within a test system.
Create objects in the SAP Web Repository

  • development class -

For the transport of objects between several SAP systems (development/test/production) you need a development class which can be created with transaction SE80.

Transaction SE80 (create development class)

\ 261x122

\ 476x271
Creating objects in SAP Web Repository

  • create images and scripts -
    With transaction SMW0 (SAP Web Repository) you can create the objects you want.

The name comprises the identification you previously specified in the GuiXT profile, i.e.: Z.GUIXT, a dot (.) and the usual file name including the extension .txt, .gif,…

Examples:

Z.GUIXT.ELOGON.TXT
Z.GUIXT.SAPMF05A.E0100.TXT
Z.GUIXT.FB01BUCHUNG.TXT
Z.GUIXT.LOGO.GIF

Please note the following:

  • select “binary data” in the initial screen of transaction SMW0
  • do not modify type “binary” during download of files
  • a meaningful title saves you time in later searches

Transaction SMW0 (SAP Web Repository)

\ 394x199

Choose binary data and start overview

\ 375x162

You can specify the name by using the generic format

\ 480x181

You can copy and create objects from the list

\ 436x118

Make sure the object name is correct and that you choose a meaningful title.

\ 436x148

You may need to assign a MIME type for the object (Settings, Maintain MIME types)

\ 436x231

Specify a development class or click on “Local object” in the case of a local object for tests

Release function WWW_GET_MIME_OBJECT
Depending on your SAP version is might also be necessary to release the function WWW_GET_MIME_OBJECT with transaction SMW0. GuiXT uses this function for Web Repository access.

\ 407x218

Choose Internet release->Function modules(F7) . You can now display a list of all released functions:

\ 267x234

If WWW_GET_MIME_OBJECT is not yet contained in this click, then enter the name WW_GET_MIME_OBJECT und click on the “Release” button.

\ 392x170

Step-by-step instruction for importing a script into SAP Web Repository