Create Partial Fire action on DFF context value in controller extension

Hi All,
I have a requirement where I will have to default the DFF attribute value based on the context value chosen in the same DFF.
Since the page is a seeded page i have done that using Controller Extension.
I have followed the below steps.
1.I have created one class file XXR2R_AR_BANK_ACCT_EXTCO
2. In that file I have written the following piece of code
+public class XXR2R_AR_BANK_ACCT_EXTCO extends UpdateExtBankAcctCO {+
public void processRequest(OAPageContext oapageContext,
OAWebBean webBean)
+{+
super.processRequest(oapageContext, webBean);
OADescriptiveFlexBean dfb =
+(OADescriptiveFlexBean)webBean.findChildRecursive("FlexField");+ // This is the ID of the flexfield defined in seeded page
FireAction firePartialAction = new FirePartialAction("contextvalchng");
+}+
public void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
+{+
super.processFormRequest(pageContext, webBean);
if ("contextvalchng".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
+{+              
super.processFormRequest(pageContext, webBean);
OADescriptiveFlexBean dffBean =
+(OADescriptiveFlexBean)webBean.findChildRecursive("FlexField");+
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject extVO =
+(OAViewObject)am.findViewObject("ExtBankAccountsVO");+ *// This is the view name corresponding to the DFF fields*
String str = "" ;
OARow row = null;
if (extVO!=null)
+{+
row = (OARow) extVO.getCurrentRow();
if (row!=null)
+{+
str = (String)row.getAttribute("ATTRIBUTE_CATEGORY"); *// here I have retrieved the context value of the DFF*
+}+
+}+
dffBean.processFlex(pageContext);
if ("DEN".equals(str)) *// if the context value is "DEN" then only the defaulting will be done*
+{+
OAMessageTextInputBean mnum = (OAMessageTextInputBean)webBean.findChildRecursive("FlexField1");
mnum.setText("599956");
row.setAttribute("ATTRIBUTE13","6995");
+}+
3. After compiling the .jave file I have placed the .class file in the CUSTOM_JAVA_TOP location and in the seeded page I have placed this CUSTOM_JAVA_TOP top path (in the personalize page section)exactly in the same way where the .class file is.
But when I am changing the context value in the DFF nothing is actually happening.It is never including the custom file behavior.
Please let me know if I am wrong in my coding or my approach.
Thanks
Sudie
Edited by: user10816003 on Jun 21, 2010 5:54 AM
Edited by: user10816003 on Jun 21, 2010 5:55 AM

Hi,
I think you need to set PPR on one of the segment of the DFF. Following is the code snippet I found few days back in forum. Use this in processRequest() method to set the PPR.
OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)webBean.findIndexedChildRecursive("ASNPrdtAddInfoFF"); //DFF ID...in your case it is "FlexField"
if(null != oadescriptiveflexbean)
     oadescriptiveflexbean.processFlex(pageContext);
     //oadescriptiveflexbean.setFlexTableRendered(false); -- useful, if we want to render the items on our own.
     int cnt = oadescriptiveflexbean.getIndexedChildCount(pageContext.getRenderingContext());
     for(int i=0; i<cnt; i++)
          OAWebBean uiNode = (OAWebBean)oadescriptiveflexbean.getIndexedChild(pageContext.getRenderingContext(),i);
          if(null != uiNode && uiNode instanceof OAMessageTextInputBean )
               System.out.println(i + "::::" + uiNode.getLabel() + "::::" + uiNode.getUINodeName()+ "\n");
               if(uiNode.getUINodeName().equalsIgnoreCase("ASNPrdtAddInfoFF2")) //Segment ID...you need to find it out..on which segment you want to do PPR
                    FireAction firePartialAction = new FirePartialAction("Event.termChangeEvent", true); //This is I am not sure but it must be the event name
                    uiNode.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
Now you need to check for this event in processFormRequest() method. If this event fetched iterate the Vo rows and check the Attribute value there. if the value matched then do the defaulting process.
Hope this helps..
Regards,
Mukesh Uchaniya

Similar Messages

  • Unable to set DFF context value

    Hi,
    i want to set DFF context value with a variable, so i tried first to set it with a constant.
    in the controller's PR
    super.processRequest(oapagecontext, oawebbean);
    // first, find the flexfield's handle
    OADescriptiveFlexBean oaDFF;
    oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("DescFF");
    oapagecontext.writeDiagnostics(this,"oaDFF=>"+oaDFF ,1);
    // default the Attribute Category (DFF context)
    oaDFF.setFlexContext(oapagecontext,"QuietanzaErarioStato");
    oaDFF.processFlex(oapagecontext);
    but it doesn't take any effect, the context's pickilist remains blank.
    However i tried the same code with another DFF and it worked. i am wondering if there is some differences between the two DFF.
    Any help will be appreciated, it'quite urgent
    Thanx

    Hi,
    Please create a new region thru personalization before the region where u r DFF is present. Use re-order to take the new region before the DFF region.
    Set the controller to that new region and the code that you mentioned. This process will sets the context.
    Kindly refer the dev guide as i found the above solution from devguide it self.
    Thanks
    Raghava

  • Null DFF Context Value in R12

    Hi Experts,
    Recently we have upgraeded ebs 11.5.10.2 to R12.1.3 .
    In 11i , we have DFF at supplier site level ( Title : Vendor Sites).
    After upgradation , we are not able to see the context value at supplier site level.
    Is there any set-up required for the same ?
    Please guide me.
    regards
    sd

    Hi
    can i get the information type from ExtraInformationTypeVO,
    but the create ,update pages using different VOs
    Please tell me the solution.
    Thanks
    Raju

  • Person DFF Context Value based on 2 criteria (Business Group and Emp Type)?

    Hello,
    We're implementing HR module into multiple business groups.
    I need to define context value for DFF "Additional Personal Details" based on 2 criteria Business Group ID and Employee Type
    Any idea how to do it?
    Thank you
    Elie

    Hello Elie,
    I am not sure on it,However have you tried creating a context with combination of Business Group and Person Type using merging,
    business_group_id || "_"|| person_type_id And structures would be something like 80_2112 Business Group id = 80 and Person Type id=2112.
    It may resolve your issue if this works out.
    Regards,
    Saurabh

  • How to get the DFF Context Value in CO

    Dear All,
    i am working on extension on EitUpdateCO, the same page contains more than one EIT
    for Some EITs i have to populate calculated values into their segments .
    How to get the Context value of DFF .
    Please send me the code if u have .
    Thanks
    Raju

    Hi
    can i get the information type from ExtraInformationTypeVO,
    but the create ,update pages using different VOs
    Please tell me the solution.
    Thanks
    Raju

  • How to map context values in controller and  a view

    Hi,
    I am trying to use Web Dynpro as an interface for an application where I need to load two Graphs in to two different Views and produce a third graph. Could anyone advise me how to map the context values in the component controller and a view when I load a Graph in to the Web Dypro Console. Please help me I would appreciate your help.
    Thanks a lot,
    Phani.

    Hi Phani,
    The following links should be helpful.
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/444941db42f423e10000000a155106/frameset.htm
    regards,
    AE

  • OAF DFF Context  Issue

    Hi All,
    I am working On DFF
    I can able to display elements, based on DFF Context.
    But I want to Hide the Global Data Element Context Segments by Controller Extension,
    not by Personalization.
    I am getting error while Rendering False to Global Data Element Context Segments.
    Also how can we set the Context based on Reference field.?
    Please Help me on this..

    Hi,
    As per OAF development team using java script is not recommended and Oracle does not support any javascript related personalizations.
    For custom pages when we are left with no choice we can use javascript. Refer
    http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html
    Coming to using javascript in seeded pages, my point of view is:
    as long as a specific project has production support team is there we can use javascript for personalizations.
    Most of the times we do extend controller for extention requirements in seeded page, but in R11 as per Dev guide "There is no guarantee that controller extensions will survive an upgrade (you should assume that they will not).".
    So considering this I use javascript wherever only CO extention is required, since both are not supported by oracle :) .
    Regards,
    Anand

  • Set default values in DFF context programatically in OAF

    Hi Guru's,
    In our environment, we have one Context sensitive DFF named Party Information having following context:
    GUEST
    COMPANY
    AGENCY
    BANK
    SUPPLIER
    Now the requirement is if Create Customer page renders, this DFF should show only values- GUEST, COMPANY, AGENCY.
    We can not disable the context values BANK, SUPPLIER because this DFF is used at many place so we have to use such logic, if Create Customer page renders
    it should display only three context programatically.
    I can default the one context programatically by below statement-
    OADescriptiveFlexBean custinfoDFFBean = (OADescriptiveFlexBean)webBean.findChildRecursive("personFlex");
    if (custinfoDFFBean!= null)
    custinfoDFFBean.setFlexContextCode(pageContext, "GUEST");
    custinfoDFFBean.setContextListRendered(false);
    but don't know how to default with three context.
    Could anyone please help me on this?
    Thanks...
    Piyush

    Hi All,
    I am still lookin for the solution for this problem.
    Regads,
    Piyush

  • Unable to create a dynamic action ALERT to be generated on a Select List when particular value is selected.

    Hi everyone, this should be so easy, yet I am stuck.
    I have a form region with an item P110_VESSEL_ID.   This item is a select list.   It is based on the query: 
    select distinct v.vessel_name, v.vessel_id
    from vessels vessels v, frequent_fishermen ff
    where ff.dea_permit_id = :G_PERMIT_ID and
    ff:vessel_id = v.vessel_id
    UNION
    select v.vessel_name, v.vessel_id
    from apex_collections a, vessels v
    where collection_name = 'SUPVES_COLLECTION' and
    a.c002 = v.vessel_id
    If the user decides against the values in the select list query, they may opt to SELECT ALL VALUES.  This SELECT ALL VALUES is a POST ELEMENT TEXT on P110_VESSEL_ID.
    <a id="popVessels" href="#"><font color=blue>Select from ALL Vessels</a>
    This all works fine.
    The issue is that when the user selects a vessel name = 'UNKNOWN' and it's corresponding vessel_id value, I would like an ALERT to appear indicating that they should double check that the vessel is UNKNOWN and not that the is no vessel. 
    I created a dynamic action
    event= change
    select type = item
    item = P110_VESSEL_ID
    True ACtion #1 is the ALERT.
    I currently have no other logic, but cannot even get this to work.  Any thoughts.   I have also tried the SELECT TYPE = jQuery Selector = select[name='P110_VESSEL_ID'] but that does not work either (though I am not certain if the value should be P110_VESSEL_ID or the static name of VESSEL_ID).
    Any help is appreciated.
    ps.  the page is not submitted when the vessel is changed.  There is other data that needs to be entered both in this region and others and many validations run when submit, so the submit would not be an option.
    thanks again,
    Karen

    KarenH,
    KarenH wrote:
    I created a dynamic action
    event= change
    select type = item
    item = P110_VESSEL_ID
    True ACtion #1 is the ALERT.
    This should work.  Sometimes I've see where there is other javascript on the page that may have some errors and is causing the dynamic action code to not be executed.  Use your favorite browser script console to try and determine if this may be the case.
    --Jeff
    P.S. Your jQuery selector can be: select#P110_VESSEL_ID

  • How to do Default context value For DFF in OAF

    Dear all,
    I want to do Default context value For DFF in OAF for seeded page, pls let me know how to do.
    Regards,
    Hanimi

    Hi Hanimi,
    In controller use code
    *dffBean.setFlexContext(pageContext,"+YOUR-LIST-VALUE+");*
    *dffBean.setAttributeValue(OAWebBeanConstants.READ_ONLY_ATTR, new Boolean(false));*
    Thanks
    Jegan

  • Defaulted DFF Context, but Attributes also getting some default Values.

    Hi,
    I extended CO for defaulting DFF, it is working fine. But the problem is Attributes Also getting default Values and when u search for one record those DFF Attribute values are not showing proper data, but table attribute values having correct data only.
    Regards,
    Hanimi.

    hi Pavan,
    i extended CO for getting context value as default, it is defaulting Context as well as Attribute values also after opening the page.But i want to default context value only after opening the page and when i search one record that attribute values data is showing wrong data, but in table attributes having proper data, but in page these values are showing different data.
    I used following code for Defaulting Context In CO. Pls check the code.
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    String s = oapagecontext.getParameter("_FORMEVENT");
    if(s == null || s.equals(""))
    s = oapagecontext.getParameter("FlexFormEvent");
    OADescriptiveFlexBean dffBean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");
    String organizationId = (String)oapagecontext.getSessionValue("OrgId");
    String contextValue = getContextValue(oapagecontext.getApplicationModule(oawebbean).getOADBTransaction(), organizationId);
    if(contextValue != null)
    dffBean.setFlexContext(oapagecontext, contextValue);
    dffBean.mergeSegmentWithParent(oapagecontext);
    private String getContextValue(OADBTransaction con, String organizationID)
    System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
    String contextValue = null;
    String sql = " SELECT meaning FROM fnd_lookup_values flv, mtl_parameters mp WHERE flv.lookup" +
    "_type = 'NGHA_EAM_WR_LOCATION_CONTEXT' AND flv.ENABLED_FLAG like 'Y' AND mp.or" +
    "ganization_code = flv.lookup_code AND mp.organization_id = "
    + organizationID;
    Statement st = null;
    ResultSet rs = null;
    try
    st = con.createStatement(1);
    rs = st.executeQuery(sql);
    if(rs.next())
    contextValue = rs.getString(1);
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if(st != null)
    st.close();
    if(rs != null)
    rs.close();
    catch(Exception e)
    e.printStackTrace();
    return contextValue;
    }

  • Rendering Addnl Assign DFF displays  Context Value rather than its segments

    I am trying to personalize update appraise page to render Additional Assignments DFF but after rendering it to true..... It just displays Context Value rather than its segments........
    Oracle Guru's any suggestions?

    You need to provide the Descriptive Flexfield Segment List value in the format
    Global Data Elements|[global segment1]|[global segment2]||...||Context1|[segment1 for context1]|[segment2 for context1]||...||Context2|....
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • SSAS report action to pass multi-value list of dimention key values to a SSRS report parameter

    This was originally posted on StackOverflow and suggested I try here as well.
    I want to create a report action in an SSAS OLAP cube that generates a list of formatted values to pass into an SSRS report parameter that accepts a multi-valued parameter list.  This would be applied at the
    cell level in the SSAS action.  I have found a solution that gets me most of the way:
    How to Pass Multiple Values from an SSAS Report Drill Through Action to an SSRS Multi-Value Parameter, but not quite.  The action does appear in Excel and works
    if I run the action from a cell that is at or below the dimension attribute I am generating the list for, in this case,
    Account Key.
    Below is a link to a screen capture (unable to embed it due to lack of reputation) showing the action and dimension structure in Excel.  The action works as long as I run it at the
    Account Key level or below.  I want to be able to run it at higher levels, such as
    Account Major and still have it generate all then related Account Key values for the SSRS report parameter.  Running it at the higher
    Account Major level does not trigger the report to run.
    Excel Action Screen Shot:
    http://i.stack.imgur.com/QCGSp.png
    Below is the MDX I am using to generate the value for the report parameter:
    UrlEscapeFragment(
    GENERATE(
    DESCENDANTS(
    [Account].[Account Key].CurrentMember,
    [Account].[Account Key].[Account Key]
    [Account].[Account Key].CURRENTMEMBER.Name,
    "&rp:Account="
    I am hoping that I can somehow modify the MDX above to make it return all the
    Account Keys for any attribute of the Account dimension when ran from any measure cell, not just when ran at self and children of
    Account Key in the pivot table.
    Also, if it helps, I can execute the following MDX query on the cube and get the results I am looking for.
    WITH MEMBER [Measures].[Account Key List] as
    GENERATE(
    DESCENDANTS([Account].[Account].CurrentMember, [Account].[Account].[Account]),
    [Account].[Account].CURRENTMEMBER.NAME,
    "&rp:Account=")
    SELECT {[Measures].[Account Key List]} on 0,
    ([Account].[Account Company Number].[Account Company Number],[Account].[Account Major].[Account Major]
    ) on 1
    FROM [Company 10 Action Demo]
    Below are partial results:
    10.116&rp:Account=10.116.010
    10.117&rp:Account=10.117.010&rp:Account=10.117.020
    10.120&rp:Account=10.120.005&rp:Account=10.120.006&rp:Account=10.120.010&rp:Account=10.120.020&rp:Account=10.120.030&rp:Account=10.120.040&rp:Account=10.120.050&rp:Account=10.120.060&rp:Account=10.120.380&rp:Account=10.120.999
    10.123
    Questions
    Any ideas what I might need to do to get Account Key to be returned for any attribute of the
    Account dimension?
    Would I possibly have to alter my Account dimension in the cube to get this to work?
    Thanks in advance.
    Edit 1 - Adventure Works Cube Version
    I was unable to get the suggested answer with the "Exists" function to work.  To better demonstrate this issue, I have recreated it using the Adventure Works Cube.
    I will focus on the Customer dimension, specifically the Customer and
    Education attributes.  I created a report action called Test Report Action.  Below is the XML created for it in the cube.
    <Action xsi:type="ReportAction" dwd:design-time-name="f35ad5ee-5167-4fb8-a0e0-0a74cc6e81c6">
    <ID>Report Action 1</ID>
    <Name>Test Report Action</Name>
    <TargetType>Cells</TargetType>
    <Target></Target>
    <Type>Report</Type>
    <ReportServer>SQLSERVER</ReportServer>
    <Path>ReportServer?/Test Report</Path>
    <ReportParameters>
    <ReportParameter>
    <Name>Test Customer Existing</Name>
    <Value>UrlEscapeFragment(
    GENERATE(
    EXISTING DESCENDANTS(
    [Customer].[Customer].CurrentMember,
    [Customer].[Customer].[Customer]
    [Customer].[Customer].CURRENTMEMBER.Name,
    "&amp;rp:Customer="
    )</Value>
    </ReportParameter>
    </ReportParameters>
    <ReportFormatParameters>
    <ReportFormatParameter>
    <Name>rs:Command</Name>
    <Value>Render</Value>
    </ReportFormatParameter>
    <ReportFormatParameter>
    <Name>rs:Renderer</Name>
    <Value>HTML5</Value>
    </ReportFormatParameter>
    </ReportFormatParameters>
    </Action>
    Below are the steps to re-create the issue.
    Connect to the cube in Excel
    Add dimension Customer -> More Fields -> Customer
    Add measure Internet Sales -> Internet Sales Amount
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action" and see customer values created for URL 
    When the action is ran at this point with Customer, I see the values created in the URL shown message box (since there is no SSRS report server at location specified).
    Now the part I'm unable to resolve
    Remove the Customer dimension and add Customer -> Demographic -> Education
    Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action"
    Nothing happens. If I ran the action on the cell next to "Bachelors", I would want it to build up all the list of all the "Customers"  that make up the "Bachelors" in the
    Customer dimension as part of the report parameter.  If no attributes where used in the cube from the
    Customer dimension for that cell, then I would like it to return "All Customers", or something similar to show that all customers are included in the aggregations.
    I am not too MDX savvy, thus far.  I think I need to somehow join the
    Customers to Internet Sales Amount in the Generate function portion.  I have tried several different combinations of the
    Customer dimension and Internet Sales Amount, along with various functions to see if I could get this to work with no success.  I am hoping that someone more knowledgeable the me will have a solution.   If you need more details,
    please ask and I will provide them.

    Simon,
    Thanks for you help with this.  This morning I found a workaround.  Below describes what that is.
    What I ended up doing was getting a list of values from a degenerate dimension that I could use to pass to SSRS to get a list of transactions for a report.  Below is how I did this, in relation to the Adventure Works cube using the degenerate dimension
    Internet Order Details.
    WITH MEMBER [Measures].[Order Param List] AS
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    SELECT {[Measures].[Order Param List], [Measures].[Internet Sales Amount]} ON 0
    ,([Date].[Calendar].[Date]) ON 1
    FROM [Adventure Works]
    This will get a list of Sales Order Number in a text string, separated by "&rp:OrderNum=" for each measure of
    Internet Sales. This would allow me to create an SSRS report to bring back detail information for each
    Sales Order Number. Below are some sample results.
    May 16, 2007 SO50493&rp:OrderNum=SO50494&rp:OrderNum=SO50495&rp:OrderNum=SO50496&rp:OrderNum=SO50497&rp:OrderNum=SO50498&rp:OrderNum=SO50499&rp:OrderNum=SO50500 $12,157.80
    May 17, 2007 SO50501&rp:OrderNum=SO50502&rp:OrderNum=SO50503&rp:OrderNum=SO50504&rp:OrderNum=SO50505&rp:OrderNum=SO50506&rp:OrderNum=SO50507&rp:OrderNum=SO50508 $13,231.62
    May 18, 2007 SO50509&rp:OrderNum=SO50510 $4,624.91
    With this, I can then create a Report Action in SSRS with a Parameter Value of
    UrlEscapeFragment(
    GENERATE(
    EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
    "Internet Sales"),
    [Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
    "&rp:OrderNum=")
    The way I was going about it before was flawed, as I was trying to get a list of the granular values from each dimension used to build the measure value and pass each one of those as separate parameters. I just needed to set something unique for each fact
    measure transaction that represents the value and uses that in a query parameter for the SSRS report.

  • Creating two dynamic action in a page

    Hi,
    I have created two dynamic action under the page_items(p6_item,p6_item1 both are hidden).
    First dynamic action under p6_item is action1.
    properties of action Event-> Change
    Selection_Type->Item
    Item-> p6_Item
    Value-> show
    (When i Hit the button viewall it should only display region1)
    True Action:
    sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region1
    sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
    False action:
    sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
    Second Dynamic action under p6_item1 is action2
    properties of action Event-> Change
    Selection_Type->Item
    Item-> p6_Item1
    Value-> show
    (When i Hit the button Search it should only display region2)
    True Action:
    sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region2
    sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
    False action:
    sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
    Here the problem is, when i hit the viewall button it is not displaying region1 instead region2 is displayin region1 is hidden. when i hit the Search Button it is displaying region2 , region1 is hidden. Foer me, When viewall hitted region1 should only display not region2. When Search button hitted region2 should only display not region1.

    Hi little foot,
    I have created my page in apex.oracle.com. you can clearly see the issue which i am having in the page.
    Workspace:listen
    Username: [email protected]
    Password:apex
    Application Name: 45665
    Page: page1

  • DFF default value - SQL Statement

    Hi Friends,
    I have a mandatory DFF segment on the Sales Order Header and I want to default a value in that segment only for a specific Order Type, not all.
    So, When I create a US Order Type, it should default from a value set and the value will be "00000", which is the default value in the value set.
    For all other Order Types, it should not default and the user has to select it. How can I write the SQL for this. Thanks.

    Hi,
    Typically, this is possible only if you make use of DFF contexts.
    But using context from each order type is not a good idea.
    Why dont you use a personalization that would populate ATTRIBUTEx on the data block if the condition based on order type is true?
    If the form is coded correctly, the value will get defaulted into respective column.
    Thanks,
    Hrishikesh

Maybe you are looking for

  • Approve notification of absence over a RFC call

    Hello, i would approve notfication of absence over a RFC call. I use SAP JCo to run a RFC. In the Transaction SE37 on SAP R/3 System, i found the RFC SWF_DEMO_FORMABS_PROC_WRITE. The import parameters are: I_FORMNUMBER, I_PROCSTATE, I_APPROVBY and I_

  • How can I delete Quiz results???

    I don't know and that's what I am trying to figure out. It seems that once the results are captured by Quiz Results Analyzer, it's not easy to remove them. Sounds like they are in some database somewhere. I can UNINSTALL the Captivate Quiz Results An

  • Table type row engine

    Hello, We are using procedures with table type: create type <type_name> as table (....) using explain plan we discover that it uses row engine. Is there an alternative?? Thanks, Amir

  • Intercompany billing with consignment client

    Hello, I have a question; did anybody have the same problem? I'm doing an invoice in VF01 of an intercompany billing after having done a normal invoice to a costumer. I'm having a consignment process in which I did the sales order from an sales organ

  • HDV Qt playback problems

    I have a HDV 1080i50 project shot on a Z1 that i am having problems with. When i export the project as a quicktime movie the image seems very jerky when played back through QT Player. All the settings seem to be right but have heard of a possible pro