Skip to Content
0
Former Member
Aug 21, 2007 at 05:59 PM

Routine in Infopackage not working

41 Views

Hi all..

I wrote a routine in Infopackage with the selection Abap routine 6. for some reason the code is not selecting..i mean if the code has to get fisc year 2007, instead its getting all the records from all the years. i tested out the code in abap se38, it works fine, the function module is working fine, i am missing something here in infopackage, can anyone please let me know.

Here is the code.

data: l_idx like sy-tabix,

Year type /BIC/CS8ZCBFCOPA-FISCYEAR.

data : begin of itab occurs 0.

include structure /BIC/PZOCDPYCTA.

data : end of itab.

CALL FUNCTION 'ZBW_GET_FY_PKG_SELECTIONS'

EXPORTING

VTYPE = '010'

IMPORTING

ZOCDPYCTA = itab.

loop at itab.

read table l_t_range with key

fieldname = 'FISCYEAR'.

l_idx = sy-tabix.

l_t_range-SIGN = ' I '.

l_t_range-OPTION = ' EQ '.

l_t_range-LOW = itab-FISCYEAR.

*....

modify l_t_range index l_idx.

endloop.

p_subrc = 0.

The FM takes the input as 010 and gets all the records related to that..which is 2007 year records instead its getting all the records from all years..please help me.

Thanks

Vj