New to bluetooth programming

Hi,
I've encountered some problem while trying to write out a program on a mobile device to discover some device and show the information
below is my code:
import javax.bluetooth.*;
import java.util.Vector.*;
public class btClient implements DiscoveryListener {
private LocalDevice localDevice; // local Bluetooth Manager
private DiscoveryAgent discoveryAgent; // discovery agent
Vector discoveredDevices = new Vector();
private RemoteDevice[] retrieveDevices;
/** Creates a new instance of btClient */
public btClient()
public void deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice, javax.bluetooth.DeviceClass deviceClass)
discoveredDevices.addElement(remoteDevice);
public void inquiryCompleted(int param)
int i;
int s;
s = discoveredDevices.size();
if(s >0)
for(i = 0; i<s; i++)
RemoteDevice rd = (RemoteDevice)discoveredDevices.elementAt(i);
public void servicesDiscovered(int transID,javax.bluetooth.ServiceRecord[] serviceRecord)
public void serviceSearchCompleted(int transID, int responseCode)
public RemoteDevice[] btInit() throws BluetoothStateException
RemoteDevice[] result;
localDevice = null;
discoveryAgent = null;
localDevice = LocalDevice.getLocalDevice(); // Retrieve the local device to get to the Bluetooth Manager
localDevice.setDiscoverable(DiscoveryAgent.GIAC); // Servers set the discoverable mode to GIAC
discoveryAgent = localDevice.getDiscoveryAgent(); // Clients retrieve the discovery agent
this.showDev();
if(discoveredDevices.size() >0)
retrieveDevices = new RemoteDevice[discoveredDevices.size()];
for(int i =0; i<discoveredDevices.size(); i++)
retrieveDevices[i] = (RemoteDevice)discoveredDevices.elementAt(i);
return retrieveDevices;
public void showDev()
boolean started = false;
discoveredDevices.removeAllElements();
try
//retrieveDevices = discoveryAgent.retrieveDevices(discoveryAgent.CACHED);
started = discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
catch(BluetoothStateException e)
System.err.println("Error"+ e);
if(started)
System.out.println("Inquiry Started");
else
System.out.println("Inquiry Failed");
}//end
From what i know the startInquiry() will call the deviceDiscovered(), however when i am using a debugging I don't see that it step into the method, also, when i tried to deploy it to a few mobile handset, it don't seem to work too. What is wrong with my coding?

import javax.bluetooth.*;
import java.util.Vector;
* @author Reiji
public class btClient implements DiscoveryListener {
    private LocalDevice localDevice; // local Bluetooth Manager
    private DiscoveryAgent discoveryAgent; // discovery agent
    Vector discoveredDevices = new Vector();
    private RemoteDevice[] retrieveDevices;
    /** Creates a new instance of btClient */
    public btClient()
    public void deviceDiscovered(javax.bluetooth.RemoteDevice remoteDevice, javax.bluetooth.DeviceClass deviceClass)
        discoveredDevices.addElement(remoteDevice);
    public void inquiryCompleted(int param)
        int i;
        int s;
        s = discoveredDevices.size();
        if(s >0)
            for(i = 0; i<s; i++)
                RemoteDevice rd = (RemoteDevice)discoveredDevices.elementAt(i);
    public void servicesDiscovered(int transID,javax.bluetooth.ServiceRecord[] serviceRecord)
    public void serviceSearchCompleted(int transID, int responseCode)
    public RemoteDevice[] btInit() throws BluetoothStateException
        RemoteDevice[] result;
        localDevice = null;
        discoveryAgent = null;
        localDevice = LocalDevice.getLocalDevice();    // Retrieve the local device to get to the Bluetooth Manager
        localDevice.setDiscoverable(DiscoveryAgent.GIAC);     // Servers set the discoverable mode to GIAC
        discoveryAgent = localDevice.getDiscoveryAgent();     // Clients retrieve the discovery agent
        this.showDev();
        if(discoveredDevices.size() >0)
              retrieveDevices = new RemoteDevice[discoveredDevices.size()];
               for(int i =0; i<discoveredDevices.size(); i++)
                   retrieveDevices[i] = (RemoteDevice)discoveredDevices.elementAt(i);
        return retrieveDevices;
    public void showDev()
        boolean started = false;
        discoveredDevices.removeAllElements();
        try
        //retrieveDevices = discoveryAgent.retrieveDevices(discoveryAgent.CACHED);
           started = discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
        catch(BluetoothStateException e)
            System.err.println("Error"+ e);
        if(started)
            System.out.println("Inquiry Started");
        else
            System.out.println("Inquiry Failed");
}sorry, this is the repost of my code thanks :)

