2009 Jan 09 10:13 PM
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
2009 Jan 09 10:32 PM
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)
2009 Jan 09 10:33 PM
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.
2009 Jan 10 2:30 AM
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
2009 Jan 11 1:37 AM
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
2009 Jan 13 3:56 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |