Hi There,
I’m trying to create a custom event when the wanted_delivery_date attribute is changed. I’ve set the following event details
Logical Unit: CustomerOrder
Table: CUSTOMER_ORDER_TAB
Fire When: Objects Are Changed
Only when these attributes are changed: WANTED_DELIVERY_DATE
Fire before or after object is changed: After
Attributes: Wanted_Delivery_Date New Value & Old Value, Order_ID Old Value.
The actions is then this bit of code…
declare
p_order_no varchar2(1000);
p_old_wanted_delivery_date DATE;
p_new_wanted_delivery_date DATE;
begin
p_order_no := '&OLD:ORDER_NO';
p_old_wanted_delivery_date := '&OLD:WANTED_DELIVERY_DATE';
p_new_wanted_delivery_date := '&NEW:WANTED_DELIVERY_DATE'; IFSAPP.S3_WNTD_DEL_DT_CHNG_API.WANTED_DEL_DATE_CHANGE(p_order_no,p_old_wanted_delivery_date,p_new_wanted_delivery_date);
end;
When trying that code in the back end it works fine, however when doing it through IFS I get the following…
ORA-01861: literal does not match format string
ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 2070
ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 2070
ORA-06512: at line 9 ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 2066
ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 2075
ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 1934
ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 1954
ORA-06512: at "IFSAPP.EVENT_SYS", line 199
ORA-06512: at "IFSAPP.EVENT_SYS", line 199
ORA-06512: at "IFSAPP.S3_WNTD_DELIV_DATE_CHNG_EVU", line 14
ORA-04088: error during execution of trigger 'IFSAPP.S3_WNTD_DELIV_DATE_CHNG_EVU'
ORA-06512: at "IFSAPP.CUSTOMER_ORDER_API", line 16131
ORA-06512: at "IFSAPP.CUSTOMER_ORDER_API", line 16264
ORA-06512: at "IFSAPP.CUSTOMER_ORDER_API", line 16716
ORA-06512: at "IFSAPP.CUSTOMER_ORDER_API", line 4472
ORA-06512: at "IFSAPP.CUSTOMER_ORDER_API", line 4479
ORA-06512: at line 22 ORA-06512: at "IFSAPP.FND_EVENT_ACTION_API", line 2066
ORA-06512: at "IFSAPP.FND_EVENT_ACTION_AP;
How do I resolve this?
Thanks & Kind Regards.