Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP-HR

Former Member
0 Likes
369

Hello Experts,

I have a requirement in the project in which i have to make an enhancement in the report:

Ensure all current workers (EE groups 1, 2, and 😎 have their IT 105 subtypes 0001, 9998, and 0010 fields populated. If subtype 9998 or 0010 is missing, log an error, email to UAS ([email protected]) and perform no further action; if subtype 0001 is missing, create it using the same value, start date, and end date as in subtype 9998.

i am new to Hr.can any onekindlyhelp me regarding this.

regards

Prasun Rudra

Hello Experts,

I have a requirement in the project in which i have to make an enhancement in the report:

Ensure all current workers (EE groups 1, 2, and 😎 have their IT 105 subtypes 0001, 9998, and 0010 fields populated. If subtype 9998 or 0010 is missing, log an error, email to UAS ([email protected]) and perform no further action; if subtype 0001 is missing, create it using the same value, start date, and end date as in subtype 9998.

i am new to Hr.can any onekindlyhelp me regarding this.

regards

Prasun Rudra

1 REPLY 1
Read only

Former Member
0 Likes
339

Hi Prasun

Hope your program is using the PNP LDB.

Here's the snippet of how your code looks, after implementing of the logic req.,

-


rp-provide-from-last p0105 '9998' pn-begda pn-endda.

if pnp-sw-found <> 1.

" Email to [email protected] and reject

reject.

endif.

rp-provide-from-last p0105 '0010' pn-begda pn-endda.

if pnp-sw-found <> 1.

" Email to [email protected] and reject

reject.

endif.

rp-provide-from-last p0105 '0001' pn-begda pn-endda.

if pnp-sw-found <> 1.

read table p0105 into wa_0105 with key subty = '9998'.

  • Use the FM HR_INFOTYPE_OPERATION, by passing these values for the parameters mentioned

INFTY = '0105'

NUMBER = wa_0105-pernr

SUBTYPE = '0001'

VALIDITYEND = wa_0105-endda

VALIDITYBEGIN = wa_0105-begda

RECORD = wa_0105

OPERATION = 'INS'.

-


Hope this helps !

~ Ranganath

endif.

Edited by: Ranganath Ramesh on Jan 14, 2008 8:41 AM