Entering content frame

Function documentation Subroutine TEST_PRINT Locate the document in its SAP Library structure

Use

You can use the test print with real data for checks during form development and maintenance and for the analysis of errors during data procurement of the form class. The test print is only possible if the form class supports it. This means if:

        A BOR object type is specified in the form class and the object key of this BOR object type is queried via the FIND method and then inserted in to the first line of the ranges table of the module EFG_PRINT. The READ subroutine of the document level must be able to process this information.

        The application implements the subroutine TEST_PRINT and specifies the input parameter for the module EFG_PRINT in the subroutine (for example, via own value queries).

This graphic is explained in the accompanying textThe implementation of the subroutine is optional; however, you cannot change the frame generated.

Integration

The subroutine TEST_PRINT is called up from an application form for a test print.

Activities

Implement a dialog to determine an object key and place this in the ranges tables transferred such that you can use this information for the selection of relevant data in the READ subroutine of the document level.
When you have implemented the subroutine, set the export parameter
y_found to X. If there is a termination by the user, set the indicator y_cancelled to X.

Example

*&---------------------------------------------------------------------*

*&  Form Testprint (Optional)                                          *

*&---------------------------------------------------------------------*

FORM test_print               

    TABLES

       yt_ranges  STRUCTURE efg_ranges

       yt_ranges1 STRUCTURE efg_ranges

       yt_ranges2 STRUCTURE efg_ranges

       yt_ranges3 STRUCTURE efg_ranges

       yt_ranges4 STRUCTURE efg_ranges

       yt_ranges5 STRUCTURE efg_ranges

       yt_ranges6 STRUCTURE efg_ranges

       yt_ranges7 STRUCTURE efg_ranges

       yt_ranges8 STRUCTURE efg_ranges

       yt_ranges9 STRUCTURE efg_ranges

     USING  

       y_found     LIKE rfgen-kennzx

       y_cancelled LIKE rfgen-kennzx.

***always set this !

  y_found = 'X'  .

  CLEAR y_cancelled .

  REFRESH yt_ranges .

***dialog for completion of ranges tables

ENDFORM.

 

Leaving content frame