Tutorial 1 Create a Simple web dynpro application

来源:互联网 发布:2016网络直播红人排名 编辑:程序博客网 时间:2024/05/29 17:10

Tutorial 1 Create a Simple web dynproapplication

1.        Create a Web Dynpro Component

SE80

2.        Creating a new view andAssigning the view to the view (Now we don’t to do this job, because the systemwill create and assign it automatically)

3.        Create a view context formainvew

Note: SelectSFLIGHT as Dictionary Structure and “0…n” for the Cardinality.

4.        Creating a corresponding UIelement for context node SFLIGHT_NODE

5.        Supply data from table SFLIGHTat runtime

6.        Creating a web DynproApplication

7.        Activating and running your application

 

Source Code:

  DATA:nd_sflight TYPE REF TO if_wd_context_node,
       lt_sflight 
TYPE STANDARD TABLE OF sflight.

* Get data from table sflight
  
SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE lt_sflight.

*  get corresponding node
  nd_sflight = wd_context->get_child_node( name = 
'SFLIGHT_NODE' ).

  nd_sflight->bind_table( lt_sflight ).

 

 

原创粉丝点击