SAP ABAP IMG Activity PAY_AT_BSW_230 (Set Up SAPscript Form)
Hierarchy
SAP_HRCAT (Software Component) Sub component SAP_HRCAT of SAP_HR
   PY-AT (Application Component) Austria
     P03C (Package) HR Customizing: Austria
IMG Activity
ID PAY_AT_BSW_230 Set Up SAPscript Form  
Transaction Code S_L7D_24001097   (empty) 
Created on 20070816    
Customizing Attributes PAY_AT_BSW_230   Set Up SAPscript Form 
Customizing Activity PAY_AT_BSW_230   Set Up SAPscript Form 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name PAY_AT_BSW_230    

The general documentation on setting up a SAPscript form can be found under Application Help for the Form Painter for SAPscript.

SPECIAL FEATURES IN STATEMENTS

A. Manual Fields

To flag a field as a manual field, set it in the following parenthetical expression:
<M> .... </>

The field is then displayed in a tree on the left-hand side of the screen, where it can be changed.

You can differentiate between two field types here:

  • Fields that already contain data in the creation report
  • Fields to be filled with data:
    • Text fields: TEXTxx, xx = 1, 2, ... , 50
    • Date fields: DATUMxx, xx = 1, 2, ... , 30
    • Amount fields: BETRAGxx, xx = 1, 2, ... , 30

You can preset values for these fields in the SAPscript form. You do this in a comment line:
/: TEXT13 = 'No'

B. Table Printing- General

Table printing is controlled by the interaction between Set Up Statement Parameters --> Control of Window Elements and the window element set-up in the SAPscript form.

The window element LEERABSATZ is required to control printing. You also enter the paragraph format here.

Example
/E LEERABSATZ
/* *******************************************************************
/* Element used to break lines for column control - do not delete
/* *******************************************************************
L

Under Set Up Statement Parameters --> Control of Window Elements, enter the table characteristics:

  • Is the table linked to a statement wage type? If yes, which statement wage type should be printed?
  • Should all table records, the most recent record, or the first record be printed?
  • How many columns is the table to be printed with?

For more information, see Set Up Statement Parameters.

C. Special Features and Difficulties When Printing Tables in SAPscript

The following section describes the technique for printing tables in SAPscript forms. This is illustrated using examples with increasing complexity.

  1. Simple table printing: This is not complicated to implement. For example, you want the following layout:

    From To Amount

    01/01/2000 01/31/2000 1,340.00
    02/01/2000 02/29/2000 1,340.00
    03/01/2000 03/31/2000 1,340.00
    04/01/2000 04/30/2000 1,340.00
    ...............................
    ...............................
    1. First, decide on the line position of the individual table columns in the SAPscript form. In this example, the three columns are to be printed at 20mm, 40mm, and 60mm from the left-hand margin of the form.
    2. In Form Painter (choose Payroll: Austria --> Statements --> Set Up Customer Statements --> Set Up SAPscript Form from the menu in Customizing), first create a suitable paragraph format in the required form. Select tabs that correspond to the relevant positions on the page. For each position in a line, you must set a tab. Let us call the paragraph format for the example above T1.
    3. Now create a page element (/E) for the table to be printed in the relevant window of the SAPscript form. Let us call the page element in the example above 'ANDRUCK BRT'. The SAPscript code in Form Painter should now look like this:

      /* Definition of window element for heading
      /E ANDRUCK BRT UEBERSCHRIFT
      T1 From To Amount
      /* Definition of window element for printing table.
      /* The paragraph format is in the definition of the
      /* window element
      /E ANDRUCK BRT
      T1 &BRT-BEGDA&,,&BRT-ENDDA&,,&BRT-BETRG&
      /* Definition of next window element
      /E ...............................
      ...............................
    4. Finally, you must set parameters for the control of the assigned window element. In our example, this is the control of window element 'ANDRUCK BRT'. To do this, choose Payroll: Austria --> Statements --> Set Up Customer Statements --> Set Up Statement Parameters --> Control of Window Elements from the menu in Customizing. In the detail view for the entry for the relevant window element (in this case, 'ANDRUCK BRT'), you will find the entries 'Permitted Table', 'Number of Records', and 'Number of Columns' in the second selection block. In our example, you can enter 'BRT', 'All table records', and '0' here.
  2. In our second example, you want to describe the printing of a table that looks like this:

    Unpaid absence times: 05/03/2000 to 05/05/2000
    05/21/2000 to 05/26/2000

    This layout is encoded as follows: This time, let us call the table UBAB, with the fields UBAB-BEGDA and UBAB-ENDDA. 'Unpaid absence times' is to be in a position 1.50cm from the left-hand margin, '05/03/2000' at 5cm, and '05/05/2000' at 9cm. Define paragraph format T2 with the first tab at the 1.5cm position, the second and third at 5cm, and the fourth and fifth at 9cm. The SAPscript then looks something like this:

    /* Window element for the words 'Unpaid absence times'
    /E FEHLZEITEN VORSATZ
    T2 ,,Unpaid absence times
    /* Window element for printing table. Please note:
    /* On the one hand, with this technique, the paragraph
    /* format of the table comes before the definition of the
    /* window element. On the other hand, the = sign is in
    /* the definition of the window element:
    /E FEHLZEITEN
    = ,,,,&UBAB-BEGDA&,,,,'to '&UBAB-ENDDA&
    /* Definition of next window element
    ......................................
    ......................................
    /* Finally, in window paragraph LEERABSATZ, you need
    /* to specify T2 again:
    /E LEERABSATZ
    T2

    In the window control for 'FEHLZEITEN VORSATZ', in selection block 'Table Control', nothing is encrypted. For the entry 'FEHLZEITEN', the permitted table is 'UBAB', 'All table records' are selected, and the 'Number of columns' is '1'.

  3. If you want to print one or more columns in a SAPscript form, proceed as described below. Again, we will use an example to illustrate the procedure. You want to print table BRT, consisting of three fields: BRT-BEGDA, BRT-ENDDA, and BRT-BETRG, with duplicated columns. In other words, the desired layout is this:

    From To Amount From To Amount

    01/01/2000 01/31/2000 1,340.00 02/01/2000 02/29/2000 1,340.00
    03/01/2000 03/31/2000 1,340.00 04/01/2000 04/30/2000 1,340.00
    05/01/2000 05/31/2000 1,340.00 06/01&#
Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency I   Valid for countries specified 
Customizing Attributes Country Key Country Name
PAY_AT_BSW_230 AT Austria
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG PAY_AT_BSW_230 0 HLA0100258 Payroll Data 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
IMGDUMMY D - Dummy object SE71 PY_AT_BW  
History
Last changed by/on SAP  20070913 
SAP Release Created in 600