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 in background

Former Member
0 Likes
450

Hi all,

When i am trying to schedule my ALV report in background

it gives a dump saying that foreground operations cant be done in background.

How can i run my ALV report in background.

pls help.

apt points will be given

Regards,

Tarang

Hi all,

When i am trying to schedule my ALV report in background

it gives a dump saying that foreground operations cant be done in background.

How can i run my ALV report in background.

pls help.

apt points will be given

Regards,

Tarang

2 REPLIES 2
Read only

Former Member
0 Likes
418

Hi,

i thin k you use alv-grid. its not possible to use in background.

try this:

IF SY-BATCH = ' '.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = PROGNAME

  • I_CALLBACK_PF_STATUS_SET = 'MAIN'

I_CALLBACK_USER_COMMAND = COMMAND

I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE_GRID'

IS_VARIANT = VARIANT

IS_LAYOUT = LAYOUT

IT_FIELDCAT = FIELDCAT

IT_SORT = SORT

IT_FILTER = FILTER

I_SAVE = 'A'

  • IT_EVENTS = EVENTS

IT_EVENT_EXIT = EVENT_EXIT

IS_PRINT = PRINT

TABLES

T_OUTTAB = ITAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

ELSE.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = PROGNAME

  • I_CALLBACK_PF_STATUS_SET = 'MAIN'

I_CALLBACK_USER_COMMAND = COMMAND

  • I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE_GRID'

IS_VARIANT = VARIANT

IS_LAYOUT = LAYOUT

IT_FIELDCAT = FIELDCAT

IT_SORT = SORT

IT_FILTER = FILTER

I_SAVE = 'A'

IT_EVENTS = EVENTS

IT_EVENT_EXIT = EVENT_EXIT

IS_PRINT = PRINT

TABLES

T_OUTTAB = ITAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

ENDIF.

regards, Dieter

Message was edited by: Dieter Gröhn

Read only

Former Member
0 Likes
418

Hi,

Go thru this link it may help you.

http://www2.warwick.ac.uk/services/finance/sap/training/reporting4.7/output

Thanks

Sunil