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

Mysterious custom table

Former Member
0 Likes
1,399

Experts,

I have a custom table with date field. When I give date not equal to blank in SE16 screen and press execute icon, i see records in output.


Mystery: For above records there is no data that i can see on screen in date field meaning that ideally these records should not be picked.

I wrote a code snippet to select one of the above records from custom table & wrote the string length of date field using WRITE statement. I see that STRLEN is ZERO.

I am not able to understand why a blank date field record gets displayed in SE16 output when search is made for DATE NOT EQUAL TO BLANK.

Please share your valuable inputs.

BR,

Aspire

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,340

Experts,

I noticed 1 more thing. There is 1 more field in this table which is mysterious as well.

No of records which have this field as blank 167

No of records which have this field as NOT blank 13

Total no of records in this table 1267


Ideally 167 + 13 should be the total no of recs in the table which is NOT TRUE.

I am clueless about what value can be in the rest of records other than 167 + 13

BR,

Aspire

Experts,

I have a custom table with date field. When I give date not equal to blank in SE16 screen and press execute icon, i see records in output.


Mystery: For above records there is no data that i can see on screen in date field meaning that ideally these records should not be picked.

I wrote a code snippet to select one of the above records from custom table & wrote the string length of date field using WRITE statement. I see that STRLEN is ZERO.

I am not able to understand why a blank date field record gets displayed in SE16 output when search is made for DATE NOT EQUAL TO BLANK.

Please share your valuable inputs.

BR,

Aspire

9 REPLIES 9
Read only

Former Member
0 Likes
1,341

Experts,

I noticed 1 more thing. There is 1 more field in this table which is mysterious as well.

No of records which have this field as blank 167

No of records which have this field as NOT blank 13

Total no of records in this table 1267


Ideally 167 + 13 should be the total no of recs in the table which is NOT TRUE.

I am clueless about what value can be in the rest of records other than 167 + 13

BR,

Aspire

Read only

0 Likes
1,340

Hi Aspire

when you use the SE16 please consider the initial value and conversion exits of the field

in this case you are searching NOT BLANK in SE16 but when it executes it will search for date value NOT '00000000'

create a sample program and select the table in a internal table and check these values

also i assume you are using the alv grid to display the result, you can the change the view of SE16 setting SE16 Standard List to see the values in Setting ->User Parameters...

about the other field... what type is ?

Regards

MC

Read only

0 Likes
1,340

Marco,

Thanks a lot for your reply.

I can see your reply as a possible explanation for date field. Will check it one more time closely.

Other field is CHAR 3.

BR,

Aspire.

Read only

0 Likes
1,340

Experts,

I tried Activate & adjust table option (SE14 Tcode) but with no luck. I believe this can be because there is no changes made to table fields & this adjustment will not impact the existing records in table.

BR,

Aspire

Read only

former_member201275
Active Contributor
0 Likes
1,340

Please post a snapshot of your table here so i can see how it is declared i.e. the fields. Also a snap of the "Delivery and maintenance" tab from SE11 as well.

Read only

former_member183073
Active Participant
0 Likes
1,340

1. Check if there is any conversion exit in your fields.

2. just check the check conversion exit check box in se16 by going to settings->userparameters->check conversion exit.

3. might some problem in se16 screen, just regenerate the screen by changing the selection fields in the setting and the screen will regenerated.

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,340

Hi.

Symptoms of null fields.

Please check the history of this table did any one add a new fields at some point without using the "initial values" flag .

Also please check the on line help in se11 for "initial values" .

Regards.

Read only

Former Member
0 Likes
1,340

Hi,

Initial value for date field is '00000000' and not SPACE.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,340

A blank displayed field could actually been initial (date : 00000000) or even null.

So you could try

SELECT COUNT(*) FROM zmystery WHERE fieldate EQ space.
SELECT COUNT(*) FROM zmystery WHERE fieldate EQ '00000000'.
SELECT COUNT(*) FROM zmystery WHERE fieldate IS NULL.
SELECT COUNT(*) FROM zmystery.

Regards,

Raymond