Recorded Inspection Results Data Conversion
Hi,
I have to upload the data from file to SAP using LSMW can anybody suggest me the standard method to do it for transaction code QE01.
Or any function module for the same is really help full.
Thanks
Dhirendra
Hi,
please check BAPI:
Method: Recordresults
Bus.-obj.: InspLotOperation
Function module: BAPI_INSPOPER_RECORDRESULTS
Similar Messages
-
Hi All,
In result recording inspection results can be copied to the actual inspection lot from an existing lot. Is this possible, if so where we have to this customizing.
NavinHi,
Pl go thro the forum post and doc link below
Re: Copy Inspection Results
http://help.sap.com/saphelp_47x200/helpdata/en/00/07cf2ec3b42046aeeb527773165efc/content.htm
Regards
K.M.Arun -
Cannot Record Material Inspection Results as per wiki use case * SOLVED *
=== EDIT ===
Playing around, I solved my issue.
I did not realize that I needed to set both flags
CloseIndicatorSpecified = true;
CloseIndicator = false;
Adding that fixed it; I suspect I cannot set them to null even if the WSDL allows it.
Michel.
=== ORIGINAL POST ===
Hi,
I have a project to integrate SAP and our LIMS using the SAP web services with the Material Inspection business object.
In the Wiki, there are a few [use cases|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ESpackages/IntegrationofQualityManagementSystems] on the subject.
Following that, I successfully retrieve all the required data using the following web services:
[Find Material Inspection Basic Data by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindMaterialInspectionBasicDatabyElements]
[Find Material Inspection Subset Operation by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindMaterialInspectionSubsetOperationbyElements]
[Find Subset Operation Inspection Activity Basic Data by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindSubsetOperationInspectionActivityBasicDatabyElements]
[Read Subset Operation Inspection Activity|https://wiki.sdn.sap.com/wiki/display/ESpackages/ReadSubsetOperationInspectionActivity]
From there, I want to record results. According to the Wiki , I should use
[Record Subset Operation Inspection Activity Result|https://wiki.sdn.sap.com/wiki/display/ESpackages/RecordSubsetOperationInspectionActivity+Result]
I tried directly through the [WS Navigator|http://sr.esworkplace.sap.com/webdynpro/dispatcher/sap.com/tcesiespwsnavui/WSNavigator] to test web services. Whenever go through that tho, I get the following error:
Conversion Error: Invalid Input Format (701 SFB)
Obviously, I get the exact same error using c# (at least I'm consistent!)
Below is the code (some is truncated because it is too long but I think you can get the idea).
The question: Can anyone help me understand why I am getting that error? Maybe there is one or more property I don't understand... It would be practical if the actual failing property was identified in the LogItem, but it is not.
Some things I tried (to no avail):
1. Tried all sort of combination for actionCode
2. Removed actionCode and set actionCodeSpecified = false
3. Removed the Measure property
4. Removed the Text property
5. Removed the ChangeStateID
Thanks in advance!
Michel
...RequestMessage_sync messageIn = new ...RequestMessage_sync();
messageIn.MaterialInspection = new u2026RequestMessage_syncMaterialInspection();
messageIn.MaterialInspection.ID = new MaterialInspectionID();
messageIn.MaterialInspection.ID.Value = "3265";
messageIn.MaterialInspection.ChangeStateID = "1";
messageIn.MaterialInspection.Subset = new u2026RequestMessage_syncMaterialInspectionSubset();
messageIn.MaterialInspection.Subset.ID = new InspectionSubsetID();
messageIn.MaterialInspection.Subset.ID.Value = "0";
messageIn.MaterialInspection.Subset.Operation = new u2026RequestMessage_syncMaterialInspectionSubsetOperation();
messageIn.MaterialInspection.Subset.Operation.ID = "0300";
u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivity activity = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivity();
activity.ID = "0010";
activity.CloseIndicatorSpecified = false;
activity.Result = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivityResult[1];
activity.Result[0] = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivityResult();
activity.Result[0].ID = "0001";
activity.Result[0].AcceptanceStatusCodeSpecified = false;
activity.Result[0].DefectNumberValueSpecified = false;
activity.Result[0].ExceptionIndicatorSpecified = false;
activity.Result[0].InspectedNumberValueSpecified = false;
activity.Result[0].Comment = string.Empty;
activity.Result[0].NonConformingUnitNumberValue = 0;
activity.Result[0].Measure = new Measure();
activity.Result[0].Measure.Value = decimal.Parse("4.15";);
activity.Result[0].Measure.unitCode = "AMP";
activity.Result[0].Text = new Text();
activity.Result[0].Text.Value = "Some Text Here";
activity.Result[0].actionCode = ActionCode.Item01 |ActionCode.Item02 | ActionCode.Item03;
activity.Result[0].actionCodeSpecified = true;
activity.CloseIndicatorSpecified = false;
messageIn.MaterialInspection.Subset.Operation.InspectionActivity = activity;
messageIn.MessageHeader = new BasicBusinessDocumentMessageHeader();
messageIn.MessageHeader.ID = new BusinessDocumentMessageID();
messageIn.MessageHeader.ID.Value = "starlims_update";
try
u2026ConfirmationMessage_sync messageOut = ws.MaterialInspectionSubsetOperationInspectionActivityResultRecordingRequestConfirmation_In(messageIn);
if (messageOut.Log.Item != null)
string message = String.Empty;
foreach (LogItem item in messageOut.Log.Item)
message += (item.Note + "\n");
MessageBox.Show(message);
catch (Exception ex)
MessageBox.Show(ex.Message);
Edited by: Michel Roberge on Jul 16, 2008 2:38 PMSee post for solution.
-
QM "Origin of Results Data" while results recording
Hello there,
We wish to record few characteristics value directly in the batch classification and wish the same to be copied in the associated inspection lot MIC.
In the results recording (QE01), Record Results : Characteristics Single Screen, there is a ResDatOrigin field. According to the documentation, the results data origin is the source from where the results are copied. One of the option contained there is Batch Valuation.
We wish to use the Batch Valuation option to meet our requirements. If you can share any alternate way to achieve the results copying to inspection lot characteristics from batch characteristics, that will be great as well.
Thanks a lot in advance. Please do share whatever gems you have. Highly appreciated.
Regards,
Kundan Kumar
PS: One of the statements contained in the help is: They (Results Data Origin) are for information purposes only and have no controlling function.Hi Craig,
Yes, we are not in GLP environment.
We wish to keep our data entry options simplified and hence the request. There are a number of inspection parameters, along with batch parameters, which are recorded at our production operations. We have an effective way of entering batch characteristics values by "Fast Entry of Characteristics Values" by IS-MILL. We do not wish to re-enter the same data in inspection lot again.
We wish the data in inspection lot to be copied from the batch characteristics. The QM inspector can optionally change the results, which will then be copied back into the batch characteristics.
This will allow us to do analysis on QM related parameters with appropriate controls and simplified data entry.
If development is the only answer, what will be the best way to go around for same. Which possible issues to keep eye upon.
Regards,
Kundan -
Dear Customer,
It hase come to our attention that your account billing Information records are out of date. That requires you to update your Billing Information. Failure to update your records will result in account termination records...
Click on the reference link below and enter your login Information on the following page to confirm your Billing Information records..
Verify Now >
Wondering why you got this email?
It's sent when someone adds or changes a contact email address for an Apple ID account. If you didn't do this, don't worry. Your email address cannot be used as a contact address for an Apple ID without your verification.
For more information, see our frequently asked questions.
Thanks,
Apple Customer Support
TM and copyright © 2014 Apple Inc. Apple Sales International, Hollyhill Industrial Estate, Cork, Ireland. Company Registration number: 15719. VAT number: IE6554690W.
All Rights Reserved / Keep Informed / Privacy Policy / My Apple ID
Anyone else get this today?
And yep i know this message doesn't go here however the ability to post in general postings to most viewers is lost to me in the ridicules way apple setup there supportIt's phishing. Forward it to [email protected] and then delete it.
(118880) -
SAP QM Result recording - Copy inspection results functionality
Dear all,
I have two queries.
1) The Raw materials used in various plants are same. I want to copy the inspection results to the inspection lot if the batch is already accepted in other plant. The material, batch and vendor is common point. Some of the characteristics are caluculated characteristics. How to map this requirement.
2) I want to test the standard functionality for copy results but in my system, the settings for copy inspection results is not appearing in quality inspections in SPRO. I want to confirm whether I am missing some other setting.
Regards,
ManoharHello Jessica,
you could try the following bapis:
BAPI_INSPCHAR_GETRESULT
BAPI_INSPCHAR_SETRESULT
Although the desired functionality was actually implemented in higher releases.
Hope this helps you.
Regards,
Isabelle -
Quality inspection result recording thru LSMW
Dear All,
I donot have any idea of LSMW.
We have requirement of upload result data which are maintained in EXCEL.
I gone thru document of LSMW available on NET.
Can any one guide me step-by-step procedure for the same or can share good document.
Thanks in advance,
NiravHi,
Pl go through the below documents.
[LSMW|https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0Bw3TmL29DWuPNzQ5OTU1ZTYtNTllMC00OTE1LWE5YWMtYTBlYWUxMTk5Nzgz&hl=en&authkey=CNDa2_0G]
Arun -
QM Inspection results transfered back to batch
Experts,
after taking a usage decision, I want all inspection results to be transfered back to the batch.
But if a result is out of spec, it gets a negative valuation, then I get the warning 'batch could only be partially valuated' and the result of this char is not writte back to the batch.
How can I have also the negative results recorded in the batch?
ThxIn the batch level make sure that any value you are giving will be accepted.
master data required
Batch and batcth charectristics
MIC- copay from batch charectristics
Material specification with same MIC's.
Quality plan with same MIC's.
In the batch charectistics make sure that the range is more tahn that in MIC so that any value is taken or in batch chereristics -check box - aditional value allowed in value tab page is active.
With this setting you should be in the position to get the results -
Error during copying inspection result.
Hi All,
While recording result with the Inspection plan where I had done settings to copy inspection result from another lot I got the error message;;;;
Message Text
No active implementation exists for BAdI QEC_SELECTION, procedure
Technical Data
Message type__________ E (Error)
Message class_________ QECOPY (QM Data Transfer to an Inspection Lot)
Message number________ 016
Message variable 1____ QEC_SELECTION
Message variable 2____
Message variable 3____
Message variable 4____
Message Attributes
Level of detail_______
Problem class_________ 1 (very important)
Sort criterion________
Number________________ 1
Pls guide me how do I activate this BADi
Regards,
Shyamal JoshiHI all,
I think I will not get any response over it so closing the thread to contribute in new rule of engagement.
Regards,
Shyamal -
Hi All,
My client needs inspection report Work centre (date wise).
In MCXB it is coming work centre wise but moth wise I am gating.
In QGA2 its coming work centre and date wise but problem is after expanding the column all information is not there like accepted & rejected quantity, lot seize, percentage rejection, inspection origin.etc.
Please help me out, how to get such report.
Regards,
sidSAP does a lousy job of providing inspection result reports. There are not many ways to get the actual recorded value(s) for a test, or inspection lot.
For what you want, I woud suggest you develop a custom report.
FF -
Uploading/Interfacing Inspection Results
HI QM Users,
Our manufacturer is planning to send the inspection results using XML, ASCII file and we need to upload that in our SAP QM system. What is the best way to achieve this? Does anyone has done results recording by reading from a input file before? Is it simple to do?
I also have following concerns about this process-
1. How to match all insp. plan (characteristics, possible code values, sampling and possibly the valuation mode etc.) per SAP requirements. How to define the file structure for such file transfer.
2. How to validate the accuracy of the data in the source system. i.e. possible values/parameters for each characteristics.
Regards,Usually you set the inspection up that you expect to have data uploaded to from an external system with a QDR system assigned to the workcenter. This cause the characteristics to be identified as going to be recorded from an exrternal system such as a LIMS.
LIMS vendors usually provide the interface to perform the function of loading the data to SAP. In your case you will have to design that piece. SAP provides the routines to do this. You'll need to design a way to get the file from your vendor into the format needed to to load.
The info below should help you get started.
Craig
Communication with External Systems
RFC function modules are available in QM for communication with external systems. The names of all the function modules begin with QIRF_, which makes them easy to find within the development environment.
QIRF_SEND... These function modules allow you to download data from an ERP system to a subsystem.
QIRF_GET... These function modules allow you to upload data from a subsystem to an ERP system.
For further details on the function modules, see the documentation for QM.
QIRF_SEND_REQUIRMENTS_GET_DATA
You use this function module to download operation and characteristics data to the subsystem. Ensure that the Record Type field in the I_QUAILS input structure is empty and that the SUBSYS (Subsystem) field is filled.
QIRF_GET_ORIGINAL_VALUES
You use this function module to upload inspection data recorded in the subsystem to an ERP system.
For quantitative characteristics, use record type Q51. For qualitative characteristics, use record type Q52. -
Copy Inspection Results of one lot to other lots at a time
Dear Experts,
As per settings made under "Make Settings for Copy of Inspection Results" I am able to copy inspection results but still I am not getting what I exactly want. Below are different requirements explained in details
1. I am not able to copy twice on the same lot. e.g. if a lot has status RREC i.e. RR has been done then if at a later time I want to copy some other results over here then it's not happening.
In help.sap page somewhere it is mentioned that copy is possible if lot has status CALC. I want to have some configuration which I don't know for which SAP should allow the copy functionality with status RREC also.
2. By above functionality I want to do RR for several lots collectively at a time. E.g. if I have 100 lots then with same quality results it's tedious to copy results for each one by one. Like "QA16 - Collective Usage Decision" I didn't find any similar transaction for results recording(collectively).
3. Although my results are being copied from one lot another but MIC valuation are not being transferred given that I am not using any sampling procedure. I want manual valuation to be copied to the destination lots.
Any valuable suggestion will be highly appreciated.
Regards,Dear,
it is not clear from your question.
Please get more details,
In which release you are working?
In SPRO what special setting you made for this special case
Inspection origin is linked with no range/TL type/insp type.
Wher exactly you set this new configuration.
Please let us know so that we can simulate and help you out -
Creating new record in Results Table giving Error
Hi All,
On update page there is a Results Table with Add button to create a new row.
While creating a new record on Results Table gives error
Attribute set for AccessId in view object XXLCUpdVariablesVO1 failed
I have checked EO and VO attributes, everything seems to be right.
Also Updatable is set to 'Always'.
Still don't know why this error is coming up.
Plz help to resolve this error.
Thanks,
SKAjay,
XML code
<?xml version='1.0' encoding='windows-1252' ?>
<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
<Entity
Name="XXLCVarAssignmentsEO"
DBObjectType="table"
DBObjectName="XXLCOKC_VARIABLE_ASSIGNMENTS"
AliasName="XXLCVarAssignmentsEO"
BindingStyle="OracleName"
UseGlueCode="false"
RowClass="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEOImpl"
DefClass="oracle.apps.fnd.framework.server.OAEntityDefImpl"
CollClass="oracle.apps.fnd.framework.server.OAEntityCache" >
<DesignTime>
<Attr Name="_isCodegen" Value="true" />
<Attr Name="_version" Value="10.1.3.41.57" />
<AttrArray Name="_publishEvents">
</AttrArray>
<Attr Name="_panelSchema" Value="table|alias" />
<Attr Name="_codeGenFlag2" Value="Init|Delete|Access|Val" />
</DesignTime>
<Attribute
Name="AssignmentId"
IsNotNull="true"
ColumnName="ASSIGNMENT_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS"
PrimaryKey="true" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="AssignmentAccess"
IsNotNull="true"
Precision="30"
ColumnName="ASSIGNMENT_ACCESS"
Type="java.lang.String"
ColumnType="VARCHAR2"
SQLType="VARCHAR"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="30" />
</DesignTime>
</Attribute>
<Attribute
Name="VariableId"
IsNotNull="true"
ColumnName="VARIABLE_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="ListValueId"
IsNotNull="true"
ColumnName="LIST_VALUE_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="OrganizationId"
IsNotNull="true"
Precision="15"
Scale="0"
ColumnName="ORGANIZATION_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="TemplateId"
IsNotNull="true"
ColumnName="TEMPLATE_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="AuctionHeaderId"
IsNotNull="true"
ColumnName="AUCTION_HEADER_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="PoHeaderId"
IsNotNull="true"
ColumnName="PO_HEADER_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="CreatedBy"
IsNotNull="true"
ColumnName="CREATED_BY"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="CreationDate"
IsNotNull="true"
ColumnName="CREATION_DATE"
Type="oracle.jbo.domain.Date"
ColumnType="DATE"
SQLType="DATE"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="7" />
</DesignTime>
</Attribute>
<Attribute
Name="LastUpdateDate"
IsNotNull="true"
ColumnName="LAST_UPDATE_DATE"
Type="oracle.jbo.domain.Date"
ColumnType="DATE"
SQLType="DATE"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="7" />
</DesignTime>
</Attribute>
<Attribute
Name="LastUpdatedBy"
IsNotNull="true"
ColumnName="LAST_UPDATED_BY"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="LastUpdateLogin"
IsNotNull="true"
ColumnName="LAST_UPDATE_LOGIN"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Attribute
Name="AccessId"
ColumnName="ACCESS_ID"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
SQLType="NUMERIC"
TableName="XXLCOKC_VARIABLE_ASSIGNMENTS" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</Attribute>
<Key
Name="SysC00329905" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.AssignmentAccess" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""ASSIGNMENT_ACCESS" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329905" />
</DesignTime>
</Key>
<Key
Name="SysC00329906" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.VariableId" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""VARIABLE_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329906" />
</DesignTime>
</Key>
<Key
Name="SysC00329907" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.ListValueId" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""LIST_VALUE_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329907" />
</DesignTime>
</Key>
<Key
Name="SysC00329908" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.OrganizationId" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""ORGANIZATION_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329908" />
</DesignTime>
</Key>
<Key
Name="SysC00329909" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.TemplateId" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""TEMPLATE_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329909" />
</DesignTime>
</Key>
<Key
Name="SysC00329910" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.AuctionHeaderId" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""AUCTION_HEADER_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329910" />
</DesignTime>
</Key>
<Key
Name="SysC00329911" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.PoHeaderId" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""PO_HEADER_ID" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329911" />
</DesignTime>
</Key>
<Key
Name="SysC00329912" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.CreatedBy" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""CREATED_BY" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329912" />
</DesignTime>
</Key>
<Key
Name="SysC00329913" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.CreationDate" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""CREATION_DATE" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329913" />
</DesignTime>
</Key>
<Key
Name="SysC00329914" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.LastUpdateDate" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""LAST_UPDATE_DATE" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329914" />
</DesignTime>
</Key>
<Key
Name="SysC00329915" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.LastUpdatedBy" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""LAST_UPDATED_BY" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329915" />
</DesignTime>
</Key>
<Key
Name="SysC00329916" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.LastUpdateLogin" />
</AttrArray>
<DesignTime>
<Attr Name="_checkCondition" Value=""LAST_UPDATE_LOGIN" IS NOT NULL" />
<Attr Name="_isCheck" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329916" />
</DesignTime>
</Key>
<Key
Name="SysC00329917" >
<AttrArray Name="Attributes">
<Item Value="xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO.AssignmentId" />
</AttrArray>
<DesignTime>
<Attr Name="_isPrimary" Value="true" />
<Attr Name="_DBObjectName" Value="SYS_C00329917" />
</DesignTime>
</Key>
</Entity>
XXLCVarAssignmentsEOImpl Code
package xxlc.oracle.apps.okc.schema.articles.variables.server;
import oracle.apps.fnd.framework.OAAttrValException;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.server.OAEntityDefImpl;
import oracle.apps.fnd.framework.server.OAEntityImpl;
import oracle.jbo.AttributeList;
import oracle.jbo.Key;
import oracle.jbo.domain.Date;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.EntityDefImpl;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class XXLCVarAssignmentsEOImpl extends OAEntityImpl
public static final int ASSIGNMENTID = 0;
public static final int ASSIGNMENTACCESS = 1;
public static final int VARIABLEID = 2;
public static final int LISTVALUEID = 3;
public static final int ORGANIZATIONID = 4;
public static final int TEMPLATEID = 5;
public static final int AUCTIONHEADERID = 6;
public static final int POHEADERID = 7;
public static final int CREATEDBY = 8;
public static final int CREATIONDATE = 9;
public static final int LASTUPDATEDATE = 10;
public static final int LASTUPDATEDBY = 11;
public static final int LASTUPDATELOGIN = 12;
public static final int ACCESSID = 13;
private static OAEntityDefImpl mDefinitionObject;
/**This is the default constructor (do not remove)
public XXLCVarAssignmentsEOImpl()
/**Retrieves the definition object for this instance class.
public static synchronized EntityDefImpl getDefinitionObject()
if (mDefinitionObject == null)
mDefinitionObject =
(OAEntityDefImpl)EntityDefImpl.findDefObject("xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVarAssignmentsEO");
return mDefinitionObject;
/**Add attribute defaulting logic in this method.
public void create(AttributeList attributeList)
super.create(attributeList);
OADBTransaction transaction = getOADBTransaction();
Number asgId = transaction.getSequenceValue("XXLC_VAR_ASG_SEQ");
setAssignmentId(asgId);
/**Add entity remove logic in this method.
public void remove()
super.remove();
/**Add Entity validation code in this method.
protected void validateEntity()
super.validateEntity();
/**Gets the attribute value for AssignmentId, using the alias name AssignmentId
public Number getAssignmentId()
return (Number)getAttributeInternal(ASSIGNMENTID);
/**Sets <code>value</code> as the attribute value for AssignmentId
public void setAssignmentId(Number value)
if (value != null)
OADBTransaction transaction = getOADBTransaction();
Object[] varKey = {value};
EntityDefImpl varDefinition = XXLCVarAssignmentsEOImpl.getDefinitionObject();
XXLCVarAssignmentsEOImpl variable =
(XXLCVarAssignmentsEOImpl)varDefinition.findByPrimaryKey(transaction, new Key(varKey));
if (variable != null)
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // EO name
getPrimaryKey(), // EO PK
"AssignmentId", // Attribute Name
value, // Attribute value
"AK", // Message product short name
"FWK_TBX_T_EMP_ID_UNIQUE"); // Message name
setAttributeInternal(ASSIGNMENTID, value);
/**Gets the attribute value for AssignmentAccess, using the alias name AssignmentAccess
public String getAssignmentAccess()
return (String)getAttributeInternal(ASSIGNMENTACCESS);
/**Sets <code>value</code> as the attribute value for AssignmentAccess
public void setAssignmentAccess(String value)
setAttributeInternal(ASSIGNMENTACCESS, value);
/**Gets the attribute value for VariableId, using the alias name VariableId
public Number getVariableId()
return (Number)getAttributeInternal(VARIABLEID);
/**Sets <code>value</code> as the attribute value for VariableId
public void setVariableId(Number value)
setAttributeInternal(VARIABLEID, value);
/**Gets the attribute value for ListValueId, using the alias name ListValueId
public Number getListValueId()
return (Number)getAttributeInternal(LISTVALUEID);
/**Sets <code>value</code> as the attribute value for ListValueId
public void setListValueId(Number value)
setAttributeInternal(LISTVALUEID, value);
/**Gets the attribute value for OrganizationId, using the alias name OrganizationId
public Number getOrganizationId()
return (Number)getAttributeInternal(ORGANIZATIONID);
/**Sets <code>value</code> as the attribute value for OrganizationId
public void setOrganizationId(Number value)
setAttributeInternal(ORGANIZATIONID, value);
/**Gets the attribute value for TemplateId, using the alias name TemplateId
public Number getTemplateId()
return (Number)getAttributeInternal(TEMPLATEID);
/**Sets <code>value</code> as the attribute value for TemplateId
public void setTemplateId(Number value)
setAttributeInternal(TEMPLATEID, value);
/**Gets the attribute value for AuctionHeaderId, using the alias name AuctionHeaderId
public Number getAuctionHeaderId()
return (Number)getAttributeInternal(AUCTIONHEADERID);
/**Sets <code>value</code> as the attribute value for AuctionHeaderId
public void setAuctionHeaderId(Number value)
setAttributeInternal(AUCTIONHEADERID, value);
/**Gets the attribute value for PoHeaderId, using the alias name PoHeaderId
public Number getPoHeaderId()
return (Number)getAttributeInternal(POHEADERID);
/**Sets <code>value</code> as the attribute value for PoHeaderId
public void setPoHeaderId(Number value)
setAttributeInternal(POHEADERID, value);
/**Gets the attribute value for CreatedBy, using the alias name CreatedBy
public Number getCreatedBy()
return (Number)getAttributeInternal(CREATEDBY);
/**Sets <code>value</code> as the attribute value for CreatedBy
public void setCreatedBy(Number value)
setAttributeInternal(CREATEDBY, value);
/**Gets the attribute value for CreationDate, using the alias name CreationDate
public Date getCreationDate()
return (Date)getAttributeInternal(CREATIONDATE);
/**Sets <code>value</code> as the attribute value for CreationDate
public void setCreationDate(Date value)
setAttributeInternal(CREATIONDATE, value);
/**Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate
public Date getLastUpdateDate()
return (Date)getAttributeInternal(LASTUPDATEDATE);
/**Sets <code>value</code> as the attribute value for LastUpdateDate
public void setLastUpdateDate(Date value)
setAttributeInternal(LASTUPDATEDATE, value);
/**Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy
public Number getLastUpdatedBy()
return (Number)getAttributeInternal(LASTUPDATEDBY);
/**Sets <code>value</code> as the attribute value for LastUpdatedBy
public void setLastUpdatedBy(Number value)
setAttributeInternal(LASTUPDATEDBY, value);
/**Gets the attribute value for LastUpdateLogin, using the alias name LastUpdateLogin
public Number getLastUpdateLogin()
return (Number)getAttributeInternal(LASTUPDATELOGIN);
/**Sets <code>value</code> as the attribute value for LastUpdateLogin
public void setLastUpdateLogin(Number value)
setAttributeInternal(LASTUPDATELOGIN, value);
/**getAttrInvokeAccessor: generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index,
AttributeDefImpl attrDef) throws Exception
switch (index)
case ASSIGNMENTID:
return getAssignmentId();
case ASSIGNMENTACCESS:
return getAssignmentAccess();
case VARIABLEID:
return getVariableId();
case LISTVALUEID:
return getListValueId();
case ORGANIZATIONID:
return getOrganizationId();
case TEMPLATEID:
return getTemplateId();
case AUCTIONHEADERID:
return getAuctionHeaderId();
case POHEADERID:
return getPoHeaderId();
case CREATEDBY:
return getCreatedBy();
case CREATIONDATE:
return getCreationDate();
case LASTUPDATEDATE:
return getLastUpdateDate();
case LASTUPDATEDBY:
return getLastUpdatedBy();
case LASTUPDATELOGIN:
return getLastUpdateLogin();
case ACCESSID:
return getAccessId();
default:
return super.getAttrInvokeAccessor(index, attrDef);
/**setAttrInvokeAccessor: generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value,
AttributeDefImpl attrDef) throws Exception
switch (index)
case ASSIGNMENTID:
setAssignmentId((Number)value);
return;
case ASSIGNMENTACCESS:
setAssignmentAccess((String)value);
return;
case VARIABLEID:
setVariableId((Number)value);
return;
case LISTVALUEID:
setListValueId((Number)value);
return;
case ORGANIZATIONID:
setOrganizationId((Number)value);
return;
case TEMPLATEID:
setTemplateId((Number)value);
return;
case AUCTIONHEADERID:
setAuctionHeaderId((Number)value);
return;
case POHEADERID:
setPoHeaderId((Number)value);
return;
case CREATEDBY:
setCreatedBy((Number)value);
return;
case CREATIONDATE:
setCreationDate((Date)value);
return;
case LASTUPDATEDATE:
setLastUpdateDate((Date)value);
return;
case LASTUPDATEDBY:
setLastUpdatedBy((Number)value);
return;
case LASTUPDATELOGIN:
setLastUpdateLogin((Number)value);
return;
case ACCESSID:
setAccessId((Number)value);
return;
default:
super.setAttrInvokeAccessor(index, value, attrDef);
return;
/**Gets the attribute value for AccessId, using the alias name AccessId
public Number getAccessId()
return (Number)getAttributeInternal(ACCESSID);
/**Sets <code>value</code> as the attribute value for AccessId
public void setAccessId(Number value)
setAttributeInternal(ACCESSID, value);
/**Creates a Key object based on given key constituents
public static Key createPrimaryKey(Number assignmentId)
return new Key(new Object[]{assignmentId});
Thanks,
SK -
Is there any way to name the records from a data merge?
I have a spreadsheet, that has all the names for the images I'm using for a data merge. What I want to do is name the resulting records after the filenames in one of the columns in the spreadsheet. Is there anyway to do this? Or is there some other way to individually name the records from a data merge? I don't have any scripting prowess, so I can't really mess with that. Any help is greatly appreciated! Thanks!
You merge it along with the others, just like any field. ID cannot do the naming for you during the merge, but most spreadsheets have lots of logic capabilities that should allow you to extract a name for the record from the filename in the column of your choice. The only reason ID knows to find the image instead of writing the filename is that you've used a special name for the field.
-
Hello I'm new to Oracle DB and still learn SQL.
I have a problem with data conversion in a CASE expression.
Example:
select ... ,
CASE column WHEN 1 THEN
select max(column)
from table
where ...
ELSE 0 END AS value,
from ...
where ...
order by ...
What I'm basically intend to do is to select a value from another table depending on the value of
a special column.
The problem now is that the
select max(column)
from table
where ...
statement in its original form selects the right value as float (e.g. 0.24)which I need.
But the same statement embedded in the CASE expression returns (e.g. 0 ) which seems to be the same result converted to an integer or something.
I tried to convert the result in the CASE expression but without success.
Does anybody know what could cause this behavior and how to fix it ?
Thanks for any help with this.Welcome to the forum!
Whenever you have a problem, post a complete script that people can run to re-create the problem. Include CREATE TABLE and INSERT statements for a little sample data if necessary. (A lot of folks show the problem using commonly available tables, such as those in the scott or hr schemas, so they don't have to post any sample data.)
if your problem involves an error message, post the complete error message you're getting, including line numbers.
Always say which version of Oracle you're using, e.g. 10.2.0.1.0.
Sorry, I can't re-create the problem.
I did something as similar as I could to what you posted:
SELECT deptno
, CASE deptno
WHEN 10
THEN (
SELECT MAX (sal)
FROM scott.emp
WHERE deptno = d.deptno
ELSE 0
END AS value
, dname
FROM scott.dept d
WHERE deptno <= 30
ORDER BY deptno
;And it ran, producing this output:
` DEPTNO VALUE DNAME
10 5000 ACCOUNTING
20 0 RESEARCH
30 0 SALES
886562 wrote:Hello I'm new to Oracle DB and still learn SQL.I've been using Oracle for 20 years, and still learn SQL.
select ... ,
CASE column WHEN 1 THEN
select max(column)
from table
where ...
ELSE 0 END AS value,
The problem now is that the
select max(column)
from table
where ...
statement in its original form selects the right value as float (e.g. 0.24)which I need.
But the same statement embedded in the CASE expression returns (e.g. 0 ) which seems to be the same result converted to an integer or something.Are you sure that 0 is being returned by the sub-query in the THEN clause, and not by the ELSE clause?
I tried to convert the result in the CASE expression but without success.What did you try? Post your code.
What problem did you have? Post the error message.
Edited by: Frank Kulash on Sep 21, 2011 6:15 AM
Maybe you are looking for
-
How to display a pdf using outlook
How to display a pdf using outlook
-
Modification of VA01,VA02,VA03
I need to modify the standard program which is corresponding to VA**. In those T.Codes I want to add some screen elements in additional data B tab. some elements should be in one box and the remaining elements should be in other box. Now the thing is
-
ITunes ripping certain CDs slow and creating distorted tracks
I have just recently swicthed to iTunes after getting my new laptop and ripped my entire CD collection using it (iTunes 9.1.1 I believe). Anyway, out of probably 200 CDs I've found 5 that just won't rip properly and I can't, no matter what I look for
-
SMS and Contacts transfer to iponhe
Hi Guys! I have q10 blackberry lots of contact and message. I already did the backup using blackberry link. how can I extract or transfer my sms and contacts to my ipone?
-
I have Exchange 2013 UM setup and now I want to call in and be able to record a custom greeting the Auto Attendant. Is there a step by step on how to enable this? Thanks