‎2008 Mar 03 9:11 AM
hi,
i need to execute my report both in foreground and background, it is an ALV REPORT.
While executing in bakground some of the output fileds are missed. the length has been exceed more than 255. i have a lot of fileds i cant remove the fields to reduce the length.
can any one help to how to increase the length, to get the all output fields while executing in background.
thanks in advance.
‎2008 Mar 03 9:18 AM
Hi,
Add this piece of code in ur program...
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING
LAYOUT = 'X_65_1024/4'
LINE_SIZE = 1024.now goto SPAD>settings>spool system>other tab>check both the check boxes.....
now schedule ur program and check......
Cheers,
jose.
‎2008 Mar 03 9:37 AM
hi jose,
those 2 check boxes already checked,
i have added the code but i am not able to get the output.
ihave the code before the grid display, is the correct place to add or anywhere else.
please help me.
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING
LAYOUT = 'X_65_1024/4'
LINE_SIZE = 1024.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_TOP_OF_PAGE = 'TOP '
‎2008 Mar 03 10:39 AM
Hi Kiran,
add this code also...
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.
‎2008 Mar 03 9:43 AM
Kiran,
I not am sure whether you can increase the output length, when you execute the program in back ground.
I have an another alternative to avoid such situation, i.e. to download the output to a file.
Downlaod using a delimiter, so that the file can be viewed in an excel sheet.
Any other question please shoot.
BR
Sree