..3 Printing program

Create a report Z_DATA_VALIDATION and paste below code:


REPORT z_data_validation .


* declare and fill the context

DATA(gt_context) = VALUE sdbxxltabs_tab(

( fileid = 'Shape' tabelle = VALUE #( ( line = 'Circle' )

( line = 'Triangle' )

( line = 'Rectangle' )

) )

( fileid = 'Size' tabelle = VALUE #( ( line = 'Big' )

( line = 'Middle' )

( line = 'Small' )

) )

( fileid = 'Color' tabelle = VALUE #( ( line = 'Blue' )

( line = 'Red' )

( line = 'Green' )

) ) ).


* call the form

CALL FUNCTION 'ZXLWB_CALLFORM'

EXPORTING

iv_formname = 'DATA_VALIDATION'

iv_context_ref = gt_context

EXCEPTIONS

process_terminated = 1

OTHERS = 2.

IF sy-subrc NE 0 .

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 .

ENDIF .

Result of the printing program execution: