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

Error messages through BADI HRPAD00INFTY not reflected in Portal

Hi

We are on ESS 6 and using web dynpro based Iviews.

Various custom validations have been configured in R/3 via

BADI <b>HRPAD00INFTY</b> for leave request.

But those validations are not getting reflected when creating a leave through

leave request Iview in portal.I need all those custome R/3 validations

messages to appear in portal as well.

Regards

Mohamed Mansoor

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:24 AM

    Thanks For you reply

    In which method should I write the validations and more over the BADI has already been implemented via class CL_PT_ARQ_REQ.

    PT_ABS_REQ doesnt permit multiple use.

    Can you detail me more about it.

    Regards

    Mohamed Mansoor

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      > In which method should I write the validations and

      > more over the BADI has already been implemented via

      > class CL_PT_ARQ_REQ.

      write your validations in SIMULATE_VIA_BLOP method. You can find current record in IM_ATTABS_TAB. after ur validations, when u want to raise an error message use follwing code.

      CALL METHOD MESSAGE_HANDLER->ADD_MESSAGE

      EXPORTING

      IM_TYPE = 'E'

      IM_CL = 'HRTIM_ABS_REQ'

      IM_NUMBER = 'XXX'

      IM_PAR1 = 'SIMULATE_VIA_BLOP'

      IM_PAR2 = 'IF_EX_PT_ABS_REQ~SIMULATE_VIA_BLOP'

      IM_PAR3 = 'BLOP'

      IM_CONTEXT = ''

      IM_SUBCONTEXT = ''

      IM_CLASSNAME = 'CL_PT_ARQ_BLOP_ADAPTER'

      IM_METHODNAME = 'MESSAGE'.

      Here, IM_CL = 'HRTIM_ABS_REQ' is important.

      This is message class created using se93. and XXX is the message number.

      this should raise an error message on leave screen.

      Cheers!!

      Ashutosh

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:11 AM

    you will have to user leave specific badis and not the hrpad the validations have to be kept on leave badi PT_ABS_REQ..

    Message was edited by:

    Barin Desai

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:34 AM

    what is the check that you need to apply on leave.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:54 AM

    Hi

    There is a requirement that an employee cannot take casual leave and sick leave continously (i.e) if he has taken a casual leave on 21/11/2007 then he cannot apply for sick leave on 22/11/2007.In R/3 the validation is taken care in BADI .I need to perform the same in Portal .

    Regards

    Mohamed Mansoor

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 02:32 PM

    Thank a lot Ashutosh.

    If i write my code in the method which you mentioned above will it get called if i try to create a leave request from R/3 ? because now i have to write code in both places (ie) BADI HRPAD00INFTY as well as in the method which you have just told.

    Regards

    Mohamed Mansoor

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      > If i write my code in the method which you mentioned

      > above will it get called if i try to create a leave

      > request from R/3 ?

      NO...

      because now i have to write code

      > in both places (ie) BADI HRPAD00INFTY as well as in

      > the method which you have just told.

      This is the correct method. Just replicate the code. There is no way out.

      > Regards

      > Mohamed Mansoor

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 04:23 AM

    why do you wan to write in both places you shold write only in one. If you are looking at displaying the info on first page then there is a different method. so if you could answer the question I asked I can answer you better and clear.

    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.