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

SALV + container

Former Member
0 Likes
3,226

Hi all!!!

Use SALV class.

Have a container on screen.

ALV doesn't tied to container so it's fullscreen. I've made such conclusion when i delete container from the form. But i need ALV to be limeted by container. Here my code.

try.
      cl_salv_table=>factory(
        exporting
          r_container    = gr_container
          container_name = 'CONTAINER'
        importing
          r_salv_table   = gr_table
        changing
          t_table        = gt_outtab ).
    catch cx_salv_msg.                                  "#EC NO_HANDLER
  endtry.

  gr_table->display( ).

Tell me pls where my mistake?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,213

Put that code in the PBO of your screen. Make sure that you are creating the GR_CONTAINER before this inside the PBO of the screen.

REgards,

Rich Heilman

Hi all!!!

Use SALV class.

Have a container on screen.

ALV doesn't tied to container so it's fullscreen. I've made such conclusion when i delete container from the form. But i need ALV to be limeted by container. Here my code.

try.
      cl_salv_table=>factory(
        exporting
          r_container    = gr_container
          container_name = 'CONTAINER'
        importing
          r_salv_table   = gr_table
        changing
          t_table        = gt_outtab ).
    catch cx_salv_msg.                                  "#EC NO_HANDLER
  endtry.

  gr_table->display( ).

Tell me pls where my mistake?

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,214

Put that code in the PBO of your screen. Make sure that you are creating the GR_CONTAINER before this inside the PBO of the screen.

REgards,

Rich Heilman

Read only

0 Likes
1,213

Hi Rich. I make it for the fist time and you was truely right. I haven't create an object for container. Thanks for help!!!