Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8076

Error in SELECT return

$
0
0

Hello,

 

I am using the following code to return the data from a specified KONZS:

 

TABLES lfa1.

 

DATA: gt_lfa1           TYPE TABLE OF lfa1.

 

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

     SELECT-OPTIONS: so_konzs FOR lfa1-konzs MATCHCODE OBJECT zshfi_konzs.

SELECTION-SCREEN: END OF BLOCK b1.

 

IF so_konzs IS NOT INITIAL.

     SELECT * INTO TABLE gt_lfa1 FROM lfa1 WHERE konzs IN so_konzs.

ENDIF.

The problem is this: when values ​​with the last digit of 0 are informed, it returns data where KONZS equals the number without the 0 end.

For example: twhen I enter to the SO_KONZS 14520-14530, are returned the following records (LFA1-KONZS):

1452

1453

14520

14521

14522

14523

14524

14525

14526

14527

14528

14529

14530

 

Anyone have any idea what might be happening?

Sorry my english

 

João Antônio Soares


Viewing all articles
Browse latest Browse all 8076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>