Showing posts with label Peopletools. Show all posts
Showing posts with label Peopletools. Show all posts

Thursday, April 11, 2013

PeopleSoft Application Engine Drop Temp Tables & re-Create

Several time based on the requirements we have to remove and rebuild the temp tables which are specified in AE.

Below are the steps I followed to delete.

1. Find out the temp tables which are used by specific table using below query.

   select  table_name from all_tables where table_name like '%ABCTAO3%';
 
2. Using below sql generate the Drop Script.
 
     select 'DROP TABLE '||table_name||';' from all_tables where table_name like '%ABCTAO3%';



3. Execute the generated script in Database. I prefer to run these in DataMover.

Then build the table in Appdesigner.

Note:- Sometime after deleting temp tables from Database, I tried to build from AE the temp table again it doesnot create temp table instances. (How I know its created or not - look at the build script which generated). So I have to increase or decrease temp table instance count,save the AE and then change the instance count again back to original and save then Build the temp table.

for more information about temp table, you could follow the link too..

http://blog.psftdba.com/2009/01/managing-changes-to-number-of-instances.html

:-)





Tuesday, March 8, 2011

Solution : PeopleSoft CREFs set to expire on 31-DEC-2010

There are around 1560 (approx) content reference expiry date set to 31-DEC-2010.

Steps to resolve this:

1. Download the project from support.oracle.com : -  
     https://support.oracle.com/CSP/main/article?cmd=sh ow&type=NOT&id=1183084.1

    Oracle delivered a project which resets  expiry date to NULL. Run the app engine from AppDesigner.

2. Run the Portal Security Sync.

3. Cleare AppServ Cached & Browser.

    Check the PSPRSMDEFN table to verify the Expirty Date set null.

Source: Oracle

If the above not worked.

1. Assigne PeopleSoft Administrator role to PS user from backend.
    Insert into psroleuser values('PS','PeopleSoft Administrator','N');

either of the steps will work.

:-)

Friday, December 24, 2010

Peoplesoft Base Benefit Tables

Peoplesoft Base Benefit Tables:

PS_BAS_PARTIC, PS_BAS_PARTIC_COST, PS_BAS_PARTIC_DPND, PS_BAS_PARTIC_INVT, PS_BAS_PARTIC_OPTN, PS_BAS_PARTIC_PLAN, PS_BENEF_COMMENT, PS_BEN_PROG_PARTIC, PS_DEPENDENT_BENEF, PS_DISABILITY_BEN, PS_FSA_BENEFIT, PS_FSA_PAYMENT, PS_HEALTH_BENEFIT, PS_HEALTH_DEPENDNT, PS_LEAVE_ACCRUAL, PS_LEAVE_PLAN, PS_LIFE_ADD_BEN, PS_LIFE_ADD_BENEFC, PS_PENSION_BENEFC, PS_PENSION_PLAN, PS_RTRMNT_PLAN, PS_SAVINGS_BENEFIC, PS_SAVINGS_INVEST, PS_SAVINGS_PLAN, PS_VACATION_BEN

Peoplesoft NA Payroll Tables

Peoplesoft NA Payroll Table List:

PS_STATE_TAX_DATA, PS_GENL_DEDUCTION, PS_BAL_ADJ_UI_CAN, PS_CAN_CHECK_YTD, PS_CAN_DED_BALANCE, PS_CAN_ERN_BALANCE, PS_CAN_TAX_BALANCE, PS_CAN_TAX_DATA, PS_CHECK_YTD, PS_DEDUCTION_BAL, PS_EARNINGS_BAL, PS_FED_TAX_DATA, PS_TAX_BALANCE, PS_LOCAL_TAX_DATA, PS_BAL_ADJ_ARR, PS_BAL_ADJ_CHK, PS_BAL_ADJ_CN_CHK, PS_BAL_ADJ_CN_DED, PS_BAL_ADJ_CN_ERN, PS_BAL_ADJ_CN_TAX, PS_BAL_ADJ_DED, PS_BAL_ADJ_ERN, PS_BAL_ADJ_GRN, PS_BAL_ADJ_TAX, PS_DED_ARREARS, PS_GARN_RULE, PS_GARN_SCHED, PS_GARN_SPEC, PS_GENL_DED_CD,PS_PAY_CHECK, PS_PAY_DEDUCTION

Peoplesoft HR/HCM Tables

List of Peoplesoft HCM Tables.

