How to restrict PO from closing or cancelling

hello everyone..........
can anyone help me out for my below issue:
i have a sales order in which i have taken a field to capture the PO no and linenum against that item.  Now if my sales order contain that particular PO no and if the same PO is closed or cancelled, it should not allow me to do so.
i need to validate the PO from closing and cancelling.
Do anyone provide me the solution for the same.....
Regards,
Meghana

Hi Meghana
Catch the before menu click event and do the checking
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
        If pVal.BeforeAction = True Then
            Select Case pVal.MenuUID
                Case "1284", "1286"
                  'do the checking if it fails then set BubbleEvent = False
                   'BubbleEvent = False
            End Select
        End If
    End Sub
Hope this helps
Regards
Arun

Similar Messages

  • How can I stop from closing all tabs...it says close 2 tabs...I don't want to close all tabs maybe just one

    How can I stop from closing all tabs. When it says do you want to close 2 tabs...what if I only want to close one?

    My workaround for this is to set up a smart playlist. I hope this is another one of the issues that gets cleard up when Apple eventually releases an 11.1.1 update.

  • How to restrict users from printing documents and exporting to local file

    Hi SAP gurus,
    I have two questions.
    1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?
    2. How to restrict certain users from exporting to local file? the System> List>Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.
    Thank you in advance.

    Hi,
    Check this:
    Create your own gui status and attach it to the list in the event START-OF-SELECTION.
    In the menu painter extra -> adjust template.
    Make it a list status and you will see all the standard list options appear including list->download
    Deactivate the ones you don't want. 
    If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.
    Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible. 
    If you just want to disable downloads only for a particular report, you can try this test program:
    Code:
    REPORT ztest. 
      DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH', 
            FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.
    START-OF-SELECTION. 
        CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY' 
             EXPORTING 
                  FORM    = FORMNAME 
                  PROG    = PROGNAME 
             EXCEPTIONS 
                  OTHERS  = 1.
      WRITE: / 'TEST'.
    You also need this:
    Code:
    PROGRAM z_check_auth.
    FORM f_check_auth USING pe_result TYPE i. 
      pe_result = 5. 
    ENDFORM.
    Also have a look at the exit SGRPDL00.
    Hope this helps you.
    Rgds,
    Raghu

  • How to restrict login from client?

    Hi all,
    11gR2
    How do I restrict login from client users, because I want to backup our database using expdp, and I do not want anybody updating the database.
    I can not use the startup restrict becuase some client have dba privs.
    I am thinking of shutting down the listener, but there are other database using this listener.
    Is there option in the listener so that I can disconnect only the servicename PROD1 database? or do I need to stop the listener and edit it and remove PROD1 then start it again?
    Any more briliant ideas?
    Thanks a lot,

    KinsaKaUy? wrote:
    Hi Pavel,
    I not trying to make a backup of my db. But I do not want to use rman as this is complicated to restore. What's complicated about
    oracle: rman target /
    rman:  restore database
    rman:  recover databaseIf you are dpending on export as your backup ...
    1) you will lose all transactions since the export was taken
    2) you will need to rebuild a database from scratch in order to have something in which to import.
    The most flexible,easy, and space friendly backup is export. and I beg to disagree to anyone saying that export dump is not a backup.
    In fact this is the best backup utility Oracle has ;)
    Thanksssss"In fact this is the best backup utility Oracle has "
    That falls under the heading of "if the only tool you have is a hammer, every problem looks like a nail."

  • How to stop frame from closing in windowClosing event ?

    I have an application which will download some files from the web.
    If the user attempts to close the applicaiton and if some files donwload action is in progress then i need to warn the user and prevent the window from closing. This is what i have done. But what happens is message box is displayed and my window is getting closed. How to get rid of this ? need your help...
    frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent we) {
                        if(DownloaderGUI.tableModel.isSomeThingDownloading()) {
                             JOptionPane.showMessageDialog(null,"cannot close when something is downloading");
                             return;
                        System.out.print("closing..");
                        backEndThread.setCanQuit(true);
                        cleanUp();
                        System.exit(0);
              });

    I have also done a similar things but still window is getting closed.
    public void actionPerformed(...)
    if(!canquit) {
          return;
    } else {
          System.exit(0);
    }Message was edited by:
    chaos_begins_here

  • Netbeans game sample - how to restrict sprite from walking over a water

    Hello,
    I am new with Java game and Netbeans.
    I have tried creating the 2nd level - Dessert and have added the sprites and the water pool. The water pool is added as a tiled layer. However, when running the program the Karel sprite walks over the water pool. How do I restrict it from doing this much like the Forest level?
    Thanks in advance.

    Thanks morgalr for the information.
    I've found the matrices in the sample as you mentioned.
    However, Netbeans has created a new feature that allows drag and drop creation of tiled layers, scenes and sprites. Matrices for the tiled layers will be generated by Netbeans and the codes are not editable.
    The same tiled layers were used in both Forest and Desert scenes. However in the default Forest scene it worked but with the new Desert scene it doesn't.
    If anybody have tried this would appreciate some oppinions.
    Thanks.

  • How to restrict employees from accessing managers data using custom security profile

    Hi,
    I am using custom security profile for restricting the employees from accessing supervisors details(PG.SEGMENT2=4). I have written the custom code as below :
    Responsibility :US Super HRMS Manager
    ASSIGNMENT.PERSON_ID
    IN
    (SELECT PAF.PERSON_ID FROM PER_ALL_PEOPLE_F PAF,
    PER_ALL_ASSIGNMENTS_F PF,
    PAY_PEOPLE_GROUPS PG,
    PER_PERSON_TYPE_USAGES_F PPU,
    FND_USER FNU
    WHERE PAF.PERSON_ID=PF.PERSON_ID
    AND :EFFECTIVE_DATE BETWEEN PAF.EFFECTIVE_START_DATE
    AND PAF.EFFECTIVE_END_DATE
    AND PF.PEOPLE_GROUP_ID=PG.PEOPLE_GROUP_ID
    AND :EFFECTIVE_DATE BETWEEN PF.EFFECTIVE_START_DATE AND PF.EFFECTIVE_END_DATE
    AND PPU.PERSON_ID=PAF.PERSON_ID
    AND PPU.PERSON_ID=PF.PERSON_ID
    AND :EFFECTIVE_DATE BETWEEN PPU.EFFECTIVE_START_daTE AND PPU.EFFECTIVE_END_DATE
    AND PAF.PERSON_ID=FNU.EMPLOYEE_ID
    AND PAF.PERSON_TYPE_ID =2
    AND PPU.PERSON_TYPE_ID
    IN(2,62)
    and PAF.person_id = FND_PROFILE.value('user_id')
    AND PG.SEGMENT2=8)
    and using "restrict the people visible to each other using this profile".
    I have assigned the security profile to HR user responsibility
    But when I query the supervisor name in HR User responsibility , it is not restricting me from viewing supervisor details.
    When I query for first time, its restricting me to view others details, but when I close that click on torch button and try searching, its allowing me to access manages details.
    Can any one please let me know what setups need to be done for restricting employees from viewing supervisors data.
    I have gone through the document "Understanding and Using HRMS Security in Oracle HRMS" but didn't got any idea.
    Please suggest.
    Thanks & Regards,
    Anusha.

    Hi All ,
    i solved the problem by using event 01 of header view and using the table "Extract" .
    Regards,
    Neha

  • How to stop frame from closing?

    Hi,
    ramka.addWindowListener(new WindowAdapter()
                  public void windowClosing(WindowEvent e)
                      Object [] qqq = {"yes", "no"};
                      int answer = JOptionPane.showOptionDialog(
                                null,
                                 "want to close window?",
                                 JOptionPane.YES_NO_OPTION,
                                  JOptionPane.QUESTION_MESSAGE,
                                  null,
                                 qqq,
                                 qqq[1]);
                      if (answer == JOptionPane.YES_OPTION)
                           // WHAT TO DO TO STOP WINDOW FROM CLOSING?
                  });as you can see above i want to stop frame from closing.
    what should i do in the commented line?
    or maybe somewhere else?
    please help,
    thanks

    Hello friend,
    I've found a solution for your query. I think, you'll get a solution from my codings. I've given you below my codings,plz go through it.Verify it. Reply me about my codings.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JOptionPane;
    public class MyFrame extends JFrame{
         JButton jb=new JButton("My Details");
         public MyFrame(){
         JPanel jp=new JPanel();
         jp.add(jb,new FlowLayout(FlowLayout.CENTER));
         add(jp);
         jb.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent ae){
                   if(ae.getSource()==jb){
                        String str[]={
                             "Name : Karthikeyan.K",
                             "Email-ID : [email protected]"
                        JOptionPane.showMessageDialog(null, str);
    WindowCloser wc=new WindowCloser();
    addWindowListener(wc);
         class WindowCloser extends WindowAdapter{
              public void windowClosing(WindowEvent we){
                   int res=JOptionPane.showConfirmDialog(null,"Do you want to exit from it?","Confirmation!!!",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE);
                   switch(res){
                        case JOptionPane.YES_OPTION:
                             dispose();
                             System.exit(0);
                             break;
                        case JOptionPane.NO_OPTION:
                             repaint();
                             doOpenFrame();
                             break;
                        case JOptionPane.CANCEL_OPTION:
                             repaint();
                             doOpenFrame();
                             break;
                        case JOptionPane.CLOSED_OPTION:
                             repaint();
                             doOpenFrame();
                             break;
         public static void doOpenFrame(){
              MyFrame mf=new MyFrame();
              mf.pack();
              mf.setSize(400,400);
              mf.setVisible(true);
         public static void main(String ar[]){
         doOpenFrame();
    }

  • How to restrict watchers from downloading or copying movie?

    I would like to restrict people from downloading my movie from the web site. It gives the triangle on the right hand side that allows anyone to download it to their computer. Is there a way to prevent this?
    Thanks.

    kioskmode="true"
    http://www.apple.com/quicktime/tutorials/embed2.html#kioskmode

  • How to Restrict Subscriber from displaying his own Stream?

    How to pass opponent UserID to Subscriber ???
    private function displayExistingStreams():void   
    {     var publishers:Object = _streamManager.getStreamsOfType(StreamManager.CAMERA_STREAM);
        //status_txt.text += "displayExistingStreams";
        for (var publisherID:String in publishers) {
            if (publisherID !=_userManager.myUserID) {   
                setUpSubscriber(publisherID);       
    protected function setUpSubscriber(p_publisherID:String):void {
        currentSubscriber = new WebcamSubscriber();
        currentSubscriber.displayUserBars=true;
        currentSubscriber.connectSession = cSession ;
        currentSubscriber.subscribe();
         // publisherIDs  used for restricting the list of publishers     that this subscriber should display videos for.
        currentSubscriber.publisherIDs = [p_publisherID];

    Hi ,
    You need to loop over userIDs from userManager.userCollection and get all userIDs and set webcamSubscriber.publisherIDs to all IDs except your own. And you  need to update this everytime an user enters or leaves the room ( by listening to UserEvent.USER_CREATE and UserEvent.USER_REMOVE from UserManager, if you want to dynamically maintain this publisherIDs list)
    I have replied this in other forum messages earlier.
    Hope this helps
    Thanks
    Hironmay Basu

  • LSO: How to restrict employee from accessing LSO Web based course.

    Hi Gurus,
    We have a requirement where we need to restrict few section of employees from accessing the LSO web nased courses. I know this can be done from Structural Authorization concept.
    Can anyone tell me how to implement this structural authorization of section of employees. or any link mentioning step-by-step process will be great help.
    Thanks,
    Swet

    Hello Satya,
    The status comes from entries in Table T77BW. I don't recommend that you change the status as I don't know what issue may occur.
    Relevant coding in RHPQ_INDIVIDUAL_PLAN_READ.
    IF history_tab-endda < sy-datum.            "begin note 588403
      pplans_tab-state_id = att_state_id.
      pplans_tab-statetxt = att_statetxt.
    ELSE.
      SELECT SINGLE * FROM t77bw INTO wa_t77bw
               WHERE context = 'EVENT_BOOK'.
      IF wa_t77bw-new_state IS INITIAL.
        pplans_tab-state_id = '02'.
      ELSE.
        pplans_tab-state_id = wa_t77bw-new_state.
      ENDIF.
    Regards,
    Manny

  • How to get messages from closed IMAP account from local cache

    I have an IMAP account which is closed, so I cannot connect to it anymore. I've got all the messages on my computer since I chose the option "Keep copies of messages for offline viewing" in account settings.
    Is there an easy way to convert the cached version on my computer to my new IMAP account?
    I've tried just dragging the to the folder where the local mbox files are kept, but it fails. Looking at the info.plist files in each folder I found the following xml nodes where present in the IMAP ones <key>UIDNEXT</key> and <key>UIDVALIDITY</key> and that deleting them from the info.plist made it possible for me to just drag the mbox file to the local folder. Editing all the info.plist files seems like at huge task and I'm not sure what implications just deleting them might have? Can anybody shed some light on this please?

    I have some small progress. I wrote this code:
    <Field>                   
              <FieldLoop for='rows' in='strAdUcty'>
                    <Field name='username'>
                       <Display class='Label'>
                          <Property name='value'>
                              <expression>
                                  <block>
                                       <invoke name='get'>
                                            <ref>rows</ref>
                                            <s>name</s>
                                      </invoke>                                     
                                  </block>                                      
                              </expression>
                           </Property>
                       </Display>
                   </Field>
               </FieldLoop>
    </Field>This code return names of AD users, but they are "locked" in <FieldLoop> loop. How is possible to get names of AD users to another variable (or to workflow processing)?
    thank you

  • How to restrict data from tables in a view cluster

    Hi,
    I have 5 Z* tables, Company code is the common code in all of these.
    I have created a view cluster on these five tables.
    My requirement is to viewcluster should display the data of the user's company code.
    When i see the data in SE54 it is showing the proper data(i.e data which is related to users company code) for some of the tables.
    And displaying all company codes data for some of the tables.
    What can be the issue here ?
    Do we need to map the data from proper data displaying tables to these tables ? if so How to do that ?
    Please help on how i can solve this issue.
    Regards,
    Sunil Tata.

    Here is a small utility that can be used to copy and paste between a table and Excel.
    I have been obliged to slice the llb into small chuncks for internet technical issues. Sorry...
    CCMessage Edited by chilly charly on 04-02-2005 03:21 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Copy.zip ‏24 KB
    Paste.zip ‏22 KB
    CopyPaste example.zip ‏11 KB

  • SM58 - How to restrict users from viewing all the idocs?

    Howdy,
    The users want to be able to use SM58 to view any idocs that have failed. Unfortunately they currently can access the IDOCS of all countries, in addition to their own country. Does anyone know how we could restrict them?
    Or if there another transaction that we could ask them to use?
    Many Thanks!

    Hi,
      You can restrict by the Transactional RFC Destination which should be different.
    regards
    Aveek

  • How to restrict users from uploading malicious files(exe, dll,etc) & limit file size in a webform

    Hello, please i have a file atachment field in a form on my site. I want to restrict the size of the file that can be uploaded and the type. It's a vacancy page and I want candidates to only upload doc and pdf files. I want to also limit the file size to 50mb only. How can this be done within the BC system.
    Thanks.

    The file extension can't be trusted, like the mime-type it can be faked by a malicious user. Also this method can just be avoided altogether by anyone who has javacript turned off. Using javascript for this is not even remotely secure.
    Isn't there a way to allow file uploading but specify a whitelist of filetypes (preferably checked using byte headers or some effective method) somewhere in admin?
    Liam Dilley wrote:
    Hey there,
    You can do the file extension with jquery for example. The basic aspect of that is:
    var ext = $('#my_file_field').val().split('.').pop().toLowerCase();
    if($.inArray(ext, ['exe','dll','jpg','jpeg']) == -1) {
        alert('invalid extension!');
    So what is hapepning there is that it checks the value of the field when someone has added the file and checks the file extensiona and produces an alert but you can do as you need.
    You could run this on hover of the submit button, on change of the actual file attachement field or on click of the submit button in the checks before it submits.
    BC limits files to 100mb anyway so you should be ok on that front, they wont be able to be crazy uploading.

Maybe you are looking for

  • Full page width then one page at a time, not working as before on new reader

    full page tool not jumping screen to use full width. Then using one page at a time with scroll wheel on mouse not jumping page to page, just scrolling part of page as before. Don't they check this stuff before a new release? Running on PC with window

  • Can we create .CSV files through documaker

    Hi, Is it possible to create .csv files through documaker apart from pdf's Thanks

  • Calibration data in X Series EEPROM

    [Thanks again to the NI engineers that have prepared the X Series support for the MHDDK. Your work is much appreciated!] I've been reviewing the X Series DDK manual and example code to get a handle on how things work, and I have a couple questions ab

  • Installion disc for Mac OS 10.5

    I misplaced my installtion disc for my Macbook using 10.5.My hard drive is dead and I am going to replace it. How can I obtain a new disc so I reinstal with the software with new hard drive.

  • Creating a PreparedStatement Object

    I created a table in ACCESS that has 20 Integer fields. I have to update this table up to 2 times a second. I would like to use the Preparestatement but am confused ... Lets say the table is named TABLE1 and the fields are INT1-INT20 SO far I have: P