Skip to Content
0
Former Member
Nov 20, 2013 at 12:26 PM

How to add values to Category 2 in XML for Gantt Chart?

21 Views

Hello guys. I am working on an Gantt Chart... and through this post scn.sap.com/thread/1919275 I am almost ready. But i have a problem.

Using this code below, it shows me the Gantt Chart that I've designed it with ChartDesigner, but it shows me the all Boxes only in Category 1 !! How can I make that the boxes under the Category2 (in the code below) to appear in Category 2??

APPEND '<?xml version="1.0" encoding="utf-8"?>' TO lt_data_text.

APPEND '<ChartData> ' TO lt_data_text.

APPEND '<Categories><Category >Category1</Category></Categories>' TO lt_data_text.

APPEND '<Series customizing="Series1">' TO lt_data_text.

APPEND '<Point>' TO lt_data_text.

APPEND '<Value type="time">20000301</Value>' TO lt_data_text.

APPEND '<Value type="time">20000305</Value>' TO lt_data_text.

APPEND '<Value type="time">20000310</Value>' TO lt_data_text.

APPEND '<Value type="time">20000319</Value>' TO lt_data_text.

APPEND '</Point>' TO lt_data_text.

APPEND '</Series>' TO lt_data_text.

APPEND '<Categories><Category >Category2</Category></Categories>' TO lt_data_text.

APPEND '<Series customizing="Series2" >' TO lt_data_text.

APPEND '<Point>' TO lt_data_text.

APPEND '<Value type="time">20000310</Value>' TO lt_data_text.

APPEND '<Value type="time">20000315</Value>' TO lt_data_text.

APPEND '<Value type="time">20000320</Value>' TO lt_data_text.

APPEND '<Value type="time">20000329</Value>' TO lt_data_text.

APPEND '</Point>' TO lt_data_text.

APPEND '</Series>' TO lt_data_text.

APPEND '</ChartData>' TO lt_data_text.

can someone help me ?