Show TOC Start of Content Area

Procedure documentation Exposing Web Pages as Callable Objects  Locate the document in its SAP Library structure

Use

You can display a Web page as a process step, or attach it to the process as an info callable object.  

Use this callable object type to display third-party Web pages. Do not use it to reference SAP applications embedded in the SAP NetWeaver Portal.

Procedure

...

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

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

Parameter

Description

Name

Enter an arbitrary name for the callable object.

Description

Describe the callable object by entering a brief description of its functions, for example.

Original Language

Choose the language in which the translatable texts of the callable object definition are being created.

Folder

Select a folder in the gallery where the callable object definition is stored.

Note

You can either use an existing folder, or create a new one.

       3.      Choose Next to open the Define Object screen.

In field Base URL, enter a string that defines the Web page URL without the parameters that you want to define dynamically at runtime.

       4.      Choose Next to open the Define Input screen.

Define all parameters that you want to add dynamically to the Web page URL. To do that:

                            a.      Choose Insert New

                            b.      Overwrite the default entries as follows:

                                                  i.       Name – enter a meaningful name for the parameter. It is used as a label for the input field where you enter a value for the parameter at execution.

                                                ii.       Technical Name – enter the exact name of the parameter. At execution it is appended to the base URL of the Web page.

Caution

The technical name is allowed to contain only lower- and upper-case letters from the Latin alphabet, numbers, and underscore.

                                               iii.       Type – select the parameter type. Typically, it is String.

Note

To make sure that value is assigned to the defined parameter each time the callable object is executed, select the checkbox Parameter value is required.

                            c.      Repeat the procedure for each parameter that you want to insert.

       5.      Choose Next to open the Set Configuration screen.

For this callable object type, you can configure the height of the screen area where the Web page is to be displayed (in pixels).

       6.      Choose Next, and then Finish and Open.

The design time for the callable object opens. You can edit the object definition, if required.

Optionally, you can grant read or write permissions for the callable object to other users. To do that, open the Permissions tab page.

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

Example

You can trigger a Google search with a search string that you define dynamically. To do this:

...

       1.      Complete steps 1 and 2 as described in the general procedure above.

       2.      In step 3 enter the following base URL:

http://www.google.com/search

       3.      In step 4 define an input parameter as follows:

                            a.      Enter q for Technical Name.

                            b.      Enter Search for Name.

                            c.      Select String for Type.

       4.      In step 5 leave the default value. Choose Finish and Open.

       5.      Open the Test tab page. In field Search, enter an arbitrary string and choose Execute.

The results of the Google search are displayed.

 

End of Content Area