Skip to Content
avatar image
Former Member

FBCJ - To be posted on current date and 1 day before only

Dear All,

We have a peculiar requirement restricting user to pass back dated entries except (current date and one day before only).

We have got validation via OB28 for allowing user to pass the entry in current date only. but purpose is not served.

How can we fulfil this requirement for both current date and the previous 1 day only to allow user for posting.

Regards,

Hemangi.B

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 28, 2015 at 05:45 AM

    Hi Hemangi,

    I am sure you must be already knowing how to create a rule. Still I have marked the steps by the number of the sequence of instructions that you need to follow.

    1) Create a new rule, name

    2) Name it as per your naming convention

    3) Goto "Exits" tab.

    4) Ignore this step.

    5) Click on the "ABAP Routine" button. That shall take you to ABAP editor. From there click on the "Enhancement" button and check for implicit enhancements (as shown in the following screen shots). 6) Implement the enhancement (as shown in the last screen shot) and write your logic

        IF BKPF-BUDAT >= sy-datum - 1.

            B_RESULT  = B_TRUE.

        ENDIF.

    Hope this helps.

    Regards,

    Kiran


    Snip20151028_4.png (212.4 kB)
    Snip20151028_5.png (156.8 kB)
    Snip20151028_6.png (290.7 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kiran,

      Configuration is maintained as creating a custom rule in header level.I tried by placing above logic with break point but it is not triggering.

      If you already tried and working fine.Please guide us further more if we are not clear.

      Regards,

      Anand