Skip to content

Commit 2cdd9cd

Browse files
authoredMar 27, 2024··
method get_frontend_layout (#16)
1 parent 5b0e084 commit 2cdd9cd

5 files changed

+294
-0
lines changed
 

‎src/cl_gui_alv_grid.clas.abap

+14
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC INHERITING FROM cl_gui_control.
5757
VALUE(e_column) TYPE any OPTIONAL
5858
VALUE(es_row_no) TYPE any OPTIONAL.
5959

60+
EVENTS after_user_command
61+
EXPORTING
62+
VALUE(e_ucomm) TYPE sy-ucomm OPTIONAL
63+
VALUE(e_saved) TYPE abap_bool OPTIONAL
64+
VALUE(e_not_processed) TYPE abap_bool OPTIONAL.
65+
6066
EVENTS user_command
6167
EXPORTING
6268
VALUE(e_ucomm) TYPE sy-ucomm OPTIONAL.
@@ -98,6 +104,10 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC INHERITING FROM cl_gui_control.
98104
CHANGING
99105
c_refresh TYPE abap_bool DEFAULT abap_true.
100106

107+
METHODS get_frontend_layout
108+
EXPORTING
109+
es_layout TYPE lvc_s_layo.
110+
101111
CONSTANTS mc_fc_detail TYPE ui_func VALUE 'TODO'.
102112
CONSTANTS mc_fc_loc_append_row TYPE ui_func VALUE 'TODO'.
103113
CONSTANTS mc_fc_loc_copy TYPE ui_func VALUE 'TODO'.
@@ -113,6 +123,10 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC INHERITING FROM cl_gui_control.
113123
ENDCLASS.
114124

115125
CLASS cl_gui_alv_grid IMPLEMENTATION.
126+
METHOD get_frontend_layout.
127+
RETURN. " todo, implement method
128+
ENDMETHOD.
129+
116130
METHOD check_changed_data.
117131
RETURN. " todo, implement method
118132
ENDMETHOD.

‎src/cl_gui_alv_tree.clas.abap

+18
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,28 @@ CLASS cl_gui_alv_tree DEFINITION PUBLIC.
121121
i_node_key TYPE any
122122
is_node_layout TYPE any
123123
i_outtab_line TYPE any.
124+
125+
METHODS get_children
126+
IMPORTING
127+
i_node_key TYPE lvc_nkey
128+
EXPORTING
129+
et_children TYPE lvc_t_nkey.
130+
131+
METHODS set_top_node
132+
IMPORTING
133+
i_node_key TYPE lvc_nkey.
124134
ENDCLASS.
125135

126136
CLASS cl_gui_alv_tree IMPLEMENTATION.
127137

138+
METHOD set_top_node.
139+
ASSERT 1 = 'todo'.
140+
ENDMETHOD.
141+
142+
METHOD get_children.
143+
ASSERT 1 = 'todo'.
144+
ENDMETHOD.
145+
128146
METHOD change_node.
129147
ASSERT 1 = 'todo'.
130148
ENDMETHOD.

‎src/cl_gui_splitter_container.clas.abap

+10
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ CLASS cl_gui_splitter_container DEFINITION PUBLIC.
99

1010
METHODS free.
1111

12+
METHODS set_column_mode
13+
IMPORTING
14+
mode TYPE i
15+
EXPORTING
16+
result TYPE i.
17+
1218
METHODS set_column_width
1319
IMPORTING
1420
id TYPE i
@@ -40,6 +46,10 @@ CLASS cl_gui_splitter_container IMPLEMENTATION.
4046
ASSERT 1 = 'todo'.
4147
ENDMETHOD.
4248

49+
METHOD set_column_mode.
50+
ASSERT 1 = 'todo'.
51+
ENDMETHOD.
52+
4353
METHOD free.
4454
ASSERT 1 = 'todo'.
4555
ENDMETHOD.

‎src/ddic/lvc_s_layo.tabl.xml

+233
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_TABL" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<DD02V>
6+
<TABNAME>LVC_S_LAYO</TABNAME>
7+
<DDLANGUAGE>E</DDLANGUAGE>
8+
<TABCLASS>INTTAB</TABCLASS>
9+
<DDTEXT>LVC_S_LAYO</DDTEXT>
10+
<EXCLASS>1</EXCLASS>
11+
</DD02V>
12+
<DD03P_TABLE>
13+
<DD03P>
14+
<FIELDNAME>ZEBRA</FIELDNAME>
15+
<ADMINFIELD>0</ADMINFIELD>
16+
<INTTYPE>C</INTTYPE>
17+
<INTLEN>000002</INTLEN>
18+
<DATATYPE>CHAR</DATATYPE>
19+
<LENG>000001</LENG>
20+
<MASK> CHAR</MASK>
21+
</DD03P>
22+
<DD03P>
23+
<FIELDNAME>EDIT</FIELDNAME>
24+
<ADMINFIELD>0</ADMINFIELD>
25+
<INTTYPE>C</INTTYPE>
26+
<INTLEN>000002</INTLEN>
27+
<DATATYPE>CHAR</DATATYPE>
28+
<LENG>000001</LENG>
29+
<MASK> CHAR</MASK>
30+
</DD03P>
31+
<DD03P>
32+
<FIELDNAME>EDIT_MODE</FIELDNAME>
33+
<ADMINFIELD>0</ADMINFIELD>
34+
<INTTYPE>C</INTTYPE>
35+
<INTLEN>000002</INTLEN>
36+
<DATATYPE>CHAR</DATATYPE>
37+
<LENG>000001</LENG>
38+
<MASK> CHAR</MASK>
39+
</DD03P>
40+
<DD03P>
41+
<FIELDNAME>NO_KEYFIX</FIELDNAME>
42+
<ADMINFIELD>0</ADMINFIELD>
43+
<INTTYPE>C</INTTYPE>
44+
<INTLEN>000002</INTLEN>
45+
<DATATYPE>CHAR</DATATYPE>
46+
<LENG>000001</LENG>
47+
<MASK> CHAR</MASK>
48+
</DD03P>
49+
<DD03P>
50+
<FIELDNAME>FRONTEND</FIELDNAME>
51+
<ADMINFIELD>0</ADMINFIELD>
52+
<INTTYPE>C</INTTYPE>
53+
<INTLEN>000002</INTLEN>
54+
<DATATYPE>CHAR</DATATYPE>
55+
<LENG>000001</LENG>
56+
<MASK> CHAR</MASK>
57+
</DD03P>
58+
<DD03P>
59+
<FIELDNAME>OBJECT_KEY</FIELDNAME>
60+
<ADMINFIELD>0</ADMINFIELD>
61+
<INTTYPE>C</INTTYPE>
62+
<INTLEN>000140</INTLEN>
63+
<DATATYPE>CHAR</DATATYPE>
64+
<LENG>000070</LENG>
65+
<MASK> CHAR</MASK>
66+
</DD03P>
67+
<DD03P>
68+
<FIELDNAME>DOC_ID</FIELDNAME>
69+
<ADMINFIELD>0</ADMINFIELD>
70+
<INTTYPE>C</INTTYPE>
71+
<INTLEN>000084</INTLEN>
72+
<DATATYPE>CHAR</DATATYPE>
73+
<LENG>000042</LENG>
74+
<MASK> CHAR</MASK>
75+
</DD03P>
76+
<DD03P>
77+
<FIELDNAME>TEMPLATE</FIELDNAME>
78+
<ADMINFIELD>0</ADMINFIELD>
79+
<INTTYPE>C</INTTYPE>
80+
<INTLEN>000510</INTLEN>
81+
<DATATYPE>CHAR</DATATYPE>
82+
<LENG>000255</LENG>
83+
<MASK> CHAR</MASK>
84+
</DD03P>
85+
<DD03P>
86+
<FIELDNAME>LANGUAGE</FIELDNAME>
87+
<ADMINFIELD>0</ADMINFIELD>
88+
<INTTYPE>C</INTTYPE>
89+
<INTLEN>000002</INTLEN>
90+
<DATATYPE>LANG</DATATYPE>
91+
<LENG>000001</LENG>
92+
<MASK> LANG</MASK>
93+
<LANGUFLAG>X</LANGUFLAG>
94+
</DD03P>
95+
<DD03P>
96+
<FIELDNAME>GRAPHICS</FIELDNAME>
97+
<ADMINFIELD>0</ADMINFIELD>
98+
<INTTYPE>C</INTTYPE>
99+
<INTLEN>000064</INTLEN>
100+
<DATATYPE>CHAR</DATATYPE>
101+
<LENG>000032</LENG>
102+
<MASK> CHAR</MASK>
103+
</DD03P>
104+
<DD03P>
105+
<FIELDNAME>SMALLTITLE</FIELDNAME>
106+
<ADMINFIELD>0</ADMINFIELD>
107+
<INTTYPE>C</INTTYPE>
108+
<INTLEN>000002</INTLEN>
109+
<DATATYPE>CHAR</DATATYPE>
110+
<LENG>000001</LENG>
111+
<MASK> CHAR</MASK>
112+
</DD03P>
113+
<DD03P>
114+
<FIELDNAME>NO_HGRIDLN</FIELDNAME>
115+
<ADMINFIELD>0</ADMINFIELD>
116+
<INTTYPE>C</INTTYPE>
117+
<INTLEN>000002</INTLEN>
118+
<DATATYPE>CHAR</DATATYPE>
119+
<LENG>000001</LENG>
120+
<MASK> CHAR</MASK>
121+
</DD03P>
122+
<DD03P>
123+
<FIELDNAME>NO_VGRIDLN</FIELDNAME>
124+
<ADMINFIELD>0</ADMINFIELD>
125+
<INTTYPE>C</INTTYPE>
126+
<INTLEN>000002</INTLEN>
127+
<DATATYPE>CHAR</DATATYPE>
128+
<LENG>000001</LENG>
129+
<MASK> CHAR</MASK>
130+
</DD03P>
131+
<DD03P>
132+
<FIELDNAME>NO_HEADERS</FIELDNAME>
133+
<ADMINFIELD>0</ADMINFIELD>
134+
<INTTYPE>C</INTTYPE>
135+
<INTLEN>000002</INTLEN>
136+
<DATATYPE>CHAR</DATATYPE>
137+
<LENG>000001</LENG>
138+
<MASK> CHAR</MASK>
139+
</DD03P>
140+
<DD03P>
141+
<FIELDNAME>NO_MERGING</FIELDNAME>
142+
<ADMINFIELD>0</ADMINFIELD>
143+
<INTTYPE>C</INTTYPE>
144+
<INTLEN>000002</INTLEN>
145+
<DATATYPE>CHAR</DATATYPE>
146+
<LENG>000001</LENG>
147+
<MASK> CHAR</MASK>
148+
</DD03P>
149+
<DD03P>
150+
<FIELDNAME>CWIDTH_OPT</FIELDNAME>
151+
<ADMINFIELD>0</ADMINFIELD>
152+
<INTTYPE>C</INTTYPE>
153+
<INTLEN>000002</INTLEN>
154+
<DATATYPE>CHAR</DATATYPE>
155+
<LENG>000001</LENG>
156+
<MASK> CHAR</MASK>
157+
</DD03P>
158+
<DD03P>
159+
<FIELDNAME>TOTALS_BEF</FIELDNAME>
160+
<ADMINFIELD>0</ADMINFIELD>
161+
<INTTYPE>C</INTTYPE>
162+
<INTLEN>000002</INTLEN>
163+
<DATATYPE>CHAR</DATATYPE>
164+
<LENG>000001</LENG>
165+
<MASK> CHAR</MASK>
166+
</DD03P>
167+
<DD03P>
168+
<FIELDNAME>NO_TOTARR</FIELDNAME>
169+
<ADMINFIELD>0</ADMINFIELD>
170+
<INTTYPE>C</INTTYPE>
171+
<INTLEN>000002</INTLEN>
172+
<DATATYPE>CHAR</DATATYPE>
173+
<LENG>000001</LENG>
174+
<MASK> CHAR</MASK>
175+
</DD03P>
176+
<DD03P>
177+
<FIELDNAME>NO_TOTEXP</FIELDNAME>
178+
<ADMINFIELD>0</ADMINFIELD>
179+
<INTTYPE>C</INTTYPE>
180+
<INTLEN>000002</INTLEN>
181+
<DATATYPE>CHAR</DATATYPE>
182+
<LENG>000001</LENG>
183+
<MASK> CHAR</MASK>
184+
</DD03P>
185+
<DD03P>
186+
<FIELDNAME>NO_ROWMOVE</FIELDNAME>
187+
<ADMINFIELD>0</ADMINFIELD>
188+
<INTTYPE>C</INTTYPE>
189+
<INTLEN>000002</INTLEN>
190+
<DATATYPE>CHAR</DATATYPE>
191+
<LENG>000001</LENG>
192+
<MASK> CHAR</MASK>
193+
</DD03P>
194+
<DD03P>
195+
<FIELDNAME>NO_ROWINS</FIELDNAME>
196+
<ADMINFIELD>0</ADMINFIELD>
197+
<INTTYPE>C</INTTYPE>
198+
<INTLEN>000002</INTLEN>
199+
<DATATYPE>CHAR</DATATYPE>
200+
<LENG>000001</LENG>
201+
<MASK> CHAR</MASK>
202+
</DD03P>
203+
<DD03P>
204+
<FIELDNAME>NO_COLEXPD</FIELDNAME>
205+
<ADMINFIELD>0</ADMINFIELD>
206+
<INTTYPE>C</INTTYPE>
207+
<INTLEN>000002</INTLEN>
208+
<DATATYPE>CHAR</DATATYPE>
209+
<LENG>000001</LENG>
210+
<MASK> CHAR</MASK>
211+
</DD03P>
212+
<DD03P>
213+
<FIELDNAME>NO_F4</FIELDNAME>
214+
<ADMINFIELD>0</ADMINFIELD>
215+
<INTTYPE>C</INTTYPE>
216+
<INTLEN>000002</INTLEN>
217+
<DATATYPE>CHAR</DATATYPE>
218+
<LENG>000001</LENG>
219+
<MASK> CHAR</MASK>
220+
</DD03P>
221+
<DD03P>
222+
<FIELDNAME>COUNTFNAME</FIELDNAME>
223+
<ADMINFIELD>0</ADMINFIELD>
224+
<INTTYPE>C</INTTYPE>
225+
<INTLEN>000060</INTLEN>
226+
<DATATYPE>CHAR</DATATYPE>
227+
<LENG>000030</LENG>
228+
<MASK> CHAR</MASK>
229+
</DD03P>
230+
</DD03P_TABLE>
231+
</asx:values>
232+
</asx:abap>
233+
</abapGit>

‎src/ddic/lvc_t_nkey.ttyp.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_TTYP" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<DD40V>
6+
<TYPENAME>LVC_T_NKEY</TYPENAME>
7+
<DDLANGUAGE>E</DDLANGUAGE>
8+
<ROWTYPE>LVC_NKEY</ROWTYPE>
9+
<ROWKIND>E</ROWKIND>
10+
<DATATYPE>CHAR</DATATYPE>
11+
<LENG>000012</LENG>
12+
<ACCESSMODE>T</ACCESSMODE>
13+
<KEYDEF>D</KEYDEF>
14+
<KEYKIND>N</KEYKIND>
15+
<DDTEXT>LVC_NKEY</DDTEXT>
16+
</DD40V>
17+
</asx:values>
18+
</asx:abap>
19+
</abapGit>

0 commit comments

Comments
 (0)
Please sign in to comment.