2007 Oct 25 1:46 AM
Hi,
Can anyone please let me know what are conversion routines in BDC with the help of an example .
Thanks in advance .
Hi,
Can anyone please let me know what are conversion routines in BDC with the help of an example .
Thanks in advance .
2007 Oct 25 1:52 AM
A function module which convert the internal representation of a field into its external representation(Depending upon the user settings) and vice versa.
Example :
data : auart like vbak-auart.
auart = 'TA'.
CALL FUNCTION 'CONVERSION_EXIT_AUART_INPUT'
EXPORTING
input = auart
IMPORTING
OUTPUT = auart.
write:/ auart.
reverse it with 'CONVERSION_EXIT_AUART_OUTPUT'
Check the below link :
http://help.sap.com/saphelp_nw2004s/helpdata/en/07/d63a68db9110459d63c495b16f522e/frameset.htm
Thanks
Seshu
2007 Oct 25 1:53 AM
Hi,
Many times in BDC it happens that, if you pass the value, it may not contain leading zeros. So due to this, BDC fails as the value passed is not recognized.
In this case before passing value to BDC, we use Conversion routine to get correct value (usually with leading zeros) and pass the same to the respective screen.
Hope this helps.
ashish
2007 Oct 25 2:03 AM
Hi Prasad,
CONVERSION EXIT as the name suggest they are used for conversion. In SAP many fields have different format while storing in DB and when shown as an output on the screen. They are converted using these exits. These exits are assigned at the domain level of the field. To get its better understanding go to MATNR domain you will find EXIT MATN1 there.These exits are nothing but the FM.
Regards,
Atish