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

How to handle ALV background run when we use REUSE_ALV_HIERSEQ_LIST_DISPLAY

Hi,

I am working on a program which outputs ALV "Hierarchical sequential list output" by using function module "REUSE_ALV_HIERSEQ_LIST_DISPLAY"(pls see the code below for reference).

When i run this report with the menu option "Execute in Background", it is not generating any sort of spool.

My job is to make this report run in BACKGROUND as well.

Please suggest me which Function module i should use to generate spool for the Hierarchical sequential list.??

Please send me your valuable inputs.

*************************************************************************

Part of code of my program for your reference:

******************************************************

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

i_callback_program = bhdgd-repid

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

is_layout = wa_layout_d

it_fieldcat = wa_fieldcat_t

it_sort = wa_sort_t

  • I_DEFAULT = 'X'

i_save = 'X'

is_variant = wa_variant

it_events = wa_event_t

  • IT_EVENT_EXIT =

i_tabname_header = 'TB_HEAD'

i_tabname_item = 'TB_LINES'

is_keyinfo = wa_keyinfo_d

is_print = wa_print_d

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

t_outtab_header = tb_head

t_outtab_item = tb_lines

EXCEPTIONS

program_error = 1

OTHERS = 2.

**************************

Thanks in advance,

Ram.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 01:03 PM

    Hi,

    When you run this program in background, check if this program is creating any shortdumps in ST22. Lot of times, ALV programs can't be executed in background.

    Regards,

    Sumant.

    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.