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 unknow 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

2 REPLIES 2

Former Member
0 Kudos

Hello Sridevi,

Just one try,

Please comment the statement:

*v_flag_sdext = 1.

And activate the enhancement first. Once it is done, uncomment the above stmt and try to activate it again.

Kindly let me know the result.

Regards

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

Are you trying it to activate from Sap Enhancement spot editor ?