HOW TO Extend AM IN OAF

Hi All,
I Face The Problem in Extending AM. I have a requirement to change the method Code which is Available in AMImpl.class
My Extending AM is Displaying in About This Page. But The Method Is Available in Custom AM is Not Called The Method which is Available in Seeded AM is Called. AM Substitution done Successfully.and also JPXIMPORT done Successfully.
My Seeded AMImpl code like
package oracle.apps.pon.outcome.creation.server;
import com.sun.java.util.collections.ArrayList;
import java.sql.*;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
import oracle.apps.pon.schema.server.*;
import oracle.apps.pon.util.server.SourcingBaseAMImpl;
import oracle.apps.pon.util.server.SourcingServerUtil;
import oracle.jbo.RowIterator;
import oracle.jbo.Transaction;
import oracle.jbo.server.*;
// Referenced classes of package oracle.apps.pon.outcome.creation.server:
// POAwardedBiddersVORowImpl, UpdateOutcomeVOImpl
public class POCreationAMImpl extends SourcingBaseAMImpl
public static final String RCS_ID = "$Header: POCreationAMImpl.java 115.7.11510.2 2004/11/02 04:50:04 ssthakur ship $";
public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: POCreationAMImpl.java 115.7.11510.2 2004/11/02 04:50:04 ssthakur ship $", "%packagename%");
private static final String ALLOCATE_ITEMS = "{ call PON_AUCTION_CREATE_PO_PKG.ALLOC_ALL_UNALLOC_ITEMS(:1, :2, :3, :4, :5, :6," +
" :7, :8, :9, :10, :11, :12)}"
public POCreationAMImpl()
public OAViewObjectImpl getActiveEnabledLookupValuesVO1()
return (OAViewObjectImpl)findViewObject("ActiveEnabledLookupValuesVO1");
public OAViewObjectImpl getPOBuyerListVO1()
return (OAViewObjectImpl)findViewObject("POBuyerListVO1");
public OAViewObjectImpl getVendorSitesAllVO1()
return (OAViewObjectImpl)findViewObject("VendorSitesAllVO1");
public OAViewObjectImpl getPOCreationAuctionDataVO1()
return (OAViewObjectImpl)findViewObject("POCreationAuctionDataVO1");
public static void main(String args[])
ApplicationModuleImpl.launchTester("oracle.apps.pon.outcome.creation.server", "POCreationAMLocal");
public OAViewObjectImpl getPOAwardedBiddersVO1()
return (OAViewObjectImpl)findViewObject("POAwardedBiddersVO1");
public OAViewObjectImpl getPOAwardedItemsVO1()
return (OAViewObjectImpl)findViewObject("POAwardedItemsVO1");
public ViewLinkImpl getPOBidderItemVL1()
return (ViewLinkImpl)findViewLink("POBidderItemVL1");
public OAViewObjectImpl getLastUpdateDateVO()
return (OAViewObjectImpl)findViewObject("LastUpdateDateVO");
public Timestamp getLastUpdateDate(Integer integer)
return AuctionHeadersAllEntityExpert.getLastUpdateDate(getOADBTransaction(), integer.intValue());
public Timestamp lockAuction(Integer integer)
return AuctionHeadersAllEntityExpert.lockAuction(getOADBTransaction(), integer.intValue());
public void startPOCreation(String s, Integer integer, Integer integer1, String s1, String s2, Integer integer2)
BidHeadersEntityExpert.startPOCreation(s, integer.intValue(), getOADBTransaction(), integer1.intValue(), s1, s2, integer2.intValue());
public ArrayList validateSupplierSiteInPOCrt(String s)
OAViewObject oaviewobject = (OAViewObject)findViewObject(s);
return BidHeadersEOImpl.getBidHeadersEntityExpert(getOADBTransaction()).validateSupplierSiteInPOCrt(oaviewobject);
public ArrayList performPOCrossFieldRowValidation(String s, Boolean boolean1, Boolean boolean2)
OAViewObject oaviewobject = (OAViewObject)findViewObject(s);
if(oaviewobject == null)
return new ArrayList();
} else
return BidHeadersEntityExpert.performPOCrossFieldRowValidation(oaviewobject, boolean1.booleanValue(), boolean2.booleanValue());
public ArrayList performPOSingleFieldValidation(String s, Boolean boolean1, Boolean boolean2)
OAViewObject oaviewobject = (OAViewObject)findViewObject(s);
if(oaviewobject == null)
return new ArrayList();
oaviewobject.reset();
ArrayList arraylist = new ArrayList();
POAwardedBiddersVORowImpl poawardedbiddersvorowimpl;
while((poawardedbiddersvorowimpl = (POAwardedBiddersVORowImpl)oaviewobject.next()) != null)
BidHeadersEOImpl bidheaderseoimpl = (BidHeadersEOImpl)poawardedbiddersvorowimpl.getEntity(0);
if(boolean2.booleanValue())
bidheaderseoimpl.validateOrderNumber(arraylist);
if(boolean1.booleanValue())
bidheaderseoimpl.validatePoStartDate(arraylist);
bidheaderseoimpl.validatePoEndDate(arraylist);
return arraylist;
public String[] allocateAllUnallocatedItems(Integer integer)
throws SQLException
DBTransaction dbtransaction = getDBTransaction();
*CallableStatement callablestatement = dbtransaction.createCallableStatement("{ call PON_AUCTION_CREATE_PO_PKG.ALLOC_ALL_UNALLOC_ITEMS(:1, :2, :3, :4, :5, :6," +*
*" :7, :8, :9, :10, :11, :12)}"*
*, -1);*
String as[] = new String[10];
String s = "PONCOMPL";
String s1 = null;
int i = integer.intValue();
callablestatement.setString(1, s);
callablestatement.setString(2, s1);
callablestatement.setInt(3, i);
callablestatement.registerOutParameter(4, 12);
callablestatement.registerOutParameter(5, 12);
callablestatement.registerOutParameter(6, 2);
callablestatement.registerOutParameter(7, 12);
callablestatement.registerOutParameter(8, 12);
callablestatement.registerOutParameter(9, 12);
callablestatement.registerOutParameter(10, 12);
callablestatement.registerOutParameter(11, 12);
callablestatement.registerOutParameter(12, 12);
callablestatement.execute();
as[0] = callablestatement.getString(4);
as[1] = callablestatement.getString(5);
as[2] = String.valueOf(callablestatement.getInt(6));
as[3] = callablestatement.getString(7);
as[4] = callablestatement.getString(8);
as[5] = callablestatement.getString(9);
as[6] = callablestatement.getString(10);
as[7] = callablestatement.getString(11);
as[8] = callablestatement.getString(12);
if("SUCCESS".equals(as[0]))
dbtransaction.commit();
if(callablestatement != null)
callablestatement.close();
return as;
*}* public void doAutomaticAllocation(Integer integer)
try
if(integer == null)
throw new OAException("PON", "PON_AUC_INVALID_PARAMETERS");
String as[] = allocateAllUnallocatedItems(integer);
if("SUCCESS".equals(as[0]))
UpdateOutcomeVOImpl updateoutcomevoimpl = getUpdateOutcomeVO();
if(updateoutcomevoimpl != null)
updateoutcomevoimpl.updateOutcomeStatus(integer);
getOADBTransaction().commit();
return;
catch(Exception exception)
throw OAException.wrapperException(exception);
public String getProfileOption(String s)
return SourcingServerUtil.getProfileOption(getOADBTransaction(), s);
public void commitTransaction()
getOADBTransaction().commit();
public void rollbackTransaction()
getOADBTransaction().rollback();
public OAViewObjectImpl getPOAcceptanceValuesVO()
return (OAViewObjectImpl)findViewObject("POAcceptanceValuesVO");
public OAViewObjectImpl getCheckContractsEnabledVO()
return (OAViewObjectImpl)findViewObject("CheckContractsEnabledVO");
public UpdateOutcomeVOImpl getUpdateOutcomeVO()
return (UpdateOutcomeVOImpl)findViewObject("UpdateOutcomeVO");
**and My Custom AM Code like,**
package oracle.apps.xxega.outcome.creation.server;
import oracle.apps.pon.outcome.creation.server.POCreationAMImpl;
import com.sun.java.util.collections.ArrayList;
import java.sql.*;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
import oracle.apps.pon.schema.server.*;
import oracle.apps.pon.util.server.SourcingBaseAMImpl;
import oracle.apps.pon.util.server.SourcingServerUtil;
import oracle.jbo.RowIterator;
import oracle.jbo.Transaction;
import oracle.jbo.server.*;
// --- File generated by Oracle Business Components for Java.
public class XXEGAPOCreationAMImpl extends POCreationAMImpl
* This is the default constructor (do not remove)
public XXEGAPOCreationAMImpl()
* Sample main for debugging Business Components code using the tester.
public static void main(String[] args)
launchTester("oracle.apps.xxega.outcome.creation.server", "XXEGAPOCreationAMLocal");
*@Override*
public  String[] allocateAllUnallocatedItems(Integer integer)
throws SQLException
DBTransaction dbtransaction = getDBTransaction();
*CallableStatement callablestatement = dbtransaction.createCallableStatement("{ call PON_AUCTION_CREATE_PO_PKG.ALLOC_ALL_UNALLOC_ITEMS(:1, :2, :3, :4, :5, :6," +*
*" :7, :8, :9, :10, :11, :12)}"*
*, -1);*
String as[] = new String[10];
String s = "EGAPONCM";
String s1 = null;
int i = integer.intValue();
callablestatement.setString(1, s);
callablestatement.setString(2, s1);
callablestatement.setInt(3, i);
callablestatement.registerOutParameter(4, 12);
callablestatement.registerOutParameter(5, 12);
callablestatement.registerOutParameter(6, 2);
callablestatement.registerOutParameter(7, 12);
callablestatement.registerOutParameter(8, 12);
callablestatement.registerOutParameter(9, 12);
callablestatement.registerOutParameter(10, 12);
callablestatement.registerOutParameter(11, 12);
callablestatement.registerOutParameter(12, 12);
callablestatement.execute();
as[0] = callablestatement.getString(4);
as[1] = callablestatement.getString(5);
as[2] = String.valueOf(callablestatement.getInt(6));
as[3] = callablestatement.getString(7);
as[4] = callablestatement.getString(8);
as[5] = callablestatement.getString(9);
as[6] = callablestatement.getString(10);
as[7] = callablestatement.getString(11);
as[8] = callablestatement.getString(12);
if("SUCCESS".equals(as[0]))
dbtransaction.commit();
if(callablestatement != null)
callablestatement.close();
return as;
Is there any other way I can do this, declaratively?
Regards,
Nikunj Shah
Edited by: 844549 on Mar 15, 2011 6:49 AM
Edited by: Nikunj Shah on Mar 15, 2011 6:50 AM

