cancel
Showing results for 
Search instead for 
Did you mean: 

Data Type Enhancement

Former Member
0 Kudos

Hi Friends,

In PI 7.1, I created a Data Type Enhancement, which is referred to one of the Data Type.

This Data Type used to send a request to Web Service.

I want to execute a mapping after getting response from Web Service.

Now the problem is, data from fields, which are added in Data Type Enhancement, does not come out from mapping. But I can see that data in Web Service response xml.

This is a problem regarding ns0, which is there with DTE fields in request of Web service, but does not with the response.

Please provide the solution for this problem.

thanks in advance

Regards,

Rohit.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Regarding Datatype Enhancements

SAP applications enable customers to enhance application source code without making modifications to meet customer-specific requirements

If customers use applications that exchange messages by using XI, they can define data type enhancements for Integration Repository data types.

Please go refer link for provided below:

http://help.sap.com/saphelp_nw04/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/frameset.htm

Thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If you have a standard message type that you are reusing and then you just need to modify it a bit and rest of the strcutre remains the same.

You can make extensions to this exisiting message type and this will help you reusing the existing Data type and the change will not effect any exisiting interface thats using the same data type.

To exchange messages by using XI, we define data type enhancements for Integration Repository data types

For more details go through the below link.

http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/frameset.htm

Data Type Enhancements

You can add elements and structures at the top hierarchy level as subelements of the root element.

You can define attributes for the root element or its inserted elements.

You can create elements and attributes at the top hierarchy level as optional fields only. You can create all other elements and attributes as often as you like.

You can define your own facets for newly inserted elements or attributes in the Details column. This is not possible for SAP data type fields.

To use a data type enhancement, you must use ABAP proxy generation to create proxy objects for the data type enhancement in the application system. (Make sure you use the customer-specific software component

Regards,

Suryanarayana

Former Member
0 Kudos

Hi,

Did u test the message mapping?.

Regards,

Gunti

Former Member
0 Kudos

Hi,

Thanks for response. This problem regarding ns0 which is created because of DTE. Any one knows how to handle ns0 from xml file?.

I checked it in message mapping. Because of ns0, DTE fields contain red flag in request structrue and data not able to pass through mapping.

please provide solution for handling of ns0.

Regards,

Rohit.

prateek
Active Contributor
0 Kudos

Make sure u have created data type enhancements in a separate SCV and a separate namespace that ur current SWC. This SWC must be based on the SAP software component version in which the data type to be enhanced is defined.

Can u provide the req and resp payload for better underst of prob?

Regards,

Prateek

Former Member
0 Kudos

Hi,

You can handle it to passing parameters in Module tab.

You can replace, trim and etc. For that please go thru below link.

http://help.sap.com/saphelp_nw70/helpdata/EN/45/202845de34072ce10000000a155369/frameset.htm

Points to be given if worthful.

Regards,

Gunti

Former Member
0 Kudos

Hi,

Any idea to solve this problem????

Regards,

Rohit.