Show TOC

List of Frequently Used Functions Locate this document in the navigation structure

Use

You can use report programs or transactions to process objects in your search result. You define these functions in Customizing for Classification.

You define these functions per object type in Customizing. You can create your own reports in the ABAP Workbench.

You can enter an individual function in the search result itself. For example, you can display the stock/requirements overview for a material. Select Start of the navigation path Environment Next navigation step Define function. End of the navigation path An icon is then activated in the search result.

Features

List Standard Functions

  1. In the search result, select the objects you want to process.

  2. Choose Start of the navigation path Environment Next navigation step List functions. End of the navigation path You see a list of all the transactions and report programs that are defined in Customizing for the Classification System.

  3. With the cursor, select the function you want to execute, and choose Execute.

Processing Logic

When you execute a function, the objects you selected are always processed with the function one at a time, one after the other.

However, in certain situations you may want to forward the selected objects for processing in a bundle. In this case, you must create your own function. To do this, you create an additional report program, so that all the selected objects can be processed at the same time. Your report program calls the original report program that you want to use to process objects.

Prerequisites

  • From the result, an internal OBJEK table containing the object numbers of the objects found by the search is loaded to memory. This table must be imported from memory.

  • The parameter 'material' must be defined as a SELECT-OPTION in the called report program 'zzzzzzzz'.

    Example of code for a report that processes objects as a bundle:

    data:

    begin of objek occurs 100.

    include structure clobj. data:

    end of objek,

    ranges: matnr for mara-matnr.

    import objek from memory id sy-uname.

    matnr-sign = 'I'.

    matnr-option = 'EQ'.

    loop at objek.

    matnr-low = objek-obj.

    append matnr.

    endloop.

    submit zzzzzzzz with material in matnr

    * zzzzzzzz = report program for processing objects This can be a report program that you write yourself, or a report program that already exists in the system. See Prerequisites above.

    via selection-screen and return.

    * To ensure that the function is only called once, program the following line immediately before you close the report program.

    export flg_exit_function from ‘X’ to memory id sy-uname.

You enter this report program as the function of the search result.