http://oracleanil.blogspot.com/2010/11/am-extension-in-oaf.html
Thanks
--Anil
http://oracleanil.blogspot.com

Similar Messages

  • How to modify a standard OAF page in version R12

    Dear all,
    I have a requirement to modify a standard OAF page(can't implement by personalization),and my EBS version is R12,but i have not the source java code of the page,I try to decomplie the class file by a sofeware named 'YingSoft' , as the r12's jdk is 1.6,will have some errors.
    So,anybody know how to accomplish or have other decompile software?
    thanks,
    Ming Tao.

    Hi Ming,
    I use Java Decompiler (JD) in it works fine for me. Also, I guess you know it already, but just in case, there is a detailed explanation on how to extend standard OAF pages in the OA Framework Developer's guide and how to deploy the changes.
    Regards.

  • How to Extend an AM and in what case you will extend the AM

    Hi OAF Gurus,
    Please explain How to Extend an AM and in what case you will extend the AM.
    Thanks in advance
    Kumar

    Hi,
    please go throughwith below link provied by anil...
    http://oracleanil.blogspot.com/2010/11/am-extension-in-oaf.html
    Regrads
    Meher Irk

  • How To Extend Adobe Audition CS5.5

    I've received a number of questions on how to extend Adobe Audition with questions similar to:
    How do I import file format X?
    How do I import a project from application Y?
    Will there be an SDK available?
    How do I add plug-ins to Audition?
    I had made a post similar to this in the public beta of Audition for Mac, but I can no longer find the thread. So I'll reiterate some stuff here:
    Area
    Info
    Adding VST Plug-Ins
    Most of you have found this already, but the best place to start is in the Audio Plug-In Manager
    If you want to "write" new plug-ins for Audition, writing a VST plug-in will be the best option as it will allow you to write something that will work on Windows as well as OSX.  Info on writing a VST plug-in may be found here (http://www.steinberg.net/en/company/developer.html)
    Adding Audio Unit Plug-Ins (Mac OSX)
    Same as Above.   Note that OSX ships with some built-in AU plug-ins that Audition can utilize for free if you just scan at least once.   We don't scan on startup because there's several plug-ins out there in the world that don't behave well.  Info on Audio Unit plug-in development can be found here (http://developer.apple.com/library/mac/#documentation/MusicAudio/Conceptual/AudioUnitProgr ammingGuide/TheAudioUnit/TheAudioUnit.html)
    Adding more import formats via libsndfile
    libsndfile is an open-source C library for reading and writing audio files (http://www.mega-nerd.com/libsndfile/)   Ambitious people could download the source, write support for another format, and create their own custom-rolled library of libsndfile.  You would then replace the version of libsndfile with which Audition CS5.5 ships, with the one you rolled.   Due to the way we use libsndfile, any format you add would show up in Audition.   This is also true if there's an official update to libsndfile that comes out in the future, you could just plop it in and it should work. 
    If you're interested in exporting or writing formats that libnsdfile supports, please tell us which formats are the most important to you and in what way you use them in your workflow.
    Adding more import formats via QuickTime components
    QuickTime has the ability to be extended via QuickTime Components.   There's several examples out there, but here are some websites to check out:
    QuickTime Components (http://www.apple.com/quicktime/resources/components.html)
    Learn about even more QuickTime capabilities (http://www.apple.com/quicktime/extending/components.html)
    Flip4Mac for Windows Media support on OSX (http://www.telestream.net/flip4mac-wmv/overview.htm)
    Perian -- the swiss-army knife for QuickTime (http://perian.org/)
    Calibrated Software (http://www.calibratedsoftware.com/products.asp)
    In most cases, just adding the various QuickTime components will automatically add the import functionality to Audition.
    Importing project formats from other applications
    As seen on other threads in this forum, Ses2sesx (http://www.aatranslator.com.au/ses2sesx.html) and AATranslator (http://www.aatranslator.com.au/) seem to add quite a bit of support.
    SDK
    At this time, we haven't released an SDK for Audition.   If you're interested in one, however, please tell us what you would want from an SDK for Audition and we'll take it into consideration.
    Message was edited by: Charles VW
    Added links to AU and VST development info

    Charles,
    could you please also advise what PC users can do to make common avi files useable in AA CS5.5? The obvious problem is, no matter how many exotic video formats a PC can play by way of video-for-windows codecs, these are useless for Quicktime, because Quicktime on the PC needs codecs specifically written for "Quicktime for Windows", which are, as I've come to find, EXTREMELY rare. So far I've only found ONE, sold by 3ivx, but this costs as much as the AA CS5.5 update itself. Without them, Quicktime on the PC will only handle mov files, which are not too popular on the PC. Is there any other way out of this?

  • Hi i would like to know how to extend the range of my time capsule wifi network(500G 802.11n) using an airport express. i have a double storey home and would like to extend range to my upstairs bedrooms.i have a time capsules network setup via a netgear a

    hi i would like to know how to extend the range of my time capsule wifi network(500G 802.11n) using an airport express. i have a double storey home and would like to extend range to my upstairs bedrooms.i have a time capsules network setup via a netgear adsl.i have a second imac upstairs which connects to time capsule wifi network (it is within range as it is directly abobe on 1st floor)
    could you tell me how best to set airport express up to extend my wifi range?

    Greetings,
    This is called an "Extended wireless network".
    Read this article for details and steps on how to extend your TimeCapsule's network:
    http://support.apple.com/kb/HT4259
    Cheers.

  • How to extend an address of a BP  with more fields ???? EEWB??

    Hi Gurus,
    I need to extend the address of a BP with some customer fields. I have tried to do it using EEWB but when you have to choose a Business Object for the new extension, the reasonable only possibility is to choose BUPA Object. Thus, the DB table BUT000 is extended with a custom include that contains the customer fields, but what I want to do is extending ADRC DB table. There is some way that I do not know of achieve this in which the system creates automatically all the FM for the BDT events????
    If it is not possible, which would be the procedure to do that with my own development???
    Thanks in Advance.
    Regards,
    Rosa

    Rosa, you can only extend table BUP000 and not the actual address table. Sorry for that for more details on how to extend the BP itself refer to my WeBLOG I wrote on this. Have fun and let me know whether you need more help, Tiest.
    Also do not forget to award points to useful responses.
    <a href="/people/tiest.vangool/blog/2005/07/24/pc-ui-and-easy-enhancement-workbench-eew-integration and Easy Enhancement Workbench (EEW) Integration</a>

  • In an inbuild example of can .. that CAN transmit periodic vi .. i am unable to understand how the extended and standard frame is set?

    In an inbuild example of can .. that CAN transmit  periodic vi .. i am unable to understand how the extended and standard frame is set?
    plz help me .. stuck up very badly
    thanks
    mahadev
    Solved!
    Go to Solution.

    I suggest this KB which explains usage of Ext IDs with NI-CAN
    http://digital.ni.com/public.nsf/allkb/2FA120A37EDBC51D86256854004FB0C7

  • Outlook 2013 - How to extend/add new meeting in recurrent meeting inside SharePoint site ?

    I have created a recurrence meeting but now it is exired, how to extend ? Please advise

    Hi,
    Please check the link below
    https://support.office.com/en-us/article/Create-link-to-or-update-Meeting-Workspaces-98834566-4750-45e9-bb71-fe4acb26f170?ui=en-US&rs=en-US&ad=US#BM2
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/01054bef-1cb0-4401-88c9-e4593ab4b806/how-to-extend-date-in-recurring-meeting-workspace-in-sharepoint-site?forum=sharepointgenerallegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to extend the range with a second Airport Express? Do I need a DSL cable?

    How to extend the range with a second Airport Express? Do I need a DSL cable?

    Thanks, now we need a bit more information, please, in order to provide you with the correct information that you need.
    I assume that you already have one AirPort Express.....either a model A1264 or A1392.....set up and operating OK, is that correct?
    If yes, you can extend the network either by using wireless or an Ethernet cable with a second AirPort Express.....either the A1264 or A1392 model. A wired connection is the way to go, if possible, since it provides better performance.  But, wireless might work OK for you if you want to try that.
    Let us know "how" you want to extend......wireless or wired?

  • How to extend business partner number length

    My legacy business partner id is 13 digits long. But SAP business partner is only 10 digits long at maximum.
    Please tell me how to extend this constraint?
    Giang

    Hi Giang,
    Unfortunately, this is not possible - you cannot extend the length of BP number.
    But there's a simpler way - there is a field called BPEXT in BUT000, this is the external BP number, and can store 20 digits.
    You can transfer the BP number of legacy system into BPEXT field on the SAP system. This is a standard practice and is used by most people.
    Regards,
    Rishu.

  • How to extend Article to Different Sales organization

    Hi experts
    How to extend Article to Different Sales organization
    thanks in advance

    Hi Hanumant,
    1. Go to MM42
    2. Enter the article to be extended.
    3. Enter the Sales Organization and Distribution Channel to which the article to be extended to.
    4. Select the Sales View.
    5. Press Enter
    Save
    It's Done.
    To verify, goto mm43 and enter the detail and check
    or
    after entering the article code in mm43 go to Sales Org. field and press F4, in the popup you will see a column 'Maint.' , X should be marked in front of your new sales org,dist channel combination.
    Hope it helps.
    Regards,
    Anirban Roy

  • When saving a page under text format, the text is limited to 80 columns only, how to extend to 120 columns

    When I save a page under text format, the text is limited to 80 columns only, how to extend to 120 columns (or more)?

    HI K,
    This is the Numbers (Mac OS) forum. Your question about Numbers for iOS will probably get better results posting in the iWork for iOS area. the link will take you there.
    Regards,
    Barry

  • How to extend same material into different plants?

    Hi all,
    how to extend the same material into different plants anybody please tell me.
    thanks
    s.muthu

    hi
    go to mm01 create a material with name abcd
    then again in mm01 in material filed give same no (abcd)and  in copy from field also give that no(abcd)
    sytem will ask u for from and t locations give that and proceed
    similarly if u want to extend view in the material go to mm50 and do
    reward if helpful
    regards
    kunal

  • How to extend factory calender to a plant ?

    Hi Ranga:
    How to extend factory calender to a plant ? ( Tcode: SCAL, The calender is not client specific)
    I check marked US factory calender, where after can you tell how to extend factory calender to plant
    Note: I am using IDES ( International Demonstration & Education System)
    Thanks

    Hi Sandeep,
    you need to use the following path
    Go to SPRO>ENTERPRISE STRUCTURE->DEFINITION> LOG GENERAL>DEFINE COPY,DELETE AND CHECK PLANT>DEFINE PLANT
    Here you need to assign the factory calendar. The assignment in work center will only applicable for capacity not for MRP and others.
    <b>For information how to create a factory calendar</b>
    Pl follow the steps
    1.Go to SCAL transaction
    2.there will be three options.
    Click first public holidays and go in change mode.
    Click create and create your holidays there and save.(Generally fixed date will be used in the pop up)
    3.Now click Holiday calendar and go in change mode.
    Click create and give holdiay cal id and description.
    Click assign public holiday and add your holidays one by one and save
    Now holiday cal is created.
    4.Now come out and choose fact calendar and go in change mode
    Click create and give Factory calendar id and description, and validity period.
    Give the holiday calendar ID.
    If you want to give special rule like any of the specific date/ day is the holiday or work day (which is different from holiday calendar you can define)
    and save.
    5.You have to assign factory calendar to PLANT
    Go to SPRO>ENTERPRISE STRUCTURE->DEFINITION> LOG GENERAL>DEFINE COPY,DELETE AND CHECK PLANT>DEFINE PLANT
    Choose your plant and go to details-
    You have to define factory calendar there
    Hope this will help you
    Regards
    Ranga

  • How to extend factory calendar

    Hi,
    We need to do extend our factory calendar before we
    update the time stream. Our factory calendar
    only up to year 2010.
    Kindly please advise how to extend the factory calendar?
    Thank you.

    Hi Harish,
    I try to change the "To Year" from 2010 to 2020, but there is an error message coming out and does not allowed me to change: "Please enter validity area between years 1998 - 2010".
    Kindly please advise. Thank you.

Maybe you are looking for

  • Error In the Excel Report

    Hi When I trying take the Excel Report ..In the SAP BPC 5.1 version Its shows some error In the Description , But the Values are Coming Correctly For Example : Description        Value #name!               5000 Regards Dayalan M

  • Video streaming with appleTV wifi requirements?

    I'm wondering if my Internett is fast enough to videostream from Mac to appleTV. At a speedtest with my phone i got 65 ping, 3,73 mbps download and 0,53 upload. At Apples website it says that you need 802.11g or 802.11n, but how do i check what i got

  • Title 3D Problem

    Hello. I'm am trying to get crisp, sharp text. I was using the regular text tool, but that gives bitmapped, jagged edges when I burn to a DVD. All I want is 36 point text in the left, lower 3rd. Nothing fancy. Here's what I did in Title 3D that didn'

  • Synching iPhone 3G to two computers

    What's your experience about synching the iPhone to two different computers, particularly in my case it will be a mac and a pc. Has anybody had any problems with that? I'm still waiting for my iPhone, but I thought I'd think ahead. Thanks for your in

  • Mac App store won't install on dock after update to 10.6.8

    Hi All I am running OSX 10.6.8 and have tried numerous times to get the App store icon to install...I am at the point of pulling my hair out, I'm so frustrated.  I've installed the 10.6.8 update combo.... I've got 2.4GHz Intel Core i5, and 4GB macboo