cancel
Showing results for 
Search instead for 
Did you mean: 

PI data types for ABAP dictionary structures

Former Member
0 Kudos

Hello, is there a quick way to create data types in PI 7.11 which are identical to a structure in the ABAP data dicationary (ex. MARA)? There are no standard contents in this system. So, I'm looking for alternate efficient ways of doing this.

P.S. Is there a way in ECC system to export the dictionary structure as XSD? That would be nice!

Any input is appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a Z program and call the method

Data: EV_XSD type STRING.

CALL METHOD cl_chtmlb_xml_provider=>create_xsd

EXPORTING

iv_strucname = 'MARA'

iv_no_xml_declaration = ' '

  • iv_deep_structure = 'X'

receiving

ev_xsd = EV_XSD.

download the output of ev_xsd.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks everybody! I'm able to generate the XSD and import into PI.

Former Member
0 Kudos

Hello Guys,

I dont know the method: cl_chtmlb_xml_provider=>create_xsd

Is it standard?

Could you please help me?

Thank you so much.

Luciana

Former Member
0 Kudos

You could create a dummy Z function module in ECC using the structure and import it in PI, later export as XSD and re-import it as external definition.

A bit ugly but might work.

Regards,

Matthias

former_member181962
Active Contributor
0 Kudos

Hi ,

This blog talks about importing table meta data (for general dbms systems).

You can probably use the same method if you know the db details of your sap system:

/people/william.li/blog/2008/01/02/sap-pi-71-mapping-enhancements-series-import-sql-tables-metadata

Best Regards,

Ravi