cancel
Showing results for 
Search instead for 
Did you mean: 

An Urgent Help

Former Member
0 Kudos

Hi,

I have a very urgent question to be answered.

I am using the HR_FEATURE_BACKFIELD  Function Module.

I have a customized feature as well as structure which i am passing to the above FM.

Feature = ZCNCR

Structure = zzth_feature_zcncr

This is a customized structure made up of BUKRS , MOLGA

And the design tree of the feature is classified as Molga->Bukrs

and it returns a key used to identify some unique row in another table.

 

But it is giving me a runtime error which is as follows on running :-

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE',

  not caught in

procedure "HR_FEATURE_BACKFIELD" "(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 field which is supposed to receive a structured parameter is

shorter than the structure of the parameter. This is not supported.

This is parameter no. 3 of the FORM "CALL_549B" in program

  "/1PAPA/FEAT100ZCNCR".

The actual parameter is 12 bytes long, the formal parameter 58 bytes.

I am populating the structure with values.

Accepted Solutions (0)

Answers (2)

Answers (2)

udaykumar_kanike
Active Contributor
0 Kudos

All i could say is that feature type should be T549B-NAMEN and your custom field ZCNCR should also be of type T549B-NAMEN.

cross check with other importing parameter type as well.

regards

uday

udaykumar_kanike
Active Contributor
0 Kudos

Hi Chandran,

           Check the function module import and export parameters and their type. You are getting this error because of Structure missmatch.

"

This is parameter no. 3 of the FORM "CALL_549B" in program

  "/1PAPA/FEAT100ZCNCR".

The actual parameter is 12 bytes long, the formal parameter 58 bytes.

I am populating the structure with values.

"

Hope it helps.

Regards

Uday

Former Member
0 Kudos

But i am not finding the way to remove the error. The documentation for the function module doesnt mention any specific rules for structure . if there is so please enlighten me.

Does the structure have to be of a certain type ?