Entering content frameProcedure documentation Creating a Library Locate the document in its SAP Library structure

  1. Choose Report Painter ® Report Writer ® Library ® Create.
  2. Create Library: Initial Screen appears.

  3. Enter the following information:
  4. – Name of the library

    – Table name for the library

    This table contains the data you want to use in your report. You only need to enter a table in this field if you do not want to copy an existing table.

  5. If you want to create a library by copying an existing library, enter the name of the library that you want to copy in the Copy from - Library field.
  6. Choose Header.

The screen Create Library: Header appears.

Entering Header Information

  1. Enter the following information:
  2. – Description of the library

    – Authorization group for the library (if required)

    This authorization group is defined in the user's profile.

    Example

    You can define an authorization group called COST. If you assign this authorization group to a report library, only users with this authorization group can use the reports in the library.

  3. In the Report/report interface group box, choose Configure to define receiver reports that you want to call up when you output your report data.
  4. The receiver reports you assign here are valid for all the reports that use this library. You can also assign reports for the report/report interface in the header of a report group. If you assign receiver reports in both the header of the library and the header of the report group, the system uses the reports you assigned to the report group.

    The receiver reports you assign can be report portfolio reports, drilldown reports, transactions, Report Writer reports, Report Painter reports, and ABAP programs.

    Note

    You must save the library before you can enter receiver reports for the report/report interface.

    For more information, see Defining Reports for the Report/Report Interface.

  5. You can use the following additional functions in this screen:
  6. Additional Functions (Create Library: Header Screen)

    Choose

    Function

    Goto ® Characteristics

    Add characteristics

    Goto ® Basic key figures

    Add key figures

    Goto ® Key figures

    Add key figures

    Extras ® Use...

    Display list of reports and report groups that use the library

    Utilities ® Catalog...

    Display list of libraries

    Utilities ® Transport ® Export

    Transport libraries to an external file

    Utilities ® Transport ® Import

    Import libraries from an external file

     

  7. To save the library, choose Library ® Save.

Adding Characteristics

The characteristics you assign to the library determine the characteristics you can use in the reports contained in the library. The system automatically adds the characteristics to the library that are needed in any case.

To add characteristics to a library:

  1. From the Create Library: Header screen, choose Goto ® Characteristics.
  2. The screen Create Library: Characteristics appears.

  3. Select the characteristics you want to add to the library.
  4. If a characteristic is already selected, this means that it was selected by the system automatically.

    To remove a characteristic from the library, deselect the characteristic. You cannot deselect the characteristics that are selected by the system automatically.

  5. Enter the following information:
  6. – If required, enter a standard selection set for the characteristic.

    If all or most of the reports contained in the library use the same set as the selection set, you should enter this as the standard selection set. This standard selection set is then displayed when you create a report assigned to this library.

    Example

    You enter the standard selection set UN-LEDGER (with the value AB) for the characteristic Ledger. When you create a report with this library, the set UN-LEDGER is displayed on the Create Report: General Data Selection screen.

    When you create a report, you can change or delete the standard selection set.

    Note

    If you delete a standard selection set from the report definition, this set is not automatically deleted from the library concerned. If you want to also delete the selection set from the library, go to the Change Library: Characteristics screen and delete the set from that screen. The reverse also applies: If you want to change the name of a standard selection set in a library, the set name in the reports assigned to the library are not automatically changed at the same time – you must also change the set name in each of the affected reports assigned to the library. There is no association between the set name you enter in a library and the value you enter in the report.

    – Enter a consecutive number; this defines the order in which the characteristics defined in the library appear in the Report Painter selection lists.

    This allows you to position the characteristics that you use regularly in your reports at the beginning of the selection lists.

    In the following table are example entries entered in the Pos field for certain library characteristics.

    Characteristic

    Pos field

    Ledger

    1

    Company code

    2

    Fiscal year

    3

    Period

    4

    Account

    5

     

    If you create a report using the Report Painter, the characteristics will appear in the selection list in the following order: Ledger, followed by Company code, then Fiscal year, Period, and Account.

  7. On this screen you can use the additional functions in the table for the Create Library: Header screen (see Entering Header Information), as well as the functions in the following table.
  8. Additional Functions (Create Library: Characteristics Screen)

    Choose

    Function

    Edit ® Select all

    Select all the characteristics for the library

    Edit ® Deselect all

    Deselect all selected items

    Edit ® Display set

    Display standard default set for a characteristic

     

  9. To save the information entered, choose Library ® Save.

Adding Basic Key Figures

When you define a library, you can also define the data types that can be used in the reports contained in the library.

Example

If you only want to create reports that use transaction currency, you can define your library so that the reports contained in the library can only use transaction currency.

To add basic key figures to a library:

  1. On the Create Library screen, choose the pushbutton Basic key figures.
  2. The Create Library: Basic Key Figures screen appears. All basic key figures are automatically assigned to the library.

  3. Deselect the basic key figures that you do not want to add to the library.
  4. If you want to reassign certain basic key figures to the library, you have to reselect the relevant key figures.

  5. Enter a consecutive number. This number determines the order in which the basic key figures defined in the library appear in the Report Painter selection lists.
  6. This allows you to position basic key figures that you use regularly in your reports at the beginning of the selection lists.

  7. On this screen, you can use the additional functions in the table for the Create Report: Header screen as well as the functions in the following table.
  8. Additional Functions (Create Library: Basic Key Figures Screen)

    Choose

    Function

    Edit ® Select all

    Select all key figures

    Edit ® Deselect all

    Deselect all selections

     

  9. To save the basic key figure information, choose Library ® Save.

Adding Key Figures

You can use the key figures you define for a library in the column definition of the reports contained n the library. Key figures are made up of a basic key figure and selection criteria for one or more characteristics.

Example

If you only want to create reports that use transaction currency, you can define your library so that the reports contained in the library can only use transaction currency.

To add key figures to a library:

  1. On the Create Library screen, choose the pushbutton Key figures.
  2. The Create Library: Key Figures screen appears. All key figures are automatically assigned to the library.

  3. Deselect the key figures that you do not want to add to the library.
  4. If you want to reassign certain key figures to the library, you must reselect the relevant key figures.

  5. Enter a consecutive number. This number determines the order in which the key figures defined in the library appear in the Report Painter selection lists.
  6. This allows you to position key figures that you use regularly in your reports at the beginning of the selection lists.

  7. On this screen, you can use the additional functions in the table for the Create Report: Header screen as well as the functions in the following table.
  8. Additional Functions (Create Library: Key Figures Screen)

    Choose

    Function

    Edit ® Select all

    Select all key figures

    Edit ® Deselect all

    Deselect all selections

    Edit ® Display definition

    Display detailed information for the key figure, such as the basic key figure and the additional set used in the key figure

     

  9. To save the key figure information, choose Library ® Save.

Note

You can create your own key figures. For more information, see Structure link Creating/Changing Key Figures.

 

 

Leaving content frame