Layout Maintenance for Adobe-Based Request Forms

Use

When you create a Web request, you can define whether the layout of the request form is to be generated as a BSP application or, alternatively, as an interactive Adobe form for each request category view in the Customizing activity Define Request Category.

If you are using Adobe forms, the Adobe functions for interactive forms and print forms that are integrated in SAP NetWeaver are available to you for Web requests (see SAP Interactive Forms by Adobe).

The benefit of using Adobe-based Web requests instead of BSP-based requests is that it is much easier to design Adobe forms using the Adobe LifeCycle Designer. Layout maintenance using a BSP-based Web request requires you to have extensive HTML knowledge.

Prerequisites

A valid version of Adobe Acrobat or Adobe Reader has been installed on the front end (see SAP Note 834573).

Features

Web Dynpro Application

The Adobe form for a Web request category view is displayed in a Web Dynpro framework program. This program supports the integration of Adobe functions for Web requests. These functions are controlled as standard by the Web Dynpro component CRM_WEBREQ_IAF, which is supplied for Web requests. The interactive PDF form is displayed in the framework program; the Check and Send buttons are displayed below it and error messages are displayed above it.



Figure: Adobe Layout Structure for a Web Request

If you want to set up the layout (such as the screen size) or an alternative function scope (such as different buttons) for your request category views, you can program this in a separate Web Dynpro application (see Activities).

Interactive Adobe Form

You perform generation and layout maintenance for an interactive Adobe form in the Customizing activity Define Request Categories under Request Category Views. If you choose Create, the system uses the Web request request data structure to create a PDF form that contains all of the fields in this request data structure. By choosing Change or Display, you switch to layout maintenance for the form. You perform layout maintenance for the form in the Adobe LifeCycle Designer, which is integrated here. You can use this program to perform layout maintenance for the PDF form without any programming knowledge.

Input Help

You can support a fixed or dynamic input help in Adobe-based request forms:

  • Fixed Input Help

    A fixed input help is possible for fields in the request data structure that are based on a data element with fixed domain values. In this situation, you can incorporate a dropdown list for selection in layout maintenance for the respective form field. For more information about the use of dropdown lists in the Adobe LifeCycle Designer, see Supported Elements of the Adobe Library.

  • Dynamic Input Help

    If you want to support a dynamic input help at runtime, you can program this in a separate Web Dynpro component. The Web Dynpro component CRM_WEBREQ_IAF supplied by SAP contains example code in the FORM view in the WDDOINIT method, which describes a specific example of making entries in the Web Dynpro context.

    First, you enter the data that is defined as possible entries in a name/value table. You then assign the table to the respective Web Dynpro context. Lastly, you define the setting in the Adobe LifeCycle Designer for the use of dropdown lists, as described under Fixed Input Help.

Activities

The following procedure describes how you can also use pure PDF layout maintenance with the Adobe LifeCycle Designer to modify the layout of the Web Dynpro framework program. In this case, you create a separate Web Dynpro application and Web Dynpro component as follows:

  1. Create Web Dynpro Component

    Open the Web Dynpro component CRM_WEBREQ_IAF in the Object Navigator (SE80). Use the secondary mouse button to access the context menu from the Web Dynpro component. Choose Copy to create your own Web Dynpro component as a copy of CRM_WEBREQ_IAF. Save and activate the component controller.

  2. Create Web Dynpro Application

    Open the context menu for your package in the Object Navigator (SE80) by using the secondary mouse button and choose Start of the navigation pathCreate Next navigation step Web Dynpro Next navigation step Web Dynpro ApplicationEnd of the navigation path.

    Create your Web Dynpro application with the following settings:

    Component

    <Your Web Dynpro component>

    Interface view

    REQUESTS

    Plug Name

    SET_PARAMETER

  3. Use Customer-Specific Web Dynpro Application for Request Category View

    Select the request category view to be modified in the Web Request Customizing settings in the Customizing activity Define Request Categories and assign your own Web Dynpro application under Web Dynpro Application.

More Information

Web Dynpro ABAP