Thursday, September 8, 2016

Global Settings

1. Form Attributes

1.1. Output Options

  • Output:
    • Output format: Sap Smart forms offers the following output formats for a call of the generated function module.
      • Standard format for print output (OTF)
      • XSF Output:
        • XSF stands for XML for Smart Formsand is an XML schema designed for the output of form contents. Using XSF output, external applications outside the SAP System can access and process the contents of forms.
        • You can activate XSF output both statically and dynamically:
          Statically using the form attributes
          Dynamically using the standard parameters of the generated function module.
        • If you want to use XSF output without HTML, you can send XSF to spool processing or let the output be returned as a table in the application program.
          The generated function module also returns a reference to an instance of type CL_IXML_DOCUMENT, which can be used to access the XML output in the iXML Library.
      • XSF Output + HTML:
        • The XSF output does not contain any layout information. It is simply a data format that reflects the contents of the form. Therefore, a Web browser displays only the hierarchical structure of an XSF output. However, you can use SAP Smart Forms to transform XSF output to HTML. You can then integrate this HTML output into your Internet application in order to complete your business processes via electronic media rather then using printed mail. If you display a form in HTML format, you call this form an interactive web form or simply a web form.
          Output in HTML format includes additional output:
          • XSF output
          • A CSS stylesheet (CSS: Cascading StyleSheets)
          SAP Smart Forms uses an XSLT program to transform XSF output to HTML. Even though you can access XSF output when creating HTML output, you can use only HTML output, into which the CSS stylesheet is automatically embedded, for the display. SAP Smart Forms passes these types of output in tables at the form interface.
        • Statically Activating XDF Output in the Form:
          1. Select the Output Options tab of the Form Attributes. To activate HTML output statically, set the Output Format to XSF Output + HTML. As the Output Mode, only Application is possible (return as table).
          2. If there are input fields on the form that you want to evaluate after sending the form, you can specify a (relative) BSP page or any URL statically in the BSP Page/URL input field (see: Evaluating Form Input).
          3. Activate your form.
          4. The HTML outputs (css, html, images) are contained in the output structure parameter job_output_info of Smartform Function Module. ( see code sample at Output SmartForms into HTML Format )
          5. For HTML output, SAP Smart Forms returns a number of structures and tables:
            This graphic is explained in the accompanying text
    1.2. Form Interface

    Form Interface is where you configure for passing parameters in and out of the form. The Form Interface tabs work the same to tabs (Import, Export, Table) in a Function Module (since smartform is executed by calling a Function Module).


    ABAP associated type for an interface parameter. The associated type must be a global dictionary type or exist in a type pool. In the latter case, the type pool must be declared in the function group.

    1.3. Global Definition



    It will contain the variables to be used within the smart form.
    We can define variables, user defined data types, field symbols, initialization code, Subroutine, currency/quantity fields. 
    The currency/quantity fields tab is used to refer the currency/quantity fields (in global variables/interface parameters) to a currency/quantity key field (in global variables/interface parameters).

    No comments:

    Post a Comment

    SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

    SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...