Skip to Content
0
Former Member
Mar 04, 2014 at 01:12 PM

error in xml to abap internal table transformation using xslt_tool

266 Views

Hi friends,

When i am trying to convert xml data into internal table it is going to dump because of empty elements. Can any body help to delete the empty tags from xml before processing through xslt_tool.

example

<Activity>

<ID>add12095</ID>

<Start>09/01/2014 12:01</Start>

<Type>3</Type>

<Code>99202</Code>

<Quantity>1</Quantity>

<Net>244</Net>

<Clinician>GD16130</Clinician>

<PriorAuthorizationID/> "empty tag

<Gross>294</Gross>

<PatientShare>50</PatientShare>

<PaymentAmount>244</PaymentAmount>

</Activity>

the empty element some times will come in the xml and some times not. so i made a check in xslt. when this empty element tag processed through that condition i am getting the dump. either i need to remove the condition or we should delete the empty tags before processing. Removing of if condition is not possible because that element may or may not come all the time.

Regards,

Rajesh.