Skip to Content
avatar image
Former Member

Data selection in info package using ABAP routine.

Hi,

when we are scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO Sy-Datum),in the selection tab in schedule i want to write the abap routine (type 6).please can any one have this type of code please sedn to me asap.

this is very urgent.delivery is tomorrow.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 17, 2006 at 10:37 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 17, 2006 at 10:42 AM

    hi Lekha,

    try following code.

    • seems you post the same question twice, one posting is sufficient. and please don't forget to reward helpful answers.

    data: l_idx like sy-tabix.

    read table l_t_range with key

    iobjnm = '0CREATEDON'.

    l_idx = sy-tabix.

    *....

    DELETE l_t_range

    WHERE iobjnm = '0CREATEDON'.

    L_t_RANGE-SIGN = 'I'.

    L_t_RANGE-OPTION = 'EQ'.

    • if not work, try

    • L_t_RANGE-OPTION = 'BT'.

    • BT = between

    • last 6 month

    L_t_RANGE-LOW = sy-datum - 180.

    • current date

    L_t_RANGE-HIGH = sy-datum.

    append l_t_range.

    modify l_t_range index l_idx.

    p_subrc = 0.

    $$ end of routine - insert your code only before this line -

    endform.

    Add comment
    10|10000 characters needed characters exceeded