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

Error while adding code in enhancement statement is not accesible

former_member182379
Contributor
0 Likes
536

Hi,

  I am doing one enhancment in VF01 include subroutin MV60AI0P_PAI_EXPORT_ITEM, here first I want to check the sy-tcode = 'vf01' I have added the code as below

IF SY-TCODE = 'VF01'.

ENDIF.

but system is giving me error message at line IF SY-TCODE = 'VF01' as statement is not accesible,  what can be the problem.

regards,

zafar

3 REPLIES 3
Read only

Former Member
0 Likes
503

please send part of the source code and you SAP ERP version

Read only

0 Likes
503

Hi,

Its solve, actually the probelm was i had added my code out of perform (module) , then i add my code inside the form routine of thet perform  then it works.

regards,

zafar

Read only

0 Likes
503

please close the thread if the problem was solved