Application Development 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: 

help me on to convert bapi for catsdb to xml its urgent

Former Member
0 Kudos
87

help me on to convert bapi for catsdb to xml its urgent

any FM to convert bapi to xml or any program methods in abap to convert bapi to xml,

thank you,

regards,

Jagrut BharatKumar Shukla

1 ACCEPTED SOLUTION

Former Member
0 Kudos
54

Hi,

1. MAy be you can use:

CATS_READ_ARCHIVED_DATA

2. Take data into ITAB and then,

  • CREATE THE XML OBJECT

CREATE OBJECT L_XML.

  • CONVERT THE DATA TO XML

CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).

  • DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT

CALL METHOD L_XML->DISPLAY.

Reward if useful!

1 REPLY 1

Former Member
0 Kudos
55

Hi,

1. MAy be you can use:

CATS_READ_ARCHIVED_DATA

2. Take data into ITAB and then,

  • CREATE THE XML OBJECT

CREATE OBJECT L_XML.

  • CONVERT THE DATA TO XML

CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).

  • DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT

CALL METHOD L_XML->DISPLAY.

Reward if useful!