cancel
Showing results for 
Search instead for 
Did you mean: 

Reusable Structures

silentbull
Participant
0 Kudos

Hi,

I am using PI7.0.

In a SWCV, I have two namespaces which needs to use one of the common structures. What is the best practice to achieve this?

Should I create a third namespace and create the structure and then use it across both of the other namespaces. Or is it ok to create the generic structure in one of the namespace and simply cross reference it.

Do i have any issues in using DT and Mt across namespaces in same SWCV? 

Also I am interested in understanding and organizing the different ways of arranging your SWCV and namespaces?

Like in a typical project, what are the best practices to assign objects, based on module or project etc., Any links would be good to understand.

Regards

Sam

Accepted Solutions (0)

Answers (5)

Answers (5)

iaki_vila
Active Contributor
0 Kudos

Hi Sam,

Perhaps, you should to think about if the strucuture and more important, the functionality is similar they should belong to the same namespace. The namespace is way to organize your objects with similar functionality, like the developmente class in ABAP. I agree that there will be a few identical strucutures between namespaces but Muniyappan said it is not bad idea to copy them. However, i think it is more useful to share mapping templates and you have this possibility: http://wiki.scn.sap.com/wiki/display/XI/Mapping+templates+in+PI+7.0

Regards.

agasthuri_doss
Active Contributor
0 Kudos

Sam,

The below thread - discussion will help

http://scn.sap.com/thread/1797670

PS :

SAP has standard Core and Global Data Types (GDT) which reused across all software components. These Global Data Types are defined in the Software Component SAPGLOBAL under namespace http://sap.com/xi/SAPGlobal/GDT and can be downloaded from Service Marketplace Software Distribution Center and imported into the ESR. 

Cheers

Agasthuri

Muniyappan
Active Contributor
0 Kudos

Hi Sam,

Do i have any issues in using DT and Mt across namespaces in same SWCV? 

there will be no issues. if you want to use common objects across namespaces in one SWCV you can create new namespace and you can keep objects there. as it is used in one SWCV you can keep in under namespace.

if you look for using common objects across namespaces in more than one SWCV then you can go for separate SWCV.

Regards,

Muniyappan.

former_member184720
Active Contributor
0 Kudos

Yes. It's nice to have a separate SWCV to maintain all the common objects.

You can create the dependency so that the objects under the new SWCV can be used across all others.

For design best practises you can refer to the below document :

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0715b1d-68a6-2b10-9f8f-86c5b059c...

former_member192892
Active Contributor
0 Kudos

Hi Sam,

I would prefer keeping all common reusable objects in a separate SWCV. Stuff like function libraries and utility UDFs can be used across different projects

Regards

Varun