Application Development and Automation 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: 
Read only

ALV default printing values

Former Member
0 Likes
892

Hi,

i'm using FM REUSE_ALV_GRID_DISPLAY and i'd like to change the default format (print format) of a report. Therefore, when the user presses the print button and the print alv list appears, the print format by default that the user would see, would be the one forced by code. Is this possible?

Thanks

Hi,

i'm using FM REUSE_ALV_GRID_DISPLAY and i'd like to change the default format (print format) of a report. Therefore, when the user presses the print button and the print alv list appears, the print format by default that the user would see, would be the one forced by code. Is this possible?

Thanks

3 REPLIES 3
Read only

dhruv_shah3
Active Contributor
0 Likes
665

Hi,

This can be possible if you can find out the code for that particular print button.

And you have to write your own logic.

Its comes under the Enhancements And Modifications.

HTH,

Regards,

Dhruv Shah

Read only

Former Member
0 Likes
665

Hi,

Add this piece of code in ur program...

CALL FUNCTION 'SET_PRINT_PARAMETERS'
  EXPORTING
    LAYOUT                      = 'X_65_1024/4' "Format u need
    DESTINATION                 = 'TEST'.       "Output device

and in Ur ALV

data wa_print type slis_print_alv.
wa_print-NO_CHANGE_PRINT_PARAMS = 'X'.
 
call function 'reuse_alv..........
Exporting
............
...........
IS_PRINT = wa_print
...............

Cheers,

jose.

Read only

0 Likes
665

I've tried this, but it doesn't change anything.