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

me51n screen exit problem

Former Member
0 Likes
873

Hi experts,

im using the user exit for me51n screen. (MEREQ001).

I added "customer data" tab to tabstrip at this screen. I want to display an ALV in this new tab.

When i add a custom container to this screen and call an ALV, this alv is shown on the top of the screen, not on the tab that i added. Has anyone tried this before? should i try table control or is there an other way?

PS: I tried to put one single input or a text field to this tab and there is no problem. But when i try to put a custom container in the same layout, it appears on the top of screen in another split screen.

Thanks in advance for suggestions.

1 ACCEPTED SOLUTION
Read only

faisalatsap
Active Contributor
0 Likes
819

Hi Aydnbk,

I just tried with ALV and it is working fine for me, how you are trying to display.

Waiting for your reply,

Thanks and Best Regards,

Faisal

Hi experts,

im using the user exit for me51n screen. (MEREQ001).

I added "customer data" tab to tabstrip at this screen. I want to display an ALV in this new tab.

When i add a custom container to this screen and call an ALV, this alv is shown on the top of the screen, not on the tab that i added. Has anyone tried this before? should i try table control or is there an other way?

PS: I tried to put one single input or a text field to this tab and there is no problem. But when i try to put a custom container in the same layout, it appears on the top of screen in another split screen.

Thanks in advance for suggestions.

4 REPLIES 4
Read only

faisalatsap
Active Contributor
0 Likes
820

Hi Aydnbk,

I just tried with ALV and it is working fine for me, how you are trying to display.

Waiting for your reply,

Thanks and Best Regards,

Faisal

Read only

0 Likes
819

Hi Faisal,

thanks for your interest. I put the custom container into layout of screen 0111. Then i created all of the datas and the report at the pbo of 0111 screen.

Where did you create your custom container and your alv objects?

Read only

0 Likes
819

Hi Aydnbk,

Place below code in PBO of Screen 0111.

MODULE status_0111 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

  DATA: alv_grid  TYPE REF TO cl_gui_alv_grid,
        alv_custom_container TYPE REF TO cl_gui_custom_container.
  DATA: it_mara TYPE STANDARD TABLE OF mara,
        wa_mara TYPE mara.

  SELECT *
    UP TO 10 ROWS
    INTO CORRESPONDING FIELDS OF TABLE it_mara
    FROM mara.

  IF alv_custom_container IS INITIAL.
    CREATE OBJECT alv_custom_container
      EXPORTING
        container_name = 'CC1'. " CC1 is Name of Custom Control

    CREATE OBJECT alv_grid
      EXPORTING
        i_parent = alv_custom_container.

    CALL METHOD alv_grid->set_table_for_first_display
      EXPORTING
        i_structure_name = 'MARA'
      CHANGING
        it_outtab        = it_mara.
  ENDIF.
ENDMODULE.                 " STATUS_0111  OUTPUT

Please Reply if any issue,

Thanks and Regards,

Faisal

Read only

0 Likes
819

It worked perfect.

Thank you very much for your interest..