Application Development and Automation 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: 
Read only

set cursor error during sap upgrade.

Former Member
0 Likes
332

Hi friends,

During upgrade from 4.6 to ecc6 I am getting an error in some of the module pool. This is because of SET CURSOR statement. The issue is that actually the screen has fields which are mapped from an internal table. Now some of the fields of this internal table are of type decimal (or other types apart from character). Now in ecc6 the SET CURSOR field <fieldname> syntax requires that field should only be of character type earlier this compulsion was not there so the error is coming.

What can be the possible solution for this other than changing the field type.

Hi friends,

During upgrade from 4.6 to ecc6 I am getting an error in some of the module pool. This is because of SET CURSOR statement. The issue is that actually the screen has fields which are mapped from an internal table. Now some of the fields of this internal table are of type decimal (or other types apart from character). Now in ecc6 the SET CURSOR field <fieldname> syntax requires that field should only be of character type earlier this compulsion was not there so the error is coming.

What can be the possible solution for this other than changing the field type.

1 REPLY 1
Read only

Former Member
0 Likes
310

Hi Rahul,

Try this ,

data: fname(20) type c value ' fieldname other than character type'.

set cursor fname.

Please reward points if you achieve your solution.

Rergards,

Rajesh.