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: 

Field unknown error in enhancement

former_member671009
Participant
0 Kudos

Hi Experts,

Am implementing one enhancement in standart function module.


ENHANCEMENT 1  Z_ENHANCEMENT_CASE.    "active version
  CASE ISEGM-SEGNAM.
     WHEN 'Z1SDEXT'.
       v_flag_sdext = 1.
     WHEN C_Z1BPTRANNO.
       v_flag_tranno = 1.
       v_z1bptranno = ISEGM-SDATA.
       v_transferno = v_z1bptranno-zz_transfer_no.
   ENDCASE.



ENDENHANCEMENT.

Variable declaration in top.


ENHANCEMENT 1 Z_ENHANCEMENT_TOP. "active version

DATA: v_transferno type ekko-zz_transfer_no,

v_z1bptranno type z1bptranno,

v_flag_sdext(1) type c,

v_flag_tranno(1) type c.

DATA: c_z1sdext like edidd-segnam value 'Z1SDEXT',

c_z1bptranno like edidd-segnam value 'Z1BPTRANNO'.

ENDENHANCEMENT.

$$-End: (1)----


$$

while checking for syntax it showing error as "Field "V_FLAG_SDEXT" is unknown. It is neither in one of the specified tables nor defined by a DATA statement". When i

click on the field it is taking me to the top where i have declared the field in enhancement. What is the problem.

Thanks & Regards

Sridevi S

1 REPLY 1

Former Member
0 Kudos

Hello ,

Please make sure both parts of the source code are activated. Otherwise activate anyway and see the effect of the enhancement whether it is giving desired result.

Regards,

Abhijeet