Skip to Content
author's profile photo
Former Member

dynamic filling of date in info package selection screen

hi,

i have a strange prob, i selected join date as selection field in extract structure, and when i schedule the ods the join date slection field shud have that default values as current date and add one day to current date.

is anyone come across this sort of prob, pl help me out.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    May 30, 2004 at 06:43 PM

    Hi Anil,

    You have an option in the Infopackage selection options tab, where you can use ABAP routine to populate the fields in the date column as you like.

    Vijay reddy.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jun 08, 2004 at 09:45 AM

    Hi Anil,

    attached find some sample code to do populate selection data with abap dynamicaly.

    data: l_hv type /BIC/OIACHVERS.

    DATA: l_idx LIKE sy-tabix.

    DELETE l_t_range WHERE iobjnm = 'ACHVERS' AND

    fieldname = '/BIC/ACHVERS'.

    CALL FUNCTION 'Z_AC_WRITE_VERSION'

    EXPORTING

    p_is = 'BW'

    p_flag = 'R'

    IMPORTING

    p_hv = l_hv

    EXCEPTIONS

    not_found = 1.

    • OTHERS = 2

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    l_t_range-iobjnm = 'ACHVERS'.

    l_t_range-fieldname = '/BIC/ACHVERS'.

    l_t_range-sign = 'I'.

    l_t_range-option = 'EQ'.

    l_t_range-low = l_hv.

    l_t_range-high = ''.

    APPEND l_t_range.

    p_subrc = 0.

    hope this helps. regards michael

    Add comment
    10|10000 characters needed characters exceeded