Application Development 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: 

FM UMC_CALDAY_TO_FISCPER

Former Member
0 Kudos

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.

8 REPLIES 8

Former Member
0 Kudos

Hi Reddy,

Make a ZFUGR rather than cloning this function module. Try and let me know.

Thanks,

Sai

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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....

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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