Show TOC Start of Content Area

Procedure documentation Creating Content Packages  Locate the document in its SAP Library structure

Use

In addition to applications or services, you can also encapsulate and use a content package as a callable object. You may include files of different types in a content package, and may create a directory structure within it. The front-end of a content package is a simple HTML page.

To create a content package that you can use in a process, you must:

...

       1.      Create a content package object

       2.      Expose it as a callable object.

Example

For example, you can create an index HTML page that you access when you execute the content package callable object, and add links to a set of folders or files that are also included in the content package.

Procedure

Creating Content Package Objects

...

       1.      In the gallery, choose Create Content Package Object from the contextual panel.

       2.      Enter the required data as follows:

Property

Description

Name

Enter an arbitrary name for the content package object.

Description

Enter a description.

Language

Select the original language for the content package. It is relevant for translation purposes.

Location

Use Choose… to specify the folder where you want to store the object.

       3.      Choose Save and Open.

The design time for the content package object opens.

       4.      To define the contents of the object, choose Maintain Content in the contextual panel, or click the link under Content in the Overview screen.

       5.      You can add the following resources:

Resource

Procedure

Folder

                            a.      Choose Add Folder.

                            b.      On the Add Folder screen, enter a name for the folder.

                            c.      Choose Add.

Note

                            d.      To open a folder that you have created, select it and choose Open. Then you can create subfolders, or add files and archive content in it.

File

                            e.      Open the folder where you want to store the file, and choose Add File.

                              f.      In the Add File screen, choose Browse… to select the file that you want to upload into the content package. You can add files of any type.

                            g.      Choose the language for the file, and the encoding used – for example, if the selected language is Chinese, you can choose a relevant character set, such as Big5.

You can also add versions of the file in other languages using the Add Translated Resource function (see below).

                            h.      Choose Add.

                              i.      Repeat the procedure to add as many files as required.

Archive Content

                              j.      Open the folder where you want to store the archive content, and choose Add Archive Content.

                            k.      Use Browse… to select a ZIP file.

                              l.      Select the language of the file content, and the relevant encoding.

                          m.      Choose Add.

The archive is extracted to the specified folder.

Translated Resource

                            n.      Select a file that you have uploaded into the content package.

                            o.      Choose Add Translated Resource.

                            p.      Use Browse… to select the translated version of the original file.

                            q.      Select the language of the translated resource, and the relevant encoding.

                              r.      Choose Add.

Note

The content package should contain at least one HTML file. It is used as an entry point when the object is called.

       6.      Finally, choose Done.

       7.      Optionally, you can grant permissions to other users for reading or modifying the object.

       8.      To activate the object, choose Activate Content Package from the contextual panel.

Exposing Content Packages as Callable Objects

...

       1.      Open the gallery, and choose Create Callable Object from the contextual panel.

       2.      From the Type list, select User Interface Content Package and enter the required basic data as follows:

Parameter

Description

Name

Enter an arbitrary name for the callable object. You are not required to use a unique name.

Description

Enter a brief description for the callable object, explain its functions  for example.

Original Language

Select the original language of the object from the dropdown list. It is relevant for translation purposes.

Folder

Select the folder where the callable object is stored.

 

       3.      Choose Next to open the Define Object screen.

Choose Browse… to select the content package object that you want to encapsulate in this callable object.

The system browses the content package and displays its content. Select the HTML file that is used as an entry point when the callable object is executed.

       4.      Choose Next to open the Define Input screen.

If the entry page requires input parameters, you can define them here. For more information, see Callable Object Parameters.

       5.      Choose Next to open the Set Configuration screen.

Optionally, you can enter a label for the button that completes the callable object execution, or leave the default (Ok).

       6.      Choose Next, and then Finish and Open.

The callable object design time opens. You can edit its definition, and optionally grant permissions to other users for viewing or editing the object.

       7.      To activate the object, choose This graphic is explained in the accompanying text (Activate).

Example

For an example of using content packages, see Developing Your First Process.

 

End of Content Area