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

Background execution

Former Member
0 Likes
507

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.

4 REPLIES 4
Read only

Former Member
0 Likes
482

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.

Read only

0 Likes
482

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 '

Read only

0 Likes
482

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.

Read only

Former Member
0 Likes
482

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