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

In OOPS ALV docking container gives error while execute in Background.

Former Member
0 Likes
1,353

When i try to use Docking container to execute OOPS ALV in background the jobs still fails with Switch framework error.

Kindly let me know your inputs to resolve the same.

Thank you !!

6 REPLIES 6
Read only

former_member302911
Active Participant
0 Likes
988

Search on forum before posting...

You can't use GUI Object in Background Mode.

Regards,

Angelo.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
988

Before creating a screen container, always check GUI availability, e.g. cl_gui_alv_grid=>offline( ) and when offline, use an initial cl_gui_docking_container occurrence as parent of your ALV objects.

(Use search tool, there are some document/wiki already published on scn)

Regards,

Raymond

Read only

0 Likes
988

Nice trick. I didn't know that is was possible.

Angelo.

Read only

thangam_perumal
Contributor
0 Likes
988

Hi Nalini,

               I agree with angelo suggestion we cant use GUI in Background Mode.

Regards,

   Thangam.P

Read only

Former Member
0 Likes
988

Hello Nalini,

Yes, it is possible to schedule background.

data: or_doc  type ref to cl_gui_docking_container .

if cl_gui_alv_grid=>offline( ) is initial.

    create object or_custom_container

           exporting container_name = cust_container.

  create object or_grid

         exporting i_parent = or_custom_container.

else .

create object or_grid

         exporting i_parent = or_doc .

endif .

Regards,

Vadamalai A.

Message was edited by: Matthew Billingham

Read only

0 Likes
988

Thank you !! vadamalai !!