How to set a sheet as Ad Hoc via VBA ...

We keep trying to convert our existing workbooks for Smart View.
As you can imagine this is a nightmare process but we keep trying ...
There is some progress and we learnt a lot on the way but we still face some major issues - we find SV with VBA to be an unpredictible combo.
Anyway ...
In simple words I use a sequence of VBA SV API calls to create private connection (HypCreateConnection), to connect the sheet (HypConnect) and to retrieve data (HypRetrieveRange) - along the way I set up SV options and hide the Panel and the POV.
All "by the book" - I wish such "a book" ever existed ... I mean the documentation is far from "in depth" ...
The process works in c. 80% of cases (i.e. grids) but it fails on some (so far I found no correlation with anything else)
I have tried and tried all sorts of tricks to debug it.
It works with ALL grids in 1 in 20 tests but you can never predict when and why.
So it can work but something somewhere causes the process to fail on some grids in most of the tests.
I noticed one detail ...
While the sheet gets connected and retrieved  with our process the Sheet Info still shows the sheet status as Empty ...
When working from a blank worksheet and with the Panel open (i.e. NOT via VBA) one of the steps is to click on Ad Hoc Analysis button.
It is unclear to me what exactly this one step does and it does not seem to be connecting or refreshing the grid.
It seems it defines the grid to be an Ad Hoc one.
Can the same be achieved programatically via VBA ?
So far I have NOT found any equivalent API call.
In desperation I am going to replace all HypRetrieveRange calls with HypMenuVRefresh call.
Would it define the sheets as Adf Hoc ?
I will find out ...
Will it help with some odd grids ?
Fingers crossed it will.
Regards

Hi Deiter,
You can achieve this with below steps.. I am giving below steps considering you want
to keep the condition type set as Obligatory always in your Pric Procedure
-> Write a custome routine for "Requirement Routine" with the logic : When item category
    is ZAN, remove "Obligatory" check from KOMT1-KOBLI.
-> Assign this routine to condition type ZZ00
you are ready to go now.
Why i am suggesting this...
-> Industry best practise, to write minumum codes in user exits (in this case it will be sales user exit),
    as it increases system response time
-> If we change someting in user exit, imagine, everytime you are creating a Sales Order, which does
    not call for this pricing procedure (with cond typ: ZZ00 ), still this part of user exit code written
    to check if item cat is ZAN or not will be called, so why to make system work more when
    actually not required
Hope this helps !
Regards
Subhajit

