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: 

syntax check error in the standard include

Former Member
0 Kudos

Hi,

I have modified one standard include using access key to insert one logic as per businness requirements.Now after inserting that code iam getting syntax error but while activating it is not showing the error and getting activated.

The include is V05XZZMO in that i have inserted code is as follows

FORM MOVE_USERFIELDS USING ZP.

CASE ZP.

WHEN 'VBRK'.

  • header

  • MOVE LVBRK-XXXXX TO LFAMTV-ZZXXXXX.

*{ INSERT GDVK934083 1

MOVE LVBRK-ZUONR TO LFAMTV-ZZZUONR.

*} INSERT

WHEN 'VBRP'.

  • item

  • MOVE LVBRP-XXXXX TO LFAMTV-ZZXXXXX.

*{ INSERT GDVK934083 2

MOVE LVBRP-MATWA TO LFAMTV-ZZMATWA.

*} INSERT

ENDCASE.

ENDFORM.

now it is throwing error saying that LFAMTV doesn't exist...when I double click on that it is taking me to the FM RV_INVOICE_VIEW_2 where it is defined....

Can anyone know the reason why it is throwing the error when we go for the syntax check but when u activate the program it is getting activated.. so can this error can be neglected?

Any help on this will be appreciated..

Regards,

Rohan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rohan,

Syntax check cannot be done on the INCLUDE's but you can do the syntax check on its main program.

You can only activate it and if there are any syntax error it will prompt that.

Regards,

Surinder

Edited by: SURINDER SINGH OBEROI on Mar 18, 2009 3:05 PM

6 REPLIES 6

Former Member
0 Kudos

Hi Rohan,

Syntax check cannot be done on the INCLUDE's but you can do the syntax check on its main program.

You can only activate it and if there are any syntax error it will prompt that.

Regards,

Surinder

Edited by: SURINDER SINGH OBEROI on Mar 18, 2009 3:05 PM

0 Kudos

Hi,

Thanks for your reply....Yes ur rite syntax check is done on its main program....but here vr least consider about the main program and we got a query saying why this error is occuring and wat is the solution for it....

So ,can u tell me why this error is occuring....

Regards,

Rohan.

former_member198275
Active Contributor
0 Kudos

Dear Rohan

Its not advisable to change the stnadard code, it will affect while upgradation and many more. You try with explicit enhancement there if you are using ECC6, try to find the point in the standard code and use explicit enhancement, and let it be the standard code as it is.

Former Member
0 Kudos

T.CODE :- UCCHECK

USING THIS T.CODE U CAN FIND OUT YOUR ERROR IN PERFECT PLACE.

Former Member
0 Kudos

Hi Rohan,

There are two possibilities,

when you double click the LFAMTV, its taking you to the FM, so that there might be activation problem in that FM. First check that FM is activated or not.

2.check the table LFAMTV thoroughly, whether its consisting all the fields which are like ZZZUONR,ZZMATWA. bcs in ur added code these two field are important.

Check the above two, hope your problem will resolve.

Regards

Arani Bhaskar

former_member404244
Active Contributor
0 Kudos

Hi,

First comment ur code and then activate the include.

Now put a break point in the form and then in the debug mode check the structre LFAMTV is visible or not.

if yes then once again add ur code and then activate the whole program.

and now once again debug it and see...., whether the values are updated to the strurure LFAMTV.

Regards,

Nagaraj