Abap Webdynpro Tablepop in

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 28

WEBDYNPRO TABLE POPIN

By Debesh

Hiding few fields in a table to show them when needed in a component

Webdynpro Table Popin


1.

2.

By Debesh

Page 2

Webdynpro Table Popin


3.

4.

5.

By Debesh

Page 3

Webdynpro Table Popin

6.

7.

By Debesh

Page 4

Webdynpro Table Popin

8.

9.

By Debesh

Page 5

Webdynpro Table Popin

10.

11.

By Debesh

Page 6

Webdynpro Table Popin

12.

13.

By Debesh

Page 7

Webdynpro Table Popin

14.

15.

By Debesh

Page 8

Webdynpro Table Popin

16.

17.

By Debesh

Page 9

Webdynpro Table Popin

18.

19.

By Debesh

Page 10

Webdynpro Table Popin

20.

21.

By Debesh

Page 11

Webdynpro Table Popin

22.

23.

By Debesh

Page 12

Webdynpro Table Popin

24.

25.

By Debesh

Page 13

Webdynpro Table Popin

26.

27.

By Debesh

Page 14

Webdynpro Table Popin

28.

29.

By Debesh

Page 15

Webdynpro Table Popin

21.

22.

By Debesh

Page 16

Webdynpro Table Popin


23.

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

Webdynpro Table Popin


Name = `CARRID` importing Value = Item_Carrid ). 25.

26. data: ode, lement,

Node_Sflight1 Elem_Sflight1

type ref to If_Wd_Context_N type ref to If_Wd_Context_E

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

Webdynpro Table Popin

Comment * Elem_Sflight1->get_Static_Attributes( * importing * Static_Attributes = Stru_Sflight1 ).

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

Webdynpro Table Popin

30.

31.

By Debesh

Page 20

Webdynpro Table Popin

32.

33.

By Debesh

Page 21

Webdynpro Table Popin

34.

35.

36.

By Debesh

Page 22

Webdynpro Table Popin

37.

38.

39.

By Debesh

Page 23

Webdynpro Table Popin

40.

41.

42.

By Debesh

Page 24

Webdynpro Table Popin

Ip2 text 43.

44.

By Debesh

Page 25

Webdynpro Table Popin

45.

46.

47.

By Debesh

Page 26

Webdynpro Table Popin

48.

49.

By Debesh

Page 27

Webdynpro Table Popin

50.

By Debesh

Page 28

You might also like