cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error ASSIGN_CASTING_ILLEGAL_CAST has occurred.

Former Member
0 Kudos

Hi Guru's,

When I am trying to execute RFC_READ_TABLE function module.After giving table name and execute, It is giving ' Run time error ASSIGN_CASTING_ILLEGAL_CAST '.

Could you please let me know what could be the cause.

Thanks,

Shivajiraju Penumatsa.

Accepted Solutions (1)

Accepted Solutions (1)

VJain
Active Contributor
0 Kudos

Hi Shivajiraju,

Apart from Roland's reply.

Note 382318 is very clear on the use of RFC_READ_TABLE. As you can see from this:
However, all this is quite immaterial, because the function is not mean to be publicly used anyway. It was only created to be used as a sample in various training courses, and is clearly flagged as "not released for customer".
Solution
Do not use function module RFC_READ_TABLE in the first place!
Please see attached note 109533.

Concerning this particular function module, as per information coming directly from the author, it is meant only to work with character fields and it will not be enhanced to handle other types.

You have two possibilities, to restrict the input to character fields or write your own function module enhancing the possibilities of RFC_READ_TABLE .

Also as detailed in attached note 758278:
"This function module is only for internal purpose ! Using this function module is at customers own risk and customer is responsible for adjusting this code to his system.

No warrenty is given on this Functionmodule RFC_READ_TABLE."

Thanks

Vikram

Former Member
0 Kudos

Thank you Vikram.

VJain
Active Contributor
0 Kudos

No Problem. You can mark as answered for this page if Roland's and mine answer helped.

Answers (2)

Answers (2)

roland_hennessy
Contributor
0 Kudos


Hi,

Please see SAP Note 382318. Not sure if you should using this function module RFC_READ_TABLE.

Kind regards,

Roland

Nicolas
Active Contributor
0 Kudos

Hello,

How did you call this function module ? In a custom development ? With SE37 ?

Best regards,

Nicolas

Former Member
0 Kudos

Hi Nicolas,

Thank you for your reply.

Now I am able to avoid run time error by passing the value NO_DATA = 'X' .

But   I am not getting data from Solman system to DEV system.

Thanks,

Shivajiraju Penumatsa.