Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Why does data types differ in Domain level and program level?

former_member664739
Discoverer
0 Likes
772

Why does data types differ in Domain level and program level?

1 ACCEPTED SOLUTION
Read only

lutzi3
Participant
615

There is not a real difference. The mapping between ABAP and Domain is here:

ABAP-Type -> Dictionary-Type

  • b, s, i, int8 maps to -> INT1, INT2, INT4, INT8
  • p maps to -> DEC (acc. length and decimals)
  • decfloat16, decfloat34 map to -> DF16_RAW, DF34_RAW
  • f maps to -> FLTP
  • c maps to -> CHAR (acc. length)
  • n maps to -> NUMC (acc. length)
  • d maps to -> DATS
  • t maps to -> TIMS
  • x maps to -> RAW (acc. length)

I think the different naming comes from the history: domains were used in the context of data base tables first and had to provide types which could be used in these data bases.

1 REPLY 1
Read only

lutzi3
Participant
616

There is not a real difference. The mapping between ABAP and Domain is here:

ABAP-Type -> Dictionary-Type

  • b, s, i, int8 maps to -> INT1, INT2, INT4, INT8
  • p maps to -> DEC (acc. length and decimals)
  • decfloat16, decfloat34 map to -> DF16_RAW, DF34_RAW
  • f maps to -> FLTP
  • c maps to -> CHAR (acc. length)
  • n maps to -> NUMC (acc. length)
  • d maps to -> DATS
  • t maps to -> TIMS
  • x maps to -> RAW (acc. length)

I think the different naming comes from the history: domains were used in the context of data base tables first and had to provide types which could be used in these data bases.