Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3323

ESS Leave Request message through badi PT_ABS_REQ

$
0
0

Hi experts,

 

I am using the Enhancement Implementation  : PT_ABS_REQ in which

i am using the method IF_EX_PT_ABS_REQ~SIMULATE_VIA_BLOP for my validations.

 

i am trying to display an error in ESS/MSS portal through this method.

 

but getting the dump in the portal

Access using a 'ZERO' object reference is not possible.

 

there is also a method called IF_EX_PT_ABS_REQ~PROCESS_MESSAGES for error handling

 

kindly help me to know the correct way to display error in portal

 

the code i am using for display error :

 

DATA : IM_MESSAGE_TAB TYPE TABLE OF PTREQ_MESSAGE_STRUC.

  WA_IM_MESSAGE_TAB-TYPE = 'E'.

WA_IM_MESSAGE_TAB-MESSAGE = 'You Cannot Apply CL With Any Other Leave'.

APPEND WA_IM_MESSAGE_TAB to IM_MESSAGE_TAB.

 

 

   CALL METHOD message_handler->get_messages

     EXPORTING

*       im_transform_msg = 'X'

*       im_pernr         =

       im_appid         'ESS_LR'

     IMPORTING

       ex_message_tab   = IM_MESSAGE_TAB

     EXCEPTIONS

       webmo_missing    = 1

       pernr_missing    = 2

       others           = 3

           .

   IF sy-subrc <> 0.

 

   ENDIF.


DUMP : Access using a 'ZERO' object reference is not possible.


Viewing all articles
Browse latest Browse all 3323

Trending Articles