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

Add Selection Screen on splitter container

HariMaradana
Active Participant
0 Likes
1,498

Hi All,

Can anyone help me how to add selection screen like select-options: matnr for mara-matnr etc..in custom container.

I have one custom container and i splitted into left panel and right panel. My left panel will be selection screen, Once user enters the selection in left panel right panel should be populated with data,

Your valuable answers will ge great and rewarded....

Thanks

Cris

Hi All,

Can anyone help me how to add selection screen like select-options: matnr for mara-matnr etc..in custom container.

I have one custom container and i splitted into left panel and right panel. My left panel will be selection screen, Once user enters the selection in left panel right panel should be populated with data,

Your valuable answers will ge great and rewarded....

Thanks

Cris

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
1,055

its the same way how you do it for Module pool programs

Input output elements : select-option on double clicking you can set the attributes of the element (tabe: mara, field: matnr)

Read only

amit_khare
Active Contributor
0 Likes
1,055

For creating select-options on custom screen, you may refer this link -

About display, put a button on the Left Pannel on click of which Call the Right Panel and display the data.

Its advisable to search the forum for more generic sort of queries. as for this you will get lots of suggestions and alternates in the forum.

Read only

0 Likes
1,055

Hello Amit

It is advisable to carefully read the original question as well because the answer is:

No. You cannot.

Containers can hold only controls (e.g. ALV grid, tree, etc.) and other containers but not normal dynpro (screen) elements.

Regards

Uwe

Read only

0 Likes
1,055

Hi All,

Any other suggessions to acheive my requirement. For example create sub screen add my selection parameters into sub screen.

I have never used oops tech in ABAP, but know theoritically and how to use.

Finally is there any method which we can add subscreen to container.

Given below is my actual code and i need to add selection screen into w_child21.

REPORT ZTEST.

TYPE-POOLS: cndp,slis.

DATA init.

DATA ok_code TYPE sy-ucomm.

DATA: w_container TYPE REF TO cl_gui_custom_container,

w_splitter TYPE REF TO cl_gui_splitter_container,

w_child1 TYPE REF TO cl_gui_container,

w_child2 TYPE REF TO cl_gui_container,

w_splitter2 TYPE REF TO cl_gui_splitter_container,

w_child21 TYPE REF TO cl_gui_container,

w_child22 TYPE REF TO cl_gui_container.

CALL SCREEN 100.

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

SET PF-STATUS 'STATUS'.

IF init is initial.

    • create a container for the control

CREATE OBJECT w_container

EXPORTING

container_name = 'CUSTOM'

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5.

IF sy-subrc <> 0.

MESSAGE a000(tree_control_msg).

ENDIF.

      • Instance of Splitter control - 2 columns

CREATE OBJECT w_splitter

EXPORTING

parent = w_container

rows = 1

columns = 2.

CALL METHOD W_SPLITTER->SET_COLUMN_WIDTH

EXPORTING

ID = 1

WIDTH = 30.

    • Assign first column to continer

CALL METHOD w_splitter->get_container

EXPORTING

row = 1

column = 2

RECEIVING

container = w_child1.

    • Assign 2nd child to holding container

CALL METHOD w_splitter->get_container

EXPORTING

row = 1

column = 1

RECEIVING

container = w_child2.

    • Instance of Splitter control - 2 rows

CREATE OBJECT w_splitter2

EXPORTING

parent = w_child2

rows = 2

columns = 1.

    • Assign first row of 2nd column to continer

CALL METHOD w_splitter2->get_container

EXPORTING

row = 1

column = 1

RECEIVING

container = w_child21.

    • Assign 2nd row 2nd column to continer

CALL METHOD w_splitter2->get_container

EXPORTING

row = 2

column = 1

RECEIVING

container = w_child22.

ENDIF.

ENDMODULE. " STATUS_0100 OUTPUT

&----


*& Module EXIT INPUT

&----


  • text

----


MODULE EXIT INPUT.

call method w_container->free.

LEAVE PROGRAM.

ENDMODULE. " EXIT INPUT

I appreciate your quick responses. Please suggest any other valuable solutions. Please let me know if you need any ohter inputs from my side.

Thanks

Cris

Read only

0 Likes
1,055

Hi All,

Thanks for all your suggessions. I found workaround solution and my problem is resolved.

I placed one of the button in pf-status and called selection-screen.

Thanks & Regards,

Cris