cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding printing issue in the ALV

Former Member
0 Kudos
71

Hi All,

We have developed one report which displays process order progress report. There is printing issue related to this report. In the print preview details can be seen clearly but as I click print, the system just print the single line.

I tried printing of this report by changing the format as "X_65_1024/4", it is printed correctly.

Just wanted to know the possible reason why this value got changed automatically? Also how can I reset this value default for the particular user.

Please provide inputs.

Regards,

Sachin

Accepted Solutions (0)

Answers (1)

Answers (1)

Abhijit74
Active Contributor
0 Kudos

Hi,

Use GET_PRINT_PARAMETERS function module to get the default print setting. If you want to change format you can change.

Please see the example code.

DATA: VAL,

PRIPAR LIKE PRI_PARAMS,

ARCPAR LIKE ARC_PARAMS.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

LAYOUT = 'X_65_255'

LINE_COUNT = 65

LINE_SIZE = 255

IMPORTING

OUT_PARAMETERS = PRIPAR

OUT_ARCHIVE_PARAMETERS = ARCPAR

VALID = VAL.

NEW-PAGE PRINT ON NEW-SECTION

PARAMETERS PRIPAR

ARCHIVE PARAMETERS ARCPAR

NO DIALOG.

IF VAL <> SPACE.

LOOP AT IT_DETAILS.

......

ENDLOOP.

ENDIF.

NEW-PAGE PRINT OFF.

Thanks

Abhijit