Add a Data Action to Execute a Method - Problem

Hi,
I'm working with JDeveloper 10.1.3 - JSP,Struts and ADF BC.
I have a method that retruns 2 values (audit(Number,Number)) and exposed the Service Metod, but now I need to add a Data Action to Execute that method.
I already add an Data Action icon to my Page Flow Diagram but what do I need to do next?
Can anyone help me? Any ideias?
Thanks,
Micaela

Hi Shay,
I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
Adding a c:out tag to the JSP page.
Can you help me with this problem??
Thanks,
Micaela

Similar Messages

  • UIX : Data action doesnt call a method

    hi,
    1)I have created two uix pages u1 and u2
    2)I have created a data action(a1) based on method(findinvoices)
    3)I have created farward from u1 to data action(a1)
    4)I have created another farward from data action(a1) to u2
    5)I method to accept the params which i defined in u1 and execute the method which i draged and dropped on action(a1)
    Note i have defined the param values for each param of data action(a1).
    Why data action(a1) is not calling the method instead it directly goest to u2 and execute the query on it.
    Thanks.

    Hi Shay,
    I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
    I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
    Adding a c:out tag to the JSP page.
    Can you help me with this problem??
    Thanks,
    Micaela

  • Managing exception in data action

    Hello,
    I am working on a web j2ee project based on struts/adf technology scope.
    I need to do some complex elaboration when the user press a button, so:
    1. I develop a data action
    2. from the data action I call a method of the application module
    3. I get the result from the method and forward to the proper page,
    4. etc.
    My method in the application module raises exceptions (when no data are found on the database, when parameters are null, when the database is down...).
    If I let my method to throw exceptions (i write "throws Exception" in the declaration), the wizard doesn’t let me to export the method to the client!!
    Otherwise I should catch the exceptions in my method in the application module, return an integer to the data action and write some code to decode the return value and eventually raise the exception again: I can't believe I have to do it this way!!!
    Anyone can help me?
    Thank you,
    Marco.

    Thnaks for reply.
    I will try it from another system. as i am the administrator of my desktop also I am trying to uplode a Image from Desktop so don't think that there is the problem b'coz of permisions.
    May be problem is with GUI only.
    Regards,
    Darshan...

  • Using ADF View object create method in Data Action

    I need to know how to create a new row in an application module method and get the attributes from the ADF input form.
    If i Drag drop the create method in the data action form it is working fine. But how to do this programmatically, I have a need where i need to execute a query on another view object and set the create method.
    Thanks.

    Steven:
    (My application does not need to show all records and provide Edit/ Remove buttons at row level, navgational buttons and Create button for inserting new record. Instead, I would just open a blank record for entry, and commit)
    As per your post, I followed the following steps (action class) to insert blank record:
    DCBindingContainer bindings = actionContext.getBindingContainer();
    DCControlBinding binding = bindings.findCtrlBinding("Id");
    Row row = binding.getRowIterator().createRow();
    row.setNewRowState(row.STATUS_INITIALIZED);
    RowSetIterator rs =(RowSetIterator)
    binding.getRowIterator();
    rs.insertRow(row);
    End Results: It works fine and a new blank record is created. The only problem is <html:errors/> in JSP throws error for the first time. I do not want to elliminate error object from JSP.
    Please help!
    Thanks in advance

  • How to display values after doing some business logic in data action

    hi guys i got the same problem but iam unable to display the values..in my display page when iam trying to do some business logic in my data action class..
    can u guys help me out
    iam pasting my code which iam working here
    my struts-config.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="DataForm" type="oracle.adf.controller.struts.forms.BindingContainerActionForm"/>
    </form-beans>
    <action-mappings>
    <action path="/inputform" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/inputform.uix">
    <set-property property="modelReference" value="inputformUIModel"/>
    <forward name="success" path="/inputAction.do"/>
    </action>
    <action path="/inputAction" className="oracle.adf.controller.struts.actions.DataActionMapping" type="order.view.InputAction" name="DataForm">
    <set-property property="modelReference" value="displaypageUIModel"/>
    <forward name="success" path="/displaypage.do"/>
    </action>
    <action path="/displaypage" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/displaypage.uix">
    <set-property property="modelReference" value="displaypageUIModel"/>
    </action>
    </action-mappings>
    <message-resources parameter="order.view.ApplicationResources"/>
    </struts-config>
    my input form uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0" method="post">
    <contents>
    <messageTextInput model="${bindings.password}" text="username"/>
    <messageTextInput model="${bindings.username}" text="password"/>
    <submitButton text="submit" event="success" destination="inputAction.do"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    my display uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <messageStyledText model="${bindings.password}" prompt="Prompt 0"/>
    <messageStyledText model="${bindings.username}" prompt="Prompt 1"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    my model bean
    package order.model;
    public class TestBean
    private String username;
    private String password;
    public TestBean()
    public String getUsername()
    return username;
    public void setUsername(String username)
    this.username=username;
    System.out.println("the username after actions class:"+username);
    public String getPassword()
    return password;
    public void setPassword(String password)
    this.password=password;
    my data Action class
    package order.view;
    import oracle.adf.controller.struts.actions.DataAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.jbo.uicli.binding.JUCtrlActionBinding;
    import oracle.jbo.uicli.binding.JUCtrlAttrsBinding;
    import order.model.TestBean;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionForward;
    public class InputAction extends DataAction
    * Delegate to the Struts page lifecycle implementation
    * {@link StrutsJspLifecycle#findForward findForward}
    * @param actionContext the lifecycle context for the DataAction
    * @throws Exception
    protected void findForward(DataActionContext actionContext) throws Exception
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    //super.findForward(actionContext);
    TestBean testbean=new TestBean();
    System.out.println("this is action form"+actionContext.getActionForm());
    String username=(String)((JUCtrlAttrsBinding)actionContext.getBindingContainer().findCtrlBinding("username")).getInputValue();
    System.out.println("this is username"+username);
    String username1=username+"hye wats up";
    testbean.setUsername(username1);
    ActionForward forward=actionContext.getActionForward();
    ActionMapping mapping =actionContext.getActionMapping();
    System.out.println("this is mapping"+mapping);
    mapping.findForward("success");
    // To handle an event named "yourname" add a method:
    // public void onYourname(DataActionContext ctx)
    // To override a method of the lifecycle, go to
    // the main menu "Tools/Override Methods...".
    check this out iam unable to display in my display page so help me out if any one can

    No, in this case, I'm using standard JSP with ADF and struts validator.
    If I don't use struts validator and there are errors (such as putting a string into a number which produces a jbo-25009), the list value will be retained.
    When using the validator, it appears that it is NOT retained.
    I've written some code to attempt to set the list element back, which "looks like" it's working right now.
    There's still a problem with the second scenario:
    1. user clicks checkbox and hits [submit]
    2. get's error - you have to enter 5 address items
    3. User wants to backout, so he unchecks the box and resubmits
    4. The box redisplays as "checked"
    SO, at that point, I thought... can't I use YOUR EXAMPLE on how to handle a checkbox.
    I place some code in the reset method of the form to perform this:
    map.put("AddressChangeFlag", (String) "" );
    (that is, I've detected via the request that this flag is null), so I'm trying to make sure it retains it!
    I do that and it runs into a problem during the processUpdateModel aT:
    BindingContainerValidationForm updateForm= (BindingContainerValidationForm) actionContext.getActionForm();
    //Get the binding for our particular column JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get("AddressChangeFlag");
    call, with an error:
    JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=java.lang.String
    java.lang.String
    The value for updateForm.get("AddressChangeFlag") is "", which I'm assuming means the form field is no longer in the request object??
    I'm lost at this point, and have been working on it for more than 1 day.
    Thanks for responding though, and I await feedback ;)

  • Execute some method once an effect has been played

    Hi everybody, I want to execute a method after the effect i have played is finished. is there any property in AnimationProperty tag to acheive it.
    In the component i have pasted below, getting data from xml file and using repeater populate those data in Hbox then it moves the horizontal scroll position of HBox using animation property. once animation property has been played, it has to execute some method. how can we do it ?
    the next question is
    i want to play animation propery infinite times and i have done it with the help of repeatCount but it takes some delay in between. how can it play infinite imes without any delay in between.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="getXML.send(),slide(event)" >
    <mx:Script>
            <![CDATA[
                import mx.containers.Canvas;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.effects.easing.*;
                import mx.controls.*;
                import mx.collections.*;
                [Bindable] public static var refThumb : Thumbnail;
                [Bindable] public var xmlData : XMLListCollection = new XMLListCollection();
                [Bindable] public var xml :XMLList;
                public function resultHandler(event :ResultEvent) : void
                    xml = event.result.product as XMLList;
                public function faultHandler(event :FaultEvent):void
            public function slide(event :Event):void{
               ap.play();
        ]]>
    </mx:Script >
        <mx:AnimateProperty id="ap" effectEnd="{Web.refWeb.nextSlider()}" repeatCount="0" property="horizontalScrollPosition" fromValue="0" target="{can}" toValue="7200" duration="72000" startDelay="0"/>
        <mx:HTTPService id="getXML" showBusyCursor="true" url="catalog.xml" resultFormat="e4x" result="resultHandler(event)" fault="faultHandler(event)" />
        <mx:HBox paddingTop="20" id="can" width="600" height="200" backgroundColor="white" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundAlpha="0.2"  >
        <mx:Repeater id="rep" dataProvider="{xml}" >
            <mx:VBox id="comp" horizontalAlign="center" horizontalGap="200" width="200" height="200" verticalScrollPolicy="off" horizontalScrollPolicy="off">
                             <mx:Image source="{rep.currentItem.image}" width="150" height="100" maintainAspectRatio="false" />
                             <mx:Text text="{rep.currentItem.name}" fontWeight="bold" />
                             <mx:Text text="{'$ '+ rep.currentItem.price}" fontWeight="bold" />
                             <mx:LinkButton label="Add cart" color="blue" />
             </mx:VBox>
        </mx:Repeater>
        </mx:HBox>
    </mx:VBox>

    you have posted a VBox component code so it will be the part of your parent Application are you injecting data into this component from the main application ? and your
    httpService requires catalog.xml so you need to attach that file so i can run on my side successfully . instead of doing this you can tell the problem you are having so i can guide you on that
    regards,
           ATIF.

  • Urgent: unable to call a plsql stored procedure with a struts data action

    Hello ALL,
    I'm trying to call a plsql stored procedure within a struts DataAction,
    The scenario is:
    When a user a click on a button, then it should call a specific stored procedure,,
    I create struts data action a class to handle the event which is to call the procedure
    Here is my code:
    public class RequestAction extends DataForwardAction
    public void onCall(DataActionContext ctx)
    String amDef = "model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    try{
    AppModuleImpl myAm = (AppModuleImpl)am;
    DBTransaction tr = (DBTransaction) myAm.getTransaction();
    CallableStatement stmt = tr.createCallableStatement
    ("begin pkg_test.test; end;", DBTransaction.DEFAULT);
    stmt.execute();
    stmt.close();
    tr.commit();
    catch(Exception e){System.out.println(e.getMessage());}
    Configuration.releaseRootApplicationModule(am,true);
    but when I ran the application and click on the button, I got the following Exception:
    04/07/08 00:45:50 ORA-06550: line 1, column 7:
    PLS-00201: identifier 'PKG_TEST.TEST' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It seems that the DBTransaction object unable to see the stored procedure,
    Am I do something wrong or miss something???
    I've checked the examples on the OTN HOW TO, and searched in the JDeveloper Forum but unable to find an answer,
    Please anyone can help???
    Thanks a lot
    With Regards,
    Hayat

    Here's an example application that illustrates how to do this. I haven't had a chance to writeup a little paper to go with it yet, but will as soon as I have a chance.
    http://otn.oracle.com/products/jdev/tips/muench/storedproc/CallStoredProc.zip
    See the "callStoredProcedure" method in the application module in the Model project.
    See the "callStoredProcedure" method binding in the binding container of the "CallStoredProcedure" data page.
    Notice the name "event_callStoredProcedure" of the (Call Stored Procedure) button on the CallStoredProcedure.jsp page which triggers the declaratively invocation of the method.
    You could also call the method from code in a custom data action.
    The code example illustrates how to create your own JDBC prepared statement for invoking the stored procedure, and doing it in a way that is efficient by keeping the prepared statement around across invocations.

  • Adf faces: execute bean method after table is loaded

    Hi,
    How can I execute a method after an adf table is rendered on the page?
    This is what I want to do:
    I have a master/detail:
    - the master part contains a list of materials
    - the details contains a list of customers and volumes depending on the selected material.
    I tried to add totals on the details table:
    - I created an output text in the footer-facet of the colums containing volumes
    - I created a binding of the detail table to a CoreTable.
    - I created a method in a managed bean related to this CoreTable binding, so I can browse to all rows in the table and calculate the sum.
    - I then set the value of the output text to the total calculated in the managed bean.
    the problem is that I don't know how to execute the calculate procedure after the data in the detail table exists.
    What I tried:
    - call the calculate procedure in the setCoreTable method. --> at this point, there is no data in the table and this results in a nullPointerException when the pages is loaded.
    - call the calculate procedure on the valueChangeListener of the material list --> this doesn't work because totals are calculated for the previous details set.
    - I tried to add the call in one of the table listeners but I cannot find a listener that is executed after data is loaded in the table...
    for testing purpose only, I added a button: calculateTotals that calculates the totals. This works correctly.

    Hi,
    if you use page fragments exposed in an ADF region, you have two options I see
    1. Use a method call activity to call the managed bean
    2. Use a hidden UI component that references the setter/getter exposed in a managed bean and just use this as an indication for the page fragment being loaded
    Keragala

  • [svn] 920: Add missing or incomplete Javadoc for public methods.

    Revision: 920
    Author: [email protected]
    Date: 2008-03-25 15:37:25 -0700 (Tue, 25 Mar 2008)
    Log Message:
    Add missing or incomplete Javadoc for public methods.
    (merge from 3.0.x branch)
    Modified Paths:
    blazeds/trunk/modules/core/src/java/flex/messaging/io/AbstractProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/BeanProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/DictionaryProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/MapProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/PropertyProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/PropertyProxyRegistry.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/SerializationProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/ThrowableProxy.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/amf/AbstractAmfInput.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/amf/AbstractAmfOutput.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/amf/ActionContext.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/amf/AmfTrace.java
    blazeds/trunk/modules/core/src/java/flex/messaging/io/amf/translator/ASTranslator.java
    blazeds/trunk/modules/core/src/java/flex/messaging/log/ServletLogTarget.java
    blazeds/trunk/modules/core/src/java15/flex/messaging/io/Java15TypeMarshaller.java
    blazeds/trunk/modules/core/src/java15/flex/messaging/io/amf/Java15Amf0Output.java
    blazeds/trunk/modules/core/src/java15/flex/messaging/io/amf/Java15Amf3Output.java
    blazeds/trunk/modules/core/src/java15/flex/messaging/io/amfx/Java15AmfxMessageSerializer. java

    Hello Wes Ramm,
    It's better late than never! Hence I'm going to address some of the issues that you've brought up.
    1) Which version of LabVIEW are you using? LabVIEW 8.5 has fixed a lot of issues that occured between the Application Builder and LV Classes. If you were using LV 8.2, I would suggest changing to LV 8.5 or at least LV 8.2.1
    2) Apart from setting "Do not disconnect type definitions or remove unreferenced members" in the Additional Exclusions page, I would suggest also checking the box against "Enable Debugging" on the Advanced Page.
    The following forum post has discussed many of the problems that have come up when building an executable which uses LVOOP classes. Hope this helps.

  • Please help with data action problems

    Ok, this is driving me nuts, every example I try seems to work half the time...and I can't figure out why.
    I'm using JDeveloper 10g, ADF/UIX/Struts.
    All I want to do is:
    Access the application module for my project in a struts data action.
    a) To manipulate view object where clauses based on request parameters.
    b) Call application module custom methods.
    c) Access request values.
    Sometime the following works after I've been playing around:
    findForward(DataActionContext ctx)
    ViewObject vo = ctx.getBindingContainer().getApplicationModule.findViewObject("myViewObject");
    //whatever with the vo from here
    MOST of the time, I get 500 Server Errors. They state:
    java.lang.NullPointerException
         at mypackage4.DataActi1Action.findForward(DataActi1Action.java:10)
         at oracle.adf.controller.struts.actions.DataAction.findForward(DataAction.java:575)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:152)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    I believe this has to do with there not being a binding container for the Data Action. However, I can drag custom methods and view object methods (create/delete...) from the data control palette onto it all I want, and I still get the same errors. I thought I read that it generates one, from the long document:
    Oracle ADF Data Binding Primer and ADF/Struts Overview
    Basically, I read through and am still confused on how I can access the application module reliably. I have some pages that it's work for, but I can't figure out why it doesn't work for others.
    Could someone clear this up for me please?

    I've tried using getBindingContext, get BindingContainer, and a host of others. I can assign iterators to he UI model, the cpx file, but I still can't seem to figure this out.
    I don't see a comparable example in the ones I've downloaded from otn either. Thanks for any help.

  • Add 90s date stamp from "date created" to photos

    Hi
    I'm about to order a photobook (christmas gift for some relatives). The book have nearly 300 pictures in it,
    The pictures need to have dates. I could add a date manually for each picture but I havent really got time for it.
    All photos have proper exif data, with date created info. Does anyone know how i can just destructivly stamp
    this on to the photo itself? Bit of a odd problem, I don't think bridge/ps can do this with its default
    functionality - but I know I have seen this feature somewhere sometime in some software product!
    And yes I know date stamps look terrible, but most of the family photos arent exactly fine art to begin with :>
    Any tips appreciated, it would be a huge time saver for me!

    It can be done with a Photoshop Script that adda a text layer usinf the date in the EXIF. An example is my stampexif script. It adds a text layer which can be used within an action then the added text layer can be positioned and styled by the action. The script would be easy to change and format the text content to your likeing.
    Link to the script http://www.mouseprints.net/old/dpr/StampExif.jsx

  • How to add appointment date into CRMD_ORDER TCODE

    Hello i am trying to add 3 dates into the appointment area of the TCODE CRMD_ORDER,i am making this action into de BADI ORDER SAVE, and depents of a specific date of the TCODE i make the 3 differs dates after that ,i fill the input fields tables and of course the appointment tables too, after of that i call the function module CRM_ORDER_MAINTAIN and i send the both table to the this Fucntion module, and when go out of the ORDER_SAVE BADI i am expecting to have the result into the CRMD_ORDER TCODE, but i coudn´t save these dates. (in this example i send only one date)
    InputFields
    ls_input_field-ref_handle = lv_handle_h.
    ls_input_field-ref_guid = iv_guid. "Guid del Documento
    ls_input_field-ref_kind = 'A'.
    ls_input_field-objectname = 'APPOINTMENT'.
    ls_input_field-logical_key = 'ZV01'. "Indica que la fecha es Presentacion de proyecto
    ls_fielname-fieldname = 'DOMINANT'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'DURATION'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'RULE_NAME'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'SHOW_LOCAL'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMESTAMP_FROM'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMESTAMP_TO'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMEZONE_FROM'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMEZONE_TO'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIME_UNIT'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    INSERT ls_input_field INTO TABLE et_input_fields.
    appointment table
    wa_appointment-ref_guid = iv_guid.
    wa_appointment-ref_kind = 'A'.
    wa_appointment-timezone_from = 'CST'.
    wa_appointment-timestamp_to = '0'.
    wa_appointment-timezone_to = 'CST'.
    wa_appointment-appt_type = 'ZV01'.
    wa_appointment-timestamp_from = lv_timestamp.
    APPEND wa_appointment TO it_appointment.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
    it_appointment = it_appointment
    CHANGING
    ct_input_fields = it_input_fields
    EXCEPTIONS
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    So does anybody have any idea how to make this?
    Thanks a lot for you help.

    You can modify the following coding which is working fine for me...
      ls_field_names-fieldname = 'DOMINANT'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'DURATION'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'RULE_NAME'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'SHOW_LOCAL'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'TIMESTAMP_FROM'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'TIMEZONE_FROM'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'TIME_UNIT'.
      INSERT ls_field_names INTO TABLE lt_field_names.
          CLEAR lt_appointment.
          ls_appointment-ref_handle = '0000000001'.
          ls_appointment-appt_type = 'REQ_DLV_DATE'.
          ls_appointment-ref_kind = 'A'.
          ls_appointment-ref_guid = <lf_order_data>-guid.
          ls_appointment-timestamp_from = lv_timestamp.
          ls_appointment-timezone_from = sy-zonlo.
          APPEND ls_appointment TO lt_appointment.
          CLEAR ls_input_fields.
          ls_input_fields-ref_guid = <lf_order_data>-guid.
          ls_input_fields-ref_kind = 'A'.
          ls_input_fields-ref_handle = '0000000001'.
          ls_input_fields-objectname = 'APPOINTMENT'.
          ls_input_fields-logical_key = 'REQ_DLV_DATE'.
          ls_input_fields-field_names = lt_field_names.
          INSERT ls_input_fields INTO TABLE lt_input_fields.

  • BC Implementations in Data Actions

    Hi there,
    I have a UIX 2.2.8, Struts, BC4J project. There are custom base classes for all the business objects. In data actions view objects and application modules appear as instances of WSObjectImpl. The method getImplObject usually returns the client implementation (e.g. an subclass of oracle.jbo.client.remote.ApplicationModuleImpl). However the project is deployed in local mode. So how do I get access to business components derived from the custom base classes and not only client objects?
    Can someone help?
    Regards,
    Jan

    Hi,
    Please check if cookings are enabled on your browser.
    This error occurs when cookies are disabled in the browser. SharePoint assumes that cookies are enabled and doesn’t explicitly checks for it. 
    http://community.office365.com/en-us/f/154/t/168463.aspx
    vThis error occurs when cookies are disabled in the browser. SharePoint assumes that cookies are enabled and doesn’t explicitly checks for it. 
    vThis error occurs when cookies are disabled in the browser. SharePoint assumes that cookies are enabled and doesn’t explicitly checks for it. 
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Dump while executing class method whose exporting parameter  of type table

    hi,
    i am getting dump after executing a method in which i want to export an internal table which will hold all the states name along with its code on the basis of the country name which is my importing parameter.
    for the above i am using importing parameter named as country of type too5u-land1 and the exporting parameter named as itab of type table and below is my code for the requirement.
    method PROCESS.
      select BLAND BEZEI from T005U
             INTO TABLE ITAB WHERE
             LAND1 = COUNTRY.
    endmethod.

    Hi,
      Please check the below code
    parameters country type land1.
    *Refer the class which we are using like below
    data: a type ref to ZCL_TX_SERVICE_01.
    data itab type ycountry.
    *ycountry is a table type defined in dictionary with fields BLAND and BEZEI
    data wa like line of itab.
    *If we are using instance method we need  to create the instance like below
    create object a.
    *In the method process define exporting parameter itab as type ycountry which is a table type already defined
    CALL METHOD a->PROCESS
      EXPORTING
        COUNTRY = country
      IMPORTING
        ITAB    = itab.
    loop at itab into wa.
    write:/ wa-bland.
    endloop.
    Regards
    Dande

  • How to add new data file

    Hi Friends,
    We have 4 below file systems.
    Sybase/TST/sapdata_1
    Sybase/TST/sapdata_2
    Sybase/TST/sapdata_3
    Sybase/TST/sapdata_4
    Already we have added one data file each in sapdata_1 and 2.  Sapdata3 and 4 are emptry.
    How to add new data file in sapdata3 or 4.
    Please provide syntax for creating a new data file and steps for the same.
    Regards,
    Karthik.

    Just for the record: you have here the DBACockpit documentation:
    https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000571562012E
    And this is a sample of the extend to be executed:
    Regards,
    Victoria.

