Put Purchase Orders checkbox in the first Tab in sales order window

How do I use UI SDK to put the Purchase Orders checkbox in the first tab in sales order window?

I want to enable the checkbox during form load, therefore I include the following codes:
Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
                    '// Specifies that SAP Business One application opened a form.
                    Try
                        SBO_Application.Forms.Item(FormUID).Items.Item("104").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
                    Catch ex As Exception
                        SBO_Application.MessageBox(ex.Message)
                    End Try
But it doesn't work.

Similar Messages

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • I want Firefox to stay on the SAME tab instead of going to the FIRST tab after saving a page

    Several months ago FireFox (7) started going to the FIRST tab after saving and other actions.
    This is extremely irritating as I usually have several windows with numerous tabs open and its very time consuming to find the tab I was on.
    In fact, I have to open tabs in a new window prior to saving the page if I need info on that page for the file name as it's impossible to go anywhere but the first tab while at the prompt for the page name.
    I hope it's not supposed to do that and greatly appreciate help to fix this.
    Thanks, Christine

    The photo app puts files in date/time order and ignores their names.
    You can look for another app that may honor file names (sorry, I don't know any to recommend) or you can find a program that alters your file properties. If all the files have properties that read the same date and time, then it defaults to alphabetical order

  • How to put some tabs in sales order item level  invisible mode

    Hello Gurus ,
    Good evening everybody ,
    We have some specific requirement from the client - Client does n't want few  end users to see the price details in sales so they want  the condition tab to be  invisible mode in sales order item lvel only for few users  i.e the condition tab  should not be displayed  for that user  is this possible  ?
    Note : I only have idea setting few fields in  sales order  but not tabs in sales order through screen variant -SHD0
    Looking for your inputs
    Thanks and regards
    Venkat

    Hi,
    There are a couple of options you can go with.
    1) You can use Transaction and Screen variants to create your own ZVariant and then put that to user profile.  Allow the user to run only with the variant you setup for the user via authorizations.
    2) Get GUIXT software by Synactive, to perform the above task for you. 
    3) If you happen to have latest version of SAP ECC i.e. 6.0 with EHP3 or above, you can go with NWBC (Netweaver Business Client).
    Thanks
    Kapil Sharma

  • Only the components of the first tab is visible

    I have created an application with 4 tabs in a jtabbedpane. Depending on the users rights in a node(of a tree) the tabs should be visible or removed.
    Here is an example of how I add and remove tabs.
    if (status) {
    String title = ((ObjectObjectData)myTabs.elementAt(index)).getObj2().toString();
    boolean there = false;
    Component allEnabledComp[] = tabPanel.getComponents();
    for (int i=0; i<allEnabledComp.length; i++) {
    // Compare the tabs with the orign tabs stored in a vector
    if (allEnabledComp.equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    there = true;
    break;
    if (!there) {
    int newIndex = getNewIndex(index);
    tabPanel.insertTab(title, null, (Component)((ObjectObjectData)myTabs.elementAt(index)).getObj1(), "", newIndex);
    Component comp[] = tabPanel.getComponents();
    else {
    for (int i=0; i<tabPanel.getComponents().length; i++) {
    // Check if the tab should be removed or if it is already removed
    if (tabPanel.getComponentAt(i).equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    tabPanel.removeTabAt(i);
    break;
    The problem is that when I add and remove tabs only the first tab will show its components. The other tabs are empty.
    And an other strange thing. If I change the order of the tabs all components of every tab will be visible...
    Any suggestions ?

    I have tested to use setVisible instead of removeXXX and insertXXX.
    if (status) {
    String title = ((ObjectObjectData)myTabs.elementAt(index)).getObj2().toString();
    boolean there = false;
    Component allEnabledComp[] = tabPanel.getComponents();
    for (int i=0; i<allEnabledComp.length; i++) {
    if (allEnabledComp.equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    // there = true;
    allEnabledComp[i].setVisible(true);
    break;
    /*if (!there) {
    int newIndex = getNewIndex(index);
    tabPanel.insertTab(title, null, (Component)((ObjectObjectData)myTabs.elementAt(index)).getObj1(), "", newIndex);
    Component comp[] = tabPanel.getComponents();
    else {
    //Component allEnabledComp[] = tabPanel.getComponents();
    for (int i=0; i<tabPanel.getComponents().length; i++) {
    if (tabPanel.getComponentAt(i).equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    //tabPanel.removeTabAt(i);
    tabPanel.getComponentAt(i).setVisible(false);
    break;
    If I debug the code the components method isVisible() will return the state that was assign to it. But when I se the GUI, all components are visible !
    Any ideas ?

  • I have a lot of tabs saved so they open when I open Firefox, but the first tab always changes into my homepage, Google. Is there any way to stop this?

    I have 20+ tabs always open on Firefox and it's set to remember them. However, when I open Firefox the first tab changes from what I had open there into my homepage, Google. I can use the "go backward" thing to get to the page I had there, but since it goes back to Google every time I restart the browser that gets tedious.
    The only way to solve this that I've found is to just stop trying to use the first tab and let it be Google. However, I'd like some actual solution that stops this from happening if possible.

    Thanks for the reply, it seems to have solved my issue.
    My tabs are normal and unpinned, I just have Firefox set to open all my current tabs. Safe Mode didn't seem to have this issue, so I disabled Classic Theme Restorer. Several restarts didn't have problems, so I enabled it again and now this isn't happening anymore. Hopefully it stays gone for good and didn't just stop momentarily.
    Edit. So as soon as I posted this, it started happening again. More testing definitely points to Classic Theme Restorer as the cause, so I'll have to investigate solutions on that end.

  • HELP!! Can's type in Firefox UNLESS I open another internet tab, then go back to the first tab.

    HELP!! Can's type in Firefox UNLESS I open another internet tab, then go back to the first tab! All of the sudden, out of the blue, I hear the little "beep" noise that Mac's make when, for example, you try to close a program without saving an item first. It will "beep" to make you aware that you have an unsaved document. Now, without changing anything on my computer or Firefox, I get thet "beep" when I go to Firefox and try to type in a search box, etc. The only way I can type is if I open a new tab in firefox, then go back to the first tab. Only then will I be able to type. If I use my mouse and click on another box to type on, or try to go back and edit text I have already trped using the mouse to jump to a different portion of my text, I will hear the same "beep" until I (once again) click on another tab, then return to the first tab. It is very annoying as I have to constatnly click on another tab then return so that I can type or edit any thing. I had to do this several times while editing this very paragraph!! I have uninstalled Firefox and reinstalled. Nothing changed...
    Any help????
    Thanks in advance!

    To find out if it's system wide or user specific, try this...
    Open System Preferences>Users & Groups, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    Does it work in the new account?

  • The first tab in my browser always shows loading and cannot close it, Why?

    When my browser is open and have multiple tabs open, the first tab has the animated circle that shows that page is loading, and if I try to close that tab it does not close. I have tried to uninstall and reinstall but have not been able to clear this issue up, Please help!

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • The first tab will not close, and often does not load all of a page.

    When I open firefox, the first tab always has 'search bookmarks and history' in the address bar, instead of the url of my homepage, and it will not close.

    While trying to figure out a solution, I removed my themes and I closed the tabs I could, then clicked on the new tab button, doing so changed my original tab into an (Untitled) tab and created a new (Untitled) tab. I then found I couldn't close either tab, I clicked on new tab again, got a third (Untitled) tab, which again I couldn't close. I then closed Firefox choosing not to save. This appears to have fixed the problem; however I do not know which of the above action(s) resolved it.

  • Firefox closes when i close the first tab of the browser using latest version 10.0 release.

    I open many tabs on firefox, many times when I close the first tab, the entire window closes, and I have to reopen the browser. When I try that many times I get a message saying something like "Firefox is running Cannot open another window". When I checked the Task Manager I see firefox.exe and plugin-container.exe running. but the firefox is nowhere to be seen. Once I "End Task" these two, I can start firefox. This thing happens many times

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes

  • I CANNOT CLOSE THE FIRST TAB WHEN I SEARCH FOR SOMETHING AND CLOSE A SECOND TAB IT WILL NOT LET ME CLOSE THE FIRST TAB

    I CANNOT CLOSE THE FIRST TAB AFTER I TYPE IN A SEARCH
    == This happened ==
    Every time Firefox opened
    == I UPGRADED TO 3.6

    I have the same problem and tested it in Safe Mode, and did the disable the add-ons thing. Everything went OK, even up to the last add-on. There wasn't a hint of the problem anymore, so I went back to regular use of FF (3.6.12) again. WELL, THE SAME THING HAPPENED AGAIN!!! I agree with the person who said that your supposed troubleshooting is B.S. You blame the user instead of saying something useful like "OK, we heard you (and over two dozen others) and we know it's not your doing, and it's OUR PROBLEM, and we're going to look into it and figure out how to fix it, AND we'll get back to you when we do and tell you how to fix it too." THAT's the kind of answer we FF users want to hear, not some claptrap about how WE the users didn't try hard enough to fix it on our own!

  • The first tab I have never closes and when I open a second one and close that the whole browser will close. Is this a bug?

    Since downloading the 4.0 beta, in both versions (4.0 and 3.6) I can't close the first tab that is opened when I start the browser. I click the red close button and nothing happens but if I open another tab and close that then it will close and the whole browser will close. I have uninstalled the beta version and the 3.6 version and reinstalled the 3.6 version but it hasn't made a difference.

    JUst experienced the exact  same problem after changing password.Getting same message. Hope someone has an answer for this.

  • When there are several tabs open, why does the search always take place on the 2nd tab (the first tab seems never to change from the home page) despite my selecting a different tab in which to do a google search?

    I have Mozilla Firefox 10.0. When I open it, it correctly opens on the homepage in the first tab. Once I have another, or several, tabs open, no matter which tab is active, any google search I do immediately takes place in tab No 2. It doesn't seem to matter how many times I go to e.g. tab 4 to do a search (because I wish to compare with the webpage open in tab 2), yet it always now does the search in tab 2. This is very irritating. There must be some setting that has gone pear-shaped, but where/which? Any suggestions? Thanks.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Clearing the the street,Postal code and city in partner tab at sales order

    Hi Experts,
    I have a requirement like in sales order header or Item, In partners tab, when they are selecting the particular partner function like CR and the customer number is 500, and if they press enter then automaticaly it fetches the name,street,postal code and city at the right side for that entry. My requirement is like for particular customer 700, they want to hide the customer address in that Partner tab while sales order creation VA01. If they select the partner function CR and customer 700, after pressing enter, it shouldn't fetch the automatic address of that customer. They just want the customer name and remaining fields like street,postal code,city should be blank.
    Can you please let me know how to reach this requirement ate sales order creation or change level in partner function tab.
    I test these exits EXIT_SAPLV09A_001 to EXIT_SAPLV09A_004 but no use. Let me know possible ways to achieve this?
    Any idea on these?
    Thanks in advance ,
    Edited by: dolly B on Jan 18, 2010 11:36 AM

    Hi,
    This is happening because you have not maintained your data in sales order.
    Billing document takes the reference of order and delivery document for taking the data.
    Now if you donu2019t maintain your partner function in order nor in delivery then it wont be determine in billing document.
    If you want ZZ to shown in billing document then you have to make that function visible in sales order.
    While creating sales order it will take it from customer master data but when you are creating billing it wont search in customer master data it will search in sales order only.
    You can do one thing make that function non modifiable in partner determination procedure.
    So it cant be change in sales order.
    But I want to know why you want that should not be visible in sales order.
    Hope so I will be correct with my explanation.
    Regards
    Raj.

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

Maybe you are looking for

  • Move Protection Group from One DPM server to another DPM server

    Hi Mike, Can we move Protection Group from one DPM 2012 SP1 to another DPM 2012 R2 version? If yes then what is the steps to perform that. Also i am running DPM servers with co-located and non-colocated configuration. What would be best as per best p

  • Tesla Nvidia Supercomputing graphics card on MacPro

    Does anyone know if there are any plans for MacPro to support the Tesla GPUs. The possibilities... Oh the possibilities!! http://www.nvidia.com/object/teslagpuprocessor.html Tesla C870 GPU Computing Processor with massively multi-threaded architectur

  • ATP - Checking Rule

    Hi friends, i created a New checking rule (ZB) in <b>/NOMGP</b> - stock transfer sch. agmnt. for inter company stock transfer. i attached it with a checking group(Z0) and made scope of check. And assigned with doc type LU, supplying plant, delivery t

  • Playing VOB files on an iPad located on a NAS

    Hi all...I have a USB Drive attached to an Airport Extreme and would like to be able to select a .VOB file on the drive using the ipad and have it play on the device.   Any know of apps that can do this without converting the files?  Thanks in advanc

  • Printers supporting Radius wireless networks

    Do any printers exist that support Radius wirless networking and Mac OS X 10.8??