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: 

Code chage

Former Member
0 Kudos

Hi,

Below is a code from the SAP ERP Central Component 5.0 version. I need to get it working for R/3 release 4.6C. Can anyone help me with this?

*********************************************************************

DATA area TYPE REF TO zselarea.

area = zselarea=>attach_for_read( ).

DATA t_ranges TYPE ace_field_ranges_t.

t_ranges = area->root->get_fields( ).

area->detach( ).

*********************************************************************

Thanks in advance...

Lilan

3 REPLIES 3

Former Member
0 Kudos

Hi Lilan,

Copy/ Create the class zselarea from the ECC to your 4.6C version for you make the code work.

Regards,

George

Former Member
0 Kudos

Try this:

1. Define area, zselarea and t_ranges as internal tables/ ranges.

***********************************

area[] = zselarea[].

LOOP AT area.

MOVE-CORRESPONDING area TO t_ranges.

APPEND t_ranges.

ENDLOOP.

REFRESH area.

FREE area.

************************************

Naveen

Former Member
0 Kudos

I tried to copy the class. But it gives lots of errors with table issues. So that was not possible.