Application Development 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: 

ALV Grid in background job?

Former Member
0 Kudos

Hi All,

i need, complete sample code of a program that generates ALV Grid in background?

Thank you very much in advance!

7 REPLIES 7

Former Member
0 Kudos

Text removed by admin as it was a copy and paste from a weblog: /people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

Message was edited by:

Craig Cmehil

Former Member
0 Kudos

Hi,

if cl_gui_alv_grid=>offline( ) is initial.

if o_container is initial.

create object o_container

exporting

container_name = 'ALVGRID'.

endif.

endif.

<b>Reward points</b>

Regards

Former Member
0 Kudos

ALV Grid in Background is not possible.

Thanks and Regards,

Kunjal Patel

former_member223537
Active Contributor
0 Kudos

Hi,

It is possible. Please refer this blog:

/people/prashant.patil12/blog/2007/02/20/displaying-alv-grid-in-background-job

Best regards,

Prashant

Former Member
0 Kudos
" please  go through this  link  here  it was given with screen shots   and
 " the  detail exaplaination and the PROGRAM  Also  is there  .

[original link is broken] [original link is broken]

this are the function modules used in any ABAP program for scheduling it

 " Batch Jobs

' BP_JOBVARIANT_SCHEDULE

- Schedule a simple background job from an ABAP program. This function module can be used to maintain only one step jobs.

' BP_EVENT_RAISE

- Raises an event for triggering background job. These events are not related to the ‘Workflow’ events.

' BP_JOB_READ

- Reads the status of a batch job

' JOB_OPEN, JOB_SUBMIT,JOB_CLOSE

- Full control job scheduling via an ABAP program

reward points if it is usefull ....

Girish

Former Member

Former Member
0 Kudos

*& Module status_0100 OUTPUT

&----


MODULE status_0100 OUTPUT.

SET PF-STATUS 'MAIN100'.

SET TITLEBAR 'TB000'.

IF m_custom_container IS INITIAL.

*
For backgroung processing

IF cl_gui_alv_grid=>offline( ) IS INITIAL.

CREATE OBJECT m_custom_container

EXPORTING container_name = container_main.

CREATE OBJECT m_grid

EXPORTING i_parent = m_custom_container.

ELSE.

  • If it is in backround:

CREATE OBJECT m_grid

EXPORTING i_parent = m_doc_container.

ENDIF.

*// For backgroung processing

CALL METHOD m_grid->set_table_for_first_display

EXPORTING

i_structure_name = 'IT_MDPS'

is_layout = wa_layout

is_variant = wa_variant

i_save = 'A'

it_special_groups = it_fieldgroups

CHANGING

it_outtab = it_mdps

it_fieldcatalog = it_fieldcat.

CREATE OBJECT event_receiver.

SET HANDLER event_receiver->handle_hotspot_click FOR m_grid.

ELSE.

CALL METHOD m_grid->refresh_table_display

EXPORTING i_soft_refresh = 'X'.

ENDIF.

ENDMODULE. " status_0100 OUTPUT