Abap Webdynpro Tablepop in
Abap Webdynpro Tablepop in
Abap Webdynpro Tablepop in
By Debesh
2.
By Debesh
Page 2
4.
5.
By Debesh
Page 3
6.
7.
By Debesh
Page 4
8.
9.
By Debesh
Page 5
10.
11.
By Debesh
Page 6
12.
13.
By Debesh
Page 7
14.
15.
By Debesh
Page 8
16.
17.
By Debesh
Page 9
18.
19.
By Debesh
Page 10
20.
21.
By Debesh
Page 11
22.
23.
By Debesh
Page 12
24.
25.
By Debesh
Page 13
26.
27.
By Debesh
Page 14
28.
29.
By Debesh
Page 15
21.
22.
By Debesh
Page 16
24.
DATA: LT_TABLE TYPE TABLE OF SFLIGHT. GENERATED --------data: Node_Sflight type ref to If_Wd_Context_Nod e, Elem_Sflight type ref to If_Wd_Context_Ele ment, Stru_Sflight type If_Main_View=>Element_Sf light , Item_CARRID like Stru_Sflight-CARRID. * navigate from <CONTEXT> to <SFLIGHT> via lead selection Node_Sflight = wd_Context->get_Child_Node( Name = IF_MAIN_VIEW=>wdc tx_Sflight ). * * get element via lead selection Elem_Sflight = Node_Sflight->get_Element( get single attribute Elem_Sflight->get_Attribute( exporting ).
By Debesh
Page 17
Node_Sflight1 Elem_Sflight1
Stru_Sflight1 type If_Main_View=>Element_ Sflight1 . * navigate from <CONTEXT> to <SFLIGHT1> via lead selection Node_Sflight1 = wd_Context->get_Child_Node( Name = IF_MAIN_VIEW=> wdctx_Sflight1 ). * @TODO handle not set lead selection if ( Node_Sflight1 is initial ). endif. get element via lead selection Elem_Sflight1 = Node_Sflight1->get_Element( @TODO handle not set lead selection if ( Elem_Sflight1 is initial ). endif. alternative access via index Elem_Sflight1 = Node_Sflight1->get_Element( Index = 1 ). @TODO handle non existant child if ( Elem_Sflight1 is initial ). endif. get all declared attributes Elem_Sflight1->get_Static_Attributes( importing Static_Attributes = Stru_Sflight1 ). ).
* *
* * * * * *
By Debesh
Page 18
insert IF ITEM_CARRID IS INITIAL. select * from sflight into table lt_table. ELSE. select * from sflight into table lt_table where carrid = Item_Carrid. 27. 28. ENDIF.
29.
By Debesh
Page 19
30.
31.
By Debesh
Page 20
32.
33.
By Debesh
Page 21
34.
35.
36.
By Debesh
Page 22
37.
38.
39.
By Debesh
Page 23
40.
41.
42.
By Debesh
Page 24
44.
By Debesh
Page 25
45.
46.
47.
By Debesh
Page 26
48.
49.
By Debesh
Page 27
50.
By Debesh
Page 28