Similar Messages

  • How to set wireless printer at ad Hoc mode in CP1025nw with auto-off is off?? ie never auto-off!!

    How to set wireless printer at ad Hoc mode in CP1025nw with auto-off is off?? ie  never auto-off!!
    Thank you very much for your help if any!!
    This question was solved.
    View Solution.

    Quite a few questions there, Sends, but I will do what I can to answer them. 
    I would first recommend buying a router, even if it is one that you won't connect to the internet and network this with your other PCs and the printer. This will give you the best functionality and results for what you are attempting to do. 
    Additionally, the Auto Off feature of the printer can be disabled, and is not affected by the connection type. You can usually go through the Setup Menu and select Tools to change the options there on the energy saving features. 
    Lastly, the auto off feature on your computer is a Windows question, but an easy one to answer. If you are on a laptop you can right-click on the battery in the service tray (bottom right hand corner) and change the energy conservation settings. 
    You might be better off installing the printer through the USB cord and alternating that based on when you are using it, but that would be optimal only if you are printing only a few documents on an irregular basis. A networked connection is the easiest to manage over several computers, honesty, but you do have some requirements for that connection and limitations as well.
    I hope this information is useful! 

  • How to set Full Crawl Schedule as None via Powershell command

    How to set Full Crawl Schedule as None via Powershell command

    $ssa = "Search Service Application"
    $contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"
    $contentSource.IncrementalCrawlSchedule = $null
    $contentSource.FullCrawlSchedule = $null
    $contentSource.Update()
    Basically you set Schedule to Null.
    Amit

  • I just upgraded to garageband 10.0.2 and I don't know how to set up a mic for recording via USB

    I just upgraded to garageband 10.0.2 and I don't know how to set up a mic for recording via USB

    Connect your USB mic or USB Audio Interface to an USB port.
    Create an new Audio Track from the Tracks menu > New Track.
    Select "Audio > Record using a microphone ...."
    Click "Details" to reveal the Input sources.
    Click "My instrument is connected with..." to open the GarageBand Preferences "Audio" tab and select your microphone as Input device.
    In the Track menu > Track Header enable "Show Record enable" button.
    Enable this button for your vocal track.
    Open the Library pane to select a vocal patch your new track.

  • How to set "Image Map" attribute to "Polygon" via javascript in Illustrator CS5

    Ok, so I have this little script I've written that I want to use to go through a bunch of paths in a document and give each path a url for use in an image map. I want each link to be a Polygon because, well, let's face it, "Rectangle" is useless 99% of the time. Obviously, the way you would do this manually would be to open the Attributes panel and set the Image Map attribute to Polygon and type a URL in the URL field. Fine. Easy enough. However, when scripting the process, it seems one can only set the URL (or the uRL [sic] as documented in the javascript reference) of the PathItem. In other words:
    pathItem.uRL = "http://someurlfor.me";
    Unfortunately, this defaults the "Image Map" attribute to "Rectangle" (which we already know is useless 99% of the time.) SO, anyone out there know how to change that attribute to "Polygon?"
    Btw, I'm on Illustrator CS5 and have been using this reference:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    Thanks,
    -Matt

    We found that with the following setting, the problem is almost solved :
    theme.setQueryWindowMultiplier(1);
    theme.enableAutoWholeImage(true);
    We still have a problem : a portion of the base map appears black most of the time, on Blackberry only (Opera Mini) ... like 1/5 of the map ... the right side ... any idea ?
    Thanks,
    JP

  • How to set levels values in adjustment layer via script?

    I try to make a script which generates a non destructive adjustment layer for levels which already sets values for shadow levels and highlight levels. I tried the scripting listener in order to record it. Unfortunately the scripting listener only records the creation of adjustment layers but not their settings like shadow or highlight levels.
    The first question here: Why can't the scripting listener do this?
    So I tried to do it on my own and came up with the following script which won't work. My second question therefore is, can you help me to make a script which achieves my goal? Thanks a lot. I use Photoshop CC 2014.
    var desc780 = new ActionDescriptor();
    desc780.putInteger( charIDToTypeID( "ShdL" ), 60 );
    desc780.putInteger( charIDToTypeID( "HghL" ), 190 );
    var list126 = new ActionList();
    list126.putObject( charIDToTypeID( "LvlA" ), desc780 );
    var desc779 = new ActionDescriptor();
    desc779.putList( charIDToTypeID( "Adjs" ), list126 );
    executeAction( charIDToTypeID( "Lvls" ), desc779, DialogModes.NO );
    Here is the script which has been recorded by the scripting listener. As you can see there is no setting of the adjustment layer.
    var idMk = charIDToTypeID( "Mk  " );
    var desc188 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref135 = new ActionReference();
    var idAdjL = charIDToTypeID( "AdjL" );
    ref135.putClass( idAdjL );
    desc188.putReference( idnull, ref135 );
    var idUsng = charIDToTypeID( "Usng" );
    var desc189 = new ActionDescriptor();
    var idType = charIDToTypeID( "Type" );
    var desc190 = new ActionDescriptor();
    var idpresetKind = stringIDToTypeID( "presetKind" );
    var idpresetKindType = stringIDToTypeID( "presetKindType" );
    var idpresetKindDefault = stringIDToTypeID( "presetKindDefault" );
    desc190.putEnumerated( idpresetKind, idpresetKindType, idpresetKindDefault );
    var idLvls = charIDToTypeID( "Lvls" );
    desc189.putObject( idType, idLvls, desc190 );
    var idAdjL = charIDToTypeID( "AdjL" );
    desc188.putObject( idUsng, idAdjL, desc189 );
    executeAction( idMk, desc188, DialogModes.NO );

    Photoshop Scripting

  • TS2845 How to set airplay on ipad2 with tv via apple tv2

    Hi i would like to understand how to use airplay for trasfering rented movie on Ipad 2 on to my television
    Via appleTV 2?

    Both need to be on the same network, you need to enable airplay on ATV (via settings). Then you tap the airplay icon on iPad, select ATV and it will stream.
    See, for more info
    http://support.apple.com/kb/HT4437?viewlocale=en_US&locale=en_US

  • HOW TO SET DELETION FLAG TO SERVICE ENTRY SHEET ?

    Dear Experts,
    Can anybody explain how to set deletion flag to Service entry sheet created ?
    Service Entry sheet has been accepted and saved, i want to set deletion flag to the Service Entry sheet.
    Thanks in Advance

    Hi,
    Go to ML85 and give your service entry sheet no in Entry sheet data and select "cancel release" check box and give the corresponding release code and execute and save. The release gets cancelled.
    The other way is go to ML81N and give your Po and service entry sheet and click on the icon "cancel release" (reverse arrow mark) give the corresponding release code for cancellation and save. Now the service entry sheet will go to "No acceptance" mode. again go to the change mode and select the line item and delete it by clicking on delete icon.
    regards,
    Kannaiah Naidu

  • I have no idea how to set up a pie chart for tracking spending with categories

    This is what I want to do to help me track my credit card spending.
    I want to make a Numbers sheet where i can jot down how much money i spent on a item, and what category that item would go with (example, food, electronics, gas, so on).
    and then i want to have a pie chart that will show much how much money i'm spending in each category and how much of a percentage of the total each category takes up of the whole.
    I have no idea how to set this up in a sheet. I tried typing it in a few times and every time i go to make a pie chart, it never shows me any of the results i want to see.
    can someone please help me set up a sheet to be able to get this information to display correctly in a pie chart?

    Brad,
    Create a table with the categories and the data (for now you can make up the data):
    Now add a chart from the Charts menu in the toolbar:
    Now click the "Add Chart Data" button just below the chart.
    Now select data (from column B) in the table.  Last trick is to click the menu at the bottom-left corner of the window and change the selection to "Plot rows as series" :
    Now add formulas to the table to properly summarize the data from your data entry table using the sumif() function.

  • Could somebody explain to me how to set up a VPN on my iMac and access it on iPhone and computer?

    I'm mainly using it to bypass an internet block. Could you explain in detail how to set up a vpn that will also work on iPhone? Do you have any recommended applications for me to install? Thank you

    To run a public VPN server behind an NAT gateway, you need to do the following:
    1. Give the gateway either a static external address or a dynamic DNS name. The latter must be a DNS record on a public DNS registrar, not on the server itself. Also in the latter case, you must run a background process to keep the DNS record up to date when your IP address changes.
    2. Give the VPN server a static address on the local network, and a hostname that is not in the top-level domain "local" (which is reserved for Bonjour.)
    3. Forward external UDP ports 500, 1701, and 4500 (for L2TP) and TCP port 1723 (for PPTP) to the corresponding ports on the VPN server.
    If your router is an Apple device, select the Network tab in AirPort Utility and click Network Options. In the sheet that opens, check the box marked
    Allow incoming IPSec authentication
    if it's not already checked, and save the change.
    With a third-party router, there may be a similar setting.
    4. Configure any firewall in use to pass this traffic.
    5. Each client must have an address on a netblock that doesn't overlap the one assigned by the VPN endpoint. For example, if the endpoint assigns addresses in the 10.0.0.0/24 range, and the client has an address on a local network in the 10.0.1.0/24 range, that's OK, but if the local network is 10.0.1.0/16, there will be a conflict. To lessen the chance of such conflicts, it's best to assign addresses in a random sub-block of 10.0.0.0./0 with a 24-bit netmask.
    6. "Back to My Mac" on the server is incompatible with the VPN service.
    If the server is directly connected to the Internet, see this blog post.

  • How to set and save Custom Print Settings in Aperture?

    How to set and save Custom Print Settings in Aperture
    Hi,
    I am printing 12x18" images on 13x19" sheets. I find it difficult to enter the 13x19" dimensions because each value jumps to another random value when I move to enter the second dimension. For instance 13 jumps to, say, 8.5 as I type 19 into the second box. Same with the sheet dimensions.
    Also, when I finally get it all correctly, the margins don't set themselves automatically - which I would I expect.
    Then, even though I save the setting by clicking Save Setting at the gear below, next time I turn Aperture on, it's all gone.
    Any ideas? Thanks.
    Raphael

    For me, it is working with these settings, Raphael.
    Does your image have a 12x18" aspect ratio? You may want to crop it to the desired aspect ratio before printing.
    I can only test with Aperture 3.6 on Yosemite 10.1.

  • How to set variables values via VBA.

    Anybody please help.
    How to set variables values via VBA in workbook. SAP Netweaver 2004s.

    Pass variable values with VBA and BI 7.0 funtions to Query
    At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
    How to start:
    Switch to design mode in BEX Analyzer:
    Implement a BEX 7.0 design item u201Cbuttonu201D
    Click on the button to implement the properties
    Make the input for the commands
    data_provider = dataprovider_1
    cmd = process_variables
    subcmd = var_submit
    No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
    Make a range somewhere in the excel with the following structure:
    Name    Index   Value
    VAR_NAME_1      1       Variablename
    VAR_VALUE_EXT_1 1       variablevalue
    Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
    Set a name for this range with EXCEL functionality but without the header:
    Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
    If you have more variables to process you can of course enhance your Filterrange!
    In the left upper Corner you have a name for your button:
    Now you can raise the button-click in vba like this:
    Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
    regards, Lars

  • How to configure Time-sheet in Project server 2013 please share the doc with screen shot

    How to configure Time-sheet in Project server 2013 please share the doc with screen shot
    Thanks and Regards, Rangnath Mali

    Hi,
    Please refer to the following Youtube video and article.
    https://www.youtube.com/watch?v=lZWvg4q17JE
    https://support.office.com/en-sg/article/Set-up-timesheets-and-task-status-672fa06f-8c4b-4e43-bfbc-4c355d681605
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • How to set page margins in Numbers 3

    I just migrated from MS Excel after decades of use. I can't find out how to set page margins using the new Numbers 3 version. I believe I've exhausted all reference materials and the most relevant was an method in Numbers 8 & 9... both of which have a different top menu selection.  The answer is probably right in front of me and simple as it sometimes happens when learning new software...

    Hi caforestfire,
    There is no direct equivalent to page margins in Numbers 3.0. It's more oriented toward sharing on the web and on iPad screens than toward traditional printing.
    However, there are ways to achieve the effect of margins.  The idea is to first position your content (tables, charts, etc) on the canvas of a sheet, using rulers and guides if you want (you can drag the rulers onto the canvas to help in placement):
    Then you File>Print and in Print Preview fiddle with the slider until you get the white space you want around your content:
    Then click Print.
    For many purposes it works quite well. It's just a different approach from what we're used to in Excel, and the old Numbers 2.3.
    SG

  • How to set color space to JPEG image with Java advance Imaging

    How to set color space to JPEG image with Java advance Imaging.
    is there any API in JAI which support to set color space.

    I'm definately no guru, but this is how you can change it.
    CTRL + ALT + Click on the part of the component that you want to change. This brings up the Hidden Dom Inspector, background of component will be surrounded with a red outline (Make sure the red outline is surrounding the part of the tabset you want to change), Now you go to properties sheet and click the ellipses next to rules property this will pop up a dialog you look in this list (At the top) to see the default style classes that are affecting the rendering of the component outlined in red. (You will be able to select different sections of a single component) then you just rewrite the style class that you want to change in your Stylesheet (You will not find the styleclass that you want to change because it is a part of your theme .jar but as long as you name it exactly the same and place in your stylesheet it will override the theme .jar style classes) it's actually very easy -- you were right should be a piece of cake for a guru. Don't have the link handy but you can check out Winston's Blog on changing Table Formatting to get this information...It is EXTREMELY useful if you want your apps to have a custom look and not default that comes with Creator Themes.
    Hope this helps you out God knows others have helped me alot!
    Jason

Maybe you are looking for