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: 

Deep structure to XML and saving in SAP tables

michael_geist4
Explorer
0 Kudos
159

Hi all,

ich habe filled an internal table (deep strucure) with mutiple fields. Most of these fields are defined as structure.

Example: 1st field ist document number, 2nd field is defined as TLINETAB, 3rd field ist another document number, 4th field is filled with node table of a column tree, 5th field ist filled with the item table of a column tree and in the last field I save the ALV properties of buttons, defined with lvc_t_styl.

So my problem is that I want to save all these contents in database tables and restore in my application when the user ist starting again. How can I save this and how have I define the database table to save? I thought 1st field is e.g. document number, 2nd is a counter and 3rd field is a CHAR field. Then the internal table will be converted (XML?) and the result will be append to my table line by line.

Thanks for help and regards

Michael

1 REPLY 1

former_member184681
Active Contributor
0 Kudos
51

Hi,

This looks like a perfect use for the Shared Objects functionality, introduced in SAP Web AS 6.40. See some [SAP documentation|http://help.sap.com/saphelp_nw70/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm] for this feature and an [example of use|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900e3d9d-559e-2910-9dae-b132157a220f?QuickLink=index&overridelayout=true].

Hope this helps,

Grzegorz