This discussion is locked
0 Replies Latest reply: Feb 29, 2012 2:30 PM by Devendra Singh Chauhan RSS

Table Contol: Showing All records instead of select statement conditions

Devendra Singh Chauhan
Currently Being Moderated

Dear ABAP Gurus N Experts,

 

I am using a table Control to modify the entries of a table. But here it showing all the records instead of records which full fill the select conditions.

 

I am using following to filter the data.

 

FORM Get_data.

 

SELECT

    container

    shipment_no

    bill_of_lad

    bl_date

    DATE_OF_PORT

    ARRIVAL_NO1

    ED_TRUCKING

 

INTO CORRESPONDING FIELDS OF TABLE itab from zshipment01 where date_of_shipment in date

and  IS_ARVD_PORT <> 'X'.

 

endform.

 

Which is used at as follows:

 

data: IS_ARVD_PORT(1) type c.

 

data: wa type zshipment01.

 

data: ok_code type sy-ucomm,

      save_ok like ok_code.

 

SELECT-OPTIONS: DATE FOR zshipment01-date_of_shipment.

 

start-of-selection.

 

perform get_data.

 

&----


*&      Module  STATUS_0020  OUTPUT

&----


  •       text

----


call screen 20.

 

module STATUS_0020 output.

 

case sy-ucomm.

   when 'EXIT'.

      leave program.

 

   when 'SAVE'.

 

Please suggest, where am i wrong.

 

I am new to ABAP, I have made the search, but failed. If this is not the right Forum than redirect me to to the right forum.

 

Early response will be highly appreciated.

  • => Not appreciated*

 

With thanks,

 

DSC

 

Moderator Message: Still basic post. Please read the Rules of Engagement of these forums before further posting.

 

Edited by: kishan P on Feb 29, 2012 6:59 PM