cancel
Showing results for 
Search instead for 
Did you mean: 

Defalting start time and end time based on absence type selected

Former Member
0 Kudos

Dear all,

Greetings.

I have a doubt in ESS leave request .i will just brief my scenario.

We have 2 absence type APL first half leave and APL second half leave .when user will select the absence

type in leave request according to that start time and end time should get defaulted automatically .I try to badi PT_ABS_ARQ

but all methods triggers only after clicking on review button.Please give me some hints .I need a BAdI which triggers after selecting absence type .also i want to ask a thing the start time end time is coming defaultly as 1200 to 1200 where we can control that.

Waiting for your valuable inputs.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

You have to create a custom iview if above CODE doesnt default as required.

changes in JAVA code for the iview, there is no other solution

Former Member
0 Kudos

Thanks Sidharth and Bala.

actually i dont no much about iviews creation .basically a solution i was thinking was somehow we can default start time end time field for 900 to 10.00 then i can hide that fields and when user clicks on review i have implemented a BAdI which will calculate start and end time according to work and break schedule and will show in review display .i have done the badi code just i need to default the fields to 9 00 to 10 00 since it is half day leave and defaultly 12 to 12 is displaying .if we can controlthis defaulting through portal then pls let me know.

anyways thanks both for the input i can atleast give explanation to my manager

Former Member
0 Kudos

Raj,

without changing the webdynpro for java code this requirement cannot be done completely

Thanks

Bala Duvvuri

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi dattaraj ,

Can you please let me know how did you achieve the same.

Thanks

Akshay

Former Member
0 Kudos

Hi Dattaraj,

Can you please let me know how did you resolve the same?

I have exactly the same requirement.

Need to deliver it immediately.

Please help.

Thanks

Akshay

Former Member
0 Kudos

resolved

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

There is no other possibility, If you want to default, I already pasted the code

PT_ARQ_REQUEST_CHECK

here

PERFORM clear_clock_times

USING im_pernr

CHANGING

im_request-ins_item-begin_time

im_request-ins_item-end_time.

Only possiblity

Former Member
0 Kudos

Hi.

Check the table v_t554s_web and the Wiki following:

http://wiki.sdn.sap.com/wiki/display/ERPHCM/Validations%2bfor%2bESS%2bLeave%2brequest

Regards

Former Member
0 Kudos

Raj,

UI is built using webdynpro for java.so when you select some value from absence type dropdown you need to trigger on select event of the dropdown using webdynpro for java code and inside that you can call some rfc fm and fetch the values.you cannot invoke the backend code directly when you change the dropdown values

Thanks

Bala Duvvuri

Former Member
0 Kudos

Thank you Bala ,

So you mean I have to customize web dynpro for leave request..

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

There is no exit for defaulting the time in the Leave request

however there is a table V_PTARQ_TCONSTR

and V_PTARQ_TPROCESS for partial absences on how to record

you can check this

Function Module PT_ARQ_REQUEST_CHECK

ERFORM clear_clock_times

USING im_pernr

CHANGING

im_request-ins_item-begin_time

im_request-ins_item-end_time.

Former Member
0 Kudos

Hi sidharth,

Thanks for the reply.

I created the enhanced the code for the function module pt_arq_check but that is also called after clicking on review only.

Former Member
0 Kudos

Hi Friends,

can you please share some ideas on this......