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

Similar Messages

  • Problem while passing parameter from standard page to custome page

    Hi,
    We are calling a custom page from standard page.
    Standard page Extended CO
    PR
    String wcHeader = pageContext.getParameter("WcHeaderId");
    pageContext.putTransactionTransientValue("WcHeaderId",wcHeader);
    PFR
    String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
    pageContext.putTransactionTransientValue("WcHeaderId",wcHeader);
    Till here we are able to put the Parmeter in Tranasction
    After calling the custom page from standard page while we are using the Transaction value it is returning null.
    Custom page CO
    PR
    String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
    we are getting nulll here.
    Please provide the solution for this
    Thanks,
    Narayana

    Hi Meher Irk,
    i got WcHeaderid value in Custom CO. but i want to set value Custome page to Standard page in custom page i have a total value this value i want to set to Standard page.
    Custom CO code
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package xxbb.oracle.apps.pos.xxwc.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import xxbb.oracle.apps.pos.xxwc.server.WithholdAMImpl;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.cabo.ui.validate.Formatter;
    import oracle.apps.fnd.framework.webui.OADecimalValidater;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.*;
    import oracle.apps.fnd.framework.webui.*;
    import oracle.apps.fnd.framework.webui.beans.table.OATableFooterBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.server.OAViewRowImpl;
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.jbo.domain.Number;
    import java.util.Enumeration;
    import oracle.apps.pos.wc.webui.WcRespondCO;
    //import oracle.apps.pos.wc.webui.*;
    * Controller for ...
    public class WithholdCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String wcHeader=new String();
    Formatter formatter=new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    OAColumnBean columnBean=(OAColumnBean)webBean.findIndexedChildRecursive("Amountcol");
    columnBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR,formatter);
    //String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
    pageContext.writeDiagnostics(this,"zzzzzz"+wcHeader,1);
    if(pageContext.getSessionValue("WcHeaderId") != null&& !pageContext.getSessionValue("WcHeaderId").equals(""))
    wcHeader=pageContext.getSessionValue("WcHeaderId").toString();
    pageContext.writeDiagnostics(this,"If get session condition "+wcHeader,1);
    /* OAMessageTextInputBean item=(OAMessageTextInputBean)webBean.findIndexedChildRecursive("item3");
    item.setValue(pageContext,"10");*/
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if("AdvancedRN".equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    am.invokeMethod("xxInsertRow");
    // am.xxInsertRow();
    if(pageContext.getParameter("Save")!=null)
    am.invokeMethod("xxSaveTransaction");
    am.invokeMethod("xxUnitotal");
    OAViewObject vo = (OAViewObject)am.findViewObject("TotalVO1");
    vo.reset();
    vo.next();
    OARow totRow = (OARow)vo.getCurrentRow();
    Number total = (Number)totRow.getAttribute("Total");
    throw new OAException("Records Saved Successfully",OAException.CONFIRMATION);
    if(pageContext.getParameter("Delete")!=null)
    am.invokeMethod("xxDeleteRow");
    am.invokeMethod("xxSaveTransaction");
    //am.xxDeleteRow();
    // am.xxSaveTransaction();
    throw new OAException("Records Deleted Successfully",OAException.CONFIRMATION);
    if(pageContext.getParameter("Close")!=null)
    pageContext.setForwardURL("OA.jsp?page=/oracle/apps/pos/wc/webui/WcRespondPG&param=FrmWithHoldPG"
    ,null
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,null
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Thanks,
    Narayana

  • How to pass values between views in FPM - GAF

    Hi Experts ,
    i have a doubt in FPM how to pass values between views .
    For Example:  i am having 2 views -  1 ) overview , 2 ) edit  using  the GAF
    in 1st view (overview ) i have a table displaying the employee details , i will select a single employee from that table for editing .
    how to pass the selected employee details to the 2 nd view (edit ) .
    Thanks & regards
    chinnaiya P

    Hi chinnaiya pandiyan,
    Please follow below steps:
    1. To achieve this u need to create two context nodes in the component controller.
    2. Say one is EMPLOYEE_DATA and other is SELECTED_DATA.
    3. Set the Cardinality of EMPLOYEE_DATA to 0..n and SELECTED_DATA to 1..1.
    4. Add same attributes to both nodes. (probably all those fields that are required in table and/or in edit view.
    5. Map both these nodes to OVERVIEW view.
    6. Map only SELECTED_DATA node to EDIT view.
    7. Create table in OVERVIEW view based on EMPLOYEE_DATA node.
    8. Create edit form in EDIT view based on SELECTED_DATA node.
    9. While navigating from OVERVIEW view to EDIT view, read the selected element of EMPLOYEE_DATA node and copy it to an element of SELECTED_DATA node. This should be written in PROCESS_EVENT method of component controller inherited from FPM component.
    10. Now u got the selected data in SELECTED_DATA node which will be displayed in EDIT view.
    Regards,
    Vikrant

  • Can we change the View attribute of the Switcher through PERSONALISE PAGE?

    Can we change the View attribute of the Switcher through PERSONALISE PAGE? I want this switcher to display another column. This switcher that i want to change is a seeded one. I have extended a VO and added a new attribute. I want this Switcher to display this new attribute. How can I acheive this.
    Regards
    Ali

    When I do exactly that I get a .XLS file that when you open it and click Save As comes up in Single Web Page mode. When I change the type I get a much smaller file. I am doing exactly what you describe, but with different results. Is it possible that this is configurable?
    Here is a screenshot of me exporting:
    http://i879.photobucket.com/albums/ab359/jameyweare/problem1.gif
    Here is the properties of the file. As you can see the size is 215kb This is actually a very small query for for demonstration purposes. I have queries that return 20k rows with 10 to 15 columns. This creates a spreadsheet that is over 20MB.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem2.gif
    This next screenshot is of the Save As dialog from Excel. I have highlighted the file type that the file is currently saved in.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem3.gif
    In this screenshot I have changed the file format.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem4.gif
    Here is the new properties. The file size has decreased to 57.5kb. In the cases where I had files that were 20MB or greater (and took aver 10 minutes to open up), this process reduced those files to about 200kb.
    http://i879.photobucket.com/albums/ab359/jameyweare/problem5.gif
    Any help on this would be appreciated.
    Edited by: Jaime Weare on Jul 17, 2009 3:38 PM

  • How to pass values to dashboard prompts from external applications

    Any idea is well appreciated.
    How can I pass values of dashboard prompts from external applications to the dashboard prompts so that the dashboard is prefiltered based on values sent by external applications.
    Thanks in Advance!
    Kris

    Kris,
    i am able to change the session variable and able to call the dashboard from external app, but i identified prompt value not changing. but Finally i am able to found a workaround for you.
    Use the following URL and it explained here
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    PortalPath is your dashboard location. /shared/abcd is folder where i saved dashboards. dash1 is my dashboard name.
    internally this dashboard includes many reports that uses the session variable. after doing above this i am able to update the session variable to the value i have given in URL, DSN=value.
    You may observer here that calls the dashboard and passes the value but its not updating the prompt value. so workaround for this is edit your prompt,
    change the Default to - SQL Results and place the sql
    SELECT CASE WHEN 1=0 THEN Markets.Region ELSE VALUEOF(NQ_SESSION.DSN) END saw_0 FROM Paint
    again here Market.Region is column from presentation layer and Paint is subject area. After doing this step, your prompt always shows value in the session varible as default.
    Now include reports and dashboard prompt in the dashboard and run this url from external applicaitons.
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    it worked for me and blog this soon. if it works for you mark the question as answered and mark my replies as correct.
    thanks
    - Madan

  • Setting null values to view.attributes

    Hi all, I am getting following NPE posting form to server. Below I m writing snippet of code which causes the issue:
    SEVERE: value is null for a not available property: test
    java.lang.NullPointerException: value is null for a not available property: test
         at javax.faces.component._ComponentAttributesMap.put(_ComponentAttributesMap.java:303)
         at javax.el.MapELResolver.setValue(MapELResolver.java:90)
         at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:69)
         at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:180)
         at org.apache.el.parser.AstValue.setValue(AstValue.java:158)
         at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
         at org.apache.jasper.el.JspValueExpression.setValue(JspValueExpression.java:85)
         at javax.faces.component.UIInput.updateModel(UIInput.java:287)
         at javax.faces.component.UIInput.processUpdates(UIInput.java:214)
         at javax.faces.component.UIForm.processUpdates(UIForm.java:99)
         at org.ajax4jsf.component.AjaxViewRoot$2.invokeContextCallback(AjaxViewRoot.java:424)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240)
         at org.ajax4jsf.component.AjaxViewRoot.processUpdates(AjaxViewRoot.java:440)
         at org.apache.myfaces.lifecycle.UpdateModelValuesExecutor.execute(UpdateModelValuesExecutor.java:33)
         at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
         at java.lang.Thread.run(Unknown Source)My Jsp Page code snippet:
    <t:selectOneMenu value="#{view.attributes['test']}">
         <f:selectItems value="#{myController.listValues}"/>
    </t:selectOneMenu>MyController.java bean property:
    public List<SelectItem> getListValues() {
              listValues.clear();
              SelectItem si = new SelectItem("", "-Select-");
              SelectItem si2 = new SelectItem("1", "1");
              SelectItem si3 = new SelectItem("2", "2");
              listValues.add(si);
              listValues.add(si2);
              listValues.add(si3);
              return listValues;
         }When user selects nothing, I need to set NULL value for this drop down. Kindly suggest if there is any other way or best practice to do the same.I am using Myfaces 1.2.5 for JSF 1.2. This thing was working fine in Myfaces 1.1.5 for JSF 1.1.Any suggestions?

    Give this a try:
    <t:selectOneMenu value="#{view.attributes['test']}">
            <f:selectItem itemLabel="-Select-" />
         <f:selectItems value="#{myController.listValues}"/>
    </t:selectOneMenu>
    public List<SelectItem> getListValues() {
              listValues.clear();
              listValues.add(new SelectItem("1", "1");
              listValues.add(new SelectItem("2", "2");
              return listValues;
         }Note: I cleaned up your getListValue() a bit - most of the changes are cosmetic except for removing you '-Select-' selectItem. Also, why do you use a class level variable if you are generating it on each call? Either generate the list on constructor call (or when needed) and just return it from getListValues(), or simply use a local variable.

  • ABAP pass values between views?

    Hi - how do you pass a value from one to another on navigation?  I have set them up as attributes and thought I could just call the one screens controller and get the values this way - but the controller is always initial.  Thanks

    Hello Nigel.
    Try to see if my reply at this thread can help you out:
    Trigger View change from another view
    Good luck!
    Kind regards.
    Bruno

  • Pass values between views of different window

    Hello Experts,
    I am a newbie in ABAP Webdynpro. I have 2 views in 2 different windows. I want to pass values calculated from one view to the other view. But i cannot connect the views.
    If the views were within the same window, I could connect them using inbound and oubound plugs with parameters. However in this case i am unable to establish the navigation link between these 2 views.
    Has anyone of you experts come across such kind of requirement? If so, can you please guide how to connect the 2 views?
    Thanks and regards,
    Nitish.

    Everyone,
    I was finally able to connect the 2 views by using the component controller.
    I created an attribute on the context of the component controller and read/set of the attribute of component controller on the button click event.
    To access the attribute of the component controller, please find below a code snippet which was useful to me:
    Data declaration for accessing the component controller
    DATA:
           lo_component     type REF TO if_wd_component,
           lo_context       type REF TO if_wd_context,
           lo_controller    type REF TO if_wd_controller,
           lo_node          type ref to if_wd_context_node,
           lo_child         type REF TO  if_wd_context_node.
    DATA lo_el_test_depts  TYPE REF TO if_wd_context_element.
    get component controller API
      lo_component = wd_comp_controller->wd_get_api( ).
      lo_controller ?= lo_component.
    accessing the context of the component controller
      CALL METHOD lo_controller->get_context
       RECEIVING
       context =  lo_context.
    lo_context is the required context, from here we can manipulate its components
    get to the root node in context of component controller
      lo_node = lo_context->root_node.
    using lo_node i was able to  read and write to the attribute i created in component controller.
    Thank you all for your help.
    Nitish.
    Edited by: Nitu_0105 on Apr 8, 2011 3:29 PM

  • Null Error in Displaying a value through view attribute

    I just want to display a value through message styled text bean from view attribute .
    For that i use the code in PR:
    But it gives null error: Please any one help me.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("StaffInfoVO1");
    if(vo!=null)
    OARow row = (OARow)vo.getCurrentRow();
    System.out.println("vo is not null");
    String str1 = row.getAttribute("FullName").toString();
    OAMessageStyledTextBean stext1 = (OAMessageStyledTextBean)webBean.findChildRecursive("RFStaffName");
    stext1.setText(str1);
    While getattribute("FullName") executed it gives null error. Why?
    how to rectify?

    Hai,
    I can execute the query in toad which returns 1 row of data. It is not null rows.
    But my vo object, why it is not executed. Returning null. I dont know.. Too many hours i spent.
    VO query:
    select distinct papf.person_id,papf.FULL_NAME,
    papf.EMPLOYEE_NUMBER,
    papf.EMAIL_ADDRESS,
    papf.WORK_TELEPHONE,
    hla.COUNTRY,
    sysdate,
    pap.NAME,
    haou.NAMe department,
    ood.ORGANIZATION_NAME
    from
    per_all_people_f papf,
    per_all_assignments_f paaf,
    per_all_positions pap,
    per_jobs pj,
    per_grades pg,
    per_person_types ppt,
    hr_all_organization_units haou,
    hr_locations_all hla,
    org_organization_definitions ood
    where
    papf.PERSON_TYPE_ID=ppt.PERSON_TYPE_ID and
    papf.PERSON_ID=paaf.PERSON_ID and
    paaf.POSITION_ID=pap.POSITION_ID and
    paaf.JOB_ID=pj.JOB_ID and
    paaf.BUSINESS_GROUP_ID=haou.BUSINESS_GROUP_ID and
    papf.person_type_id=13 and
    haou.business_group_id=202 and
    haou.NAME like '%Global%Sales%' and
    papf.FULL_NAME like '%Stand%' and
    paaf.LOCATION_ID=hla.LOCATION_ID and
    paaf.ORGANIZATION_ID=ood.ORGANIZATION_ID and
    sysdate between papf.EFFECTIVE_START_DATE and papf.EFFECTIVE_END_DATE and
    sysdate between paaf.EFFECTIVE_START_DATE and paaf.EFFECTIVE_END_DATE
    Help Me.
    Thanks & Regards

  • Passing values to APEX items from external site

    All,
    Is it possible to pass values to APEX page items from an external web site?
    For example, I have an external web site where users type in a username and password into fields. When they click the 'log-in' button in the external site, I would like to have those values passed to the APEX log-in page. If possible, I would like to have the APEX log-in occur 'invisibly' and the user taken directly to the home page of the app. If that's not possible, it would be nice to simply have the 'user name' and 'password' fields filled in on the APEX side.
    I'm using APEX 3.0.
    Thanks in advance for any help!
    Alex

    Hello Alex,
    >> Is it possible to pass values to APEX page items from an external web site?
    The general answer is yes. You can use the f?p syntax to set the value of any APEX item - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#sthref185 .
    In your specific example, the main question should be is it wise? The mere fact that you are using a login process suggests you have something to protect in your application. The f?p syntax uses a plain text for the items’ value, which means that the user name and password will be completely exposed.
    Regards,
    Arie.

  • Pass value at run time from one structure to diffrent structure

    hi  experts.
    i  m  workin on  crm domain  and faching problem to pass value  from one stucture to another . problem is that i want the output in xml file so i need all the values interm  of segment.
    initialy  i have  this structure.
    DATA: BEGIN OF struc1 occurs 0,
           ST_ORDERADM_H TYPE CRMT_ORDERADM_H_WRKT,
           ST_PRICING    TYPE CRMT_PRICING_WRKT,
           ST_ORGMAN     TYPE CRMT_ORGMAN_WRKT,
           ST_PARTNER    TYPE CRMT_PARTNER_EXTERNAL_WRKT,
          END OF struc1.
    and using fm CALL FUNCTION 'CRM_ORDER_READ' i got values  on this structure at run time.
    MOVE LT_ORDERADM_H  to STRUC1-ST_ORDERADM_H.
    MOVE LT_ORGMAN      to STRUC1-ST_ORGMAN.
    MOVE LT_PARTNER     to STRUC1-ST_PARTNER.
    MOVE LT_PRICING     to STRUC1-ST_PRICING.
    and after that using
    try.
      CALL TRANSFORMATION id
        SOURCE data_node = STRUC1
        RESULT XML xmlstring.
        CATCH cx_st_error.
    endtry.
    CLEAR:   tab_xstring,
             lv_filename,
             lv_path,
             lv_fullpath,
             lv_user_action.
    REFRESH: tab_xstring.
    lv_bytes = XSTRLEN( xmlstring ).
    IF lv_bytes > 0.
      lv_xstring = xmlstring.
      DO.
        APPEND lv_xstring TO tab_xstring.
        lv_xcnt = XSTRLEN( lv_xstring ).
        IF lv_xcnt > xsize.
          lv_xstring = lv_xstring+xsize.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    now it  convert to xml file .
    problem is  it gives  me value of all field associated with  standared structure.
    but  client requirment is that  he want only selected values of given structure.
    so i think i make  a new structure for given value  but  i m not able  to get values in new structure.
    thanks

    Hi,
    create a structure in se11 with following fields
    ST_ORDERADM_H.
    ST_ORGMAN.
    ST_PARTNER.
    ST_PRICING.
    for example as STRUCT2.
    data : begin of i_struct2 occurs 0.
       include structure struct2.
    data : end of i_struct2.
    MOVE LT_ORDERADM_H to i_STRUCt2-ST_ORDERADM_H.
    MOVE LT_ORGMAN to i_STRUCt2-ST_ORGMAN.
    MOVE LT_PARTNER to i_STRUCt2-ST_PARTNER.
    MOVE LT_PRICING to i_STRUCt2_PRICING.
    then
    try.
    CALL TRANSFORMATION id
    SOURCE data_node = i_STRUCt2
    RESULT XML xmlstring.
    CATCH cx_st_error.
    endtry.

  • How to pass values one by one from Multiline container in workflows

    Hi,
    I have used a structure in my workflow as multiline container.
    I want to pass values 1 by 1 to the workflow but not all the three values..so how do i pass the values 1 by 1 rather all at a time..
    kindly suggest me
    Thanks,
    Shanky

    Hi,
    Create a new container with type I and set the initial value as 1.  EX : Index.
    Pass your Multi-line container and this index container to a new method. Get the multi line container data's into an internal table
    and read the data based on the index and append the data's to a new multiline container.
    Second time increment the index container by 1. So now the value of index container will be 2.
    Pass the multiline container value and index to method. now it will read the second record from the internal table.
    Call the method using the loop step type.
    Thanks,
    Viji.

  • Can not create template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Can not build a template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Custom Master Page with Custom Page Layout

    Hi All,
    I have created a Custom SharePoint Master Page. In that Master Page I have created a custom Header & Footer.  In between the header and the footer I created a space to put page's content.
    However I have created a page using that master page and it was successfully published.
    After that I wanted to create a Custom Page Layout using that Page previously created. That also was a successful one. But when default Page Layouts in SharePoint 2013 inserted to a page it shows an area that can add content. But in my Page Layout inserted
    to a page it does not show like that.
    So what have I missed when I created the Custom Page Layout? Could you kindly someone tell me how to solve this matter?
    Thanks and regards,
    Chiranthaka

    Can you confirm that your custom page layout has the same WebPart Zones as the default one? They need to be if you wish to see content that was added with the default page layout.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

Maybe you are looking for