Skip to Content
author's profile photo Former Member
Former Member

ALV in background

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 07:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 25, 2006 at 08:18 AM

    Hi,

    Go thru this link it may help you.

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

    Thanks

    Sunil

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.