Conversion routine is link to the domain.
A domain is link to a data element
A field of a table could be link to the data element.
So take a field of a table: for example MARA-MATNR. Go in the data element (SE11 -> Table : MARA; Display; double-click on the data element corresponding of the field MATNR (MATNR also)).
You could show the domain of the data element, and double click on it (MATNR also).
Now in the screen of the domain (you could access directly using SE11 --> domain : MATNR), you show a converrsion routine : MATN1. If you double click; they give you 4 functions.
Now, what is a conversion routine : It's only the transformation of what you see and what is really in the database. MATNR is a good example, because you show a material number for example 123456 bu in fact, in the database, it's store as 00000000000123456.
The function CONVERSION_EXIT_MATN1_INPUT convert 123456 to 000000000000123456
-> Conversion of what a user ask to SAP to what SAP need to use in the database.
The function CONVERSION_EXIT_MATN1_OUTPUT convert 000000000000123456 to 123456.
-> Conversion of what SAP used to what the user must see.
If you go in SE16, you could select in the parameters user; to show or not the field exit, that means, if you select, you will show the long version of the material number if you unselect your will show the short one.
Fred
- SAP Managed Tags:
- ABAP Development