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

ESS Payslip view 4 days prior to the paydt

Our requirement is to view the payslip 4 days prior to the pay date. We have already implemented the BADI XSS remittance PROVIDE_FILTERED_RGDIR method .

We had run the payroll for the current month(April). The pay date is 15th of April. Though I have changed the newest_date to sy-datum + 4 (today's date 11 + 4 = 15) so that the entry gets into EX_FILTERED_RGDIR, we are unable to get the current month payslip. From Portal ESS, the current month pay slip displayed is blank and when previous statement button is clicked, the month of march payslip is displayed correctly. When checked the same from ECC, the current month is getting displayed correctly.

loop AT IM_IN_RGDIR into wa_rgdir .

newest_date = sy-datum + 4.

If wa_rgdir-paydt GE newest_date



Can you please help me in this regard.




Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 12, 2011 at 07:55 PM

    Thanks for the reply Siddharth! As you said every thing is in place. The current month paydt 15tth April is getting into ex_filtered_rgdir[], but it is not getting displayed in ESS portal. It should display today (12th of April ) that is 3 days prior to the 15th of April of ex_filtered_rgdir-paydt.

    Is there anything I'm missing here.




    Add a comment
    10|10000 characters needed characters exceeded

    • If you want 3 days, it should be

      newest_date = sy-datum + 4.

      since you are using Greater than or equal to while deleting the records from ex_filtered_rgdir.

      Also, make sure to activate the BADI along with all the methods inside the BADI.

      Like Siddharth has suggested above, go through sap note 901850 - where it talks about implementing all the methods in the BADI even if you are not planning on using all the methods.

      - Shanti

  • Posted on Apr 12, 2011 at 04:26 PM

    Default implementation of BADI XSS_REM_INTERFACE is stored in

    class CL_DEF_IM_XSS_REM_INTERFACE. If you go to SE24, enter this

    class and then select method PROVIDE_FILTERED_RGDIR, you will be able to

    see the default implementation regarding the 3 days I mentioned before:


    DATA: newest_date LIKE sy-datum.

    ex_filtered_rgdir[] = im_in_rgdir[].

    CLEAR ex_message.

    • remove all in-periods where not:

    • a) paydt is at the past

    • b) paydt is in the near future (3 days)

    newest_date = sy-datum + 3.

    DELETE ex_filtered_rgdir WHERE paydt GE newest_date.

    Please, when implementing this BADI do not forget to mantain the other

    methods as explained in note 901850.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 03:10 AM

    Thanks Siddharth and Shanthi..

    It was the data issue of that particular user. For other users it is working.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.