cancel
Showing results for 
Search instead for 
Did you mean: 

Data type Enhancement

former_member189441
Active Participant
0 Kudos

Hi,

Can we use Data type Enhancement to extend our own Data types that are created by us or only to extend standard data type?

If so, if we extend the data type1 which is having 2 fields with Enhanced type with 1 more extra field can i use the data type with 2 fields in one mapping and data type with enhanced field in another mapping OR is it something like once if we enhanced the structure we can use only enhanced structure every where and we cant use the old data type structure??

Thanks,

Murali

Accepted Solutions (1)

Accepted Solutions (1)

former_member189441
Active Participant
0 Kudos

Hi Abhishek,

Thanks for the clarification.

I have the DT dtructure as follows before enhancement


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1

After enhancing the sructure it has to act like the below structure

Structure - 1


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
       Field3        0..1

when i tried to create DT enhancement in which way i have to create the Enhanced structure to replicate the above structure

Structure - 2


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
DTE1
       Field3        0..1       

or

Structure - 3


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
DTE1
       Row
            Field3        0..1       

Hi Abhishek,

i just mentioned the structure-1 to explain how my enhanced structure should act like..

You mean that i have to create enhanced structure as Structure-2 and it acts in the similar way of Structure-1 ?? correct me if i am wrong..

Thanks

Murali

former_member200962
Active Contributor
0 Kudos
You mean that i have to create enhanced structure as Structure-2 and it acts in the similar way of Structure-1 ?? correct 
me if i am wrong

1) You create the main Data type (DT_Main) in IR with the fields you want.

2) Due to requirement change you have to add some more fields

3) IR --> Right-click --> New --> Data Type Enhancements (DT_Enhance)

4) In DT_Enhance there will be a section where you have to select the name of the structure (DT_Main) which you want to enhance.

5) Now in DT_Enhance, you will create just one field Field_3 (occurence 0..1)

6) Save --> Activate

7) Check DT_Main .....you will find the structure as:

DT_Main                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
   DT_Ehance
       Field3        0..1

Answers (4)

Answers (4)

former_member189441
Active Participant
0 Kudos

Hi Abhishek,

Thanks for your immediate response

former_member189441
Active Participant
0 Kudos

Hi Abhishek,

Thanks for the clarification.

I have the DT dtructure as follows before enhancement


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1

After enhancing the sructure it has to act like the below structure


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
       Field3        0..1

when i tried to create DT enhancement in which way i have to create the Enhanced structure to replicate the above structure


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
DTE1
       Field3        0..1       

or


DT1                 occurence
   Row              0..unbound
       Field1        1
       Field2        1
DTE1
       Row
            Field3        0..1       

former_member200962
Active Contributor
0 Kudos

Option1

Update:

You have to create a new object (Data Type Enhancements) in IR and then in there give the DT in which you want the changes to happen....also define the additional nodes in this new object and not in the original DT directly! ......just in case you want to know the procedure!

Edited by: abhishek salvi on Mar 4, 2010 1:39 PM

0 Kudos

Hi

Can I use data type enhacement without create data type. For example in external definitions where I already have an xsd.

Please help

Regards

Shahram

former_member200962
Active Contributor
0 Kudos
Can we use Data type Enhancement to extend our own Data types that are created by us or only to extend standard data 
type?

Yes we can enhance the DT created in IR.

We can then see the Enhanced Data type with additional fields.......these fields can be kept optional and so you need not worry about them when you reuse the structure.

former_member181985
Active Contributor
0 Kudos

check this link:

[http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/content.htm]