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

Error for object oriented alv running in background.

0 Likes
502

Hi all,

I have an ALV report done using object oriented functionality.

When I am trying to run that report in background , it is giving me error.

I want to know why it is happening and how it can be corrected.

Regards,

Vaibhav.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
465

check this thread

4 REPLIES 4
Read only

Former Member
0 Likes
465

Create a docky container :

c_docking_cont TYPE REF TO cl_gui_docking_container.

    • *For background execution

IF sy-batch EQ c_x.

CREATE OBJECT c_alv

EXPORTING

i_parent = c_docking_cont.

ENDIF.

  • ALV for display field details

CALL METHOD c_alv->set_table_for_first_display

EXPORTING

is_layout = t_lay

CHANGING

it_outtab = t_table[]

it_fieldcatalog = t_field_cat.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Edited by: Madhavi t on Nov 2, 2009 1:34 PM

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
466

check this thread

Read only

RaymondGiuseppi
Active Contributor
0 Likes
465

This is an old question, look at thread

IF cl_gui_alv_grid=>offline( ) IS INITIAL.

  CREATE OBJECT or_custom_container " cl_gui_custom_container
         EXPORTING container_name = c_container.

  CREATE OBJECT or_grid
         EXPORTING i_parent = or_custom_container.

ELSE .

  CREATE OBJECT or_grid
           EXPORTING i_parent = or_doc . " cl_gui_docking_container

ENDIF .

Regards,

Raymond

Read only

0 Likes
465

Hi Raymond,

I have an issue with docking container. I have to show two different report on same screen using Docking container in OO ALV in Background. When I am defining proerties while creating docking then I am getting Error i.e. GUI cannot be reached.

Is that possible to show tow different reprot in same screen in Background.

Other option I have to use Classical report.

Thanks in Advance,

Regards

Sachin