Entity service date input problem

Hi
I have wrapped  BAPI Holiday_Get as an external service
its input parameter DATE_FROM and DATE_TO have been imported as caf.base.string type
When i run along with others inputs in ECC/R3
DATE_FROM   = 15.05.2006
and DATE_TO  = 15.05.2007
i get the required output
when i call it using an Entity service and input data as above - i get the error --
ERROR. For input string: "15.0":
I have used the caf.core.shorttext type for my data_ to and date_from attribute
I have also tried to pass them as default but still it is not working
What is to be done for passing this as input to entity service?
Help me in this issue .
Points assured for help

Hi Srivastava,
I got the same problem for date mapping.
I have wrapped BAPI_FLIGHT_GET_DATA as external service its input parameters are ARline ID,ConfigID and Date
In R3 when i give AA,0017,  04.07.2007 date iam able to get the output correctly.
when iam trying to get the data from the CAF UI. with the above given data iam getting  "com.sap.caf.rt.exception.CAFFindException"
i have bind the date attribute to caf.base.date/caf.core.date and checked got the same exception.
As,you also got the same problem.
Can you help me regarding this if you have any idea.
Thanks,
Kiranmai.S

Similar Messages

  • Url service data control - problem while  POSTing to a restful webservice

    Hi,
    I am trying to call a restful webservice to add a new employee .I have created the url service data control. The service method consumes XML.
    When i am creating the url service datacontrol I selected the http method as POST and giving the servicepath and servicename as the source. After providing the xsd's path and all , when I test the url connection, I am getting the following error message:
    URL Test: Received Error: Method Not Allowed
    This might be because the clicking of the test url button is sending the get request, but the actual method is POST.
    Now under the data controls navigator, If i view the newly created data control, i could see the loadData(Object) method which i assume is for retrieving the data from the service. But since i have mentioned the method as POST, why such a method is created? Also if its there, can I use the same for insert and update? I have used this loadData (Object) method to create a button which calls the webservice upon click. Under the data control property inspector, i changed the supportsupdate attribute's value to true. But when i am trying to save the employee from the jspx page, I am getting the following message in the integrated weblogic's log
    Couldn't get access to the data source. Cause Unsupported Media Type exception in rest service
    And on the server side I am getting the following error message:
    No message body reader has been found for request class Employee, ContentType application/octet-stream.
    I think the request is not going as XML. But while creating the datacontrol i have specified the xsd document for the iput xml request. Does ADF automatically creates the XML from the input parametres? If it does not, then what could be done to achieve that? The default actionListener of the submit button is #{bindings.loadData.execute}. Do i have to override it to send the XML request? Or have I missed anything in trying to achieve what i intend?
    I had refered this link for reference :
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_53/jdtut_11r2_53.html
    Rampal
    Edited by: user12011868 on Jan 22, 2012 10:03 PM

    Hi Frank,
    I had specified the HTTP method as POST as well as PUT. But the same error is appearing in the both the cases.
    URL Test: Received Error: Method Not Allowed
    And when I am clicking on the 'Test URL Connection' , I can't see any option of selecting the HTTP method. This option only appears in the step 2 of creating the URL service data control where we mention the URL endpoint and the source.
    What could be the reason for the error.
    Rampal

  • ADFMobile - Web service data control problem for android

    Hi,
    I created an application for android and testing it on an emulator.
    I am able to create web service data control for a jax-ws web service. But when I invoke the web service and the call comes to the web service host, there are no namespaces in some of the parameters. Typically, the tags which do not have the namespace are complexTypes. All the values of the parameters come properly. I have tried executing the data control in three different manners but still no luck.
    AdfmfJavaUtilities.invokeDataControlMethod(..);
    AmxMethodActionBinding.execute();
    +#{bindings.invokeMethod.execute}+
    Thanks.

    Hi there,
    Can you try to generate a sample JAX-WS the generates a similar complex structure that can help you and us to isolate the issue? I created a jax-ws service using simple complex type on Ubuntu and also a client mobile application getting no problems running it. But, perhaps you are using a more complex structure, hence an standalone would be very useful.
    Juan C.
    Edited by: Juan Camilo Ruiz on Dec 10, 2012 4:00 PM

  • Selection OPTION: Date input problem in Module POOL through Subscreen

    Dear ALL,
    Being new to ABAP, I am struck in a Problem.
    Requirement:
    I want an option on the Screen( My Screen 9000) for Date Range. Through this Date-Range I want to filter and pull some data from
    Database.
    As Date Range Selection option is possible only through Sub-Screen integration. Hence I integrated a Sub-Screen 400 (as below) and named the Sub-Screen area as SEL on my screen.
    Problem: As soon as I enter the dates on the screen, then those dates are not taken up by the code.
    During debugging I saw the the S_datum-low and S_datum-high are empty (in fact 00000000)
    The code follows:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
      Call SUBSCREEN SEL  INCLUDING sy-repid '400'.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_9000.
    DATA:  gv_datum     Type   dats,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
        SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    Plz help where I am missing something.
    Regards
    Chandan

    Call the subscreen during the AT SELECTION-SCREEN event.
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    AT SELECTION-SCREEN.
       CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
       SET PF-STATUS '0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
       CASE sy-ucomm.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE TO SCREEN 0.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Web service date format problem

    Hi, I am using a web service from another R/3 server. Its date format is like this..
    - <xsd:simpleType name="date">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="10" />
      <xsd:pattern value="\d\d\d\d-\d\d-\d\d" />
      </xsd:restriction>
    when I created a Proxy class, the date field  length is 8.
    I write my code and tryed execution. Its not giving any result and no exceptions also.
    I think the problem is with Date field..
    Suggest me how to solve this problem.
    Regards,
    Dhanunjaya Reddy

    Hi Dhanunjaya,
    If you are calling web service from your code, then it is executing like this->
    Your Code--> Proxy---> Already existing web service
    You are making  a call to proxy, not to web service directly.
    And in proxy it is defined as type D( with length 8) which is equivalent to YYYYMMDD.
    So try passing the value  YYYYMMDD(eg 20070505) from your code.
    Regards,
    Piyush
    YYYYMMDD

  • Serial data input problem

    Hi friends.
    I have a problem with my java programming. Please don't laugh me if it is simple. I'm new in java.
    I want to take data from censor named RFIDreader. It use card like smartcard. When the card approach the censor, it send the ID which consist of 13 bytes of data.
    I have search code from the internet. But when I try to my PC, it didn't do very well.
    Hopefully, PC would receive all the ID data. But in my case it had to read twice to collect the data. The first trying, it's ok. It can collect data only once loop. But next, it must read 8 byte first and then read the rest on the second loop. Only if i restart my PC so it can be good again. But in the second try next, it screw up again.
    I use j2sdk 1.5.0 for windows.
    I want to collect the data once, so i can procces it to another task.
    this is my code
    /* Sample java code to read an RFID tag */
    import java.io.*;
    import java.util.*;
    import javax.comm.*;
    public class RFIDTagRead implements Runnable, SerialPortEventListener {
    static CommPortIdentifier portId;
    static Enumeration portList;
    InputStream inputStream;
    SerialPort serialPort;
    Thread readThread;
    //Array consisting of SOH, length, command, data, BCC
    static byte[] bytearray = {0x01, 0x02, 0x09, 0x32, 0x39};
    static OutputStream outputStream;
    static int n =0;
    public static void main(String[] args) {
    //Enumerate a list of available ports
    portList = CommPortIdentifier.getPortIdentifiers();
    // Identify the ports. I connected the reader with COM1
    while (portList.hasMoreElements()) {
    portId = (CommPortIdentifier) portList.nextElement();
    if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    if (portId.getName().equals("COM1")) {
    System.out.println("The port is: " + portId.getName());
    RFIDTagRead reader = new RFIDTagRead();
    public RFIDTagRead() {
    try {
    //Open the COM1 port and name it MicroReader with timeout 2000ms
    serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
    } catch (Exception e) {System.out.println("Port Error");}
    try {
    outputStream = serialPort.getOutputStream();
    // Write the stream of data conforming to PC to reader protocol
    outputStream.write(bytearray);
    outputStream.flush();
    System.out.println("The following bytes are being written");
    for(int i=0; i<bytearray.length; i++)
    System.out.println(bytearray);
    System.out.println("Tag will be read when its in the field of the reader");
    } catch (IOException e) {}
    // Set Serial Port parameter
    try {
    serialPort.setSerialPortParams(9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e) {}
    try {
    //Register an event listener object to the port
    serialPort.addEventListener(this);
    } catch (TooManyListenersException e)
    {System.out.println("Too Many Listeners");
    //Specify an event type. On data availability, triggers serialEvent method
    serialPort.notifyOnDataAvailable(true);
    try {
    //Associate an InputStream object with this port.
    inputStream = serialPort.getInputStream();
    } catch (IOException e) {}
    //Start a thread to handle the time-to-read the tag
    readThread = new Thread(this);
    readThread.start();
    public void run() {
    try {
    Thread.sleep(56);
    } catch (InterruptedException e) {}
    //This method is called by notifyOnDataAvailabe()
    public void serialEvent(SerialPortEvent event) {
    switch(event.getEventType()) {
    case SerialPortEvent.BI:
    case SerialPortEvent.OE:
    case SerialPortEvent.FE:
    case SerialPortEvent.PE:
    case SerialPortEvent.CD:
    case SerialPortEvent.CTS:
    case SerialPortEvent.DSR:
    case SerialPortEvent.RI:
    case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
    break;
    case SerialPortEvent.DATA_AVAILABLE:
    n++; //to count the number of readings
    System.out.println("The reading description of RFID Tag" + " " + n);
    //array size must not be less than the number of bytes to be read
    byte[] readBuffer = new byte[20]; // to store the read data
    int numbyte = 0;
    try {
    while(inputStream.available() >0) {
    // Read the RFID data and store in the byte array
    numbyte = inputStream.read(readBuffer);
    System.out.println("Number of Bytes read: " + numbyte);
    } catch (IOException e) {}
    if( readBuffer[0] == 1) /*check if start bit is detected */
    int length = readBuffer[1];
    // Identify the Transponder type
    switch(readBuffer[2]) {
    case 12 :
    System.out.print("RFID is RO:" + "\t");
    break;
    case 13 :
    System.out.print("RFID is R/W:" + "\t");
    break;
    case 14:
    System.out.print("RFID is MPT/SAMPT:" + "\t");
    break;
    case 15:
    System.out.print("RFID is Other:" + "\t");
    break;
    // Write the actual tag reading in Hexadecimal
    for( int m = length+1; m > 2; m--)
    System.out.print(Integer.toHexString(readBuffer[m] & 255));
    System.out.println(" ");
    System.out.println("\t" + "Read Sucessful");
    System.out.println("----------------------------------");
    break;
    somebody have a suggestion? please help me...
    thanx

    You may want to try the 'Java Technology Forums - Socket Programming' forum for issues like this:
    http://forum.java.sun.com/forum.jspa?forumID=11
    btw, i did a search on that forum and found a thread that discusses a problem similar to the one you have:
    http://forum.java.sun.com/thread.jspa?forumID=11&threadID=555379
    The suggestion on that thread is:
    try to use
    serialPort.disableReceiveFraming();
    serialPort.disableReceiveTimeout();
    serialPort.enableReceiveThreshold(length);
    with lenght as the preferred size of the dataset. (e.g. 16 bytes instead of 8)You may want to read that thread to see if it helps...

  • Activity External processing data input problems

    How can i input "Activity qty" ,"Base Unit of Measure" and “Unloading Point” using BAPI.
    I could'nt find this fields in BAPI_Project_Maintain.

    Sankaran,
    I understand but as you said in the previous thread of discussion, shopfloor wouldn't accept this complexity of creating mutiple production orders, mutiple BOM's and routing for every step of external subcontracting.
    Raised this issue to SAP support team, let me see how they can help us.
    In the meanwhile, I appreciate your quick response.
    Thanks,
    Srinivas

  • Problem in data source mapping - CAF entity service.

    Hi,
    I created an external service for the bapi given below.
    It has 2 tables as input parameters.
    In entity service I created attributes(for input parameters) for table1 and table2. but in data source i couldn't map more than one attribute to the MATNRSELECTION and PLANTSELECTION.The attributes of the bapi are under the same collection.
    I'm using NWDS version 7.0.06.
    BAPI_MATERIAL_GETLIST (To List all Materials for a Particular Plant)
    Input Parameters:
    Table1: MATNRSELECTION
    MATNRSELECTION-SIGN
    MATNRSELECTION-OPTION
    MATNRSELECTION-MATNR_LOW
    Table 2: PLANTSELECTION
    PLANTSELECTION-SIGN
    PLANTSELECTION-OPTION
    PLANTSELECTION-PLANT_LOW
    Regards,
    Shobhendra

    in your entity if you did create 2 attributes for one material number and one for plant, you can map them to the corresponding MATNRSELECTION-MATNR_LOW and PLANTSELECTION-PLANT_LOW.
    For the sign and option, you should uncheck the IsNull parameter in the "Entity to External Operation parameters" mapping window of the Datasource Tab of your entity. And you should set default values like sign = I and option = EQ or something like that.
    But if you want to pass a list of material numbers or plants, I do have a recollection from last year experiments of some limitation using collections as input parameters. maybe somebody else had better success with that

  • Find operation with range of dates in entity services

    Hello,
    I created an entity service called A with 3 attributes: description (string), startDate (date) and endDate (date). I need to have a find operation that retrieves all A instances where startDate and endDate are in specific ranges of date.
    For example, operation needs to return all instances where startDate is between 01/03/2007 and 05/03/2007 and/or my endDate is between 10/03/2007 and 15/03/2007.
    Is it possible to do using entity services operations ? If yes, how can I do that ?
    Thanks in advance,

    Hi Helder,
    Create a findBy method (findbyDateRange) for the entity service with the fromDate and toDate as input parameters. In the app service create a method with four input parameters of type caf.core.timestamp/date (fromdateStart, fromdateEnd and todateStart and todateEnd). In the method implementation write :
    //instantiate query filters
    QueryFilter qfInputfromDate = new QueryFilter(fromdateStart, fromdateEnd);
    QueryFilter qfInputtoDate = new QueryFilter(todateStart, todateEnd);
    //get entity service instance
    myEntityServiceLocal entityServiceInstance = this.getmyEntityService();
    //call entity service method
    List dataList = entityServiceInstance.findbyDateRange(qfInputfromDate, qfInputtoDate);
    for(int i=0; i<dataList.size();i++)
       myEntityService data = (myEntityService) dataList.get(i);
      //do your custom processing
    retValue = dataList;
    Hope this helps.
    Thanks,
    Dipankar

  • Dynamic pagination using inputs from a Web Service data control

    I am in process of creating a pagination UI component , much similiar to the one used in Oracle forums eg: Pages: 100 [1 2 3 4 5 | Next ]
    I am making use of a Web Service to get the following details for my search results :
    a) Number of search result rows (100) ,
    b) total number of rows to be shown on one page (5)
    c) Total number of pages
    I am wondering how to create the pagination UI control in my ADF Faces page and How can I bind the web service data control to the pagination component for a simple dynamic navigation
    Please advice. I am new to ADF development, so looking inputs for approach to the above elucidated problem (Code not required)

    Yes I am using <af:commandLink > component
    <af:forEach
    var="list" items="#{NavBean.list}">
    <af:spacer width="5" height="10" id="s1"/>
    <af:panelGroupLayout id="pgl2" layout="horizontal"
    halign="center"
    inlineStyle="#{list.found ? 'background-color:#aeccd8;' : 'background-color:white;'} text-align:center; width:15px; ">
    <af:commandLink text="#{list.character}" id="cl1"
    partialSubmit="true"
    disabled="#{list.found ? false : true}"
    actionListener="#{NavBean.onIndexSelected}">
    <f:attribute name="indxKey" value="#{list.character}"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:forEach>
    I have created a NavBean managed bean with some methods and foll set of instance variable:
    List<IndexCharacterObject> list = null;
    int startRow;
    int endRow;
    int pageNumber;
    int numPages;
    int totalRows;
    I want these variables in the Managed bean class to be automatically populated from the Web Service data control .. Not sure how to go about binding these values ?

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Problem while creating Complex Attirbutes of Entity Service in CAF Applicat

    I am Creating one CAF Application.
    while creating Entity Service i have Used one Complex Attribute. but in Application Services Implementation part when am assigning value to this Complex Attribute.it gives error that no method exist.
    Kindly provide some information on how to use Complex Attributes while creating Entity Service.
    Can i use NWDS2.0.11 for CAF Application?

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Removing/updating data through CAF entity service

    Does anyone know a way to remove/update data through a CAF entity service from a web dynpro which uses the webdynpro model of the CAF project ?

    Hi Nicolaij,
    This example describes how UPDATE and DELETE works under SP8.
    Hopefully it helps.
    Regards
    Kamil
    UPDATE of entity called "Bank"
    =======================
    ABank recordBank;
    recordBank = BankServiceProxy.read(“000000024”);
    recordBank.setCountryId(„Germany“);
    IAspect aspectList = recordBank.getAspect();
    aspectList.sendChanges();
    DELETE from entity called "TransferID"
    ============================
    ATransferID recordTransferID;
    recordTransferID = TransferIDServiceProxy.read(„123115651“);
    IAspect aspectList = recordTransferID.getAspect();
    IAspectRow aspectRow = aspectList.getAspectRow(0);
    aspectList.removeAspectRow(aspectRow);
    aspectList.sendChanges();

  • Problems updating Entity services or application services

    Hello all,
    I'm working with SAP Netweaver Developer Studio creating a new CAF application.
    First all, I import the SAP Entreprise Service, then I model the entity service, I expose my application Service as a Web Service and finally I deploy it and test it.
    However, when I try to edit my entity service (for instance, including a new attribute) or application service (for instance, changing the bussiness logic code) and I redeploy it, the Web Service Navigator doesn't update the changes.
    So, sadly I must start again configuring the entity and application service.
    Any idea??
    Thanks,

    everytime you change the signature (structure of input/output) of the entity or application service, the change is not automatically propagated to the web service definition. you have to delete manually the web service configuration for the entity or application service or recreate it. you can call it a bug or a feature. it's up to you.

  • Web service connection problem via web service data control (SOAP/REST)

    Hi
    I developed a simple "hello word" web service that I deployed on Integrated WLS.
    Web service works fine - I tested it from SoapUI.
    I created another application to call "hello word" using  "web service data control (SOAP/REST)" in JDeveloper.
    When I test it via "Oracle ADF Model Tester" application works as I'm expecting, but when I create JSPX page,
    drag and drop webservice method as ADF parameter form and run it receive notification (screenshot):
    "WSM-07620 : Agent cannot enforce policies due to either failure in retrieving polices or error in validations, detail= "WSM-02557 The documents required to configure the Oracle Web Services Manager runtime have not been retrieved from the Policy Manager application (wsm-pm), possibly because the application is not running or has not been deployed in the environment. The query "&(@appliesTo~="WS-CONNECTION()")(policysets:global/%)" is queued for later retrieval. "."
    What I'm doing wrong?
    Why I'm able to access web service from any other application but not from jdeveloper?
    Regards

    Hi,
    I am not sure which JDev you are using, but looks like you have some policies setup for WSDC using GPA (global policy attachment) and your policy manager(wsm-pm) is not running. Can you check if the wsm-pm application is properly deployed in your Integrated WLS. You can see this from the list of deployed apps in WLS console.
    -Vishal

Maybe you are looking for

  • Reducing Movie File Size

    I have a 8 minute video shot in HD that when I export, it comes out to about 1.5 gb (not exact because I'm in the process of exporting it again and I can't get details at this moment). I need to imbed this onto a Keynote presentation for a graduation

  • ADF deployment to distributed environment

    Hi, we've been developing an application for the last few months with ADF 11g, but now we need to start work on the deployment procedure to our staging and production environments. So far, we've been deploying the application to the integrated or loc

  • Microsoft Wireless Mouse Wheel working upside down

    I just installed OX 10.7 Lion yesterday.  I have an Intel based Macbook and I use a Microsoft Wireless (non-bluetooth) Laser Mouse with it and ever since I installed Lion the Wheel Button funtion scroll up/down and left/right is backwards (down/up an

  • Lumia 730 ds : background downloading issue

    I've checked it with both data connection & Wi-Fi. My Lumia 730 is not supporting background downloading. It stops when i do some other task on my phone & have to restart it each time & also sometimes d page crashes.. PLZ HELP..

  • Download image preview icon error

    I have a pacbook pro(mid 2012) purchase os maverick 500 gb  and ram 4gb. free space is 160gb. if i download an image from internet to my desktop. the image thumbnail shows downloading. I have attached a screenshot too. if i press spacebar it shows a