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

how to call program in the Module pool screen

Former Member
0 Likes
820

hi ,

i am having 2 screen when we press enter in first screen we will go to second screen in second screen i want to call a standard ALV program but second screen is already having some fields i want tthis report in down part of the screen

please help me for that

Edited by: ankita12345 on Nov 19, 2009 12:27 PM

hi ,

i am having 2 screen when we press enter in first screen we will go to second screen in second screen i want to call a standard ALV program but second screen is already having some fields i want tthis report in down part of the screen

please help me for that

Edited by: ankita12345 on Nov 19, 2009 12:27 PM

6 REPLIES 6
Read only

Former Member
0 Likes
790

Hi,

The you have to create acustom container on the Layout of your second screen below your other screen fields.

Use the cl_gui_alv_grid and the method set_table_for_first_display to display your ALV

Read only

0 Likes
790

hi ,

thanks for rply

can you explain me how can i use it .

and one more thing in can use other then alv also like Table control

Read only

0 Likes
790

Hi,

If you want to display table control then you can design in the second screen layout directly .

Regards,

Swarna Munukoti.

Read only

0 Likes
790

Hi,

Its your choice. If you want a ALV display, then create a custom container and display data like this


DATA: custom_container1 TYPE REF TO cl_gui_custom_container.
IF custom_container1 IS INITIAL.
      CREATE OBJECT custom_container1
        EXPORTING
          container_name              = 'CUST_CONT1'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT grid1
        EXPORTING
          i_parent          = custom_container1
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL METHOD grid1->set_table_for_first_display
        CHANGING
          it_outtab                     = t_itemdetails[]
          it_fieldcatalog               = t_itemfc
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.

If you want to have a table control, then you can do so. Search the SDN, you will find loads for your reference.

Read only

0 Likes
790

actully i want ot call standard program -RHRESA00 in the container please tell me how is this possible.

Read only

0 Likes
790

Hi,

Try using SUBMIT and RETURN.