Similar Messages

  • How to get and install the new MSI Bluetooth Software Package 1.4.3.3.

    How to get and install the new MSI Bluetooth Software Package 1.4.3.3.
    This little FAQ will only cover the new version of MSI Bluetooth Software Package.
    First thing too do is unistall any older version of the MSI Bluetooth Software.
    Do this through the Add/Remove program applet in your control panel.
    There seams too be only through Live update you could get the new version of MSI Bluetooth Software Package.
    If you can't see any enter for MSI Bluetooth Software in the Live driver section of Live update then you have too enter the following too your registry.
    Create following code in Notepad and save it as MSILD.reg, then run the file.
    ;-->Code start
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\MSI\Drivers\MSI Bluetooth Software]
    "DrvSetup"="1"
    "Version"="1.4.2.10"
    ;-->Code end
    Rerun the Live update and hopefully you will now see a entry for MSI Bluetooth Software in Live driver section.
    Install the new version of MSI Bluetooth Software and reboot your computer. Even if the setup program doesnt told you too doit.
    After rebooting the computer you will see the Bluetooth icon in the taskbar. If it's Red then try too start the Bluetooth services by right click on the try icon and the only alternetiv there is.
    If the Bluetooth services is asking for a valid licens.dat then you should do the following.
    Surf to Jon's Bluetooth guide http://www.jonsguides.com./bluetooth/prepare.html and download the patcher from the link there.
    Unzip the the patcher and then run the BTWPatcher.exe program.
    Now the Bluetooth services will start and you will bee able too configure your own settings for the Bluetooth services.
    If nothing of this work you could try the complete Bluetooth solution at Jon's gudie and install the IBM version of the same program. I havent test this solution and will not do soo.

    I have the MS-6968 device and i want to use driver 1.4.x or 3.0.x. I found the driver 1.4.2.10 but i cannot find any WIDCOMMSecurity code.
    So, can anyone give me a link for BTWPatcher.exe???
    It cannot be found here (Jon's Bluetooth ) anymore.
    Thanks

  • Help me, please ... I'm new with Bluetooth tecnology

    Hi everybody! I'm new in Bluetooth tecnology and I'm lost with one problem ... can somebody help me, please?
    I have to change a program implemented in Java and Bluetooth. The problem is that I'm new in both tecnologies ... This program runs on a computers with Linux Debian OS. This program uses 3 bluetooth dongles connected in this computer. The first dongle keeping doing Inquiry to find devices (phones). The second dongle must stay alert to receive Bluetooth messages (files). The problem is that the dongle that is staying alert is the first dongle, that is also doing the inquiry. Since the Inquiry service blocks the others services, I don't have any dongle staying alert to be detected...
    Researching a little, I found out that the method to do a dongle stay alert to receive messages is the DiscoveryListener (am I right?). So, I have to configure the DiscoveryListener to uses the second dongle, not the first. The problem is that I didn't see anywhere in the java program where to configure which dongle must be used with DiscoveryListener. Is the program who chooses the dongle or is the bluetooth library? Is it default or can I change the configuration ?
    Thank you in advance !! I'm lost here ...
    F�bio
    Sorry about my bad English.

    discovery listener is called in d program....so modify the code

  • Showmount: new-host: RPC: Program not registered

    I always have problem shutting down my solaris system, anytime i issue the shutdown command i always get this error "showmount: new-host: RPC: Program not registered" and the system dows not shutdown instead reboots.
    bash-3.00$ su
    Password:
    # shutdown
    Shutdown started.    Wednesday, March  5, 2008 12:03:30 PM EST
    Broadcast Message from root (pts/3) on new-host Wed Mar  5 12:03:30...
    The system new-host will be shut down in 1 minute
    showmount: new-host: RPC: Program not registered
    Broadcast Message from root (pts/3) on new-host Wed Mar  5 12:04:00...
    The system new-host will be shut down in 30 seconds
    showmount: new-host: RPC: Program not registered
    Do you want to continue? (y or n):

    I think the shutdown command executes "showmount" as part of its execution process and if the nfs deamon is not running at that time, it produces this error. If you just execute "showmount", you'll see the same problem. Check this page:
    http://access1.sun.com/FAQSets/Solarisx86FAQs.html#14
    You should execute shutdown with some parameters:
    # shutdown -i0 -g0 -y
    -y : non-interactive shutdown
    -i0 : init state 0 (for shutdown)
    -g0 : grace period in seconds (0 for immediate, 60 by default)

  • A new start-up program in my Win 8.1: I can't stop it!

    Hi fellows. What about this article?
    In the last couple of days I've been getting loads of email from WinPatrol customers asking what is this strange new start-up program?
    The name is only numbers and no matter how many times I try to block or disable it, it just keeps coming back.
    I noticed that on every machine the number was different. Even on my computer, the number was different every single time, almost like it was either trying to elude being blocked or was a tracking number of some kind.
    Then I received an email from a customer who had discovered this mysterious program is actually "Adobe Speed Launcher". I had not agreed to install this, so I was a bit confused as to it purpose.
    So, I took the plunge and let it run on one of my test machine.
    After letting it run, I saw the below entry for Adobe Speed Launcher was added as a "Run Once" start-up program. Considering this is a RunOnce, my assumption was it would be installing the full-blown "Adobe Speed Laucher" on next system start-up. Now I was curoius.
    I have come this far, lets reboot and see what happens.
      After rebooting, I was waiting for a pop-up installing some new software, but nothing.
    Nothing at all... Interesting.
    While waiting I did some investigation and realized that my local copy of Adobe Reader had been upgraded the day before. Now the pieces are all falling into place.
    I was allowing Adobe to automatically update itself in an effort to protect my system better because as we all know, Adobe has had quite a few vunerabilities over the years.
    Giving Adobe the benefit if the doubt, I was thinking to myself that one pop-up is not that bad.
    Then up came 2 more.
    This time for a new number.
    Frustrated at this, I opened Adobe Reader to see if there was a setting for disabling Adobe Speed Launcher.
    I could not find one.
    Now I was becoming annoyed with Speed Launcher, so I did some research online.
    From what I have read Adobe Speed Launcher was created in order to make Adobe Reader start-up more quickly when you use it. On the surface this sounds good, but I only use Adobe Reader once a month, if that.
    Why do I want it to take up system resources in pre-loading files every single time I start my computer when I will most likely not be using it anyway?
    Now, if they had accomplished the restart of Speed Launcher in a better, more non-obtrusive way, I may not have even noticed it for a while. But, adding new RunOnce keys every time a computer is restarted is a somewhat questionable practice more fitting for adware than a product I want installed on my computer.
    Therefore, because I could not figure out a way of easily disabling Adobe Speed Launcher, I decided to complete remove Adobe Reader XI instead.
    The annoying pop-ups have stopped.
    The next time I need to read a PDF, I will find a reader that is written in a more user-friendly way.
      Thank you for reading, Bret

    Hi,
    We have rolled out a fix for this issue.
    Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
    For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
    Please let us know if you still face any issues.
    Thanks,
    Ashu Mittal

  • New TO JAVA Programming

    Dear Forummembers,
    I am student doing postgraduate studies in IT.i have some queries related to one of my programming staff.i am very much new into Java programming and i am finding it a bit difficult to handle this program.The synopsis of the program is given below -
    You are required to design and code an object-oriented java program to process bookings for a theatre perfomance.
    Your program will read from a data file containing specifications of the performance,including the names of the theatre, the play and its author and the layout of the theatre consisting of the number of seats in each row.
    It will then run a menu driven operation to accept theatre bookings or display the current
    status of seating in the theatre.
    The name of the file containing the details of the performance and the theatre should be
    provided at the command line, eg by running the program with the command:
    java Booking Theatre.txt
    where Theare.txt represents an example of the data file.
    A possible data file is:
    Opera
    U and Me
    Jennifer Aniston
    5 10 10 11 12 13 14
    The data provided is as follows
    Line 1
    Name of the Theatre
    Line 2
    Name of the play being performed
    Line 3
    Name of the author of the play being performed
    Line 4
    A list of the lengths (number of seats) of each row in the theatre, from front to
    back.
    The program must start by reading this file, storing all the appropriate parameters and
    establishing an object to accept bookings for this performance with all details for the theatre
    and performance.
    The program should then start a loop in which a menu is presented to the user, eg:
    Select from the following:
    B - Book seats
    T - Display Theatre bookings
    Q - Quit from the program
    Enter your choice:
    And keep performing selected operations until the user�s selects the quit option, when the
    program should terminate.
    T - Display Theatre bookings
    The Display Theatre Bookings option should display a plan of the theatre. Every available
    seat should be displayed containing its identification, while reserved seats should contain an
    Rows in each theatre are indicated by letters starting from �A� at the front. Seats are
    numbered from left to right starting from 1. A typical seat in the theatre might be designated
    D12, representing seat 12 in row D.
    B - Book seats
    The booking of seats is to offer a number of different options.
    First the customer must be asked how many adjacent seats are
    required. Then start a loop offering a further menu of choices:
    Enter one of the following:
    The first seat of a selected series, eg D12
    A preferred row letter, eg F
    A ? to have the first available sequence selected for you
    A # to see a display of all available seats
    A 0 to cancel your attempt to book seats
    Enter your selection:
    1. If the user enters a seat indentifier such B6, The program should attempt to
    reserve the required seats starting from that seat. For example if 4 seats are
    required from B6, seats B6, B7, B8 and B9 should be reserved for the customer,
    with a message confirming the reservation and specifying the seats reserved..
    Before this booking can take place, some testing is required. Firstly, the row
    letter must be a valid row. Then the seat number must be within the seats in the
    row and such that the 4 seats would not go beyond the end of the row. The
    program must then check that none of the required seats is already reserved.
    If the seats are invalid or already reserved, no reservation should be made and the
    booking menu should be repeated to give the customer a further chance to book
    seats.
    If the reservation is successful, return to the main menu.
    2. The user can also simply enter a row letter, eg B.IN this case, the program should
    first check that the letter is a valid row and then offer the user in turn each
    adjacent block of the required size in the specified row and for each ask whether
    the customer wants to take them. Using the partly booked theatre layout above, if
    the customer wanted 2 seats from row B, the customer should be offered first:
    Seats B5 to B6
    then if the customer does not want them:
    Seats B10 to B11
    and finally
    Seats B11 to B12
    If the customer selects a block of seats, then return to the main menu. If none are
    selected, or there is no block of the required size available in the row, then report
    that no further blocks of the required size are available in the row and repeat the
    booking menu.
    3. If the user enters a ? the program should offer the customer every block of seats
    of the required size in the whole theatre. This process should start from the first
    row and proceed back a row at a time. For example, again using the partially
    booked theatre shown above, if the user requested 9 seats, the program should
    offer in turn:
    Seats A1 to A9
    Seats C1 to C9
    Seats C2 to C10
    Seats E3 to E11
    Seats E4 to E12
    If the customer selects a block of seats, then return to the main menu. If none are
    selected, or there is no block of the required size available in the whole theatre,
    then report that no further blocks of the required size are available and repeat the
    booking menu.
    4. If the user enters a # the program should display the current status of the seating
    in the theatre, exactly the same as for the T option from the main menu and then
    repeat the booking menu.
    5. If the user enters a 0 (zero), the program should exit from the booking menu back
    to the main menu. If for example the user wanted 9 seats and no block of 9 was
    left in the theatre, he would need to make two separate smaller bookings.
    The program should perform limited data validation in the booking process. If a single
    character other than 0, ? and # is entered, it should be treated as a row letter and then tested
    for falling within the range of valid rows, eg A to H in the example above. Any invalid row
    letters should be rejected.
    If more than one character is entered, the first character should be tested as a valid row letter,
    and the numeric part should be tested for falling within the given row. You are NOT
    required to test for valid numeric input as this would require the use of Exception handling.
    You are provided with a class file:
    Pad.java
    containing methods that can be used for neat alignment of the seat identifiers in the theatre
    plan.
    File Processing
    The file to be read must be opened within the program and if the named file does not exist, a
    FileNotFoundException will be generated. It is desirable that this Exception be caught and
    a corrected file name should be asked for.
    This is not required for this assignment, as Exception handling has not been covered in this
    Unit. It will be acceptable if the method simply throws IOException in its heading.
    The only checking that is required is to make sure that the user does supply a file on the
    command line, containing details of the performance. This can be tested for by checking the
    length of the parameter array args. The array length should be 1. If not, display an error
    message telling the user the correct way to run the program and then terminate the program
    System.exit(0);
    The file should be closed after reading is completed.
    Program Requirements
    You are expected to create at least three classes in developing a solution to this problem.
    There should be an outer driving class, a class to represent the theatre performance and its
    bookings and a class to represent a single row within the theatre.
    You will also need to use arrays at two levels. You will need an array of Rows in the Theatre
    class.
    Each Row object will need an array of seats to keep track of which seats have been reserved.
    Your outer driving class should be called BookingOffice and should be submitted in a file named BookingOffice.java
    Your second, third and any additional classes, should be submitted in separate files, each
    class in a .java file named with the same name as the class
    I am also very sorry to give such a long description.but i mainly want to know how to approach for this program.
    also how to designate each row about it's column while it is being read from the text file, how to store it, how to denote first row as row A(second row as row B and so on) and WHICH CLASS WILL PERFORM WHICH OPERATIONS.
    pls do give a rough guideline about designing each class and it's reponsibilty.
    thanking u and looking forward for your help,
    sincerely
    RK

    yes i do know that........but can u ppl pls mention
    atleast what classes shud i consider and what will be
    the functions of each class?No, sorry. Maybe somebody else will, but in general, this is not a good question for this forum. It's too broad, and the question you're asking is an overall problem solving approach that you should be familiar with at this point.
    These forums are best suited to more specific questions. "How do I approach this homework?" is not something that most people are willing or able to answer in a forum like this.

  • My new apple bluetooth wireless keyboard types a "j" when I hit "k" and a "k" when i hit "j".  Any ideas?

    My new apple bluetooth wireless keyboard types a "j" when I hit "k" and a "k" when i hit "j".  Any ideas?

    HellO:
    I would not waste time trying to troubleshoot the problem.  Since it is new, call Applecare with a warranty problem.  I had a similar problem with a new KB some time ago and it was replaced at no cost (shipping included).
    Barry

  • When i download a file from the web i get "Anti-Virus Program not found " message. This has been happening since I change anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    every time i download a file from the web (ie. a PDF file) i get "Anti-Virus Program not found " message. This has been happening since I changed anti-virus programs for CA etrust to Sophos. How do I get Firefox to recognise my new Anti-virus program?

    That is a very good warning provided by the Download Statusbar extension. Something like that should been built into Firefox. I filed this Bug report a couple of years ago, about the lack of a warning like that. <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=480855 <br />
    I have looked everywhere that I can think of to find a list of '''IOfficeAntiVirus providers''' ''(as mentioned in the Bug report)'' that will work with Firefox, so I can't answer that for you.
    You might want to ask the developer of the Download Statusbar extension about it. He might know which AV programs are compatible with the Windows API that Firefox uses for the download scan. <br />
    http://dlstatusbar.proboards.com/index.cgi? <br />

  • App store shows new update for program I did not purchase

    App store shows new update for program I did not purchase. This is "CodeBox". When I push button to download update it shows "uknown error". For normal other updates - "update all" not working anymore.
    How to delete this line from updates section now.

    The problem was finally solved. I am writing very simple solution for those who may have same issue. I tried 1st solution proposing to exclude HDD from Spotlight search and then to restore it (delete from exceptions). It worked for some time and removed notification, however later it appeared again. Then I has started thinking that it was caused by data inside some installed SW and it has been proved later. I have started excluding from Sportlight not all HDD but by folder, searching for the problem area. I have discovered that folder Games was causing the issue. Then I have started to delete installed games one by one and have found Game with was triggering this notification (for other SW!). Problem was fixed after deleting this game. Other deleted games could be easily restored from recycle been.

  • New in ABAP Programming

    Hello everybody,
    Actually I'm working in a CRM 4.0 development project and I'm totally new in ABAP Programming (until now three years in functional roles).
    My question is the following:
    I have to develop an action method which delete several partner functions from partner tab in a sales order (for all included items and always the same partner functions, ZO1, ZO2 and ZO3 for example).
    Which is the best way to do it? Maybe using CRM_ORDER_MAINTAIN function?
    Could anybody help me posting some example code or any guideline?
    Thank you very much.
    I won't forget reward your answers.

    here is the example code:
    look at this,
    METHOD if_ex_order_save~prepare .
    TYPES: BEGIN OF t_guids,
    guid TYPE crmt_doc_flow_wrk-objkey_a,
    END OF t_guids.
    Header GUID's.
    DATA: lt_header_guid TYPE crmt_object_guid_tab,
    ls_header_guid TYPE crmt_object_guid,
    Read appointments.
    lt_appointment_wrk TYPE crmt_appointment_wrkt,
    ls_appointment_wrk TYPE crmt_appointment_wrk,
    Update appointments.
    lt_appointment_com TYPE crmt_appointment_comt,
    ls_appointment_com TYPE crmt_appointment_com,
    GUID's
    lt_guids TYPE TABLE OF t_guids,
    ls_guids TYPE t_guids,
    Update fields.
    ls_input_fields TYPE crmt_input_field,
    lt_input_fields TYPE crmt_input_field_tab,
    ls_input_field_names TYPE crmt_input_field_names,
    lt_input_field_names TYPE crmt_input_field_names_tab,
    Order header data.
    lt_orderadm_h TYPE crmt_orderadm_h_comt,
    Objects to be updated.
    lt_objects_to_save TYPE crmt_object_guid_tab,
    Exceptions.
    lt_exception TYPE crmt_exception_t,
    Updated documents.
    lt_saved_objects TYPE crmt_return_objects,
    lt_objects_not_saved TYPE crmt_object_guid_tab,
    Local update task.
    lv_update_task_local TYPE boolean.
    Use a global variable to ensure this method is only called once per user save.
    IF gv_first IS INITIAL.
    gv_first = 'X'.
    Get the dates for the current activity.
    ls_header_guid = iv_guid.
    INSERT ls_header_guid INTO TABLE lt_header_guid.
    CALL FUNCTION 'CRM_ORDER_READ'
    EXPORTING
    it_header_guid = lt_header_guid
    IMPORTING
    et_appointment = lt_appointment_wrk
    EXCEPTIONS
    document_not_found = 1
    error_occurred = 2
    document_locked = 3
    no_change_authority = 4
    no_display_authority = 5
    no_change_allowed = 6
    OTHERS = 7.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    DELETE lt_appointment_wrk WHERE appt_type <> 'ZLSC00003'
    OR timestamp_from IS INITIAL.
    Check if the conclusion date has been set (appointment type ZLSC00003).
    READ TABLE lt_appointment_wrk
    INTO ls_appointment_wrk
    WITH KEY appt_type = 'ZLSC00003'.
    IF sy-subrc = 0.
    Coding removed here, build up the follow up GUID's from the document flow.
    lt_header_guid now contains the parent GUID and the follow up activty GUID's
    Get all of the date details for all of the documents.
    CALL FUNCTION 'CRM_ORDER_READ'
    EXPORTING
    it_header_guid = lt_header_guid
    IMPORTING
    et_appointment = lt_appointment_wrk
    EXCEPTIONS
    document_not_found = 1
    error_occurred = 2
    document_locked = 3
    no_change_authority = 4
    no_display_authority = 5
    no_change_allowed = 6
    OTHERS = 7.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    Get rid of date entries which aren't conclusion dates or aren't the same conclusion date.
    DELETE lt_appointment_wrk WHERE appt_type <> 'ZLSC00003'
    OR timestamp_from <> ls_appointment_wrk-timestamp_from.
    Process each of the documents and, if they don't have a conclusion date with the same value,
    set up the internal tables to update the document.
    LOOP AT lt_header_guid INTO ls_header_guid.
    Check if it has a conclusion date with the correct value already.
    READ TABLE lt_appointment_wrk
    WITH KEY ref_guid = ls_header_guid
    TRANSPORTING NO FIELDS.
    IF sy-subrc = 0.
    DELETE lt_header_guid.
    CONTINUE.
    ENDIF.
    Set up the fields to be updated.
    CLEAR lt_input_field_names.
    ls_input_field_names-fieldname = 'REF_KIND'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'APPT_TYPE'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'TIMESTAMP_FROM'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'TIMEZONE_FROM'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'TIMESTAMP_TO'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'TIMEZONE_TO'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'TIME_UNIT'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_fields-ref_handle = '0000000000'.
    ls_input_fields-ref_guid = ls_header_guid.
    ls_input_fields-objectname = 'APPOINTMENT'.
    ls_input_fields-field_names = lt_input_field_names.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    Set up the values for the fields to be updated.
    ls_appointment_com-ref_handle = '0000000000'.
    ls_appointment_com-ref_guid = ls_header_guid.
    ls_appointment_com-ref_kind = 'A'.
    ls_appointment_com-appt_type = 'ZLSC00003'.
    ls_appointment_com-timestamp_from = ls_appointment_wrk-timestamp_from.
    ls_appointment_com-timezone_from = ls_appointment_wrk-timezone_from.
    ls_appointment_com-timestamp_to = ls_appointment_wrk-timestamp_to.
    ls_appointment_com-timezone_to = ls_appointment_wrk-timezone_to.
    ls_appointment_com-time_unit = ls_appointment_wrk-time_unit.
    INSERT ls_appointment_com INTO TABLE lt_appointment_com.
    Create an entry in the internal table used to determine which documents will be updated.
    INSERT ls_header_guid INTO TABLE lt_objects_to_save.
    ENDLOOP.
    Change the values in the documents
    IF NOT lt_appointment_com IS INITIAL.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
    it_appointment = lt_appointment_com
    IMPORTING
    et_exception = lt_exception
    CHANGING
    ct_orderadm_h = lt_orderadm_h
    ct_input_fields = lt_input_fields
    EXCEPTIONS
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    ENDIF.
    Save the changed date values.
    IF NOT lt_objects_to_save IS INITIAL.
    CALL FUNCTION 'CRM_ORDER_SAVE'
    EXPORTING
    it_objects_to_save = lt_objects_to_save
    iv_update_task_local = lv_update_task_local
    IMPORTING
    et_saved_objects = lt_saved_objects
    et_exception = lt_exception
    et_objects_not_saved = lt_objects_not_saved
    EXCEPTIONS
    document_not_saved = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    ENDIF.
    ENDIF.
    CLEAR gv_first.
    ENDIF.
    ENDMETHOD.

  • I am new to this program and want to know how to blur the edges of a pic

    i am new to the program and want to know how to blur the edges of a pic?

    Another way...
    Use the Rectangular Marquee tool to draw out the edge to be blurred. Feather the selection. Here I feathered 50 px (note that feathering makes the borders of the selection appear rounded).
    Invert the selection so that the edge is now selected, and apply a Gaussian Blur:
    The reason for feathering is to soften the edge of the blur. The amount of feathering and amount of the Gaussian Blur is simply trial-and-error.

  • I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the

    I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the automatically uploading of old material?
    Thanks

    You have 2 unreachable statements in this method.
    public static int eval(String s2, String op, String s3) {
    return lookup(s2);
    return lookup(op);
    return lookup(s3);
    } You're missing a } at the end of this method:
    public static int lookup(String s) {
        for(int k = 0; k < symbols.length; k++){
            String symbol = symbols[k];
            if(s.equals(symbol))
                return k;
        }You have some loose } and ; at the end of the file:
    public static void main(String args[])
    commandline();
    }

  • Can you explain when using keywords and addding them to various clips pressing ctrl and a number eg. 1 or 2 it simply closes down FCPX.  Just to the dock as would th yellow -sign. As you gather I am new to this program having only used Final Cut Express 4

    Can you explain when using keywords and addding them to various clips pressing ctrl and a number eg. 1 or 2 it simply closes down FCPX.  Just to the dock as would the yellow -sign.  I am new to this program having only used Final Cut Express 4 previously.
    iMac (early 2009) 24in 2.93GHz 4GB 1066MHz DDR3 SDRAM (To be upgraded ot 8GB in the nextfew days) os x 10.7.2 Lion
    Re: Why don't my arrows on the time line operate and allow me to move to the start and end of the timeline. Iam using the trial version 

    Check System Preferences. I think Control-1 is used by something in the OS now. Switch it off. It's a major p[ain the way the OS is taking over more and more of the keyboard, allowing less options for application use.

  • New to Modular programming

    Hi,
    I am very new to modular programming.
    Please can any one explain me the diff between the dialog programming and modular programming.
    I need to create a transaction which will give a screen to user to enter the threshold value . that value will be stored in one custom table .
    if the user executes the transaction again the new value should override the old value.
    Please can any one explain me the step by step procedure to create the screen asking the user to enter the value
    it should be
    Enter the threshold value : -
    Enter
    I know it is very simple question .
    Full points will be awarded.
    regards
    paveee..

    hi
    dialog programming and modular programming are the same thing...
    Programming an Application
    ABAP/4 Programs can be report or dialog programs.
    Reports:
    As you have previously explored, a report is a program that typically reads and analyzes data in database tables without changing the database.
    Dialog Programs:
    A dialog program allows you to work interactively with the system and to change the contents of the database tables. Each dialog program has a certain sequence of screens that are processed by the system one after the other.
    From the view of a user, a dialog step consists of receiving a screen for entering data, then after the users clicks a button or selects a menu entry, processing is started. From the view of the SAP system, the screen is prepared and sent. After this, the user receives it and fills it out. Then the system analyzes and processes the data contained on the screen after receiving it from the user.
    A dialog program must offer:
    a user-friendly user interface
    format and consistency checks for the data entered by the user
    easy correction of input errors
    access to data by storing it in the database.
    ABAP/4 offers a variety of tools and language elements to meet the requirements for creating and running dialog programs.
    As per your req..
    Go to se80.. select function group enter any suitable name.
    here you would have to create a screen. Here you specify the field as per ur req.. define the screen field as work area- field name...
    Then you would have to code for the PAI and PBO of your requirement...
    Hope this solves ur problem...
    <b>do reward if useful....</b>
    regards
    dinesh

  • On a new computer, which program should I install first, Photoshop or Lightroom.

    On a new computer, which program should i load first, Photoshop or Lightroom.  I will be using both.  Thanks

    I'd say Photoshop only because some report doing it in the opposite order can cause issues with the Edit In Photoshop command.

