BOR - How to instantiate EMPLOYEEI, EMPLOYEESU, ABSENCE, etc

Munday,Sherie J. MUNDAYSJ at airproducts.com
Mon Jul 2 10:52:33 EDT 2007


Cristiana,
Please try the object EMPLOYEET, you only need the personnel number and
date.  Also be certain that you have all required security to view the
employee, including structural on your position if required.
Best of Luck,
Sherie

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Cristiana D'Agosto
Sent: Thursday, June 28, 2007 8:00 PM
To: SAP Workflow Users' Group
Subject: RE: BOR - How to instantiate EMPLOYEEI, EMPLOYEESU, ABSENCE,
etc



Hi Jocelyn, 

I am not an ABAP-er...I used to be an SAP HR Functional Consultant that
got so frustrated with a Workflow Consultant that kept telling me that
things couldn't be done that I decided to learn Workflow (that was at
Westpac!) - and here I am - 6 years later, still learning Workflow! 

With the assistance of your OO Blogs, I have already built 2 classes
that I am using in my workflows. 

SAP delivers several classes for HR e.g. CL_HRPA_INFOTYPE_0019 but I
couldn't figure out how to 'use' this class either - hence we built a
BOR for it. I really don't know why I haven't been able to instantiate
any of the standard delivered SAP BOR that has the key attributes: 
Personnel number 
Subtype 
Object ID 
Lock indicator 
To 
>From 
Record number 

I must be doing something really silly. 

I might build the class for it instead, but I am still curious as to why
i can't instantiate the SAP standard BOR... 

Any other ideas are more than welcomed! 

Cheers 

Cristiana
_________________________________
Cristiana d'Agosto
IBM Global Business Services
Mobile:  +61 417 927 224
cristiana.dagosto at au1.ibm.com 



"Dart, Jocelyn" <jocelyn.dart at sap.com> 
Sent by: sap-wug-bounces at mit.edu 

29/06/2007 09:37 AM 
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>


To
"SAP Workflow Users' Group" <sap-wug at mit.edu> 
cc
Subject
RE: BOR - How to instantiate EMPLOYEEI, EMPLOYEESU, ABSENCE, etc

	




Well Cristina, If you are on ECC 6.0  how about... ditching the BOR
altogether and creating ABAP OO classess instead of BOR object types.
You can then call HR_READ_INFOTYPE or the equivalent BAPI where
available (e.g. BAPI_EMPLOYEE_GETDATA, BAPI_EMPLCOMM_GETDETAILEDLIST)
from your class, completely control whether HR Structural authorisation
is used or not, and not have to deal with a whole heap of historical red
herrings from EMPLOYEET and BUS1065. 

Cristina I know you are an ABAP-er - read my blogs on ABAP OO for
Workflow and you will find it is very simple to put a class together
quickly. 

Regards,
Jocelyn 

________________________________

From: sap-wug-bounces at mit.edu on behalf of Cristiana D'Agosto
Sent: Thu 28/06/2007 3:10 PM
To: SAP Workflow Users' Group
Subject: RE: BOR - How to instantiate EMPLOYEEI, EMPLOYEESU, ABSENCE,
etc



Hello Jocelyn, 

I changed it as you suggested, logged out, logged on again and still get
the message 'Object does not exist'. 

We are on ECC 6.0 

Any other ideas? My new object was created by copying from EMPLOYEESU
(just like we did at Dept of Housing - gee that was sooooo long ago!) -
I generated the object, saved, refreshed buffers, the works. 

Cheers,

Cristiana
_________________________________
Cristiana d'Agosto
IBM Global Business Services




"Dart, Jocelyn" <jocelyn.dart at sap.com> 
Sent by: sap-wug-bounces at mit.edu 

28/06/2007 02:44 PM 
Please respond to
"SAP Workflow Users' Group" <sap-wug at mit.edu>


To
"SAP Workflow Users' Group" <sap-wug at mit.edu> 
cc
Subject
RE: BOR - How to instantiate EMPLOYEEI, EMPLOYEESU, ABSENCE, etc


                                 




Cristina, Check HR structural authorizations aren't killing you.  Put
yourself in table T77UA with profile ALL. 
Jocelyn

________________________________

From: sap-wug-bounces at mit.edu on behalf of Cristiana D'Agosto
Sent: Thu 28/06/2007 10:07 AM
To: SAP Workflow Users' Group
Subject: BOR - How to instantiate EMPLOYEEI, EMPLOYEESU, ABSENCE, etc



Hi all, 

i am sure this is something silly that I might be forgetting to do... 

Several of the HR Objects have the following key: 
Personnel number 
Subtype 
Object ID 
Lock indicator 
To 
>From 
Record number 

I have created a new object type to represent Infotype 0019 and set the
key as above. I checked table PA0019 and entered the appropriated values
in the attributes when I tried to Create Instance via SWO1. 

I am in SWO1 and trying to 'test' the new object type but not getting
anywhere. I then tried to instantiate the SAP delivered ones (i.e.
EMPLOYEEI, EMPLOYEESU, ABSENCE) and getting nowhere as well. 

Any ideas on what I might be missing? 

Sorry if this is a silly question & thanks for any help! 

Cheers

Cristiana


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070702/782b2f10/attachment.htm


More information about the SAP-WUG mailing list