How to generate  a message when a object is locked

Hi All,
I am new to ABAP!
I am writing a code for  booking process of a conference room . I have a question in this is
If a room is booked for a person and If any other person tries to book the same room, he should be able to see that this room is blocked and the details regarding the employee who has blocked and the purpose & time for which the room is blocked.
I have designed two master tables in the database one for the employee and another for conference room(which includes the)
now in my report program i have fetched the details using internal tables and displayed it.
Now I not getting is how to give a constraint to block the booking data of a second user, i can use if's statements but where sould i place it so that i can make this whole process automated.
or do i need to use iff's for all the conditions.
Please help..
Regards,
Vivek

Hi,
Welcome to SCN!
Are you providing the options to book the room in ALV  or some form ?
You may display the status of the romm ( booked/not booked and if booked also the time period for which the room is booked) , if still the user tries to book the same room(booked) , you can make a check against the already fetched data and throw error/info message.
Regards,
Sandeep

Similar Messages

  • I cannot receive phone calls or messages when iPhone screen is locked

    Hello,
    i have an iPhone 5.
    i Am unable to receive phone calls or text messages when my screen is locked. When I unlock the screen the missed call doesn't even appear so I have no idea anyone has called me. Text messages come through at about 12:30am every night.
    i Have tried EVERYTHING I could find in forums and Apple trouble shooting. This is my last resort other than sending it to Apple.
    iit is as if "do not disturb" is stuck on, but it isn't.
    i Have tried:
    changing all all do not disturb settings.
    checked call forwarding etc.
    checked mute
    my silent button is not on.
    i have reset every setting and then even reset the phone and manually transferred everything back onto it rather than restore It from previous back ups.
    oout it in recovery mode.
    i Have no success with any.
    the weird part is when I first lock the screen and try to call it, it does ring. But if I give it a minute or more it won't ring.
    does anyone have any ideas or anything that may help?
    PLease, please, please

    I Have also checked blocked numbers and swapped SIM cards from a completely different carrier so it's not the carrier either

  • K7N2G generating error message when trying to reinstall xp

    K7N2G motherboard is generating a error message when we tried to reinstall XP. it had XP PRO and when you boot up it would give youa Scan Disk check and then a blue screen would appear and the message ( Child Device is operating in Fat 32 and Software based System. plus other things and then said must reboot. and the same process would start all over again.) We formatted the drive and then tried to load 98 back on so we then could reload XP. but as soon as we get 98 on it comes up with the same error message and we totally lose all CD and DVD Rom support windows 98 will not recognize the CD Roms and were stuck. because we can't get XP back on. and then you reboot and you get the same error messages again. Any body ever seen this before or have any help to offer???? thanks Sirk
    Post last edited by sirk on 2003-06-09, 07:12.

    Quote
    Originally posted by sirk
    Thanks for your help, I had a feeling that it could bethe hard drive and I sure it almost has to be... thanks Sirk
    before you go with the hard drive make sure your memory is good,,,,, i had a heck of time loading XP when i upgraded and it turned out i had one bad stick of ram.... it was a nightmare until i started messing with the ram..... then like magic,, xp loaded and all is well...........
     :D

  • Generated EDI message when the invoice is posted.

    Hi!!!,
    We are implementing a process to receive electronic invoice, we are using the FM. IDOC_INPUT_INVOIC_MRM  to process the IDOC with the invoice, so we need to confirm the reception of the invoice using an output idoc when the invoice is post. Anybody know some way to customizing this confirming message using EDI? we would like to send the message when the invoice is posted (we need to use IDOC to send the confirmation)
    Thanks for your help!!!

    Hi,
    How you are creating invoice?
    Creating based on data coming from Idoc or sending Invoice data as Idoc.
    please elaborate.
    Regards,
    Bhavana.

  • How can I shut down when printer window is locked?

    How can I proceed to shut down when printer window is locked?

    Thank you, i will try this option. Only thing is i did read another person having this problem and he did shut down his computer and now his photo library in unaccessible!!! Ugh. I do have an external back up hard drive. I sure hope that my photos are on there to reload into iPhoto!!!!
    I did try to place my mouse over the iPhoto icon @ the dock and held down the control key with no results in shutting down the application.

  • How to disconnect incoming call when the phone is locked...!!?

    I feel that the major bug in iOS 7 is, we cannot disconnect the incoming call when the phone is locked. I dont understand whats the reason behind not fixing this issue...! My iphone lock/unlock button is getting spoiled day by day as am using that button evert time to disconnect the incoming call when the phone is locked.
    Apple, please give me the genune reason for not fixing this issue, else fix this ASAP.
    Thanks.

    https://discussions.apple.com/message/23151421#23151421

  • How to disable power off when the phone is locked with pass code.

    Can anyone teach me how to disable power off function when the phone is locked?  With this , user is able To trace the iPhone when it goes missing. Besides, users will have enough time to remote wiped.

    i also had my phone stolen ... the first thing they did was turn off the phone so i couldnt track them.. you should need to enter your passcode in order to turn off the phone. i dont care if you cant do a hard reset.. i would rather loose the ability to do a hard reset for the added security .. besides without hard reset if it jammed badly i would just wait ontill the battery died.

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • Error Message when starting Object Manager on the Client

    I�ve installed sgd 4 successfully and I can start applications - except
    Array- and Objectmanager from my client.
    Here I get the message
    ErrTransportNotAvailable
    ErrTransportNotAvailable
    Standard error of script process:
    Third tier output log:
    Any ideas on this??
    I have telnet installed and enabled, but can�t log in as root yet.

    Hi Matthias
    I can't immediately explain this but the error message says that a
    connection to port 33521 on host 172.17.32.37 was refused. This usually
    means that the 33521 service (whatever this is) is not currently
    running.
    I don't recognise this as a port number that should be connected to
    during a launch, perhaps it would help if you posted the messages in
    the server error logs that occur at the time the launch is made.
    In case this is some kind of proxy service it might be worth checking
    to see if anything is running on this port. i.e. use
    netstat -an | grep 33521
    there may be something listening on the loopback interface?
    In general you should use 'ssh'. To get this working for the X11
    protocol, which is the protocol required by the object manager. You
    need to enable X11 forwarding in your /etc/ssh/ssh_config ( set
    ForwardX11 yes), and in your /etc/ssh/sshd_config ( set X11Forwarding
    yes ) on all machines connecting via ssh.
    Note. I'm assuming you are using Linux with moderate security settings
    because you are getting this problem -- if you are using something
    different the actual files you need to change may vary.
    Regards
    Barrie
    On 2005-02-17, Matthias Michl <[email protected]> wrote:
    Hello,
    how to set up SGD to launch xterm?
    I can run the objectmanager within an x-session on the SGD Server itself.
    But not within SGD.
    I can connect to the server by ssh and telnet from my Windows client
    perfectly.
    I have switched the objectmanager to connect over telnet and I get the
    message
    ErrTransport not Available
    connect (7, 172.17.32.37:33521):(111) Connection refused
    Standard error of script process:
    Third tier output log:
    Kind Regards
    Matthias
    Mel O wrote:
    It usually means that the object's connection method is not configured
    correctly. So if you have telnet enabled but the object is configured
    for SSH, you'll get this message.
    Try launching a xterm. konsole on the SGD 4 server. You can do this via
    SGD. Then as root
         $ tarantella objectmanager
    Now check that the Object and Array Manager objects have telnet selected
    as the connection method.
    Regards,
    Matthias Michl wrote:
    I�ve installed sgd 4 successfully and I can start applications - except
    Array- and Objectmanager from my client.
    Here I get the message
    ErrTransportNotAvailable
    ErrTransportNotAvailable
    Standard error of script process:
    Third tier output log:
    Any ideas on this??
    I have telnet installed and enabled, but can�t log in as root yet.

  • How to generate a notification when a user changes his password?

    Hi all,
    I have OIM 11.1.1.5.0 BP02 installed. When an administrator resets a user's password, the following email is sent to the user:
    Password has been reset for user <Firstname> <Lastname> . You will be required to change your password on next login.
    First Name: <Firstname>
    Last Name: <Lastname>
    Password: passW0rd
    +For any issues, please contact [admin email or phone]+
    My requirement is to generate a similar email when a user changes his/her own password. How would I go about doing this?
    Thanks in advance.

    You can use an event handler for this.
    Write your own code as a plugin for the event handler (refer to the developers guide for details on event handlers) then you can reference this from your custom event handler XML configuration with operation "CHANGE_PASSWORD"
    e.g.
    <action-handler class="<CLASS NAME>" entity-type="User" operation="CHANGE_PASSWORD" name="<EVENT HANDLER NAME>" stage="postprocess" sync="TRUE" order="2000" />
    The action "RESET_PASSWORD" is also available for administrator change.

  • How to handle EndDialog message when using Asynchronous Trigger Pattern?

    I have Service A which sends a message to Service B when a update/delete/insert trigger fires.  Service B dequeing logic looks like:
    declare @messagebody xml
    declare @messagetype nvarchar(256)
    declare @cg uniqueidentifier
    declare @ch uniqueidentifier
    DECLARE @messages TABLE(messagetype nvarchar(256),messagebody xml)
    begin try
    begin transaction;
    waitfor
    receive top (1)
    @cg = conversation_group_id,
    @ch = conversation_handle,
    @messagetype = message_type_name,
    @messagebody = cast(message_body as xml)
    from MyPolicyQueue
    ),TIMEOUT @receiveTimeoutMs
    if @messagebody is not null
    begin
    insert into @messages values (@messagetype, @messagebody)
    end
    select * from @messages
    end conversation @ch
    commit
    end try
    ServiceB will end the conversation but afterwards, the queue now has an EndDialog message that never gets processed.
    The intent is asynchronous handling of update messages with the trigger used as the event source.  Service B closes the conversation but trigger does not (It would probably be a very bad thing if trigger blocked waiting for EndDialog message response).
      How do you handle the EndDialog message in this scenario?
    The code is based on this example.
    scott

    A common practice is to create an activated proc on the initiator queue to close the conversation loop after the target service does it's job.  This activated proc simply ends the conversation upon receipt of an EndDialog message type.  If
    an unexpected message type is received (including Error), the proc can end the conversation with error and perhaps log the details to a table that can be monitored for exceptions.
    See Rusanu's artice for a description of this pattern:
    http://rusanu.com/2006/04/06/fire-and-forget-good-for-the-military-but-not-for-service-broker-conversations/
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to disable confirmation message when submitting a pdf form

    How do I disable the confirmation mesage, so that the user does not get at message like " you form has been recieved"  each time data is submitted?
    The reason for my question, is that i have a pdf form that i'd like to fill out offline, store the settings (data) in an array and the when I get online again run a loop that populates the form with the values storen in my array and submits them one at the time to formscentral.
    I'm able to make the loop work just fine, however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok".
    Hope someone can provide me with some help here

    Hi,
    >>however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok". 
    Sorry, disabling the confirmation message is not possible.  The confirmation is always enabled.
    Thanks,
    Lucia

  • How to track error message when calling Transaction: va02

    Hi all,
        As we all know, when we change an order through T-Code: VA02, system will update modified data to corresponding database. Meanwhile, if our operate is not legal or incorrect on T-code: VA02, system will call corresponding error messages to us.
        Now I want to know:
       1. how to track the error messages
       2. Is there any Tcode such as: SM21 that we can see the message logs after our operation?
    Thanks.

    Hi ,
    message table for call transaction
    DATA: BEGIN OF G_T_MSG OCCURS 0.
            INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF G_T_MSG.
    Exucute transaction via Call Transaction
      CALL TRANSACTION  'FB01'
                     USING g_t_bdcdata
                     MODE g_l_mode
                     UPDATE 'S'
                     MESSAGES INTO g_t_msg          .
    errors will be stpored in the table g_t_msg ..
    Thanks .

  • How to handle Undelivered messages when the Target Application is down

    Hi
    in our scenario,
    sapEccSystem>OuboundProxy>PI>ReceiverAdapter>ReceiverThirdPartyApplication
    the known issue with the ReceiverThirdPartyApplication is, it gets down in frequent intervals, and automatically gets up and running, but we don't know at what times it will be down and when it will be up again.
    in this asynch scenario, when the scenario gets triggered from source SAP system, and at that time, if the receiverAppl is up, it is working fine.
    but when  the scenario gets triggered from source SAP system and at that time if the receiverAppl is down, the message exchange gets failed
    to address these kinds of issues,
    1. is their any concept of Queuing or anything in PI, that can keep the messages in something like Queues and process them when the receiver application gets up., if yes how can configure them
    Does PI act as Queuing server, so that it delivers the pending messages one ofter another, until they are all finally sent.
    or
    2.is there any retry mechanism, where can specify something like, the undelivered message needs to be resent after waiting for an hour.
    thanks,
    Madhu_1980

    Hi, the number of retries and the retry interval are modifiable java system parameters of the [Service SAP XI Adapter: XI|http://help.sap.com/saphelp_nw04s/helpdata/en/29/22ee41c334c717e10000000a155106/content.htm], check section Properties Related to Outbound Processing. You can change these properties in NWA of PI under Configuration Management -> Infrastructure -> Java System Properties -> Services -> XPI Adapter: XI. The screen in the bottom with the heading Extended Details displays the adapter's service property.
    I found these properties in oss Note 730870 - FAQ XI 3.0/ PI 7.0/ PI 7.1/ PI 7.11/ PI 7.2/ 7.3 RFC Adapter, under Q3, when doing research on another topic.
    Regards, Martin

  • How to display a message when no data found in report

    Hi all
    i have report with few user parameters
    when i run the report and no data found then i want a message
    Please Guide
    thanks And Reagds
    Vikas Singhal

    Hi,
    one solution is to
    1) create a summary column CS_COUNT where you count the number of records returned by your query (Function: count, Source:any field of your dataset Reset at:Report)
    2) create a text area where you say for example "No records found...", and enclosing it in a frame.
    3) Create format trigger for the frame like
    IF :CS_COUNT = 0 THEN
    return (TRUE);
    ELSE
         RETURN (FALSE);
    END IF;
    OR, if you launch your report from a form and you want a popup message, you can create a before report trigger like:
    if :CS_count = 0 then
    srw.message(1000, 'your message');
    raise srw.program_abort;
    return(false);
    else
    return(true);     
    end if;

Maybe you are looking for