Skip to Content
avatar image
Former Member

Why the name change for internal structures?

If I model a structure in the ESR, using a name like dtXYZ, with attributes FirstName and LastName, why does SAP change the names to

DT_XYZ, FIRST_NAME, LAST_NAME when you look at them in the internal view of SPROXY? The external names are not changed.

They appear to be placing an underscore when the case changes when creating the data type proxy (via SPROXY) internal view.

Ideas?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 04, 2009 at 10:07 PM

    Hi,

    While you are creating proxy, several ABAP objects are created,

    External view: is original view of service as it looks from outside.

    Internal view: ABAP objects created by SOA framework of SAP.

    Internal view is used by programmer for coding and framework is responsible between mapping external and internal view.

    Why SAP generate its object: these objects are as per naming rules followed by SAP (limits on number of char, size etc) and there are no rule how they should be generated (i.e underscore etc).

    There could be conflict as well with other objects thats why SAP ask to provide prefix so that conflict with other objects can be avoided.

    As a programmer/Service developer we are only interested in ABAP objects or internal view, rest is taken care by SOA framework of SAP.

    Regards,

    Gourav

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Well you are right there is apparently no reason to change name. But not always xml names and xsd types are compatible with abap data type and abap field name rules (i.e. lenght of string).

      I belive they change data type based on preset rule of verb, noun and adjective.

      So if you give something like FirstName it become First_Name.

      But if you give only Name it will remain Name (or NAME as it is not case sensitive in ABAP).

      So if you give fieldname which doesn;t make any sense like "xyzswdroeks" they will not be able to break it. And only breaking of it will be after 4-5 chars.

      But as I said before it is not a concern of ABAPer and outside world as nothing change for outside world and ABAPer will focus on internal view.

      Regards,

      Gourav