11-02-2007 4:07 PM
Ok, what is wrong here:
REPORT ZBW_CHECK_DTGT_TEST .
tables /BIC/PZINF_DTST.
data: it_zinf_dtst like /BIC/PZINF_DTST occurs 0 with header line.
*data: dsn(60) type c .
data: flag_n(1) type c value '1'.
data: flag_y(1) type c value '0'.
data: dtst like /BIC/ZINF_DTST,
roll like /BIC/ZTIV_ROLL,
dtmt like /BIC/ZTIV_DTMT,
sts like BIC/ZRPT_STS,
con like /BIC/ZRPT_CON.
This is the error message I get:
The field "/BIC/ZINF_DTST" is unknown, but there is a field with the
similar name "/BIC/PZINF_DTST".
I already declared /bic/pzinf_dtst as a table and it is thinking it is a field???
11-02-2007 4:14 PM
Hi,
There is a synax error here :
dtst like /BIC/ZINF_DTST
I think you should write
dtst like /BIC/<b>P</b>ZINF_DTST
Regards,
Nicolas.
11-02-2007 4:14 PM
Hi,
There is a synax error here :
dtst like /BIC/ZINF_DTST
I think you should write
dtst like /BIC/<b>P</b>ZINF_DTST
Regards,
Nicolas.
11-02-2007 4:21 PM
no, if you look my table name is Pzinf_dtst
There is a field within Pzinf_dtst named zinf_dtst but is recommending I use the table name for the field? WTF?
11-02-2007 4:24 PM
Ok so you have to declare your field like this :
data dtst like /BIC/PZINF_DTST-ZINF_DTST
Nicolas.
11-02-2007 4:26 PM
11-02-2007 4:15 PM
Hi,
Using TABLES key word you can only refer to the DB tables. Is there any table in your system (SE11 transaction) with name /BIC/PZINF_DTST. If not then you can not use it with TABLES keyword.
Regards,
Atish
11-02-2007 4:15 PM
See my comments to your code
> Ok, what is wrong here:
>
>
REPORT ZBW_CHECK_DTGT_TEST
> .
> T.
>
> data: it_zinf_dtst like /BIC/PZINF_DTST occurs 0 with <b><-- not this</b>
> header line.
> *data: dsn(60) type c .
> data: flag_n(1) type c value '1'.
> data: flag_y(1) type c value '0'.
> data: dtst like /BIC/ZINF_DTST,<b>error is here</b>
> roll like /BIC/ZTIV_ROLL,
> dtmt like /BIC/ZTIV_DTMT,
> sts like BIC/ZRPT_STS,
> con like /BIC/ZRPT_CON.
>
> This is the error message I get:
>
> The field "/BIC/ZINF_DTST" is unknown, but there is
> s a field with the
> similar name "/BIC/PZINF_DTST".
>
> I already declared /bic/pzinf_dtst as a table and it
> is thinking it is a field???
Message was edited by:
Srinivas Adavi
11-02-2007 4:24 PM
Sri, I commented out the
data: it_zinf_dtst like /BIC/PZINF_DTST occurs 0 with header line.
and it is still giving me the SAME error
11-02-2007 4:30 PM
Hi,
try to replace this line
data: dtst like /BIC/ZINF_DTST,
with
DATA : DTST TYPE /BIC/PZINF_DIST-ZINF_DIST,
OR
DATA : DTST LIKE /BIC/PZINF_DIST-ZINF_DIST.
You can use LIKE if you declared the TABLES statement.
I hope this will solve the problem.
regards.