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

syntax check error in the standard include

Former Member
0 Likes
2,666

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
Read only

Former Member
0 Likes
1,998

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
Read only

Former Member
0 Likes
1,999

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

Read only

0 Likes
1,998

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.

Read only

Former Member
0 Likes
1,998

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.

Read only

Former Member
0 Likes
1,998

T.CODE :- UCCHECK

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

Read only

Former Member
0 Likes
1,998

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

Read only

former_member404244
Active Contributor
0 Likes
1,998

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