Mass create Employee with BP
Hello,
for testing cProjects I have to create several employees and create a business partner for them. What is the best way to do this? Is it by creating the employee with pa30 and create the bp via report hr_sync_person or are there better ways? Is the a possibility to import the employees via csv-file?
Thx, Van
Hi,
You can use LSMW for Mass creation of Employees.
For creating BP out of Employees, hr_sync_person is good option.
Or even you can use PFAL for transferring data from HR to BP
For this you need correct Message Type
Niranjan
Let me know if it helps !!!
Similar Messages
-
Creating Employee with Foreign currency
HI HR gurus
Our company code currency is INR and till now employees were paid in INR. Now we got new requirement that is , we have to create some new employees with currency SGD (Singapore dollar) . with this we want to generate all MIS in SGD only .Posting can happen in INR after converting as per exchange rate.
Kindly let me know the possibilities and alternatives.
Thanks in advance
SnehaCreated another company code
-
Create employee with detached infotype framework
Hello,
I'm desperately trying to create a new employee with the decoupled infotype framework, without success.
I try to save IT0000 and IT0003 (as secondary record) at first, but when I call the 'if_hrpa_masterdata_bl~get_infty_container' method, a 'cx_hrpa_missing_infty_data' exception is raised because the framework can not find any IT0003 record for the new employee (of course, since I'm trying to create it!).
So I can't do any insert since I can't get any container...
Thanks in advance.
MathieuSo, isn't there a way to create an employee with the detached infotype framework?
Here is the code I used to try to create an employee in the system:
*-- Get business logic from masterdata factory
CALL METHOD cl_hrpa_masterdata_factory=>get_business_logic
IMPORTING
business_logic = lo_masterdata_bl.
TRY.
CREATE OBJECT lo_message_list.
*-- THIS IS WHAT DOESN'T WORK. Since I can't get a container, I can not do anything else.
lo_masterdata_bl->get_infty_container(
EXPORTING
tclas = c_employee_tclas
pskey = ls_pskey
massn = '00'
massg = '00'
no_auth_check = abap_true
message_handler = lo_message_list
IMPORTING
container = lo_infty_container
is_ok = success
*-- Message management
*-- Update old data with new one
lo_infotype_container ?= lo_infty_container.
lo_infty_container ?= lo_infotype_container->modify_key( ls_pskey ).
lo_infotype_container ?= lo_infty_container.
lo_infty_container ?= lo_infotype_container->modify_primary_record( pnnnn ).
IF pnnnn2 IS NOT INITIAL.
lo_infty_container ?= lo_infotype_container->modify_secondary_record( pnnnn2 ).
ENDIF.
*-- Insert record
CALL METHOD lo_masterdata_bl->insert
EXPORTING
massn = space
massg = space
update_mode = ls_update_mode
no_auth_check = abap_true
message_handler = lo_message_list
IMPORTING
is_ok = success
CHANGING
container = lo_infty_container.
*-- Flush
IF flush_immediately EQ abap_true.
CALL METHOD lo_masterdata_bl->flush
EXPORTING
no_commit = space.
ENDIF.
*-- Message management
CATCH cx_hrpa_violated_assertion INTO lo_exception.
*-- Message management
ENDTRY. -
How to create two employees with same name as supplier record?
Dear all,
We need to create a supplier record for an employee so that we can issue invoice for pretty cash payment. If there are 2 employees with same name, how can we create supplier records for these 2 employees? The system does not allow duplicate supplier name.
Please advise.
Regards,
HYHello,
In R12 it is possible to create 2 employee with same name but different employee number.
And also possible to create these 2 employees as suppliers in Payables.
HTH,
Vik -
How to create an employee with a specific effective_start_date with api?
Hello,
I'm trying to create an employee through the hr_employee_api.create_employee (R12 Apps)
In Forms, if we want create it in a different date than sysdate, we use the "Alter effective date" screen... what this does is to copy into global.g_session_date variable the value we set.. and I suppose that this date is what api takes as sysdate to create an employee with desired effective_start_date.
But.. how to set it through Plsql procedure that call to create_employee api? p_per_effective_start_date is an out parameter... But after following the code through internal apis.. I didn't get to find where is that value set...
Any ideas?
If no one is passed, it's set to sysdate.. but what we want is to set this date to one specific...
Thanks,Hi again,
sorry for a "quick" conclusion...
Although the session date wwill be set inserting in fnd_sessions.. the effective_start_date returned ..continues with the value of hire_date.
I've checked the screen behavior and it inserts directly into PER_ALL_PEOPLE_F (when we have a "normal" employee, not CWK) through per_people11_pkg.insert_row1 procedure.
So.. is there anyway with create_employee api to create an employee (CORRECTION p_datetrack_update_mode) with hire_date different from p_effective_start_date??
Interesting issue...
Regards. -
Create Employee code with the mix of alphabets & numeric
Hai,
Is there any possibility to create Employee code with the mix of alphabets & numeric instead of the system generated employee code in employee master data? If so, pls explain.
Any suggestion is appreciated.
Thanks,
Parvatha Solai.NHi Solai,
You can do a work around for it. Just Leave the Employee ID field as it is. Create a new User Defined field (Alpha Numeric Type) And make it visible on the the employee master data form.
Step2 : Depending upon your need write the code that is if it should be auto generated write the code for else leave it blank for the user to enter the employee code.
Step3: In before action = True. Make the newly created field as mandatory and check whether the value in the field is unique.
Refer Route Class. Hope you understand
Regards,
P. Anand
Edited by: Anand peter on Jan 2, 2012 11:59 AM -
HR Integration with CRM doesn't create employee in CRM
Hello all;
We are using SAP CRM 5.0 SP08 and SAP ECC 6.0. I am trying to setup the HR-CRM integration and did everything that must be done in my opinion. The IDOC is created succesfully from the ERP side via PFAL and BD87 in CRM shows "green" status records for the IDOC but no business partner is created. I read the blog /people/vikash.krishna/blog/2006/10/15/replicating-hr-master-data-part-1 , examined the SAP notes 934372, 312090, 550055 but there is no result. May you please help me in solving the problem?
Best Regards,
ErkanHi Erkan
Did you follow all the following steps
Setting up Transfer of Employee (HR Master) from R/3 to CRM
1. Logical system XXX assigned to R/3 client XXX. Logical system YYY assigned to CRM client YYY view through SCC4
2. Create RFC Destination YYY for CRM client YYY in R/3 and
Server ID with user details and client YYY.
3. Transaction code SALE : Application Link Enabling (ALE)  Modelling and Implementing Business Processes  Maintain Distribution Model and Distribute Views. (Direct transaction code : BD64)
Go to change mode and select Create Model view.
You get a popup. Fill in the details Technical name, short text and validity
Select Add message type from the application tool bar.
Fill in the following details
Model view : HRCRM
Sender logical system : XXX
Receiver logical system : YYY
Message type : HRMD_ABA
Note : Only this message type works for employee transfer.
4.Save the model. From the same screen select the distribution model and from the menu Environment  Generate partner profiles
Dont change anything in the next screen. Simply Execute.
4.Distribute the distribution model HRCRM
Select the distribution model. From the menu bar, Edit  Model View  Distribute
You get a dialog showing the receiver logical system. Execute.
You get a log Model view HRCRM has been created in target system YYY
5.Go to the CRM system and check up whether this model has been created.
Transaction code BD64
The model has got copied. No changes can be made in CRM
6. Generate partner profiles for the distribution model in CRM by selecting
Environment  Generate partner profiles.
In the next screen, do not make any changes and Execute.
Partner profiles can be seen in transaction WE20
<b>Delta Download Settings</b>
7. So far, the above settings will ensure the initial download. However for any changes / new employees to be transferred, i.e delta changes, changes pointers need to be activated.
In R/3, Transaction code SALE, Application Link Enabling (ALE)  Modelling and Implementing Business Processes  Master Data Distribution  Replication of Modified Data  Activate Change Pointers Generally (BD61)
This activates change pointers globally for all message types.
8. In R/3, Transaction code SALE, Application Link Enabling (ALE)  Modelling and Implementing Business Processes  Master Data Distribution  Replication of Modified Data  Activate Change Pointers for Message Types
Activate change pointer for message type HRMD_ABA
9. CRM : Number Assignments. Generally, there are 3 types of number assignments (also called switches) when business partners are created.
1 The system uses the number from the general internal interval of the number
range object BU_PARTNER
2 The system uses the number from a specific internal interval of the object
3 The number is transferred from HR and a prefix is added. In this case, a specific external interval, which must be defined as XX00000000 (upto
XX99999999), is used (where XX denotes any two letters).
The number range object for all switch positions is BU_PARTNER, with the interval depending on the switch value.
For switch value 1, the system uses the internal standard interval, otherwise for switch values 2 and 3 you must also create a grouping (transaction BUC2) for these intervals. For the system to be able to connect the grouping and the number range interval, the name of the grouping must be exactly the same as the name of the corresponding number range interval (the name of the grouping is contained in the first column of the table). If you select 3 (HRALX/PNUMB = 3) for the number assignment of busienss partners of the employee role, create HRALX/PSUBG switch manually in table T77S0.
In table T77S0, HRALX/ONUMB is used to set the number assignment for organizational units and HRALX/PNUMB is used to set the number assignment for employees.
Create a number range ZZ
Transaction code BUC2. Create a grouping of the same ID as that of the number range. Eg. Number range ID : ZZ and grouping ID should also be ZZ
In table T77S0, maintain the following combinations
HRALX-PNUMB = 2
HRALX-PSUBG = ZZ
10. Make the following customizing changes in CRM
Transaction code SM30 : Table T77S0
Group Sem Abbr Value Abbr
HRALX HRAC X Activate HR Integration with CRM
HRALX OBPON ON Activate integration between Business partners and Org Units
HRALX PBPON ON Integration between business partners and employees
HRALX OPROL BUP004 Role definition for org unit Business partner
HRALX PPROL BUP003 Role definition for Employee Business partner
HRALX ONUMB 1 Number range assignment for org units
HRALX PNUMB 2 Number range assignment for Employees
HRALX PSUBG ZZ Number range grouping only if PNUMB is not 1.
11. Create Employee Master in R/3. Employee master consists of Infotypes. The mandatory infotypes are Actions, Address, Personal data and Organizational Assignment.
Transaction code : PA30
12. In R/3 Initial Download : SE38 RHALEINI
Plan version : 01
Object type : P Person (always)
Object ID : Employee ID eg. 1
Receiver Partner no. : YYY
Select further details
You get all the data transfer details
13. In CRM, transaction code PP01 View HR Master objects
You see that the employee 1 has got transferred. To see the corresponding business partner go to the infotype Relationships (the first row)
Screen 2 gives you the business partner ID in CRM
14. Now change the employee master in R/3. Execute program RBDMIDOC in R/3 to send the changes over to CRM
Put message type HRMD_ABA and Execute
15. All subsequent changes in R/3, i.e changing an existing Master or creating a new one goes through directly by program RBDMIDOC.
16. After all employees are transferred to CRM from R/3 only then its safe to execute initial download CUSTOMER_REL
If an Employee responsible 2 is replaced by 3 in the customer master in R/3, then in CRM, the same is not replaced. Only difference that the sales area assignment is no longer there for the replaced employee in transaction BP relationships.
Hope this would help.
Regards,
Rekha Dadwal
<b>You gain a point for every point that you reward. So reward helpful answers generously</b> -
Problem while working with Store Manager (while Creating Employee) on VISTA
Hi
Is anyone workin on Windows Vista (for the Store Manager)?
I am using Vista for the said application but the system always hangs whenever I try to create a new employee with Store Manager. Can anyone help me out with any solution so that it doesn't hang ?
The steps I am following is as follows-
1. Go to Store Manager GUI > Administartion > Employee Maintenance.
2. Click on the Create new.
3. Key in the entries.
4. Here the p'lem comes into picture.
5. When I try to switch over to next entry the system hangs.
Please help me out.
Edited by: Shantanu Sinha on Apr 10, 2008 9:58 AMHi srm_2010,
From your description, you fail to set up SQL Server AlwaysOn Availability group in Windows Server 2008 R2 cluster. The error 41105 could be caused by several factors, such as insufficient account permissions and so on.
To resolve this issue, firstly, I recommend you check the prerequisites, restrictions, and recommendations for AlwaysOn Availability Groups according to this
article.
Secondly, as the error message indicates, please disable the AlwaysOn feature in SQL Configuration Manage on both nodes, restart the SQL Server service. Then enable the AlwaysOn feature and restart the SQL Service again. This time set up AlwaysOn Availability
Groups again and please note the following things.
1. Ensure that the AvailabilityGroup name is defined as a different one from your Windows Cluster name.
2. Make sure that SQL Server service account has full control permission on the Window Cluster, which is described in this
blog.
However, if the error persists, please post the SQL Server error log for analysis. Additionally, if you encounters any errors when configuring Windows Cluster, I recommend you post the question in the Windows
server clustering forum at
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverClustering . It is appropriate and more experts will assist you.
Thanks,
Lydia Zhang -
Hi all,
I got requiremet to mass upload employee photos from UNIX server to Documentum via sap archive link.
To do this, I am using these function modules:
SCMS_UPLOAD : to upload photos from application server and stored it in one internal table ( which is in binary format )
ALINK_DOCUMENTS_CREATE_DIALOG : results the docid and repository id ( throught this all documentids got stored in
content repository server)
SCMS_DOC_CREATE : used to store all documents in Content repository server id.
ARCHIV_CONNECTION_INSERT : establishes the conenction between repository and sap object
As far as I know , regarding first and second function modules (SCMS_UPLOAD and ALINK_DOCUMENTS_CREATE_DIALOG) which are used for same purpose ( i.e., to upload only the difference is popup window for second function module .So which one should I have to use among them.
Which function module should I have to use to store all documents in Content repository server?after using first or secod function module,here I used 'SCMS_DOC_CREATE'.Is this correct?
Could you please guide me whether the above mentioned function modules sequence are correct or not for my requirement or should I have to use some other function modules?
Thanks in advance for your helpful answers
Edited by: Harika Sriram on Feb 24, 2011 12:45 PM
Moderator message: cross post locked.
Edited by: Thomas Zloch on Feb 24, 2011 1:21 PMTo perform a mass document upload and link, a program was developed.
This program works independent from the business object and is able to:
- look for document in a file directory (frontend or backend)
- store them into the content repository customized
- creates a link to a named business object identified with a key
which gets it from the file name of the document.
This program is called ZOA_UPLOAD_AND_LINK and you can find more
information on this program in the note 685520.
KR,
Karen. -
Hiring new employee with HR_MAINTAIN_MASTERDATA
Hi,
I am trying to hire new employee with HR_MAINTAIN_MASTERDATA. For now, I only gives the mandatory values of the infotype 0002 in proposed_values and parameters to the FM.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = no_emp_int
massn = '01'
actio = 'INS'
tclas = 'A'
begda = sy-datum
endda = '99991231'
* OBJPS =
* SEQNR =
* SPRPS =
* SUBTY =
werks = '1000'
persg = '1'
persk = 'D9'
* PLANS =
dialog_mode = '1'
* LUW_MODE = '1'
no_existence_check = 'X'
* NO_ENQUEUE = ' '
IMPORTING
return = return
* RETURN1 =
* HR_RETURN =
TABLES
proposed_values = it_prop_val
* MODIFIED_KEYS =
When it is executed, it gives me the error:
'No data available for A 00007787 0003' where 00007787 is the employee number. My guess is that 0003 is for the Payroll status (0003) infotype. I thought it would be automatically created with the FM.
When I change the dialog_mode parameter to '0', no error appears but, the employee data isn't saved i.e. I cannot access it with PA30 or PA40. It says 'Personnal number not yet assigned'.
So, I'd like to know how to save data correctly and why dialog_mode '1' or '2' failed everytime.
Thanks a lot for your answers, points will be awarded as it fits my needs!Patrick
My guess is that this FM HR_MAINTAIN_MASTERDATA will not create all 4 infotypes (0, 1, 2 and 3 as I think all those 4 are mandatory for every employee). I would say that you need to specify data for each infotype separately. You can in fact create all those 4 infotypes in separate calls of FM. I was doing this some time ago (with calling FM 4 times) but I was using different FM - HR_INFOTYPE_OPERATION.
The obligatory fields for each infotype depends on the setting in you system so you need to find this out by your-self.
As per infotype 0003 do not forget to set properly field VIEKN - see feature IVWID otherwise maintenance of created employee may not be possible.
One last thing - you may try to use IDOC HRMD_A for employee creation. This way is much faster than using FM's. But be careful no data check/validation is done when you pass an IDOc to application (which maybe an advantage in your situation).
Andrzej -
Problem in Creating Employee as a supplier in backend by AP supplier
Hi friends,
Im facing issue in creating Employee as a supplier in backend through AP supplier interface, as im getting the below error like
Employee_id is invalid and Employee info is invalidThis is the codings that i followed to perform that interface, but it didnt worked it seems.
DECLARE
L_VENDOR_REC_TYPE AP_VENDOR_PUB_PKG.R_VENDOR_REC_TYPE;
L_SUP_SEQ number;
L_MSG_COUNT NUMBER;
L_MSG_DATA VARCHAR2 (4000) := '';
L_RETURN_STATUS VARCHAR2 (1);
L_VENDOR_ID AP_SUPPLIERS.VENDOR_ID%TYPE;
L_PARTY_ID NUMBER;
BEGIN
SELECT AP_SUPPLIERS_INT_S.NEXTVAL INTO L_SUP_SEQ FROM DUAL;
L_VENDOR_REC_TYPE.VENDOR_NAME := 'Terrence Schreiber';
L_VENDOR_REC_TYPE.EMPLOYEE_ID := 18;
-- L_VENDOR_REC_TYPE.segment1 := 18;
L_VENDOR_REC_TYPE.VENDOR_TYPE_LOOKUP_CODE := 'EMPLOYEE';
L_VENDOR_REC_TYPE.INVOICE_CURRENCY_CODE := 'INR';
L_VENDOR_REC_TYPE.PAYMENT_CURRENCY_CODE := 'INR';
L_VENDOR_REC_TYPE.TERMS_NAME := 'N30';
L_VENDOR_REC_TYPE.VENDOR_INTERFACE_ID := L_SUP_SEQ;
-- l_vendor_rec_type.party_id := 6487;
AP_VENDOR_PUB_PKG.CREATE_VENDOR (
P_API_VERSION => 1.0,
P_INIT_MSG_LIST => FND_API.G_FALSE,
P_COMMIT => FND_API.G_FALSE,
P_VALIDATION_LEVEL => FND_API.G_VALID_LEVEL_FULL,
X_RETURN_STATUS => L_RETURN_STATUS,
X_MSG_COUNT => L_MSG_COUNT,
X_MSG_DATA => L_MSG_DATA,
P_VENDOR_REC => L_VENDOR_REC_TYPE,
X_VENDOR_ID => L_VENDOR_ID,
X_PARTY_ID => L_PARTY_ID
commit;
DBMS_OUTPUT.put_line ('Vendor Return Status ---> ' || L_RETURN_STATUS);
DBMS_OUTPUT.put_line ('Vendor Message Count ---> ' || L_MSG_COUNT);
DBMS_OUTPUT.put_line ('Vendor ID --->' || L_VENDOR_ID);
DBMS_OUTPUT.put_line ('Party ID --->' || L_PARTY_ID);
IF L_MSG_COUNT = 1
THEN
DBMS_OUTPUT.put_line ('Vendor Message Data ---> ' || L_MSG_DATA);
ELSIF L_MSG_COUNT > 1
THEN
FOR I IN 1 .. L_MSG_COUNT
LOOP
DBMS_OUTPUT.put_line(I || '. '
|| SUBSTR (
FND_MSG_PUB.GET (
P_ENCODED => FND_API.G_FALSE
1,
255
END LOOP;
END IF;
END;
Also i referred for the above error in the metalink with the following ID, that also dint worked
[ID 1400877.1
[ID 977651.1 ]Can friends, anyone help me to solve this problem.
Thanks
Brgds,
MiniHi
Navigation: Supplier > Entry > Create Supplier > Employee Name
Responsibility: Payable Manager
Regards
Senthilkumar C
Edited by: Senthilkumar Chellamuthu on Jul 24, 2012 3:16 PM -
To Create employee master data.
Hi,
How to create employee master data from scratch in SAP-HCM through BAPI's. Then we need to insert data in infotype 0000, 0001 and 0002 for that employee.
Thanks in advance.
Regards,
Rajesh Kumatfirst check, if customizing for all fields is done.
You will need a action type for hiring a person with infotypes 0000, 0002, 0001.
Infotype 0001 is not so easy, because many checks are done in modul pool.
The number range for PERNR can be set to internal or external (its your decision), transaction PA04.
if you create a new PERNR you may wish to keep the old (legacy) one. you can use infotype 0032 or 0105, add it to the hiring action.
If your legacy data comes with a flat file LSMW is a good tool to import master data. -
Hello
I am using Hibernate 4, Spring 3 , JSF 2.0 and Weblogic 10.3.6
When I start weblogic server and server starts successfully, however whenever it starts publishing application, I am getting the following exception.
Error creating bean with name
'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0'
defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException:
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'entityManagerFactory'defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/
SharedCacheMode;
Caused By: java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()
Ljavax/persistence /SharedCacheMode; at
org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:38) at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:525)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManager I have the following in applicationContext.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="net.test" />
<!-- Data Source Declaration -->
<bean id="DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass" value="oracle.jdbc" />
<property name="jdbcUrl" value="jdbc:oracle:thin:@server:1521:DB" />
<property name="user" value="scott" />
<property name="password" value="tiger" />
<property name="maxPoolSize" value="10" />
<property name="maxStatements" value="0" />
<property name="minPoolSize" value="5" />
</bean>
<bean
class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
<!-- JPA Entity Manager Factory -->
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="DataSource" />
<property name="packagesToScan" value="net.test.entity" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="true" />
<property name="generateDdl" value="false" />
<property name="databasePlatform" value="${jdbc.dialectClass}" />
</bean>
</property>
</bean>
<bean id="defaultLobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler" />
<!-- Session Factory Declaration -->
<bean id="SessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="DataSource" />
<property name="annotatedClasses">
<list>
<value>net.test.entity.Department</value>
<value>net.test.entity.Employees</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
</prop>
</props>
</property>
</bean>
<!-- Enable the configuration of transactional behavior based on annotations -->
<tx:annotation-driven transaction-manager="txManager" />
<tx:annotation-driven transaction-manager="transactionManager" />
<!-- Transaction Config -->
<bean id="txManager"
class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="SessionFactory" />
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>
<context:annotation-config />
<bean id="hibernateStatisticsMBean" class="org.hibernate.jmx.StatisticsService">
<property name="statisticsEnabled" value="true" />
<property name="sessionFactory" value="#{entityManagerFactory.sessionFactory}" />
</bean>
<bean name="ehCacheManagerMBean"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" />
<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
<property name="locateExistingServerIfPossible" value="true" />
</bean>
<bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter"
lazy-init="false">
<property name="server" ref="mbeanServer" />
<property name="registrationBehaviorName" value="REGISTRATION_REPLACE_EXISTING" />
<property name="beans">
<map>
<entry key="SpringBeans:name=hibernateStatisticsMBean"
value-ref="hibernateStatisticsMBean" />
<entry key="SpringBeans:name=ehCacheManagerMBean" value-ref="ehCacheManagerMBean" />
</map>
</property>
</bean>
</beans>
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.test</groupId>
<artifactId>myappp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>myappp</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
<properties>
<spring.version>3.1.1.RELEASE</spring.version>
</properties>
<dependencies>
<!-- Spring 3 dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- JSF library -->
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- Primefaces library -->
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>afterwork</artifactId>
<version>1.0.8</version>
</dependency>
<!-- Hibernate library -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.1.0.Final</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<!-- Oracle Java Connector library -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
</dependency>
<!-- Log4j library -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.4</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>1.2.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.extensions.cdi.core</groupId>
<artifactId>myfaces-extcdi-core-api</artifactId>
<version>1.0.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>4.0.1.Final</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.0.6</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<!-- source output directory -->
<outputDirectory>target/metamodel</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>In Weblogic 10.3.6 I have enabled JPA2 support by adding the following in commEnv.cmd
@rem Enable JPA 2.0 functionality on WebLogic Server
set PRE_CLASSPATH=%BEA_HOME%\modules\javax.persistence_1.1.0.0_2-0.jar;
%BEA_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-1.jarApplication which works on WLS 10.3.6 is http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_dev.zip and the one which is not working is
http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_win32.exe.
How can I resolve these errors and exceptions? Any help is highly appreciable.
ThanksLooks like you might have a spelling error in your spring config, or are trying to set a read-only property. BdasInterfaceManagerImpl has been configured as having a method called setBdasInterfaceJdbcDao() : does it?
By the way, we now know that you're writing code for JP Morgan - there's a slight risk that this could bite you in the @ss at some point (there are some malicious people around) you might want to take that into consideration next time! -
Create employee vendor to post net salary
Hi Experts,
We have a client requirement where they want to post employee salary net salary to employee vendor. Currently i have configured employee salary to go to balance sheet account.
Can someone please tell me how to create employee vendor in HR and then post net salary to employee vendor account so the HR and finance can see employee wise ledger.
Really appreciate any help.
Regards,
JyotiJyoti,
If you will refer your message, it is cleared that vendor of this PERNR is not created, In FI end, for every pernr they create vendor, so you please coordiante with FI people to resolve the issue,
This is a very simply issue, dont know why your FI people is treating like.
1. No creditor with the search key 1000 LFB1 PERNR 00100005 has been found
2. No vendor found for this selection
3. Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL
4. Error in document: HRPAY 0000000102 CLNTAVD510
5. No data was transferred in parameter ACCOUNTPAYABLE
Further read the doc. of Vendor accuount, you will get more clarity, Please go thru the same and discuss with your FI people
There are two kinds of vendor accounts available:
Fixed vendor accounts: Employee grouping for account determination offers the most precise means of control for posting to fixed vendor accounts.
Employee vendor accounts: Posting to employee vendor accounts enables posting for a specific personnel number.
In this step, you make entries in table T030 for the assignment of vendor accounts to symbolic accounts.
Example
Fixed vendor account
You want to deduct dues to various unions from the employees in your enterprise. For each union, you have set up a specific wage type for dues and a specific symbolic account. In this step, you assign a fixed vendor account to each of these symbolic accounts.
Employee vendor account
You want to post dues to a different vendor account for each employee. To this effect, you have created a symbolic account for all employees. In this step, you specify how the corresponding employee vendor accounts are determined.
Requirements
You have created the required vendor accounts in Financial Accounting.
You have carried out the step Define Symbolic Accounts. In that step, you created symbolic accounts with the relevant account assignment types (KF for fixed vendor accounts, K for personal vendor accounts). In that same step, you flagged the indicator EG-depend for symbolic accounts to which you want to post in line with the Employee grouping for account determination.
If you want to post to employee vendor accounts, you have entered the relevant personnel number in one of the following fields in the vendor master data of Financial Accounting. We recommend that you use the Personnel number field. If you use another field, you must enter the personnel number with leading zeros.
Personnel number
Search term
Telephone 2
Data line
Teletext number
Standard settings
There are no standard settings for posting to vendor accounts. If, in the step Define Symbolic Accounts, you have not created any symbolic accounts with the account types KF or K, you do not have to carry out the step Assign Vendor Accounts.
Activities
1. Enter the required chart of accounts.
2. To make settings for the posting procedure Personnel posting to vendors (HRK), choose Rules
3. Choose Posting key. Enter the posting key for postings to vendor accounts or copy the default values (21 for debit posting and 31 for credit postings).
4. Choose Accounts. Make the corresponding entries in the table T030.
a) If you want to assign a fixed vendor account to a symbolic account, and if required, an employee grouping, enter the number of the vendor account in the Acco column.
b) If you want to assign an employee vendor account to a symbolic account, and, if required a employee grouping, enter the relevant key (see table below) in the Acco column.
Personnel number in field (Vendor master data) Entry in the Account column (T030)
Personnel number *0002
Search term *0001
Telephone 2 *0003
Data line *0004
Teletext number *0005 -
Creating Employees from HR as Vendors in FI
Dear All,
I'm trying to create the Employee personnel records from the SAP HR system and also i want at that time in SAP Finance my as Vendors is been created .Or we can say Creating Employees from HR as Vendors in FI .
I have this type of req am not aware about how i can do this kindly help me to sort this issue...
thanks
regardsHi.
I think you want to create employee vendor while creating employee through PA40 which should be automated by the system.Employee vendor is created in MM not in FI.There is not standard automation of empluee vendor creation while creating employee in the system so you have to create a z-program this job has to be schedule at midnight so whatever employee has been created in the moring employee vendor will be created in the night.Consult with the ABAP & MM guy for the same.
We have also the same requirement & such program has been developed but now it is not working properly.
Regards,
Snita
Maybe you are looking for
-
Add new Item in VL02n using idocs - delivery returns
Hello Experts, I am using idoc type DELVRY03. I need to add a new line item while changing the outbound delivery (vl02n) "USING the IDOCs only" and not by adding it manually in the outbound delivery change (vl02n).This item does not prexist in sales
-
How to combine two fonts in a type logo?
I've created a client logo in ID, consisting of two typefaces. The client name is in Trajan Pro. The logo must also include a "Registered" symbol (the encircled R) following the name. Unfortunately, using Trajan Pro in superscript mode doesn't look
-
How do I dump a screen saver?
I have a screen saver that is NOT from Firefox, and I'd really like to get rid of it as it is annoying. Please tell me how I can dump it permanently. I have already uninstalled EVERYTHING associated with it, but it is still there interrupting my use
-
Work without popup when calling webhelp?
Is there a way to start robohelp on a certain topic, with the navigation pane(pointing to this topic) without using the javascript API (RH_ShowHelp) only by using an URL ? (with params). Also generating no popus whatsoever. The reason we need this, i
-
Where can I find a mail that's stored in quarantine?
We have a user that doesn't get all the mail he should. I turned on forwarding all mails that Spam Assasin gets, and soon one of the mails got caught there! So, I got the message: "The message has been quarantined as: spam-5ed7458e42ce8e31a18299f33ee