Maybe you are looking for

  • How to call a static method from an event handler

    Hi,    I'm trying to call a static method of class I designed.  But I don't know how to do it.  This method will be called from an event handler of a web dynpro for Abap application. Can somebody help me? Thx in advance. Hamza.

  • Adapter Module to terminate module chain processing PI7.1 (File Adapter)

    Hi All, I have a file in a FTP location that needs to be picked up ONLY after a trigger file is found. I have tried 2 ways using OS commands and BPM but both do not suit my need . I have now decided to write a java adapter module. This is in PI 7.1.

  • Row Selection problem in custom cell renderer

    Hi, I have created a custom cell renderer to set color in my table based on some value and the screen also shows colors when i set this cell renderer. But, I am not able to see the row selection ie. with blue background when I select any row in the t

  • ARD 3.2.2 & Unix

    We have close to 35 Mac's under control of ARD 3.2.2, that are set to turn on at 6 in the morning, and off at 8pm Monday thru Friday. However when holiday's come along, we need machines off for the holidays. So I'm using a Unix command "pmset" to set

  • Error code 1625 upgrade to windows 8.1. I do not want to upgrade from Windows 7

     I am running windows 7 64 bit on HP probook 4440s & recently purchased HP pro mfp m 225dw all in one.    I cannot get wireless printing nor scanning function to work. When I try to download the drivers directly from HP, I get the error nessage.  Any