Accessing Custom Reg .AM or Standard Reg.. AM from Standard Region AM's CO

hi,
how to access the AM's VO's Data for validating with another Rn's VO's data can anyone give example code
i am trying like this
OAApplicationModule am = pageContext.getRootApplicationModule();
OAApplicationModule localOAApplicationModule =
pageContext.getApplicationModule(webBean);
VocPrimeDiagCodesAMImpl vocAm=new VocPrimeDiagCodesAMImpl();
OAViewObjectImpl localVocPrimeDiagCodesBVO=(OAViewObjectImpl)vocAm.findViewObject("VocPrimeDiagCodesBVO1");
OAViewObject localHvrRoDcsvo =
(OAViewObject)localOAApplicationModule.findViewObject("HvrRoDcsVO1");
HvrRoDcsVORowImpl localHvrRoDcsVORowImpl = null;
VocPrimeDiagCodesBVORowImpl localVocPrimeDiagCodesBVORowImpl=null;
i am accessing or validating query based VO with EO based VO validation of different Regions
can any one tell me
right now i am working on Controller Extensions
plzzz help me in this recoord

Hi, Summit
i have already tried which u said but no use i could not get the solution
code added in in the PageLayOut Region Controller
//OAApplicationModule am=pageContext.getApplicationModule(webBean);
OAApplicationModule am=(OAApplicationModule)pageContext.getRootApplicationModule();
OAViewObject localHvrRoDcsvo= (OAViewObject)am.findViewObject("HvrRoDcsVO1");
OAViewObject localVocPrimeDiagCodesBVO= (OAViewObject)am.findViewObject("VocPrimeDiagCodesBVO1");
OADBTransaction oaDBTxn=am.getOADBTransaction();
String strRepairLineId = (String)oaDBTxn.getValue("csdRepairLineId");
HvrRoDcsVORowImpl localHvrRoDcsVORowImpl = null;
VocPrimeDiagCodesBVORowImpl localVocPrimeDiagCodesBVORowImpl=null;
if ((pageContext.getParameter("SaveBtn") != null) ||(pageContext.getParameter("ApplyBtn") != null))
localHvrRoDcsvo.executeQuery();
RowSetIterator iter=localHvrRoDcsvo.createRowSetIterator("iter");
iter.reset();
while(iter.hasNext())
Row row=iter.next();
String str1=(String)row.getAttribute("Applicable");
if("Y".equals(str1))
localVocPrimeDiagCodesBVO.executeQuery();
RowSetIterator iter1=localVocPrimeDiagCodesBVO.createRowSetIterator("iter1");
iter1.reset();
while(iter1.hasNext())
Row row1=iter1.next();
if(row1.getAttribute("RoDiagnosticCodeId").toString().equals(row.getAttribute("RoDcId").toString()))
MessageToken[] tokens2 = null;
throw new OAException("CSD","Diagnostic code present in Primary Diagcode...",tokens2,OAException.WARNING,null);
else
MessageToken[] tokens = null;
throw new OAException("CSD","Diagnostic code not selected as Primary Diagcode...",tokens,OAException.WARNING,null);
iter1.closeRowSetIterator();
iter.closeRowSetIterator();
}

