03-18-2009 9:33 AM
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.
03-18-2009 9:35 AM
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
03-18-2009 9:35 AM
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
03-18-2009 10:05 AM
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.
03-18-2009 11:11 AM
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.
03-18-2009 11:20 AM
T.CODE :- UCCHECK
USING THIS T.CODE U CAN FIND OUT YOUR ERROR IN PERFECT PLACE.
03-18-2009 11:29 AM
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
03-18-2009 11:45 AM
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