12-08-2008 2:08 PM
Hi Gurus,
I am a BI user, I have copied FM UMC_CALDAY_TO_FISCPER to Z version( reason for copy is the FM is not exixting in BI system) and activated and executed. I am running into shortdump.
below is the short dump details:
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught in
procedure "ZUMC_CALDAY_TO_FISCPER" "(FUNCTION)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The call to the function module "DATE_TO_PERIOD_CONVERT" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "I_PERIV".
The field "I_PERIV" specified here is a different
field type
Do i need to include DATE_TO_PERIOD_CONVERT funciton module in custom funtion group. Any help greatly appreciated.
Regards,
Reddy.
12-08-2008 2:14 PM
Hi Reddy,
Make a ZFUGR rather than cloning this function module. Try and let me know.
Thanks,
Sai
12-08-2008 2:14 PM
if you can copy the FM , you need to copy whole Function group UMC_TIME_CHARACTERISTICS....
copy the function group UMC_TIME_CHARACTERISTICS also with your FM
12-08-2008 2:19 PM
Hi Chenna kesava Reddy,
There are so many function modules in that group, Can i do mass copy. if yes, Please can you give me steps.
Regards,
reddy.
12-08-2008 2:26 PM
Go to SE80
select funtion group form drop down list
give the function group name and siplay
below object name right click the function group and copy....
12-08-2008 2:31 PM
I have cross checked and the FM UMC_CALDAY_TO_FISCPER exists iin BI (BI 7)
Could you rechek at your end and revert ?
Copying the entire FUGR may not be the ideal solution to your problem.
12-08-2008 2:16 PM
use try and catch to find out what's the exact error
probably the DATE_TO_PERIOD_CONVERT function module, where the parameters has not been properly declared..
Check it and give the exact error what you are getting
12-08-2008 2:17 PM
It suggests DATE_TO_PERIOD_CONVERT is already existing in BI system.
Please check the field type of I_PERIV in DATE_TO_PERIOD_CONVERT and make the changes accordingly in ur z-FM
12-08-2008 2:37 PM
Hi,
it seems that you pass a wrong parameter to I_PERIV already when calling ZUMC... I tried myself to copy the function and I used as test values: '02' for I_PERIV and '20080101' and I don@t receive the short dump you mentioned.
Also be sure that your copied function is activated.
Hopefully my answer helps you,
Florin