Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg XML output

Former Member
0 Likes
808

Hi ,

My  internal   table having two  structures.

data: begin of itab,

               include str1,      ( this is Header record)

               include str2,     ( this is Multiple record)

      end of itab.

My  requirement  is to convert  internal itab  to XML  output.

I used this syntax.

 

CALL TRANSFORMATION ('ID')

SOURCE tab = itab[]

RESULT XML xml_out.

 

*

 

(this place getting error).

CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'

EXPORTING

i_string = xml_out

i_tabline_length = 100

TABLES

et_table = itab.

Thanks,

Rana

4 REPLIES 4
Read only

custodio_deoliveira
Active Contributor
0 Likes
776

Hi Rana,

Why do you want to convert string to table anyway?

Cheers,

Custodio

Read only

0 Likes
776

Hi Custodio,

My    intnernal  table   having  two  structues

one  is header record   and   item  record.

data:  begin of itab,

            Header  record  str,

            item record ste,

     end of itab.

example  of one record:

HD    Date1  Date 2   Total Amnt

CH    Amt1

CH   Amnt2

CH   Amt3

I want to show  this  value as XML  format.

Read only

0 Likes
776

Hi Rana,

What do you mean show? do you want to display the XML on screen?

You may want to have a look on this thread:

Otherwise, your XML is ready after the call transformation.

Regards,

Custodio

Read only

0 Likes
776

Hi,

I would  like to show XML as file on application  server

this is content of  internal table.,  this   internal table having two structures

one record.

HD    Date1  Date 2   Total Amnt      ----str1

CH    Amt1                                        ---str2

CH   Amnt2                                    ---str2

CH   Amt3                                      -----str3

Thanks,

Ravi