Maybe you are looking for

  • How do I set up remote access to my HD thats hooked to New Airport Extreme

    Hi Everyone, I want to have remote access to my hard drive which is hooked up to the USB Port on the back of the Airport Extreme. I have tried many different configurations and watched youtube videos to help me, to no avail. Apparently there are many

  • Backing Up Database Table and Records in Oracle 10g

    Hi All, I created database for my company with Oracle 10g Database Server and want to backup all my database tables and records within (i.e creating another username inside the data and transfer them) and outside (i.e transfering them in another dest

  • Will there be a t550p?

    Will there ever be a T550p? or is the T550 all that we get in the T5** series for 2015? Since the T550 is much less powerful than the t540, is there any point in waiting for a more powerful T5**, or should I just get a w541  (for almost the same $ as

  • Older MacBook running on 10.4.11 not able to update to iTunes 9.2

    Has anyone else run into this? iTunes says that my 9.1.1 is the current version. I have a reserved iPhone 4 - will I be able to sync it to this MacBook? (I was unable to update to 10.5 b/c of corrupted optical drive that crashed the computer...even w

  • How to Monitor the size of log file (Log4j) During its Generation.

    i have made a program using log4j technology. Now i want to know that is there any method that i can restrict the size of the log file. for example if the size of generating log file exceeds the restricted size then it should be placed in backup and