How to Generate a Custom Message for A Custom Code.
Hello,
Can anyone guide me on this -
Application : 11.5.10.2
We have a cutom Trigger through which we want to display a custom message.
We have re-generated the .msb, but it seems that something is missing.
Following are the Steps We have followed to generate a custom message.
1. Responsibility "Application Developer"
2. Go to Applications
3. Select Message
4. Define a new custom message.
5. Save
6. Run Request " Generate Message"
Now when the trigger gets fired , we are not able to see our Custom message.
How do we call this messge in the custom code.
Pl. help on this , also can i get some reference note id's on this.
Thanks in advance.
Regards,
Jenny
CREATE OR REPLACE TRIGGER KPC_RCV_TRANSACTIONS_INTERFACE
AFTER INSERT OR UPDATE ON APPS.RCV_TRANSACTIONS_INTERFACE
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
--- This Trigger Validates following things
--- 1. Creation date is not modified and is greater than system date.
--- 2. RTV should not be possible before ERS is generated.
--- 3. Inspection should not be possible through Deliver Transactions Responsibility
--- 4. Delivery of Material should not be possible through Inspection Responsibility
--- 5. Item is Excisable and Excise Invoice No Or Excise Invoice Date is Missing
--- 6. Only Inspected and Accepted material is Delivered to Subinventory
--- 7. Check for Existance of 57F4 for Subcon Job Receipts
--- 8. Check Taxes are not Missing
--- 9. Check Taxes are Correct
--- Declaring The Variables
DECLARE
v_grade number := 0;
v_employee_id number := 0;
v_responsibility varchar2(100) := 'Z';
v_closed_taxes_count number := 0;
v_taxes_count number := 0;
v_invoiced_status_code varchar2(01) := 'N';
v_57f4_id number := 0;
l_date_ok varchar2(01) := 'N';
l_gate_date_ok varchar2(01) := 'N';
l_cenvatable_flag varchar2(01) := 'N';
l_excise_ok varchar2(01) := 'N';
l_rtv_ok varchar2(01) := 'N';
l_inspection_ok varchar2(01) := 'N';
l_delivery_ok varchar2(01) := 'N';
l_rej_delivery_ok varchar2(01) := 'N';
BEGIN
-- Get Looged in Responsibility Name
begin
SELECT upper(responsibility_name)
INTO v_responsibility
FROM apps.fnd_responsibility_vl
WHERE responsibility_id = apps.fnd_global.resp_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_responsibility := 'Z';
WHEN OTHERS THEN
v_responsibility := 'Z';
END;
--- Modifications Done by SMT to Bypass checking for following Users
if (apps.fnd_global.user_id < 1091) then
return;
end if;
--- if (apps.fnd_global.user_id in (1090,1111,1112,1126,1540,1591,1570,1881)) then
--- return;
--- end if;
---- Collect the Information Required from Other Tables
--- Check whether item is cenvatable
l_cenvatable_flag := 'N';
begin
select 'Y'
into l_cenvatable_flag
from apps.ja_in_po_line_location_taxes jipll
where upper(jipll.tax_type) in ('EXCISE','CVD')
and jipll.po_header_id = :new.po_header_id
and jipll.po_line_id = :new.po_line_id
and jipll.line_location_id = :New.po_line_location_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
l_cenvatable_flag := 'N';
WHEN OTHERS THEN
l_cenvatable_flag := 'N';
end;
--- Check whether Taxes are closed
v_closed_taxes_count := 0;
begin
select count(distinct jit.tax_id)
into v_closed_taxes_count
from apps.ja_in_tax_codes jit,
apps.ja_in_po_line_location_taxes jipl
where nvl(jit.end_date,sysdate)< sysdate
and jit.tax_id = jipl.tax_id
and po_header_id = :new.po_header_id
and po_line_id = :new.po_line_id
and line_location_id = :new.po_line_location_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_closed_taxes_count := 0;
WHEN OTHERS THEN
v_closed_taxes_count := 0;
end;
--- Check Existance of Taxes
v_closed_taxes_count := 0;
begin
select count(distinct jit.tax_id)
into v_taxes_count
from apps.ja_in_tax_codes jit,
apps.ja_in_po_line_location_taxes jipl
where nvl(jit.end_date,sysdate)< sysdate
and jit.tax_id = jipl.tax_id
and po_header_id = :new.po_header_id
and po_line_id = :new.po_line_id
and line_location_id = :new.po_line_location_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_taxes_count := 0;
WHEN OTHERS THEN
v_taxes_count := 0;
end;
--- Modifications Done by SMT to Get Invoice Status Code of the Original Transaction
v_invoiced_status_code := 'N';
BEGIN
SELECT 'Y'
INTO v_invoiced_status_code
FROM apps.ap_invoices_all ap,
apps.rcv_shipment_headers rcv
WHERE ap.invoice_num like '%'||rcv.receipt_num||'%'
AND ap.org_id = rcv.ship_to_org_id
AND rcv.shipment_header_id = :NEW.shipment_header_id;
EXCEPTION
WHEN NO_DATA_FOUND THEN
v_invoiced_status_code := 'N';
WHEN OTHERS THEN
v_invoiced_status_code := 'N';
END;
--- RAISE_APPLICATION_ERROR(-200151,'Incorrect Transaction Date...');
--- Check the transaction_date is correct or not
l_gate_date_ok := 'Y';
IF ((:new.ship_head_attribute6 is null) or
(to_date(:new.ship_head_attribute7,'DD-MON-YYYY') < (sysdate-3)) or
(to_date(:new.ship_head_attribute7,'DD-MON-YYYY') > sysdate)) then
l_gate_date_ok := 'N';
END IF;
--- Check the transaction_date is correct or not
l_date_ok := 'Y';
IF (to_date(:new.transaction_date,'DD-MON-YYYY') < to_char(sysdate,'DD-MON-YYYY')) then
l_date_ok := 'N';
END IF;
--- Check whether Excise Invoice No and Excise Date is present
l_excise_ok := 'Y';
if (l_cenvatable_flag = 'Y' and
:new.ship_head_attribute1 is null and
upper(:new.destination_type_code) = 'RECEIVING') then
l_excise_ok := 'N';
end if;
if (l_cenvatable_flag = 'Y' and
:new.ship_head_attribute2 is null and
upper(:new.destination_type_code) = 'RECEIVING') then
l_excise_ok := 'N';
end if;
--- Check whether Inspection transaction is being made in correct Responsibility
l_inspection_ok := 'Y';
if (upper(:new.destination_type_code) = 'RECEIVING') then
if (v_responsibility like '%RECEIPT%QA%') then
l_inspection_ok := 'Y';
else
l_inspection_ok := 'N';
end if;
else l_inspection_ok := 'Y';
end if;
--- Check whether Delivery transaction is being made in correct Responsibility
l_delivery_ok := 'Y';
if (upper(:new.destination_type_code) in ('INVENTORY','SHOP FLOOR')) then
if (v_responsibility not like ('%RECEIPT%QA%')) then
l_delivery_ok := 'Y';
else
l_delivery_ok := 'N';
end if;
else l_delivery_ok := 'Y';
end if;
--- Check whether RTV is made prior to generating the ERS Invoice
l_rtv_ok := 'Y';
if (upper(:new.transaction_type) in ('REJECT','RETURN TO VENDOR')) then
if (v_invoiced_status_code = 'INVOICED') then
l_rtv_ok := 'Y';
else
l_rtv_ok := 'N';
end if;
else l_rtv_ok := 'Y';
end if;
--- Check Error and Display Proper error message
--- Transaction Date Error
if (nvl(l_date_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','Wrong GRR Date');
apps.fnd_message.raise_error;
end if;
--- Gate Entry Date Error
if (nvl(l_gate_date_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Wrong Gate Entry Date');
apps.fnd_message.raise_error;
end if;
--- Return CENVAT Error
if (nvl(l_excise_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Enter Excise Invoice No');
apps.fnd_message.raise_error;
end if;
--- Return Closed Taxex Error
if (nvl(v_closed_taxes_count,1) != 0) then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Wrong');
apps.fnd_message.raise_error;
end if;
--- Return Taxes Missing Error
if (nvl(v_taxes_count,0) = 0) then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Missing');
apps.fnd_message.raise_error;
end if;
--- Return from trigger, if Transaction Type = 'RECEIVE'
if (upper(:new.transaction_type) = 'RECEIVE') then
return;
end if;
--- Return Inspection Error
if (nvl(l_inspection_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Inspection Not Allowed');
apps.fnd_message.raise_error;
end if;
--- Return Material Delivery Error
if (nvl(l_delivery_ok,'N') != 'Y') then
apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Delivery not Allowed');
apps.fnd_message.raise_error;
end if;
return;
END KPC_RCV_TRANSACTIONS_INTERFACE;
Similar Messages
-
How go generate Popularity Trends report for a custom list in SharePoint 2013
Hi,
I want to generate Popularity Trends report for a custom list in SharePoint 2013, is it possible?
Thanks
khadar pashaAccording to
this link you should be able to access this option from the Items tab. for this to work, the Analytics Processing Component needs to be running.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How to create a help view for a customized error message
Hi all,
Can you guide me how to create a help view for a customized error message, we need to put some suggestions in it so that user can can resolve this issue with this guide. ( the short text is too short to describe all situations via TC:SE91)
Thanks very much!
Bruce, WenHi Bruce,
Could you brief your concerns again.
Why don't you maintain long text in message class for long description.
Regards,
Ranjith N -
Hello folks,
I am looking for best practices advice when (1) creating
custom components and (2) styling and skinning.
I already know how to skin a component part of the Flex
framework. I can make a class extending ProgrammaticSkin and have
my component skinned using CSS to link the component with the
reference to my custom class.
However what about those cases when you are completely
creating a component from scratch?
Imagine a "Freehand Drawing Canvas" component that allows the
user to draw on it and has some buttons to set color styles, line
styles, etc., or imagine a "Screen Flow Gallery" component that
displays visual objects in a fashion similar to Cover Flow in the
Mac.
In many components I am aware you may reuse other components
part of the Flex framework but I am trying to picture an scenario
where you would need to draw everything yourself because there just
isn't something to base it upon so you will end up drawing it from
scratch.
To learn how instead of building one of those components I
mentioned previously I decided to start with something simple that
would illustrate this like a LiteButton component that will behave
just like the Flex mx.controls.Button but will extend UIComponent
and be completely custom drawn.
The component will have a default look and will also be
style-able and skin-able. I will provide styles for users of the
component to modify and regarding skinning anyone can create a
custom ProgrammaticSkin adding its own drawing logic and link it to
the component via CSS with the ClassReference applied to the skin
selector.
So far so good and it's clear what I want to achieve. I
actually know how to do most of the stuff here but I have one
single problem.
Here is my question, where should I put my custom drawing
logic? If I do it in the updateDisplayList inside the class
extending UIComponent it works, however I thought that it would be
a better practice to do it using programmatic skins, that way I
could provide different skin themes for my component set.
The problem is that I can't make the programmatic work in
this scenario. I tried instantiating the custom programmatic skin
during the updateDisplayList of the LiteButton component and adding
it to my display object via addChild but that didn't do anything. I
also tried creating a "default.css" stylesheet and tried to use
ClassReference as I would normally do to skin an already existing
component (or composite component as well) but that didn't do
anything either.
So how do I apply programmatic skins for completely custom
drawn components of my Flex library project?
I could do it inside the updateDisplayList of the LiteButton
class extending UIComponent but again I would like to provide
different theme sets for my components so it makes sense using
programmatic skins."jbucaran" <[email protected]> wrote in
message
news:[email protected]...
> Hello folks,
>
> I am looking for best practices advice when (1) creating
custom components
> and
> (2) styling and skinning.
>
> I already know how to skin a component part of the Flex
framework. I can
> make
> a class extending ProgrammaticSkin and have my component
skinned using CSS
> to
> link the component with the reference to my custom
class.
>
> However what about those cases when you are completely
creating a
> component
> from scratch?
>
> Imagine a "Freehand Drawing Canvas" component that
allows the user to draw
> on
> it and has some buttons to set color styles, line
styles, etc., or imagine
> a
> "Screen Flow Gallery" component that displays visual
objects in a fashion
> similar to Cover Flow in the Mac.
>
> In many components I am aware you may reuse other
components part of the
> Flex
> framework but I am trying to picture an scenario where
you would need to
> draw
> everything yourself because there just isn't something
to base it upon so
> you
> will end up drawing it from scratch.
This may help with that
http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html
> To learn how instead of building one of those components
I mentioned
> previously I decided to start with something simple that
would illustrate
> this
> like a LiteButton component that will behave just like
the Flex
> mx.controls.Button but will extend UIComponent and be
completely custom
> drawn.
>
> The component will have a default look and will also be
style-able and
> skin-able. I will provide styles for users of the
component to modify and
> regarding skinning anyone can create a custom
ProgrammaticSkin adding its
> own
> drawing logic and link it to the component via CSS with
the ClassReference
> applied to the skin selector.
>
> So far so good and it's clear what I want to achieve.
Actually after
> playing
> with the weekend and today I know how to do most of the
stuff but I have
> one
> single problem. So here is my question, where should I
provide my custom
> drawing logic? If I do it in the updateDisplayList
inside the class
> extending
> UIComponent it works, however I thought that it would be
a better practice
> to
> do it using programmatic skins, that way I could provide
different skin
> themes
> for my component set.
These aren't mutually exclusive. When you provide a skin with
a
TypeSelector, you have to add it to the display list
somewhere, and this is
typically done in updateDisplayList or addChildren. I prefer
to do it in
updateDisplayList, because you can then change it if the
style changes.
> The problem is that I can't make the programmatic work
in this scenario. I
> tried instantiating the custom programmatic skin during
the
> updateDisplayList
> of the LiteButton component and adding it to my display
object via
> addChild but
> that didn't do anything.
Exactly what did you do?
> I also tried creating a "default.css" stylesheet and
> tried to use ClassReference as I would normally do to
skin an already
> existing
> component (or composite component as well) but that
didn't do anything
> either.
I've never had any problem using an approach similar to
this...but I will
say that I couldn't see any advantage in creating a
default.css style sheet,
since it's not really default in the way that the one that
comes with Flex
is. It's much more obvious to anyone using your component
what's going on
there if you create a style sheet where they're likely to
spot it.
> So how do I apply programmatic skins with the default
look for custom
> drawn
> components?
It seems like your approach is fine, but maybe you've made a
mistake in your
implementation.
> I could do it inside the updateDisplayList of the
LiteButton class
> extending
> UIComponent but again I would like to provide different
theme sets for my
> components so it makes sense using programmatic skins.
You might want to consider also adding an instance of
HaloBorder to your
component. That brings a lot of functionality with it.
HTH;
Amy -
How to generate an XML file for an animation of IK armature
Can someone please tell me how to generate an XML file for an animation of IK armature.
I have a 5 keyframe/16 frame animation of a human character made up of a series of moveiclip symbols that is animated with an IK armature. I need the XML information from the animation.
When I go to Commands > Export Motion XML I get the error message "There is more than one object on frame 1" and then nothing happens.
Thank you,
cI hope that's not the case. I want to write to adobe about it. I think it's a great feature and it functions really well even though it is not a very developed IK tool. My biggest issue with it is ouput options and integration with motion tweens.
I have seen a lot of examples of animators using it online, just no one talked about output. I just feel it hasn't been developed. It can generate a sprite sheet but only for a single pose frame of the animation, and not all the key frames or pose tweens. I find that functionality quite odd, as if adobe just forgot about IK when added in sprite sheets, etc. and the reason it half works is just an accident. -
How can identify the default currency for a customer?
How can identify the default currency for a customer?
I know that this is being determined when you create a sales order for a particular customer, for example, so I could break this process open and find out what it uses. But I thought it worth asking in this forum first.
BlueHi Gary,
As per my understanding of your question I am replying , If you are looking some thing else then I request you to please elaborate your query.
If you see the BP sales area data in transaction BP, In billing tab you maintain the currency for a customer which is default currency when you create a sales order.
<b>Reward points if it helps!!</b>
Best regards,
Vikash -
OBIEE 11g - Customized Message for No result On all Reports
Hi,
The default messages displayed is getting displayed when a report returns no data in OBIEE 11g. I am aware of that, we can overide the default message with our Custom message at "Analysis" level. but it is very painful to do.
I am looking for a file where we can override the default messages with our custom message at one place.
Also, I have gone through the below link for this but it has change at the language level. I tried to change it at language "l_en" level but it did not work.
can anyone suggest for 11g?
http://obiee10grevisited.blogspot.com/2012/02/customized-message-for-no-result-on-all.html
Edited by: Nagen on May 6, 2013 4:36 PMHi Nagen,
Using a custom message should also work in 11g. Refer to this link for setting up custom messages in 11g.
http://www.rittmanmead.com/2010/12/oracle-bi-ee-11g-styles-skins-custom-xml-messages/
Thanks,
Gaurav -
How To Generate Debug Log Files for ebs jsp?
hi How To Generate Debug Log Files for ebs r12 jsp?
and where i get the log .please help me thanks!Please check following MOS Document
Oracle Application Server Diagnostic Tools and Log Files in Applications Release 12 (Doc ID 454178.1) -
One customer paying for another customer ....how is this handled in SAP
Hi Gurus,
Would appreciate if anyone can explain to me how SAP handles one customer paying for another customer.
Scenario is Customer A owes us money but Customer B pays on his behalf.
Subsequently, Customer B also pays for customer c,d, e,f etc...how do I set the relationship between customer B and all these other customers so that the payment flows automatically in SAPThanks Srikanth
How do I test the scenario...I want to see the final debits and credits happening on the paying customer and not the invoiced customer. -
How to generate a number sequence for a column of a Z*table?
Hi ,
How to generate a number sequence for a column of a Z*table?
plz guide me.
thanks
Albert1) Use SNRO for defining a number range.
2) Use FM NUMBER_GET_NEXT for getting the next number with object, sub object etc..
See one example below.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = c_01
object = c_z_prd_code
* QUANTITY = '1'
subobject = p_vkorg
* TOYEAR = '0000'
* IGNORE_BUFFER = ' '
IMPORTING
number = in_prd_code
* QUANTITY =
* RETURNCODE =
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8
3) You may write these code in main program of the table maintinence
rgds,
TM. -
Generate automatic SD-Messages for new orders,...
Hi,
How can I create SD-messages (for the sales documents) automatically with some standard-parameters (communication-method, further data) for orders, invoices, scheduling agreements.
On which level can I define these settings? Is it on the message type, sales document types,..?
Regards,
StefanHi Stefan,
You have to set that in Out put procedure.
T/code NACE> Select sales application "V1"> Select procedure> select relevant procedure Example : V10000Order O/P> Control --> Define requiremen and enter your logic in this routine.
Lanka -
How to consolidate the financial statements for 3 company codes, assigned t
Hi Friends,
How to consolidate the financial statements for 3 company codes, assigned to 3 different companies, 3 different fiscal years, 3 different controlling areas and all the 3 Company Codes assigned to same chart of accounts in the same client?
Can we need any ABAP program for this (or) Is it possible using Report Painter?
Please help me.
ThanksHi friend,
Is it a real-time situation or something you are visualising ?
For consolidation, you can use a group chart of accounts and select that in the operative chart of accounts for consolidation purposes. This would work provided the company codes use the same operative chart of accounts and fiscal year.
I hope the above would be helpful to you.
Regards, -
How can i change the phonenumber for my security code in keychain on ios 7.03
how can i change the phonenumber for my security code in keychain on ios 7.03?
i have changed the phonenumber under icloud preferences keychain. after the update on ios 7.03 there is no sms arriving for the security code because there is a double international code in the telephone number like +49 +49. How can i fix this?
-
Is it worth it to make custom icons for a custom control/indicator?
I was making custom icons (well not very custom, but still at least somet ext) for controls and indicators, when I realized that the only times you see them are when you open the control, itself, ot if you hover over it in the project with context help on.
So the question is:
Is it worth it to create a custom icon for each custom control you make, if it will be seen only rarely? (The exception being a cluster, since, in the later versions of LabVIEW, you can actually represent your cluster on the BD as the icon you made for it, so it definitely IS worth it to make an icon for it.)
Thanks!
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Solved!
Go to Solution.Hooovahh wrote:
I'd like to add another time that you see the control's icon, is when it is a type def cluster, and you have it as a constant on the block diagram. Then double click the border to shrink the cluster. It will shrink to the size of the control's icon.
I also hardly ever make a control icon. Only when it is on the palette in a reuse package.
Yeah,t hat's what I meant in my original post, although you CAN represent a cluster constant on the BD as an icon - but it's just the little thing on the bottom of the typdef'd cluster because it obviously has no actual icon.
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all. -
Hi experts
i need tax percentage , i used this function module
MM_ARRANG_GET_TAX_PERCENTAGE
import parameter
I_MWSKZ = c1.
I_BUKRS = 1000
I_WAERS = inr
iam geting this message for some tax code like c1 ,t2, t3
message : Tax code C1 country IN does not exist in procedure ZAXINN
other taxcodes v0,v2 s2,s3 are got percentage, it's proper result.
please give me sugession.HI Friend,
Use the Functional module FI_TAX_GET_CONDITION, this will be used in case ur using the in acsess sequence tax classification (ie A003 table)
pass the inputs like
I_BUKRS >> company code
I_LAND1>> country
I_KALSM>> tax procedure
I_MWSKZ>> tax code
I_TXJCD>> tax juriduction code
I_KSCHL>> condition type
I_KTOSL>> transaction
I_TDATE>> date
the functional module your using will not give the proper results
Regards
Pramod
Maybe you are looking for
-
Hi I recently downloaded the new Firefox (Firefox 4, I think - you can tell I'm very tech savvy!) and it constantly freezes, I can't do anything with it at all - I can't even close it from the icon in my Mac dock bar. I have tried restarting my compu
-
Time machine not completely backing up certain folders
Has anyone run into a problem with their Time Machine continually neglecting to backup one or two of their folders? I know some people have problems with TM not backing up items on their desktop, but my desktop data is fine. There are just two fold
-
I bought my daughter a new MacbookPro 13" for grad school and selected the HP Envy 100 printer from the Apple Store website. When I just tried to install the printer, it said that that the software was not compatable with Lion. Any suggestions as t
-
My blackberry ID is not working !!!
hello world. first of all im sorry for my bad english, second i have formated my blackberry and i did a coby with blackberry desktop software but when i try to sgin in it says the password is wrong. and when i try to reset a new password the Verifica
-
I created a new Data Source and Connection pool and trying to redeploy it. I'm getting the following error. weblogic.application.ModuleException: weblogic.connector.exception.RAOutboundException: There are 1 nested errors: weblogic.management.Deploym