cancel
Showing results for 
Search instead for 
Did you mean: 

SAP-Java Naming Conventions?

Former Member
0 Kudos

Hello!

ABAP-Programmers should use Z-Namespace for their own ABAP-programms.

Is it necessary to take notice of any special "SAP Java rules" for writing or deploying Java programms?

regards

Harald.

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Harald,

there is no such equivalent rule in the Java SAP world. Just don't use com.sap or more general com.sap* (for instance: com.sapportals.) as package starting name or deploy names (for instance, in the portal environment, don't name the PARs com.sap).

Hope it helps

Detlev

PS: Please consider to reward points on SDN for helpful answers or be responsive if they haven't been helpful, this also holds for your threads and Thanks in advance!

Former Member
0 Kudos

Harald,

Though Java will allow you to more freely name classes and packages you should take note of the naming conventions set forth by sun. For simple classes, functions, comments, and documentation this is a good starter link:

http://java.sun.com/docs/codeconv/html/CodeConventions.doc1.html

Answers (1)

Answers (1)

Former Member
0 Kudos

Web Dynpro uses prefixes "WD" (for API-classes) and "IWD" (for API-interfaces), so you should not use these for your own classes.

Apart from this, there are a number of naming conventions/recommendations for Web Dynpro applications, components etc. There is a document about this here in SDN.

Everything else should follow the known Java-naming standards from Sun.

Armin