Validation on Joining date
Dear Team,
I would like to put validation on Joining date with actual date of Hiring ( i.e current system date ) ; and I would like to put validation between both actual joining and Hiring date and difference between both dates should not exceed 50days. If Hiring date is exceeding 50 days errors message should be populated.
Please let me know to handle this scenario .
Regards,
Vamshi
Try using an user exit or BADI.
Please ask your ABAPer to write a code to check your requirement and generate the messages.
There are a lot of forums which will give u details on user exits and BADI in Pers Administration.
I dont think there is any standard config which will cater to your requirement.
Cheers
AJ
Similar Messages
-
How to know the balance and validity of internet data in iPad
How to know the balance and validity of internet data in iPad?
Sir I m using internet in ipad4 with airtel network
They provide me 2gb data with the amount of 255 rupees
And now I inserted the sim in my ipad4
And start the surfing on safari n all
And now I wanted to know how much data is balance. -
Key Figures in Joined Data Source
Hello,
I have created some Key Figures for the Data Source "Sales Order Item". Reports based on this Data Source are working fine and also my Key Figures are displaying the right results.
Now I want to create a Joined Data Source (Left Outer Join) with the Sales Order Item and Outbound Delivery Detail Line Items. The problem I have here is, that my own Key Figures based on Sales Order Item are not showing up in the list and I cannot select them.
Does anyone know why? Do I have to create the same Key Figures again and again as soon as I want to join the Sales Order Item Data Source with any other Data Source?
Thanks for any feedback.Key figure are not available in joining Data Sources, Characteristics of same type from different Data Source data element available in joining scenario.
Regards
Naveen -
Hi,
I have an infopath web brower enabled form. In the form i have a date field.
I am passing the data from the database to that field using the C# code.
But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
I get the date value from database as "3/25/2011 12:00:00 AM"
I used the below code:
[CODE]
if (objInfopathFormcData.myRecievedDate != null)
myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
[/CODE]
I am getting the error as "Schema validation found non-data type errors".
How to set the value for a date field in Infopath.
Thank youHI,
I fixed it:
Below code is used to fix:
[CODE]
XPathNavigator xfield = null;
DateTime dtmyRecievedDate;
dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
if (objFormcData.FcCompletionDate != null)
xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
DeleteNil(xfield);
xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
// method to delete xsi:nil
private void DeleteNil(XPathNavigator nav1)
if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
nav1.DeleteSelf();
[/CODE]
Thank you -
Validation on Integer data type attribute
Hi,
Working on jdev 11.1.1.3.0
I have to do validation on integer data type like, it should not allow 13.20(only single digit numbers.).
I am doing validation on AMImpl and converting the int into string
String per=Row.getPer().toString();// here if user enter 13.20, then per containing only 13 so its not going to inside if.
if(StringUtils.contains(per,"."))
return false;
Even i have written regular expression on my field but its working
can any one help me.Hi,
Why don't you use the af:convertNumber in your tag?
Something like that:
<af:inputText>
<af:convertNumber>
</af:inputText>
Doc: http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_convertNumber.html
Regards, -
Validation on Posting Data in MIGO
Dear Experts,
My requirement is to put validation on Posting date during MIGO. How can i do that? Can i do it from OMJX?
Regards,Dear,
You do this with screen or tannscation variant through SHD0 for MEGO here make filed posting date as display field or use BADI MB_MIGO_BADI for posting date check. There is nothing from configuration point of view.
Hope it will help you.
Regards,
R.Brahmankar -
I need run a validation on a data form. Basically if the difference between budget and actuals (both of which are on a separate form, but combined on a composite) exceeds 5% I want to highlight the cell in red, or bold the text or something. Can someone point me in the right direction for this?
Depends what version you are on, if it is before 11.1.2 then you would need to write some custom Javascript, 11.1.2 should let you write validation rules to change cell colors.
Cheers
John
http://john-goodwin.blogspot.com/ -
Can we apply custom validation before uploading data in WebADI in 12.1.3
Hi,
I have requirement of applying custom validation before uploading data from spreadsheet using webADI. How can we do that.
Is there any way in desktop Integration Manager Responsibilty in WebADI.
I have just started exploring webADI
Please Help Me...
Thanks,
SuhaniWhy are you posting this in OAF?
Anyway you can by creating a custom PL/SQL wrapper that is called by the WebADI.
Raise an application ERROR in your wrapper and it will show in the WebADI
If you just want to validated VALUES, you are better of creating an LOV on the Column. Then WebADI will do the validation work for you.
Jeroen -
Validator error - Extra data was encountered.
Hi All,
I am working on Outbound EDI870, getting below Error:
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (ERROR) Error -: B2B-51505: General validation error.
at oracle.tip.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2539)
at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1279)
at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:790)
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1201)
at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:713)
at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2754)
at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2444)
at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:464)
at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:180)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:171)
at java.lang.Thread.run(Thread.java:619)
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) Engine: processOutgoingMessageImpl: B2BDomainException
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.engine.Engine:handleOutboundException Updating Error Message: Error -: B2B-51505: General validation error.
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) DbAccess:updateWireBusinessToErrorState
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Enter
2010.06.03 at 04:33:34:989: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Enter
2010.06.03 at 04:33:34:989: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got RTP Context
2010.06.03 at 04:33:35:006: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got 1messages for field messageId with value 1410017
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Exit
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: querying for id = 1410017
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: Returning null
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Wire message not found.
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating business message error information
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Enter:
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Got RTP Context
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Exit
2010.06.03 at 04:33:35:009: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateAppMessageState Enter
2010.06.03 at 04:33:35:009: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Enter appMsg id = 7F000001128FCF1A4C600000EA6A8D00
2010.06.03 at 04:33:35:009: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Got RTP Context
2010.06.03 at 04:33:35:012: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Got [1] messages for AppMessage ID 7F000001128FCF1A4C600000EA6A8D00
2010.06.03 at 04:33:35:012: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Exit
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:setAppMsgErrorInfo Enter
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:setAppMsgErrorInfo Setting AppMessage to ERROR
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:setAppMsgErrorInfo Exitr
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Enter:
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Got RTP Context
2010.06.03 at 04:33:35:014: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Exit
2010.06.03 at 04:33:35:014: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateAppMessageState Exit
2010.06.03 at 04:33:35:014: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:DbAccess:updateMsgError(3 params) Enter
2010.06.03 at 04:33:35:015: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Enter:
2010.06.03 at 04:33:35:015: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Got RTP Context
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Exit
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:DbAccess:updateMsgError(3 params) Exit
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.engine.Engine:handleOutboundException Updating Native Event Tbl Row
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateNativeEvtTblRow Enter
2010.06.03 at 04:33:35:017: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Enter
2010.06.03 at 04:33:35:017: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got RTP Context
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got 1messages for field messageId with value 1410017
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Exit
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: querying for id = 1410017
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: Returning null
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) DbAccess:updateNativeEvtTblRowGot WireMessage with B2BMessage ID 1410017
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:
** DbAccess:updateNativeEvtTblRow:tip_wireMsg wiremsg not found
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.engine.Engine:handleOutboundException notifying App
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) Notification: notifyApp: Enter
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) Notification: notifyApp: payload = <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<correlationId>7F000001128FCF1A4C600000EA6A8D00</correlationId>
<b2bMessageId>1410017</b2bMessageId>
<errorCode>B2B-51505</errorCode>
<errorText>
Error Brief :
Validator error - Extra data was encountered.
An X12 syntax error occurred.
An X12 syntax error occurred.
Validator error - Extra data was encountered.
Validator error - Extra data was encountered.
A data element with 'Mandatory' status is missing.
</errorText>
<errorDescription>
<![CDATA[
Error :
Extra Element was found in the data file as part of Segment REF. Segment REF is defined in the guideline at position 046.{br}{br}This error was detected at:{br}{tab}Segment Count: 3{br}{tab}Element Count: 2{br}{tab}Characters: 567 through 575
At least one of REF02, REF03 must be present. The syntax rule R0203 of Segment REF is violated. Segment REF is defined in the guideline at position 046.{br}{br}This error was detected at:{br}{tab}Segment Count: 3{br}{tab}Element Count: 2{br}{tab}Characters: 593 through 593
At least one of REF02, REF03 must be present. The syntax rule R0203 of Segment REF is violated. Segment REF is defined in the guideline at position 046.{br}{br}This error was detected at:{br}{tab}Segment Count: 3{br}{tab}Element Count: 3{br}{tab}Characters: 593 through 593
Extra Element was found in the data file as part of Segment ISR. Segment ISR is defined in the guideline at position 030.{br}{br}This error was detected at:{br}{tab}Segment Count: 6{br}{tab}Element Count: 1{br}{tab}Characters: 870 through 872
Extra Element was found in the data file as part of Segment ISR. Segment ISR is defined in the guideline at position 030.{br}{br}This error was detected at:{br}{tab}Segment Count: 6{br}{tab}Element Count: 2{br}{tab}Characters: 907 through 915
Element ISR01 (Shipment/Order Status Code) is missing. This Element's standard option is 'Mandatory'. Segment ISR is defined in the guideline at position 030.{br}{br}This Element was expected in:{br}{tab}Segment Count: 6{br}{tab}Element Count: 1{br}{tab}Character: 933
]]>
</errorDescription>
<errorSeverity>2</errorSeverity>
</Exception>
Even though I am providing REF01 and ISR01 values, I am getting this Error.
Below is my XML payload.
<?xml version="1.0" encoding="UTF-8" ?>
- <Transaction-870 xmlns:ns0="http://www.edifecs.com/xdata/200" Standard="X12" xmlns="http://www.edifecs.com/xdata/200">
- <ns0:Segment-ST>
<ns0:Element-143>870</ns0:Element-143>
<ns0:Element-329>000000043</ns0:Element-329>
</ns0:Segment-ST>
- <ns0:Segment-BSR>
<ns0:Element-850>3</ns0:Element-850>
<ns0:Element-847>PA</ns0:Element-847>
<ns0:Element-127>3110000031OTM_TestPR</ns0:Element-127>
<ns0:Element-373>20100603</ns0:Element-373>
</ns0:Segment-BSR>
- <ns0:Loop-REF>
- <ns0:Segment-REF>
<ns0:Element-128>VR</ns0:Element-128>
<ns0:Element-127>RHEEM002</ns0:Element-127>
</ns0:Segment-REF>
</ns0:Loop-REF>
- <ns0:Loop-HL>
- <ns0:Segment-HL>
<ns0:Element-628>1</ns0:Element-628>
<ns0:Element-735>O</ns0:Element-735>
</ns0:Segment-HL>
- <ns0:Segment-PRF>
<ns0:Element-324>OTM_Test</ns0:Element-324>
</ns0:Segment-PRF>
- <ns0:Loop-ISR>
- <ns0:Segment-ISR>
<ns0:Element-368>PR</ns0:Element-368>
<ns0:Element-373>20100531</ns0:Element-373>
</ns0:Segment-ISR>
</ns0:Loop-ISR>
</ns0:Loop-HL>
- <ns0:Loop-HL>
- <ns0:Segment-HL>
<ns0:Element-628>2</ns0:Element-628>
<ns0:Element-735>I</ns0:Element-735>
</ns0:Segment-HL>
- <ns0:Loop-PO1>
- <ns0:Segment-PO1>
<ns0:Element-350>1</ns0:Element-350>
<ns0:Element-330>2</ns0:Element-330>
<ns0:Element-355>EA</ns0:Element-355>
<ns0:Element-235>SK</ns0:Element-235>
<ns0:Element-234>6836003</ns0:Element-234>
<ns0:Element-235_1>VP</ns0:Element-235_1>
<ns0:Element-234_1>TAHM ITEM</ns0:Element-234_1>
</ns0:Segment-PO1>
- <ns0:Segment-PID>
<ns0:Element-349>F</ns0:Element-349>
<ns0:Element-352>TAHM ITEM</ns0:Element-352>
</ns0:Segment-PID>
</ns0:Loop-PO1>
</ns0:Loop-HL>
- <ns0:Segment-CTT>
<ns0:Element-354>2</ns0:Element-354>
</ns0:Segment-CTT>
- <ns0:Segment-SE>
<ns0:Element-96>11</ns0:Element-96>
<ns0:Element-329>000000043</ns0:Element-329>
</ns0:Segment-SE>
</Transaction-870>
Thanks in Advance
RavdeepHi Ravdeep,
Have you validated the payload against the ecs using document editor? If no, please do so.
Also refer -
5084: XEngine error - Invalid data (outbound with validation disabled)
Please paste the complete B2B log here/mail it to my id (in my profile)
Regards,
Anuj -
I am loading fixed width flat-files into Oracle tables using OWB (SQL*Loader). What's the best way by which I can test the validity/correctness of data i.e. match apples-to-apples ?
Do you use any test scripts ? If so, then could you please elaborate ?
Uptil now, I have been only checking for count validations but not actual data validation.
Your inputs will be invaluable.
Thanks
John.Hi,
I validate using a set of functions in a package that return substitute values. On the basis of these substitue values records are accepted or rejected. The set contains functions for validation of date & number fields.
So, in short. Write function to validate numbers or dates. Insert known substitue values for erroneous data and validate in the next step on these substitute values.
Hope this is what you're looking for.
Cheers,
Rob -
[Solved] ADFBC validation when your data isn't normalized
Hello -
I'm working on a ADFBC/JSF app (using JDev 10.1.3.3) where I am developing a JSF page to edit data for a table whose data is denormalized. I'll explain using the EMPLOYEES table in the HR sample schema.
Change EMPLOYEES to...
a. Add a column (EMPLOYEES.DEPARTMENT_NAME) that holds the data in DEPARTMENTS.DEPARTMENT_NAME
b. Remove the foreign key EMP_DEPT_FK which links EMPLOYEES.DEPARTMENT_ID to DEPARTMENTS.DEPARTMENT_ID
The UI presents a field for EMPLOYEES.DEPARTMENT_ID. It also shows EMPLOYEES.DEPARTMENT_NAME as a read-only field.
When the user gives a value for EMPLOYEES.DEPARTMENT_ID, the app needs to
1. Validate the DEPARTMENT_ID using a function in a PL/SQL package
2. Populate the EMPLOYEES.DEPARTMENT_NAME field. Department name is retrieved using a function in a PL/SQL package that takes the department_id as a parameter.
3. Assign a NULL value to EMPLOYEES.DEPARTMENT_NAME if the provided DEPARTMENT_ID is NULL.
I don't have the option of changing the table structure.
I have an entity object for the EMPLOYEES records. To accomplish #1 I added a method validator on the DEPARTMENT_ID attribute to call the appropriate PL/SQL function using JDBC. My question is - where should #2 and #3 happen?
- In the same method validator on the attribute for DEPARTMENT_ID?
- In the setter for the DEPARTMENT_ID after the call to setAttributeInternal?
- Somewhere else?
Thanks for reading my question
-- Scott
Message was edited by:
scott.turnquistThanks Frank.
Here is what I came up with (in case anyone else has a similar question) - it works well so far.
In EmployeeEntityImpl:
public boolean validateDepartmentId(Number data) {
boolean valid = true;
if (data != null ) {
try {
MyAppModuleImpl mod =
(MyAppModuleImpl )getDBTransaction().getRootApplicationModule();
valid = mod.validateDepartmentId(data); //method uses JDBC to call PL/SQL package function, could throw SQLException
} catch (SQLException se) {
log.error("Error while checking Department Id: " + data, se);
valid = false;
return valid;
public void setDepartmentId(Number value) {
setAttributeInternal(DEPARTMENTID, value);
//Propogate changes to redundant DepartmentName field.
//If we get this far, we will have passed the validation
//called by setAttributeInternal()
if (value == null) {
if (getDepartmentName() != null) {
setDepartmentName(null);
} else {
MyAppModuleImpl mod =
(MyAppModuleImpl) getDBTransaction().getRootApplicationModule();
try {
String deptName = mod.lookupDepartmentNameFromDepartmentId(value); //method uses JDBC to call PL/SQL package function, could throw SQLExeption
if (deptName == null) {
log.error("Could not find department name for department id: " +
value);
throw new JboException("Invalid department id: " +
value);
} else {
setDepartmentName(deptName);
} catch (SQLException se) {
log.error("Could not validate department id: " + value, se);
throw new JboException("Invalid department id: " + value);
} -
Attribute handling in Sun Java Directory Proxy Server join data views
Hi all,
I've configured a join data view and want to get rid of the duplicated attributes that show up in the search results since they are present in the primary and the secondary data view. The documentation says that this behaviour is configurable to return only the values of the primary data view but I can't find any information how to do it.
Can anybody shed some light on this?
Thanks and regards
GeliHi,
If an attribute is present on both sides and if you want to consider the value(s) from one side only, use the viewable-attr or non-viewable-attr property at the data view level. You can specify which attribute(s) are /are not exposed by that data view (policy for read and write may differ).
For more details, have a look at [http://docs.sun.com/app/docs/doc/819-0986/non-viewable-attr-5dpconf?l=ko&a=view|http://docs.sun.com/app/docs/doc/819-0986/non-viewable-attr-5dpconf?l=ko&a=view] -
How to join data from SAP BW and Oracle database from Webi?
Hi,
Need to create a Web Intelligence Report connecting to multiple data sources.
Ø SAP-BW contains the data (All units).
Ø Oracle db contains the access security data (respective units
for the user).
Since Universe can only connect to a single data-source we have to create two universes connecting to SAP-BW and Oracle db respectively and then create a webi report to point the two universes to retrieve the equi-join data on the report.
May I know which layer I can join the data? What kind of data I can join?
Can I merge dimensions from both the data sources? What about measures?
How I can create SQL query in Webi in order to simulate the join to the two data source?
Appreciate any info related.
thanks and regards
noraHi Nora,
You can use Data Federator technology to federate multi-sources such as SAP BW and Oracle.
Las you just have to create a universe on the Data Federator data source and the universe isee the data source as a single source whereas it is not.
Then any clainet that consume uninverses can take advantage of this solution.
Regards;
Didier -
I am trying to uplaod an xml document sample which has an attribute of date datatype.
My sample is :
<?xml version="1.0" standalone="yes"?>
<document>
<name> test</name>
<createdate>1999/03/12</createdate>
</document>
I am getting this error:
IFS-12635: SimpleXmlParser: Value(10/10/99) not valid for type (Date).
If I input just the "name attribute" value, there is no problem. What is the date format, I should use?
Please suggest.
Thank you
nullIs there any way to specify the format in the custom type document itself. ? I do not want to specify the format in every document sample. Is there any way that it is possible. If I give the format in the document samples, as Matt said, there is no problem.
Now I tried to give the format in the type document itself.
I created a custom type document as follows:
<?xml version="1.0" standalone="yes"?>
<!--myTestType.xml-->
<ClassObject>
<Name>myTestType</Name>
<Description> myTestType Document </Description>
<Superclass Reftype ="name">Document</Superclass>
<Attributes>
<Attribute>
<Name> Category </Name>
<DataType> String </DataType>
<DataLength> 80 </DataLength>
</Attribute>
<Attribute>
<Name> posted_date </Name>
<DataType format="mm-dd-yyyy"> date </DataType>
</Attribute>
</Attributes>
</ClassObject>
I could able to upload this to ifs. No problem at this time. But when I try to load the below sample, I am getting the same parse problem.(IFS-12635 SimpleXmlParser: Value(12-25-1992) not valid for type (Date.).
sample xml document
<?xml version="1.0" standalone="yes"?>
<myTestType>
<name> testing.myTestType</name>
<Category>Administration_4</Category>
<posted_date >12-25-1992</posted_date>
</myTestType>
Thank you. -
Sales Order date validation against Contract Date
Dear All,
We are creating Contracts with validity period from date to enddate.
With reference to contract, the sales orders date should be validated. However the present scenario is validating with warning message. How it will be converted to error message and should not be allowed to create sales order.
SudheerHi Ashwin,
for the contract the field RV45A-KWMENG is calculated dynamically based on the quantities of the subsequent orders made.
In contrast to this for a sales order the field VBAP-KWMENG is the actual sales order quantity filled in the order. All this happens in SAPFV45P/ Include FV45PFAP_XVBAP_LESEN
Bei Kontrakten wird die Abrufmenge angezeigt (logic for sales order quantity determination within contract). IF VBAK-VBTYP CA VBTYP_KONT AND
TVAP-ETERL IS INITIAL.
IF VBAP-KZFME IS INITIAL.
RV45A-KWMENG = XVBAPF-ERLMENGE * QUAN_1 * VBAP-UMVKN / VBAP-UMVKZ.
ELSE.
RV45A-KWMENG = XVBAPF-ERLMENGEV * QUAN_1.
ENDIF.
IF RV45A-KWMENG LT 0.
RV45A-KWMENG = 0.
ENDIF.
ENDIF.
Hope it helps.
Maybe you are looking for
-
Recover Deleted Boot Camp Partition
Hello, A week ago I tried to delete Ubuntu from my Windows 8 Boot Camp partition on my MacBook. However, after the process I couldn't boot Mavericks anymore. When I finally got Mavericks to boot, my Windows partition became unbootable. After running
-
OC4J Instance Configuration Assistant Failed during SSO install
Hi, I am building a Oracle Portal on Linux Server, at step of SSO installation i reached an error *"OC4J Instance Configuration Assistant Failed"* . In the log file i found that : Calling updateConfig to notify DCM of new deployments...done. Adding O
-
Side by side select options in selection screen
Hai Gurus, In a report, I need to place Period From and Period To date select-options in selection screen. In one line (i.e side by side). Appreciate your immediate response. Thanks and Regards, Kiran.
-
Can i drop the connection user and schema used for Accociate repository
Hi I have created a connection , user and schema and Associated repository to it then migrated a database from diffrent product. to oracle using the above mentioned connection, user ,schema and asscociated repositroy. 11g XE. can i delete it after th
-
Nokia 7373 - replacement cases
Okay, so the plastic screen cover on my Nokia 7373 was cracked. I went into my local Nokia Care Center who said they could replace it for me, but they didn't have the right cover (I've got the swirly black one). I found one online at Amazon (http://w