09-18-2008 8:51 PM
Hi All!
I have a ALV report and I want to execute the report in background. I'm using the FM REUSE_ALV_GRID_DISPLAY, it executes with success but the spool cut a lot of columns of my report. When I execute online, I don't have any problems.
Do you any idea of what is happening? Is there any parameter I have to set in FM?
I already set in transaction SPAD ->System Spool -> tab Others -> the first checkbox. Is there anything else?
Thanks in advance!!!
Aline.
09-18-2008 8:56 PM
You need to set proper page format when you run in background in the print parameters of the ALV FM.
Pass the LA_PRINT to the IS_PRINT in the Function module
DATA: LA_PRINT TYPE SLIS_PRINT_ALV.
* set your page format which can bring your all columns
LA_PRINT-PRINT_CTRL-PRI_PARAMS-PAART = 'X_65_255'.
09-18-2008 8:56 PM
You need to set proper page format when you run in background in the print parameters of the ALV FM.
Pass the LA_PRINT to the IS_PRINT in the Function module
DATA: LA_PRINT TYPE SLIS_PRINT_ALV.
* set your page format which can bring your all columns
LA_PRINT-PRINT_CTRL-PRI_PARAMS-PAART = 'X_65_255'.
09-18-2008 9:10 PM
Check out the LINE-SIZE given your program.The maximum line width in SAP in 1023 characters.If it crosses the limit it list output will break into next line.
09-18-2008 10:05 PM
even GET_PRINT_PARAMETERS, SET_PRINT_PARAMETERS also helpful...to set default printer, page format,suppressing dialog popup, not printing cover page,etc