cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in accessing an ABAP variable in XML code

former_member189406
Active Participant
0 Kudos

Hi all,

How do we access an abap variable in an xml code..

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

you need to explain a bit more

former_member189406
Active Participant
0 Kudos

i have a layout in which am using xml code to display a scattered graph.....

I want to pass the values for x-axis and y-axis from a table. But the xml code is not recognising the abap commands.

i tried <%= table-field %> , "table-field". But nothing seems to work.

Please help me out. This is urgent...............

Thanks in advance..........

athavanraja
Active Contributor
0 Kudos

do you know potter potter whoc posted this

its the same question.

did you debug and see whether table-field has value in it.

are you looing thru the itab? if yes you should have used a work area to hold the data (a record of the itab) are you using the same in table-field?

Former Member
0 Kudos

Durai,

sorry abt the duplicate post.....

I am looping the internal table....... i even tried using a workarea......it is still not working.....

My table is holding the values( Checked it while de-bugging)......but i think its not taking up the values in the XML code........

I tried out the following.....

<Point>

<Value type="x"> <%= workarea-field > </Value>

<Value type="y"> <%= workarea-field > </Value>

</Point>

But its not working................Is my syntax right......

null

kai_gutenkunst
Active Contributor
0 Kudos

Hi potter potter,

as far as I know that's not possible. But for using the chart engine you should go the same way as described in the demo GRAPH_BSP_TEST - implementing a data model for creating the IGS data XML.

Regards, Kai

athavanraja
Active Contributor
0 Kudos

have you seen these blogs on IGS by Thomas Jung

/people/thomas.jung3/blog/2004/08/31/bsp-150-a-developer146s-journal-part-x--igs-charting

/people/thomas.jung3/blog/2005/09/08/igs-charting-altering-the-customizing-xml-at-runtime