‎2007 Oct 26 5:26 AM
HI,
I created a function module with an input parameter of type IMA_POSNR which is SAP defined. This function module works fine when I test. But when I try to use this function module in a new method which I created in a business object, it displays an error message saying that "Data type IMA_POSNR cannot be used for methods" I guess this must be regarding the conversion routine of this domain.
Can somebody help me on this?
Thanks,
Max
‎2007 Oct 26 5:35 AM
Hi Max,
yes you are right it is because of conversion routine only.
If you go to the one of FM of conversion routine you will find OCCUS 4 is used with table defination which is no longer supported with ABAP OO>
Regards,
Atish
‎2007 Oct 26 5:41 AM
Thanks Atish.
So, how I can fix this issue?
Can you please give me with some good idea?
Thanks,
Max
‎2007 Oct 26 5:44 AM
Hi Max,
You just left with one option, Create your own domain-data element.
Or you can just try raising this with SAP and if they have some solution or note availble they will tell you.
Regards,
Atish
‎2007 Oct 26 5:44 AM
Hi Max,
You can create your own Data element & process it.
Explicity call the conversion routine FM in your method.
Best regards,
Prashant
‎2007 Oct 26 6:10 AM
HI Prashant and Atish,
I created my own domain and data element with the same name ZPOSNR.
Still, the method fails to accept this function module saying "Data type ZPOSNR cannot be used for methods". Can you please help me on this?
I haven't worked on conversion routies also. So, I will happy if you kindly give me some good details how to proceed.
Thanks,
Max
‎2007 Oct 26 6:14 AM
Hi max,
you might have assigned the same conversion routine to your domain. You need to create your own conversion exit in the same guideline of SAP but just you need to make some correction in your code to suit for ABAP OO.
below is link on how to create conversion routines.
http://help.sap.com/saphelp_erp2004/helpdata/en/33/206bc8012e11d3b495006094192fe3/content.htm
Regards,
Atish
‎2007 Oct 26 6:16 AM
Also refer this thread
https://forums.sdn.sap.com/click.jspa?searchID=6227924&messageID=3676218
Regards,
Atish