PS_EMPLOYEES, PS_JOB,PS_PERSONAL_DATA, PS_EMPLOYEES_LNG, PS_EMPLOYMENT, PS_EMPLOYMENT_LNG, PS_EMPLOYMENT_LNG1, PS_EMPLOYMENT_LNG2, PS_EMPLOYMENT_LNG3, PS_HS_EMPLOYMENT, PS_HS_EMPL_REL_CAN, PS_HS_EMPL_REL_LNG, PS_HS_EMPL_SUB_CAN, PS_HS_EMPL_SUB_LNG, PS_INJ_CLMADDR_CAN, PS_JOB, PS_PERSONL_DTA_LNG, PS_PERS_DATA_AET, PS_PERS_DATA_EFFDT, PS_PERS_DTAEFF_LNG, PS_PERS_NID, PS_JOB_EARNS_DIST, PS_JOB_APPROVALS, PS_BEN_PROG_PARTIC

Wednesday, June 2, 2010

Thursday, May 20, 2010

To Get the Local/Current PC DateTime not the Server Time using Peoplecode

two ways we can achieve this

1. Using Personalization

%ClientDate:

%ClientDate returns the current date for the current user, adjusted for the user’s time zone. This is the date as specified with the current user's personalizations.You can use this system variable as the default constant for a date field.This is potentially one day different than the server date, which is returned with %Date.

Let's say, the Server is located in US, the business users spread across Global Other than US.

So, if we issue %Date (or any other Date variables) it will return server time.

Suppose if the bussiness user located in India, he should get Date time in IST.



2.Using  DateTimeToTimeZone
 syntax
DateTimeToTimeZone(OldDateTime, SourceTimeZone, DestinationTimeZone)
 
Use the DateTimeToTimeZone function to convert datetimes from the datetime specified by SourceTimeZone to the datetime specified by DestinationTimeZone.

to know the client zone use the variable:- %ClientTimeZone

Eg:- DateTimeToTimeZone(%Datetime, "UST", "IST")
 this will convert US date time to Indian Std Date time.
 
Refer to:-
PeopleBooks: PeopleCode Language Reference 
:-)

Wednesday, May 5, 2010

PT8.49 Sending Mail using PT_MCF_MAIL doesn't validate the wrong mail addresses

PT_MCF_MAIL: send() function doesn't validate the wrong mail address'es

import PT_MCF_MAIL:*;

Local PT_MCF_MAIL:MCFOutboundEmail &email = create PT_MCF_MAIL:MCFOutboundEmail();
------------------------------------------
&email.Recipients = "srinivas@1234.com"; /*mail id syntax is correct but domain(1234.com) is a wrong domain*/
----------------------------------------------
&email.From = "";
&email.BCC = "";
&email.Subject = "Sample";
&email.ReplyTo = "";
&email.ContentType = "text/html";
&res = &email.Send();
WinMessage("Mail Sent " | &res , 0);

I am passing wrong Recipients mail id. when we run this still its &email.Send(); returns 1 (success).. and doesn't capture the %ObEmail_NotDelivered exception.

in Peopletools 8.50 there is a function isDomainNameValid needs to check how this function works..@not at the moment..

from Metalink
---------------
In PT8.50 we have a new function called isdomainavailable to check if the email address's domain is valid or not. It pings DNS server to validate email addresses. Other than that, there is no other ways. Development has stated that Java mail on the outgoing server does not check for invalid address of TO address while sending an email. It just checks for the correct format of email address.
If you consider to upgrade to PT8.50, this issue can be resolved.

:-(

SendMail() vs MCFOutBoundEmail() Emailing Functions

1. Is the MCFOutBoundEmail() function better than SendMail() function?

As of PT 8.49.13, PeopleSoft began using javamail via Multi Channel Framwork (MCF) to send emails, as javamail is fully SMTP Protocol compliant to RFC 821/822. The MCFOutBoundEmail() function is fully compliant, whereas SendMail() function uses PeopleSoft's basesmtp.cpp, and has been found to not be fully compliant with SMTP Protocol RFC 821/822. Therefore, the recommendation is to replace use of SendMail, with MCFOutBoundEmail function.


2. How does this function send email? is it SMTP? Yes, MCFOutBoundEmail sends email fully complant to Simple Mail Transfer Protocol (SMTP)

3. Where is SMTP Server & Port configured? MCFOutBoundEmail() function uses the SMTP section of the Application Server's psappsrv.cfg file, and Process Scheduler's SMTP section of the psprcs.cfg file, just as the SendMail() function does. No special configuration is required for the MCFOutboundEmail() function to work.

--
More on
Oracle Metalink