‎2007 Apr 19 5:01 AM
In the Z.... include program for an user-exit i am unable to do validation because it is raising a syntax error . For example the statement
if bbp_iv_hd-company = DH00.is raising the following error.
Field "DH00" is unknown. It is neither in one of the specified
tables nor defined by a "DATA" statement.
‎2007 Apr 19 5:04 AM
‎2007 Apr 19 5:08 AM
‎2007 Apr 19 5:11 AM
Try to check with single quotes & use eq instead of =
Sandeep
‎2007 Apr 19 5:13 AM
Are u sure that the error is in that line??? double click on that to know the error line..
can u give some code before after the IF statement
‎2007 Apr 19 5:25 AM
if i_hd-company eq v_dh00.
If i_hd-currency = v_aud and
ti_it-gl_account = 7070101010.
MESSAGE ID sy-msgid Type S NUMBER sy-msgno
WITH gl_account currency.The line no#3 is raising error "Field "7070101010" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement".
‎2007 Apr 19 5:47 AM
r u looping at the internal table ti_it?
loop at ti_it.
if i_hd-company eq v_dh00.
If i_hd-currency = v_aud and
ti_it-gl_account = '7070101010'.
MESSAGE ID sy-msgid Type S NUMBER sy-msgno
WITH gl_account currency.endloop.
‎2007 Apr 19 5:48 AM
Hi,
Can you try assigning the value to a constant and using in the if condition.
Regards,
Anusha
‎2007 Apr 19 7:15 AM
‎2007 Apr 19 7:17 AM
Hi Anusha,
i have to declare a lot of constants if i need to replace the values with the constants.
‎2007 Apr 19 7:22 AM
‎2007 Apr 19 7:29 AM
Hi,
Remove the single cotes also then it will work since the field which you are comparing is the numeric field ..i think.
Regards,
Narla