You are on page 1of 7

TDD WEB DYNPRO TECHNICAL

Ni dung:
1. To component trong view th context click chut phi vo context chn create -> node. Nhp node
name SERIES, click chut phi vo series chn create -> attribute.............................................1
2.

Chuyn sang th layout Insert UI Business Graphic, nhp chut phi chn insert series. ..............2

3.

Trong property field series source chn context to bc 1.................................................2

4.

Code methods supply_series:........................................................................................ 3

1. To component trong view th context click chut phi vo context chn create ->
node. Nhp node name SERIES, click chut phi vo series chn create ->
attribute

Vi cc thuc tnh:
DESCRITPION TYPE STRING
COMPANY1SALES TYPE I

Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

TDD WEB DYNPRO TECHNICAL


COMPANY2SALES TYPE I
COMPANY3SALES TYPE 1
2. Chuyn sang th layout Insert UI Business Graphic, nhp chut phi chn insert
series.

3. Trong property field series source chn context to bc 1.


CATEGORY

Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

TDD WEB DYNPRO TECHNICAL

COMPANY1SALES
COMPANY2SALES
COMPANY3SALES

Trong context node series property fied Suppy Function in value Supply_series.

Trong th methods m v edit methods supply_series.

4. Code methods supply_series:

Method SUPPLY_SERIES.
Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

TDD WEB DYNPRO TECHNICAL

data:
lt_series type if_igs_chart_view=>elements_series,
series like line of lt_series,
v_rnd type I.

define random_genrate.
CALL FUNCTION 'GENERAL_GET_RANDOM_INT'
EXPORTING
RANGE

= 90

IMPORTING
RANDOM

= v_rnd.

end-of-definition.

series-description

= 'Q1'.

random_genrate.
series-company1sales = v_rnd.
random_genrate.
series-company2sales = v_rnd.
random_genrate.
series-company3sales = v_rnd.
insert series into table lt_series.
series-description

= 'Q2'.

random_genrate.
Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

TDD WEB DYNPRO TECHNICAL


series-company1sales = v_rnd.
random_genrate.
series-company2sales = v_rnd.
random_genrate.
series-company3sales = v_rnd.
insert series into table lt_series.

series-description

= 'Q3'.

random_genrate.
series-company1sales = v_rnd.
random_genrate.
series-company2sales = v_rnd.
random_genrate.
series-company3sales = v_rnd.
insert series into table lt_series.

series-description

= 'Q4'.

random_genrate.
series-company1sales = v_rnd.
random_genrate.
series-company2sales = v_rnd.
random_genrate.
series-company3sales = v_rnd.
insert series into table lt_series.
Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

TDD WEB DYNPRO TECHNICAL

node->bind_elements( lt_series ).

endmethod.

Chnh sa graph cho ph hp nhn chut phi chn edit customizing

Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

TDD WEB DYNPRO TECHNICAL

Hng dn to business graphic trong Web Dynpro Created by Nguyn Vn Bnh

You might also like