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: 

debugger not recognizing my fields within a table!

Former Member
0 Kudos

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???

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

8 REPLIES 8

Former Member
0 Kudos

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.

0 Kudos

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?

0 Kudos

Ok so you have to declare your field like this :

data dtst like /BIC/PZINF_DTST-ZINF_DTST

Nicolas.

0 Kudos

Nic got it everyone. Thanks! (points to nic)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.