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

Regarding display objects in same screen

Former Member
0 Likes
436

Hi Guru's,

I have a small problem here, i have developed a report having two screens, and now if the user click on any of the row of any of the two reports then another report should be displayed. I can easily use 2 screens and navigate through the second screen when the user clicks, but i want to use the same screen, by freeing the current grid and container, but i am unable to do it, can you please tell me the correct alternative?

Thanks & Regards,

Swordfish.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
402

@swordfish

I am sorry I am not very clear with your requirement.

Are you writing a dialog program?

Regards,

Sumit Nene.

2 REPLIES 2
Read only

Former Member
0 Likes
403

@swordfish

I am sorry I am not very clear with your requirement.

Are you writing a dialog program?

Regards,

Sumit Nene.

Read only

Former Member
0 Likes
402

HI Sumeet,

Yeah it is a dialog program using OOPS. I wanna use one screen . instead of two.

The modules are given below.

&----


*& Module STATUS_9000 OUTPUT

&----


  • text

----


module STATUS_9000 output.

if o_docking is initial.

SET PF-STATUS 'ZSTATUS'. "GUI Status

SET TITLEBAR 'ZTITLE'. "Title

IF C_FI_CO EQ 'X'.

  • Creating Objects

perform create_objects.

  • Filling top of page

perform fill_top_of_page.

  • Filling the fieldcatalog table

perform build_fieldcat.

*Creating the final fieldcat

perform build_final_fieldcat.

  • Displaying the output

perform display_output.

ENDIF.

endif.

if o_docking2 is initial.

SET PF-STATUS 'ZSTATUS'. "GUI Status

SET TITLEBAR 'ZTITLE'. "Title

IF C_CO_FI EQ 'X'.

  • Creating Objects

perform create_objects2.

  • Filling top of page

perform fill_top_of_page2.

  • Filling the fieldcatalog table

perform build_fieldcat2.

*Creating the final fieldcat

perform build_copa_fieldcat.

  • Displaying the output

perform display_output2.

ENDIF.

endif.

endmodule. " STATUS_9000 OUTPUT

&----


*& Module USER_COMMAND_9000 INPUT

&----


  • PAI

----


module USER_COMMAND_9000 input.

data lv_ucomm type sy-ucomm.

lv_ucomm = sy-ucomm.

CASE lv_ucomm.

WHEN 'CANCEl' OR 'EXIT'.

perform free_objects.

LEAVE PROGRAM.

when 'BACK'.

IF C_FI_CO EQ 'X'.

perform free_objects.

ENDIF.

IF C_CO_FI EQ 'X'.

perform free_objects2.

ENDIF.

set screen '0'.

leave screen.

ENDCASE.

endmodule. " USER_COMMAND_9000 INPUT