Skip to Content
author's profile photo Former Member
Former Member

Customer Exit variable - default value and range

hi,

I have a requirement to create a variable which its default value is current month and the range of the variable is only one year before. That's mean, F4 should display one year before and not all the period.

I think it possible to do by customer exit, but how I can define the default value?

Best Regards,

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 04:31 PM

    below is the sample code for your requirement.

    -


    IF I_STEP = 1.

    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'

    EXPORTING

    I_DATE = SY-DATUM

    I_MONMIT = 00

    I_PERIV = 'Z4'

    IMPORTING

    E_BUPER = ZPER

    E_GJAHR = ZYR.

    ENDIF.

    -


    ZPER is the the current period and ZYR is the current year.

    concatenate zper and zyr and pass it to L_S_RANGE-HIGH

    concatenate zper and ZYR1(substract one year ZYR-1) and pass it to L_S_RANGE-LOW.

    assign points if it helps.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 04:36 PM

    Mohamad,

    make setting in infoobject "F4 values from Master data tablesin Bex Tab".

    go to SPRO>BIW>Reporting Relevant Settings-->Set F4 help and Hierarchy for time char.

    change the time interval from last to year future date.

    Hope this helps.

    all the best.

    Regards,

    Nagesh Ganisetti.

    Add comment
    10|10000 characters needed characters exceeded