cancel
Showing results for 
Search instead for 
Did you mean: 

Call screen from PAI of another screen

dpto_informatica
Explorer
0 Kudos
526

I've created my program with two dynpro.

At the beggining shows an screen to view an OO ALV with two buttons, when i've push the second i want to show the second screen just using the CALL SCREEN '1200'.  But i'm still watching the first screen.

DYNPRO 1100:

  PROCESS BEFORE OUTPUT.
    MODULE STATUS_1100.
    MODULE SEL_DATA_1100.
    MODULE SHOW_DATA_1100.

  PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1100.

 

With this button cod function TOTPRIM:

dpto_informatica_0-1723114045968.png

In the USER_COMMAND_1100 of the PAI:

 

  CASE sy-ucomm.
      WHEN 'TOTPRIM'.
        CALL SCREEN '1200'.
    ENDCASE.

 

What i'm doing wrong.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

dpto_informatica
Explorer
0 Kudos

I'm doing by this way on 1100 dynpro:

    CREATE OBJECT g_container_1100
      EXPORTING
        container_name 'CONTAINERCUSTO'.
 

 

  CREATE OBJECT g_grid1_1100
      EXPORTING
        i_parent g_container_1100.
 

 

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name        'ZED'
    CHANGING
      ct_fieldcat             ls_fieldcat_1100
    EXCEPTIONS
      inconsistent_interface  1
      program_error           2
      OTHERS                  3.
 

 

  CALL METHOD g_grid1_1100->set_table_for_first_display
      EXPORTING
        i_save                        'A'
        is_layout                     g_layout_1100
        is_variant                    gv_variant_1100
        "it_toolbar_excluding = lt_exclude[]
      CHANGING
        it_outtab                     t_total[]
        it_fieldcatalog               ls_fieldcat_1100
      EXCEPTIONS
        invalid_parameter_combination 1
        program_error                 2
        too_many_lines                3
        OTHERS                        4.
 

Sandra_Rossi
Active Contributor
0 Kudos
Please don't post an answer, which is reserved to propose a solution. Instead click on "Show replies" and then "Comment".
dpto_informatica
Explorer
0 Kudos
After the CALL SCREEN '1200' on the PAI it goes to the PBO of the 1100 dynpro and not to the 1200 dynpro PBO.
Sandra_Rossi
Active Contributor
0 Kudos
Thanks, but I don't mean "Replies" of an Answer, I mean "Replies" of the Question.
dpto_informatica
Explorer
0 Kudos
After the CALL SCREEN '1200' on the PAI it goes to the PBO of the 1100 dynpro and not to the 1200 dynpro PBO.
dpto_informatica
Explorer
0 Kudos

I've updated the question

Sandra_Rossi
Active Contributor
0 Kudos
Please don't post an answer, which is reserved to propose a solution. Instead click on "Show replies" and then "Comment".