API to change employee data "external_accounts"
Hi, what API or How could i use an API to change an employee group the "Extenral_accounts" from the table >>pay_external_accounts<< ??
jbaltodano wrote:
Hi, what API or How could i use an API to change an employee group the "Extenral_accounts" from the table >>pay_external_accounts<< ??
>Hi, what API or How could i use an API to change an employee group the "Extenral_accounts" from the table >>pay_external_accounts<< ??
I want to create a new payment method, the code i have is:
DECLARE
o_comment_id NUMBER;
o_effective_start_date DATE;
o_effective_end_date DATE;
o_external_account_id NUMBER;
o_object_version_number NUMBER;
o_personal_payment_method_id NUMBER;
BEGIN
HR_PERSONAL_PAY_METHOD_API.CREATE_PERSONAL_PAY_METHOD
(p_validate => TRUE
,p_effective_date => TRUNC(sysdate)
,p_assignment_id => 838
,p_org_payment_method_id => 144
,p_percentage => 100
,p_priority => 1
,p_territory_code => 'MX'
,p_segment1 => 'Santander-Serfin'
,p_segment2 => '0'
,p_segment3 => '000000007'
,p_segment4 => 'SAVINGS'
,p_segment5 => '0'
,p_personal_payment_method_id => o_personal_payment_method_id
,p_external_account_id => o_external_account_id
,p_object_version_number => o_object_version_number
,p_effective_start_date => o_effective_start_date
,p_effective_end_date => o_effective_end_date
,p_comment_id => o_comment_id
COMMIT;
END;
But i got the Errror:
ORA-20001: FLEX-ID DOES NOT EXIST:
ORA-06512: at "APPS.HR_PERSONAL_PAY_METHOD_API",
line 1303
ORA-06212: at line 12
Could somebody tell me what is wrong with the code?
Similar Messages
-
Need to change the date of joining of employee
Hi All,
I have gone through some threads similar to this subject an also tried to do changes from PA41 but i am facing some problems during the procedure.
We have transferred some employees to sap system with their original date of joining and payroll was run from some other date for those employees. So i need to change the date of joining of those employees.
For example : Below is the line items of one employee from table infotype 0.
End date Start date Changed on
22.02.2009 19.02.2007 19.02.2009
31.03.2009 23.02.2009 19.02.2009
31.12.2009 01.04.2009 14.10.2009
31.12.9999 01.01.2010 21.01.2010
Payroll was run from Feb-09 onwards and i want put date of joining for this employee as 23.02.2009.
I want to know which date i need to change??...When i am trying to change the first start date i.e. 19.02.2007 to my desired start date, but it is not allowing me to do that as end date is smaller.
Please tell me how would i change the joining date of employee as 23.02.2009 ?.
Thanks.Try this
22.02.2009 19.02.2007
31.03.2009 23.02.2009
31.12.2009 01.04.2009
31.12.9999 01.01.2010 take this record form PA30 IT0000 Over View (Shif + F8) Copy that record and change the Start date
as 2302.2010 so another record will be created
22.02.2010 01.01.2010
31.12.9999 23.02.2010
Just try and let me know -
Employee date change after pay roll run
HI sapiers,
i have an issue
one employee join on 10th of the may but in sysytem it was enterd as 13th of the may
and pay roll was processed to that employee
now can we change the employe join date now
if yes how can we do this
please help me its urrgent
thanks in advance
shjish khanHi Shajish,
There are three scenarios when you may need to change hiring date:
1) After payroll is run - when hiring date is before actual Hiring date.
2) After payroll is run when hiring date is after actual Hiring Date.
3) Before the payroll is run.
1) PA30 -- Copy actions info type - action type - incorrect entry -- save and come out PA 30 copy actions info type -- action type - correct entry - now correct your entries, save your date is changed.
2) PA30 - Utilities - change payroll status - delete accounted to field, save and come out - then again utilities change entry leaving date - correct the hiring date - save and come out.
3) PA30 - Utilities change entry/leaving date change your date and save.
Try this aslo
Go to PA30
Enter personnel number.
Select action infotype.
Select subtype hire mini master record.
Change to new date.
Under reasons, select new position.
Click save.
Please refer the below links:
http://help.sap.com/saphelp_470/helpdata/en/48/35c5c34abf11d18a0f0000e816ae6e/content.htm
http://help.sap.com/saphelp_470/helpdata/en/48/35c5c34abf11d18a0f0000e816ae6e/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/1b/3e5c16470f11d295a100a0c9308b52/frameset.htm
Also we have several threads in the forum related to this.
http://scn.sap.com/thread/1185695
http://scn.sap.com/thread/1185695
http://scn.sap.com/thread/2012142
http://scn.sap.com/thread/1466306
Thanks,
Madhav -
PA30 - Changing personal data of one employee changes data to others also
Hello,
I have a strange problem. When I am changing the personal data of an employee in PA30 this change is affecting several employees also. This means at the moment that I have people that have connected data like the same name and so on...
Could someone give me a hint what I could have done wrong?
I am using SAP_HR Release 600 with Level 28
Thx, VanI am sorry. The problem was the thing between chair and display. I changed the data in PA30 and there was something wrong with it.
cu, Van -
How to change employee responsible for open campaigns.
Hi,
I want to find out open campaigns and marketing attributes based on partner function i.e., employee responsible and these open documents I need assign to another employee responsible. Which function module I need to read the details and which fm is to change employee responsible. Please guide me which fm i need to use how I can change to another employee responsible partner function.
divyaHi Divya,
If you are comfortable with the bol queries, you can execute the bol query services to get relevant data..
here is the sample code to get marketing attributes for a bp.. here you can read additonal attribute "partner function" to filter the data as per your req.
Marketing Attributes
DATA : lr_mktattr_coll TYPE REF TO if_bol_entity_col,
lt_mktattr TYPE TABLE OF crmt_mktbp_attribute,
ls_mktattr TYPE crmt_mktbp_attribute.
IF lr_buil_entity IS BOUND.
TRY.
CALL METHOD lr_buil_entity->get_related_entities
EXPORTING
iv_relation_name = 'BuilMktAttributeRel'
RECEIVING
rv_result = lr_mktattr_coll.
CATCH cx_crm_genil_model_error .
ENDTRY.
CLEAR lr_entity.
IF lr_mktattr_coll IS BOUND AND lr_mktattr_coll->size( ) GT 0.
lr_entity ?= lr_mktattr_coll->get_first( ).
WHILE lr_entity IS BOUND.
CALL METHOD lr_entity->get_properties
IMPORTING
es_attributes = ls_mktattr.
IF ls_mktattr IS NOT INITIAL.
APPEND ls_mktattr TO lt_mktattr .
ENDIF.
lr_entity ?= lr_mktattr_coll->get_next( ).
ENDWHILE.
ENDIF.
ENDIF. -
Change employee reconciliation account
Dear Sapgurus,
There is a need to change one employees Reconciliation account from 21100000 to 21101000, Kindly understand 21100000 is Vendor Reconciliation account and 21101000 is employee reconciliation account. By anychance my Client was using 21100000 in one employees master data, now I want to change it from 21100000 to 21101000.
In FK02/XK02 recon account field is greyed not allowing to change though there is no balance in Employees account
Please SAPGurus give me the complete process of doing this, the answers will be rewarded.
thanksDear SAP Consultant
If you want to change employee reconciliation account from vendor master data and it is shown grayed you can use transaction in SPRO -> Financial accounting->Accounts Receivable and Accounts Payable ->Vendor Accounts->Master Data -> Preparations for Creating Vendor Master Data ->Define Screen Layout per Activity (Vendors)
And change the status of reconciliation account to be ready for input (Optional entry). then try to use fk02 or xk02 as you change in the previous screen.
I hope that will help you
Thanks -
How to change the date format?
Hi,
I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
Here is my code snippet which i used to display the data format as(2009-1-9)
*<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()"> (YYYY-MM-DD)*
*<SCRIPT LANGUAGE="javascript">*
dateSubmitted()
*</SCRIPT>*
function dateSubmitted()
if (document.pgUpdate.date_submitted.value == "")
date = new Date();
month = date.getMonth() + 1
document.pgUpdate.date_submitted.value =
date.getYear() + "-" + month + "-" + date.getDate();
return true;
Can anybody help me how to change the date format?
Thanks in advance!prit123 wrote:
use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
Please use forums devoted to Javascript. You're here at a Java/JSP forum.
There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
String formatPattern = "yyyy-mm-dd";
SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well. -
URL generation of Change Own Data Photo
Hello,
The URL for employee photo under ESS "CHANGE OWN DATA" application is getting generated via FM HRWPC_RFC_EP_READ_PHOTO_URI.
This FM is returning the URL as http://<server>:<port>/sap/bc/contentserver........
Now the <server> in the above url points to the ECC server url. This ECC serevr url is NOT accessible over intenet for our environment. Becaus of this photo is NOT visible over internet though the same is working fine within our INTRANET.
We want to change the <server> url with the webdidpsatcher url so that the final url that will be returned by the FM will be
http://<webdispatcher>/sap/bc/contentserver.......
Can anyone please suggest where exactly we need to make the setiings for this. Do we have to modifty the FM itself OR this can be done through configuration?
Regards
DebIt seems that it is something to look into the entries in the table
HTTPURLLOC. Please can you check the url here?
The URL is generated from the FM HRWPC_RFC_EP_READ_PHOTO_URI,
So check it from here correct URL is generated or not
Please review documentation :
http://help.sap.com/saphelp_nw04s/helpdata/en/59/31ae42e0fac911e10000000
a1550b0/frameset.htm
Please review below SAP Notes :
1033071
685521
Please also check the attached note 712330.
Also take a look at notes 1094976 and 1289938 too.
You would need to do the repository settings in order to enable https
communication. Kindly follow the below steps for your photo repository:
1. Go to transaction OAC0 and select the repository
2. In edit mode, type %https in the command field for advanced settings.
3. Now select "HTTPS required" from the dropdown for both HTTPS on
frontend and HTTPS on backend. Save the settings.
Please also refer the notes 712330,712332.
Currently we generate a HTTPS URL to acces the photo to the R/3 system.
But since there is no https service active in
R3, we do not get any response and thus no photo is displayed.
You can check services available in R/3 system using transaction SMICM
and usingn menu path Goto-> services. . I did see HTTPS service
activated this is correct.
Maintain an entry in the table HTTPURLLOC with following details:
protocol: https
host: <web despatcher host name>
port: <web despatcher port number>
This will ensure that the URL will be generated to web despatcher and
not backend and if the HTTPS service is active in Web Despatcher, then
we will get the response and photo will be displayed. -
Changing the Data source in Business Objects XI
Hi,
Is it possible to change the data source(not universe) in runtime to generate business objects reports. I am using BOXI 3.1.
Below is the code I am using to change the universe in runtime. I would like to change this so that i can change the data source instead of changing the universe. My intention is to generate report from multipple database using same universe. Right now I am using multipple universes connected to multiple datasources to achieve this. I am using Report Engine SDK(Java).
if("Webi".equals(mDocKind))
// Added for multiple database support
DataProviders dataProvs = documentInstance.getDataProviders();
try{
//To support multiple queries in BO reports
for(int count=0;count<dataProvs.getCount(); count++){
DataProvider dp=dataProvs.getItem(count);
DataSource ds= dp.getDataSource();
infoUniverseObjects = getUniverseObject(infoStore,NewUniverseName);
infoUniverseObject = (IInfoObject)infoUniverseObjects.get(0);
String newDsCuid = infoUniverseObject.getCUID();
dataProvs.changeDataSource(ds.getID(), "UnivCUID=" + newDsCuid, true);
if(dataProvs.mustFillChangeDataSourceMapping())
// Re-map data source to target Universe objects
ChangeDataSourceMapping mapping = dataProvs.getChangeDataSourceMapping();
ChangeDataSourceObjectMapping[] maps = mapping.getAllMappings();
dataProvs.setChangeDataSourceMapping();
}//for dataProvs.getCount()
}catch(Exception e)
mLogger.info("BOReportObject","createReport","Inside multiple data providers loop"+e.getMessage());
Thanks in advance
Shameer
Edited by: Shameertaj on May 20, 2009 3:08 AMHi Shameer,
I think this is only possible with the Universe Designer SDK (which is only available in COM).
Please kindly refer to the API reference for the Universe Designer SDK for more details:
http://help.sap.com/businessobject/product_guides/boexir31/en/bodessdk.chm
Also, please note that changing the universe connection when viewing a document on-demand is not recommended because this could lead to possible issues.
For example:
Two users trying to view documents that uses the same universe at approximately the same time.
But user A wants to use connection X and user B wants to use connection Y.
This could lead to an error while openning the document or while refreshing/retrieving the the data.
Hope this helps.
Regards,
Dan -
Problem in Change own data service
Hi ,
I am facing problem in Change own data service. I am getting following error while opening the service.
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model 'com.sap.xss.hr.cod.model.CodModel' in scope APPLICATION_SCOPE with instanceId 'null'
Do I need to configure this service through SPRO under Personal Mangement -> Employee Self Service ->
Server Specific Settings -> Adress Book -> Who's Who.
Am I missing any configurational step on R3 side ?
Kindly provide some solution.
Thanks in advance
AbhayHi Abhay,
You need to upgrade the EA_HR component to SP22. Alo make sure that SAP_HR and EA_HR components are in sync.
SAP Note: 1081261
Also refer thread: **Very Urgent**Do i need to upgrade SP level of EA-HR components
Regards
Deb -
S_AHR_61016380 - Change master data
Hi Experts,
I have a query......In the standard report S_AHR_61016380 the report gives the data of employee whose master data have been changed and by whom it has been changed.
Now on double clicking the data it gives the indepth information as to who has changed the data / date/old value /new value etc...
Now my user says that they would be running the report every month which will be for all ees which is very difficult to see each line item individually...and even on generating the data into excel it does not refleft the data inside.
Kindly suggest how is that possible or what is the alternate solution for the same.
Regards,
RitikaThis report is to double check the previous values and compare the current values and how exactly the payroll is effecting the master data.
But if the client wants to check every employee and monthly then they have to check individually.There is no other go
Best Regards, -
API to change PO Authorization_Status
Hi All
Please let me know if there is an API to change the Authorization_Status of a PO. We do not want to use the update statement i.e.
Update apps.PO_HEADERS_ALL Set wf_item_type=NULL,wf_item_key=NULL,Authorization_Status = 'INCOMPLETE' Where apps.PO_HEADERS_ALL.Segment1 = P_PONUM;
We would like to use an API instead as a part of our customization.
Regards
AliI'm actually running into this now. The business scenario is that we foolishly restricted the use of 'Finally Closed' on PO's (so we have this massive backlog of 'Approved, Closed' PO's. Well the workflow is throwing tons of errors because it never sees it as being closed. I need to call the API's to mass change all of our POs for a certain date. I'm not seeing an API for this, any idea how to accomplish?
Thanks. -
Dear Expert,
I'm facing problem due to wrong maintained in entry date while perform employee hiring.
This employee already included payroll. That's why when I'm using PA41 change entry and living date it can't be done.
Could you informed me how to change entry date for above employee?
I waiting for your quick response.
Thanks a lot.
Best Regards,
Michael D.Hey Miky,
If u run a payroll for that employee, and u want to change His entry date , try to delete his payroll results in PU01 T.CODE.
Now u can change entry date.
Still if it doesn't come check Controll Record. And adjust the dates of retro. And
get back with output. If it clicks . Hope it will do.
Regards.
Venu -
Real time synchronisation of sap hr employee data with LDAP
Hi friends,
I wanted to synchronize sap hr employee data with ldap. I have written a abap program for the same which is using ldap connector interface for creation/modification/deletion of employees. I am planning to put this as a scheduled job.
But I want to do it in real time i.e. when the employee is getting created/modified/deleted in sap hr, my program should receive all the values and do the changes in ldap at the same time.
What all options do i have to do this?
I am new to sap hr.
Regards,
NilzHi Nilesh
U can take help of Standard Events in SAP.
Go to Tcode SWELS.Then Activate Event trace.
Go and do creation/modification/deletion for employees and Check which allevents are getting triggered in Tcode SWEL.
This might give U an Initial idea how to go about this.
~BiSu -
Hi,
I'm trying to use flexible employee data report and in the output,
the report is showing the text of the fields, like Employee subgroup text instead of the codes we've given.
Is there any way of having the report generate the codes instead of the text? Pls let me know.
Thank you,
R SHi
I am not sure whether we can make changes in the standard reports setting. I hope you can use SAP Infoset Query to solve your issue.
Please follow the following steps for creating a simple report
FIRST STEP
SQ03
Create user group
SAVE
SQ02
Create Infoset
ZHCM_PD
Now select the required infotypes from the screen given
Then generate the infoset
Go back to infoset screen and you can see your infoset appearing in the initial screen
Now assign the infoset to the particular user group using role/user group assignment and Save
SQ01
Select Infoset Query
Open the ZHCM_PD and the following screen will be displayed showing the selection and output screen
********When you select output screen, the same will be displayed down. Just select one field and right click and select Only value**************
Select the required infotypes selection and output field and give the hit list to see the number of documents present
To see the output click on output screen
Please note that when you create the reports, you can select the output either by Only Value/Only Text/ value and text.
I hope this will resolve your issue.
Regards
Santhosh.S
Maybe you are looking for
-
My new computer did one complete backup on the Time Capsule now I get the message that there is insufficient room to complete further backups. (128 GB available, my backup size is 170GB but the time capsule is 998GB) I suspect that information from o
-
I keep having issues with these darn iPods! Ok well, my problem this time is this: I just finished converting a file from to mp4. I made sure my computer had the codec and everything first, and then when I finished converting it to MP4, I tried to ad
-
Disable Menubar in bottom of the canvas
Hello, When i run my midlet, a grey menu bar appears in bottom of my canvas. This is the bar where commands names (OK, Back, exit,...) appears. I examined some pro softwares. There aren't menubars on the screen. So, I would be happy if anybody kindly
-
ZENworks Reports in c1 fails, not a compatible database
Please see the forum posts at http://www.ndsengineers.com/showthread.php?t=190351 for the details Thanks for ANY suggestions! Kent at BART
-
HT2254 is there a way to install mac widget using terminal command?
Is there a way to download and install mac widget using ther terminal command instead of using widget manager? I need to install on a large number of macbooks, this will save me a lot of time... Thanks, HB