Similar Messages

  • Error while calling standards OAF page from Custom page

    Hi,
    Using personalization, from a custom page, I am trying to open a standard Iexpense page using the following inthe Destincation URI in messagestyledtext as
    OA.jsp?OAFunc=OIEMAINPAGE&startFrom=ActiveSubmitted&ReportHeaderId=380705855&OIERefreshAM=Y
    The original page has OA.jsp?OAFunc=OIEMAINPAGE&startFrom=ActiveSubmitted&ReportHeaderId={!ReportHeaderId}&OIERefreshAM=Y in the message styled text
    But when click on this from the custom page, the page opens with tabbed regions above and then gives error as below. Please let me know how to resovle this issue.
    Profiles 1) FND_VALIDATION_LEVEL and 2) FND_FUNCTION_VALIDATION_LEVEL are already set to None.
    Error is:
    Page Security cannot be asserted. The page has either expired or has been tampered. Please contact your System Administrator for help.
    Thanks,
    Srikanth

    Hi,
    R u still facing the issue?
    If So can you please tell me:
    Have u added your called function to the current user? That means by navigating to the responsibility you can access the same page directly, with out doing any transaction? If so then create your custom function with your required URL and attach to a menu ; then check if you are able to view that page from the menu navigation?If these thing is not working then I think you need to create a custom page that will extend the std region , that time hopefully it will work.
    Please post your result/thought!!
    Regards
    Apurba K Saha

  • Custom field's text not getting displayed in standard report

    Hi All,
    I have a requirement like this .
    There is a Custom field which we have added in a standard FICO report ie S_PL0_86000030 ( G/L Account - Balances ).
    The custom field is added through a report painter , while seeing the config of report painter the custom field is showing the selection text , but when we run this transaction S_PL0_86000030 , the technical name of that field appears in the selection screen .
    For example if the field is ' matnr'  then we give the text as 'Material Number' . Then in the screen this field is getting displayed as Matnr instead of Material Number.
    Please suggest me on this.
    Thanks,
    Sumit

    In transaction GRR2
    Insert->
    selection parameters ->
    take the variable type as >Tesxt varaible for selection parameter
    chosse >material no.
    hope ths helps
    Bhanu

  • Passing value of View Attribute from standard page to custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters whose value will depend on the dynamic selection by user. So how to get the currently executed value from VO.
    For ex: Vendor Id , contact id and site Id all are to be fetched which are present in three different VOs. When user select particular vendor, contact and site these values will change accordind to selection.
    Here do I need to extend the controller and application module of the standard page or it can be done by passing parameters in destination URI of submit button.
    I tried using parameters in destination URI of submit button as {VO.ViewAttributeName} and printing in custom page but it was printing " {VO.ViewAttributeName}" as it is.
    Please help..
    Thanks in advance.
    Edited by: Kittu on Nov 18, 2010 1:05 PM

    Hi Meher,
    I tried doing it by destination uri but it was not taking the value.
    I tried CO extension with the following code in my extended CO :
    public class ExtendedByrCntDirCO extends ByrCntctDirCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    /* I WANT TO CREATE TEH SUBMIT BUTTON PROGRAMATICALLY */
    OASubmitButtonBean oasb= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
    oasb.setID("SubmitBtn");
    oasb.setUINodeName("SubmitBtn");
    oasb.setEvent("xxSubmitButton");
    oasb.setText("Submit");
    webBean.addIndexedChild(oasb);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String url = "OA.jsp?page=/oracle/apps/aeap/Vendors/webui/VendorContactsPG";
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject VendorsVO = (OAViewObject)am.findViewObject("VendorsVO1"); // To retrive the attribute of a particular VO
    Number VendorId = (Number)VendorsVO.getCurrentRow().getAttribute("VendorId"); *// But here its showing null pointer exception*
    HashMap params = new HashMap(1);
    params.put("VendorId", VendorId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("xxSubmitButton"))
    pageContext.setForwardURL(url,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    So how can I retrive the value from VO . Is there any another way . Plz help...
    Edited by: Kittu on Nov 19, 2010 12:46 PM

  • Error while calling standard OAF page from custom Oracle Form

    Hi,
    I am calling standard OAF page from custom oracle form using the following code.
    FND_FUNCTION.EXECUTE(FUNCTION_NAME=>'FUN_TRX_ENTRY_OUT_VIEW_BATCH',
    OPEN_FLAG =>'Y',
    SESSION_FLAG =>'N' ,
    OTHER_PARAMS =>'&ViewBatchID = "' || NAME_IN('FUN_AGIS_LINE_D.BATCH_ID') ||
                        '&CallingFunction = "' || 'MANEXPINQ' ||'"');
    But I am getting this error.
    oracle.apps.fnd.framework.OAException: This request was not processed as the request URL %2FOA_HTML%2FOA.jsp%3Fpage%3D%2Foracle%2Fapps%2Ffun%2Ftransaction%2Fentry%2Fwebui%2FViewOutBatchPG%26OAPB%3DFUN_PRODUCT_BRAND%26OAHP%3DFUN_SSWA_MENU%26OASF%3DFUN_TRX_ENTRY_OUT_SEARCH%26_ti%3D1217029204%26language_code%3DUS%26%26ViewBatchID%20%3D%20%22203148%26CallingFunction%20%3D%20%22MANEXPINQ%22%26CallFromForm%3D%27Y%27%26oas%3DqZqg3tmdEdUNyw_HtskVow.. contained potentially illegal or un-encoded characters. Please try again by submitting a valid URL or contact your systems administrator for assistance.
    Please let me know any thing I missed out here.
    Any suggestion will highly appreciated.
    Thanks & Regards,
    Sunita

    I am using FND_FUNCTION.EXECUTE to call a OAF page from PLSQL in R12. I am getting following error"Error(9,23): PLS-00302: component 'EXECUTE' must be declared"

  • How to access a table of SAP standard SAP method from external program

    Hi Friends,
    I have to access a table and modified it defined in a standard SAP method (PROCESS_INPUT_FILTER) of class (CL_HANDLE_MM).
    As we normaly do it in case of Standard program
    for example: ('(SAPLMEPO)ett[]') here we are accessing internal table ett defined in SAPLMEPO.
    so how we can do the same thing if some thing defined in standard SAP method.
    Pl. help.

    Thanks for the info guys, it will come in handy.
    I need to validate that a number is entered with zero or one decimal place, then make sure it is evenly
    divisible by .5 in order to test for whole or half numbers only. If not, I use an alert to
    display a message when the user leaves the field.
    If there is a better way to achieve this, I am all ears!
    Thank you for your time,
    Gary

  • Custom report instead of standard standard report "EAMWRREP" from OAF

    Hi All,
    I have a requirement to fire a custom report instead of standard standard report "EAMWRREP" from OAF.
    Screen -> EAM Self Service Maintenance -> Work Orders -> Search Work Orders -> Print Work Order
    Standard page ->WorkOrderRepPG 120.2
    Standard Controller -> WorkOrderRepCO
    I have extended the standard controller to override the call
    as shown below :
    Standard WorkOrderRepCO :
    oapagecontext.putParameter("p_DataSourceCode", "EAMWRREP");
    oapagecontext.putParameter("p_DataSourceAppsShortName", "EAM");
    Extended :WorkOrderTestCO
    oapagecontext.putParameter("p_DataSourceCode", "USS_EAM_WO_OAF");
    oapagecontext.putParameter("p_DataSourceAppsShortName", "XP2P");
    The custom report gets fired with header and footer but with NO DATA.
    The custom report is a simple RDF+XML report (RDF data model + XML template)
    with just query SELECT wip_entity_name from wip_entities where wip_entity_id = : WipEntityId
    Can some one please let me know how to pass parameters to a report likne mine??
    Regards,
    Ambika Ramachandran

    Try the OA Framework Forum

  • How to access Custom controller

    Hi all,
    How can i access custom controller objects in my other controllers.Can i call custom controller objects from component controller .

    Hi,
    I hope you mean the Custom Controller the same way we understand as defined here
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers|http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers]
    To access custom controller from the component controller you have to do the following.
    1. Component controller->properties->use insert button to select the custom controller.
    2. Use the code generator (CTRL+F7) -second tab(general)->method call in used controller->select your custom controller->method.
    This will generate code like this
    DATA lo_zzsbn_cust_cc1 TYPE REF TO ig_zzsbn_cust_cc1 .
    lo_zzsbn_cust_cc1 =   wd_this->get_zzsbn_cust_cc1_ctr( ).
      lo_zzsbn_cust_cc1->test(

  • How to access custom JAVA webdynpro application from an iPad?

    Hi,
    We are trying to access custom JAVA webdynpro application from an iPad, but nothing is opening up from the iPad browser.
    What can be the possible reasons for this? Any kind of SICF enablement or opening up of ports in the network?
    Any inputs are welcome!!
    TIA,
    Regards
    Deepthi

    Hi,
    it is possible to show Java Web Dynpro applications on a mobile device in general, but the controls and the ui should be optimized for the mobile device.
    Safari devices are not officially supported so far for Mobile Web Dynpro.
    Supported are Windows Mobile devices and Blackberry devices. I also got some good results with Symbian devices.
    You can find more inforamtion on Mobile Always Connected at:
    ht[http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm]
    Best Regards,
    Stefan

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • WebDynpro accessing custom-build EJB applications

    Hi there,
    I have a query regarding WebDynpro accessing custom-build applications deployed on web-logic server and J2EE servers.Following is the scenario.
    There is central authentication mechanism deployed in J2EE server. GUI users (in EP) have to be authenticated through this application(EJB).
    In EP, this remote call would happen through the WebDynpro. After successful authentication, calls will be sent to another Weblogic server.
    Too many remote calls. How about the scalability & performance factors with WebDynPro?

    HI,
    Webdynpro and EP are almost same except coustomisation coming to picture in EP, why do you want webdynpro to EP to web logic, Just crate your UI in dynpro convert them to Iviews in EP through EP call wenlogic server/J2ee server i hope there will not be any hindarence to scalability or perfomance.
    when it comes to remote calls after all your going to call weblogic through EP but dynpro UI will be as an Iview
    I hope it helps you
    in case if you need further details let me know
    Regards
    RK

  • HOW TO Trigger customized smartform from standard trasaction

    Hi,
    I have created new customized driver pgm and smartform for order ready notice,i want to triger the smartform from standard transaction vt02n.What's the procedure,pls let me know.

    hi,
    after configuring nace as specified by others, u'll have to select dat output type in ur invoice.
    goto->header>output type->
    den select dat output type.

  • How to call custom BSP application (copied from standard)

    Hi,
    I came across 1 interesting link in SDN.
    [Enhancement procedure of BSP application HRRCF_RECRUITER in eRecruitment]
    My requirement is also similar.
    I need to copy the HRRCF_TRM_SRCH application.
    I know how to make the changes for the logic (like copying the standard controller & iterator class etc.)
    But I donu2019t know how to call the custom BSP application.
    One requirement is, I need to call a BSP application, in which there are only UI(user interface/screen) changes .
    That is, if there are only changes made to hitlist_cand.bsp page . And no changes made to hitlist_cand.do page.
    Eg: Removing one button from screen.
    Second requirement is, I need to call a BSP application in which there are logic changes also.
    (I know how to  change the standard controller class to custom class)
    Eg: Changing logic of button.
    We tried renaming the application name from standard to custom one (with Namespace=SAP itself, though it gave a warning) in the table T77RCF_LOG_APPL .
    Then we used this name to configure the start page link. But still the execution control is going to standard page & not to custom BSP application.
    How will I know which BSP application(Appl A), is calling the BSP application (Appl B) in which I want to make changes ?
    The starting application is HRRCF_START_INT.
    Would really appreciate solutions posted.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    I think you have an issue to call custom BSP.
    -     Ignore the warning message (in the table T77RCF_LOG_APPL) as it is just a warning message. I did not touch start page link at all.
    -     Additionally you need to make (I had to made) an entry in table u2018V77RCF_SMG_NAVIu2019.
    Let me know, if you need anything else.
    ...Naddy

  • Access Custom Attributes in JavaScript and in Transactions

    Hello,
    I try to work with custom attributes. I've problems accessing the values in JavaScript and in transactions, but it works fine within .irpt pages.
    What's the trick?
    For a custom attribute called PLANT, can I write something like this in JavaScript?
    var p = ;
    Is there a way to access custom attributes in the Link Editor of an Action Block?
    Kind Regards,
    Matthias

    Hi Matthias,
    it is not possible to integrate that kind of MII variables in JavaScript like you discribed before.
    You are right that this kind of expression is possible in the .irpt file. The reason why it is working in the .irpt
    but not in the .js is, that the MII script parser is only replacing in HTML content. Everywhere you have
    scripting the parser will not replace the {...} markings (since the curly brackets also show start/end of functions aso.).
    Variables to JavaScript
    The easiest Way to get those variables is to create hidden fields in the .irpt file that you can access via JavaScript.
    For example:
    <input type="hidden" id="hidden_plant" value="{PLANT}" />
    This will be parsed to (e.g.)
    <input type="hidden" id="hidden_plant" value="Karlsruhe/DE" />
    Now you can access this value in JavaScript via:
    document.getElementById( "hidden_plant" ).value;
    Variables to Transactions
    To parse custom variables to a transaction you first have to specify corresponding transaction variables in the
    transaction itself. After saving the transaction you can map those variables to Parameters in the Xacute-Query-Editor.
    Including this transaction to your webpage you can simply assign the required value to the corresponding parameter.
    For example if you mapped the Plant variable of the transaction to Param.1 you can specify the information in the .irpt
    like:
    <applet id="trx_test" ....>
      <... />
      <param name="Param.1" value="{PLANT}" />
    </applet>
    Another possibility is to set the value dynamically via JavaScript if you use:
    document.getElementById( "trx_test" ).getQueryObject().setParam( 1, "Karlsruhe/DE" );
    Native access to user variables via the BLE is not possible (as far as I know).
    I hope this is what you wanted to hear?
    Best Regards
    Sebastian
    Edited by: Sebastian Holzschuh on Jun 10, 2008 12:16 PM

  • Custom SAP report used to display an average standard cost per material.

    Hi All,
    I need to implement a report with the following functionality,
    This is a custom SAP report used to display an average standard cost per material.  Standard cost data is stored in SAP at the Material/Plant level.  This report will gather the individual Standard Costs at each applicable plant (restricted by selection screen input and additional logic specified in more detail in the u201CReport Fieldsu201D section) for applicable Materials (restricted by selection screen input; if not specified all materials should be returned) and calculate an average standard cost for each material.  The corresponding Currency and Base Unit of Measure will also be displayed.
    Additionally the relevant u201CCommodity Code/Import Codeu201D information should be displayed for each material returned.  This attribute is also stored at the Material/Plant level.  To determine the value of this field for each relevant material, the report logic must retrieve the values stored for each plant.  If all values are the same, the value can be output to the report.  If not all values are equal, a message u201CNot Consistentu201D should be output.  It should be noted that if all values are u201Cnull,u201D a null value should be returned in the report.
    Can any one provide me with sample code for the same??
    Thanks Debrup.

    Hello,
    Also refer this [ THREAD|Re: error in Fleet management customising] and [link|Error when recording measurements in IFCU]
    Regards
    Nav
    Edited by: Desire_Naveen on Nov 4, 2009 12:35 PM

  • Trace the reference Standard movement type from customized movement type

    Hi,
    In my system there are few customized movement type.
    Can I know which Standard movement type was used as reference to create the customized movement type.

    try table t156 table .. put your mvt type and see the BUSTR field for the reference mvt

Maybe you are looking for