Skip to Content
0
Former Member
Nov 15, 2007 at 01:01 PM

Why data is not fetching?

134 Views

Hi Guys,

Can you please look into the below code and tell me why data is not fetching from ANLA table even though there are 20 records?

This is the program

TABLES: anla.

TYPES: BEGIN OF ty_anla,
        bukrs TYPE bukrs,
        anln1 TYPE anln1,
        anln2 TYPE anln2,
        anlkl TYPE anlkl,
        ord43 TYPE ord43,
        ord44 TYPE ord44,
        anlue TYPE anlue,
       END OF ty_anla.

 DATA: git_anla TYPE TABLE OF ty_anla.

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS: s_anln1 FOR anla-anln1,
                s_anln2 FOR anla-anln2.
PARAMETERS:     p_anlkl TYPE anla-anlkl,
                p_bukrs TYPE anla-bukrs OBLIGATORY,
                p_ord43 TYPE anla-ord43 ,
                p_ord44 TYPE anla-ord44 ,
                p_anlue TYPE anla-anlue .
SELECTION-SCREEN: END OF BLOCK b1.

  SELECT bukrs anln1 anln2 anlkl ord43 ord44 anlue
   FROM anla INTO TABLE  git_anla
    WHERE bukrs = p_bukrs
      AND anln1 IN s_anln1
      AND anln2 IN s_anln2
      AND anlkl = p_anlkl
      AND ord43 = p_ord43
      AND ord44 = p_ord44
      AND anlue = p_anlue.

Thanks in advance,

Satish