Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_SALV_PRINT set_print_control usage

saurabh_khare
Discoverer
0 Kudos

Hello,

Trying to use set_print_control method of class clsalv_print.

However, the modified print parameters are not applied by the system and the default values are used instead. get/set_print_parameters FM's on the other hand work as expected with the same modified print parameters. Is my usage correct and/or how to set print parameters using the class cl_salv_print.

data(r_print) = r_salv_table->get_print( ).
data(print_params) = r_print->get_print_control( ).
print_params-pri_params = out_parameters.  " modified print parameters; format, line size etc
r_print->set_print_control( print_params ).
r_salv_table->display( ).  
1 REPLY 1

DoanManhQuynh
Active Contributor
0 Kudos

You may look at this sample if it help: BCALV_TEST_NPPON_1