Block the data by VBA

Hello! I need help with VBA Macro:
First of all, I crated a new workbook. There is a button in it. When we press the button, the second WB is called. When we call the WK, makro stand parameters of filter:
For Each itm In BEx1.DataProviders
  If itm.Name Like "DP_*" Then
    Set dp = itm.Request.Dimensions.Item("GGOR_GZP").filters
    Set dp1 = itm.Request.Dimensions.Item("GLINEITEM").filters
    Set dp2 = itm.Request.Dimensions.Item("GGR_ZATR").filters
    Call dp.SetFilterValue(Val1)
    Call dp1.SetFilterValue(Val2)
    Call dp2.SetFilterValue(Val3)
     Call BEx1.FrontendUpdate
Then, the query is ready for input. But, there is a problem - this macro not set blocks for characteristic values in RSPLSE (i.e. for GGOR_GZP, GLINEITEM and GGR_ZATR we have blocks for all charact. values).
Q: How resolve tihs problem?

A.G.----
This is rather confusing. Why are you trying to use [SAP record locking (RSPLSE)|http://help.sap.com/saphelp_nw70/helpdata/en/44/588168ce8c08fae10000000a422035/content.htm] to make the data locked for a specific user ? That is a very.... unusual.. step to take for a BW report. Are you uploading planning data ?
It might help to mention that. (I'm afraid we don't use that feature, so I am not familiar with it)

Similar Messages

  • Sorting the data of control block in oracle form 10g

    I have two block....both are the control block..
    in first block i select the date and in second block the data of that date is populated.but the data is populated
    using cursor in when-button-pressed trigger of that first block button...
    in cursor the data is selected and placed in field of detail block using into clause.... each field..
    .and one item of detail block is srno which is create in post-query of detail block using
    :sysyem.trigger_record.
    Now i want after populated the detail block the data is sorted desc one of the field of the detail block...
    Can this possible using set_block_property() of block although the block is control block if yes where i should do
    this??????
    Please explian...????

    but with the cursor of repopulate ...how the block is in desc by one field..because if i use again the same cursor to poulate than whats this benefits???
    if i write a cursor in button when-button-trigger in first block like this code....
    go_block('');
    cursor emp_cur is
    select empno,date,sal
    from emp;
    begin
    for i in cur loop
    select i.empno,i.date,i.sal
    into :empno,:date,:sal
    from emp
    end loop
    end;
    this loop populate the block which is controll block..
    syntax error should be ignored ...i wana to explain what i want to do...
    this is not the actual query i have another query but the concept is that...
    how i can do this...

  • Limiting, not blocking, Cellular Data Roaming

    I'm trying to find out a way that allows us to supply our staff with iPhones, but limit liability with regards to overseas data roaming.  The problem is probably quite common-- our staff travel a fair bit, so we have a cellular data plan that gives them a fixed cap of free of world-wide data roaming.  Our Telco isn't great at blocking the data from overrunning, as they say their info only gets updated daily, so overages could happen for an entire day before it was blocked.
    We educate the users about how to avoid going over that limit, and largely that's successful-- but occasionally, as I'm sure everyone has experienced at one point or another, someone forgets to flip the switch, or installs a new app without thinking, and then quickly they can run up a tremendous data bill.
    Is there a way in Apple Configurator, or on the device itself, where I could set up a rule limiting roaming data?  Ideally I just want to tell the Configurator "Please limit these users to 500mb roaming data per month, then turn off and lock roaming data".

    Static Vagabond wrote:
    Is there a way in Apple Configurator, or on the device itself, where I could set up a rule limiting roaming data? 
    No

  • Number Ranges-The data is locked by user ... and can be displayed only

    I wanted ti define number ranges - Transaction CXEG in Consolidation, and somehow i blocked the data (message: The data is locked by user ... and can be displayed only). How i can unlock the data so i can define new number ranges for this year. Please help

    Hi,
    Make sure you don't have any open sessions. If not, then go to SM12, and delete the relevant locked entry.
    Regards,
    Eli

  • Data blocks in forms 6i, can not see the data

    i have built an application in forms with some data blocks. the blocks a connect to some tables in the db. i have built them connectd as "system". but when i run the applicatio as user x i can do select, insert, update, delete, but i can not se the records in the datablocks (they are empty), but i can do all transactios. why?

    First of all, developing from the System schema is not a good idea.
    Who owns the tables your form is connecting to? The table owner should create a public synonym for each table name, and also needs to grant user x access to the table.

  • I can not put the data of a field(LONG RAW) consulted into a item of a data block

    I want to query a field that is LONG RAW(it's a image) and put the data into a item of a data block (in Forms Builder), when i write ":BLOCK.FOTO:=vfoto" i recieve this errors: "bad bind variable ....". How can i put the data of field of my DB and put the data in a item of a data block(in Forms Builder)?.
    I can store a image in a table of my DB, but i want to query a image stored in my DB and put it into anothers table, all this on FORMS BUILDER.

    You have to base the image item on a base table and use EXECUTE_QUERY on that block. You can't do a direct select in PL/SQL into the item

  • How can I update record in the block that Data Source is PROCEDURE?

    I like use Procedure as the Data Source of block.It's very flexible.
    Usually I do this only query the record,but now I must update record in the block that Data Source is Procedure.
    What next step can I do?Can anyone offer some examples?
    This is example, you goto
    http://www.2shared.com/file/1923834/e0b65fb7/Example.html
    Wait about 30 sec, Click "Save file to your PC: click here",and then you can download it.

    <p>I have written an article about some advanced Forms features.
    Have a look at the 2.3.2 paragraph</p>
    Francois

  • How to check the date and time when a material is blocked

    Hello,
       Please tell me how can i check the date and time when a material is blocked or unblocked.
    Regards,
    Priyanka

    Hi Pryianka,
    Are you speaking about blocked status of material master ('X-plant matl status' > MM03 > Basioc view 1; 'Plant-sp. matl status' > MM03 > MRP 1) or your problem is to find out the date when your material was booked into blocked state (stock category).
    If your problem is about mmr you can use the above mentioned MM04 (or MM03 > menu > Environment > Display changes).
    If your problem is to find out when your goods were posted to blocked stock you have to use MB51 + relevant movement types (e.g. 103, 344) + batch + etc. ()
    BR
    Csaba

  • Manipulating data from a ref cursor in the data block of a form

    I am using Oracle Forms 10g. I have a ref cursor which returns columns A, B, C, D, E where B, C, D, E are values. The "Query Data Source Name" attribute in the datablock contains "CCTR_Extract_pkg.cctr_refcur". The "Column Name" attribute of item A contains "A", item B contains "B", etc. All of these columns are displayed on the form and it all works perfectly.
    I have a new request, the users would like a 6th column displayed - column F - where it equals D - B.
    Is there any way of doing this in the form only or do I need to change the ref cursor to accomodate the new column and then the form?
    If it can be achieved in the Form (only) - then how do I reference the 2 columns?
    Thanks in anticipation
    Michael
    Edited by: user8897365 on 24-Aug-2011 10:32

    Is there any way of doing this in the form only or do I need to change the ref cursor to accomodate the new column and then the form? The REF_CURSOR is the data source of your block so you will have to modify the CCTR_Extract_pkg package and cctr_refcur REF_CURSOR.
    If it can be achieved in the Form (only) - then how do I reference the 2 columns?After you have modified your database package, I recommend you run the Data Block Wizard on your block and let Forms detect the 2 new columns. You can do this manually, but it is safer to let Forms do it for you. If you want to do it manually, open the Query Data Source Columns property and add your new columns.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Refreshing the data of a table based block

    Hi,
    Is there some function like refresh_block that I can use to reload the data a table block?
    Thanks,
    --Bassem                                                                                                                                                                                                                                        

    All you can do is to re-execute the query

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • My iphone was stolen, and was erased all the data, how can i block or cut the iphone service on my phone?, my iphone was stolen, and was erased all the data, how can i block or cut the iphone service on my phone?

    my iphone was stolen, and was erased all the data, how can i block or cut the iphone service on my phone?, my iphone was stolen, and was erased all the data, how can i block or cut the iphone service on my phone?

    Only your carrier can Blacklist the phone, so contact them.

  • I have two iphones , i lost one  and entered to find my iphone and as mistake i block both and delate all the data of both. how can i get it on, im trying to restore it , but its not working ...

    i have two iphones , i lost one  and entered to find my iphone and as mistake i block both and delate all the data of both. how can i get it on, im trying to restore it , but its not working ...

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • HOW TO BLOCK THE DELIVERY IF CONTACT-DATE = SYSTEM DATE.

    HI ALL,
    in va02 transaction, after entering some order number, u will go inside. after going inside, goto GOTO-HEADER-PURCHASE ORDER DATA.
    THEN, IN THAT PURCHASE ORDER DATA TAB, A LAST CONTACT DATE FIELD IS THERE. NOW, THE ISSUE IS, IF THIS LAST CONTACT DATE IS GREATER THAN  OR EQUAL TO SYSTEM DATE, THEN THE DELIVERY SHOULD BE BLOCKED AND ALSO , IN SHIPPING TAB THERE IS DELIVERY BLOCK FIELD. THIS FIELD SHOULD BE SET TO VALUE JITS DELIVERY. FOR THIS I WAS TOLD TO WRITE THE CODE IN THE ROUTINE  , BY GOING TO VOFM - TRANSACTION . IN THIS TRANSACTION, I HAVE TO CLICK ON THE COPYING REQUIREMENTS MENU AND THEN CLICK ON DELIVERIES AND THEN GIVING THE VALUE AS 911 FOR ROUTINE NUMBER COLUMN AND ALSO MENTIONING SOME TEXT IN THE DESCRIPTION COLUMN AND THEN SAVE AND WHILE SAVING THEN IT WILL ASK THE ACCESS KEY, THEN I WILL MENTION THE PROVIDED ACCESS KEY AND THEN I HAVE TO WRITE THE ROUTINE.
    NOW, MY EXACT ISSUE IS HOW TO WRITE THE CODE IN THE ROUTINE TO BLOCK THE DELIVERY ,IF THE LAST CONTACT DATE IS GREATER THAN OR EQUAL TO SYSTEM DATE AND UPDATING THE DELIVERY BLOCK FIELD IN SHIPPING TAB TO JITSDELIVERY.
    NOW, WHERE I AM STUCK UP IS HOW TO WRITE THE CODE TO BLOCK THE DELIVERY.
    IF ANY PART IS UNCLEAR, PLZ REPLY ME SO THAT I CAN MAKE IT MORE CLEAR.
    THIS IS THE CURRENT AND URGENT REQUIREMENT I HAVE TO SOLVE. PLZ MAKE ME KNOW THE SOLUTION  AS SOON AS POSSIBLE.POINTS WILL BE AWARDED.
    THANKING U IN ADVANCE,
    SRINIVAS.

    Hi,
    Who advised you to write the Routine for this requirement?
    Can't this be achieved by writing some user exit code in MV45AFZZ  of Sales order main program SAPMV45A  as this req is related to Sales order.
    I feel this can be achieved via this. Try this first at the header level ( in the correct form).
    If at all you wants to write the code in Routines goto VOFM tcode and select the routine.
    First try to copy the code what was written in the similar existing routine and take the access key and write the same code and modify as per your requirements.
    Most of the times we handle the sy-subrc value in this routines.
    reward if useful
    regards,
    anji

Maybe you are looking for

  • Looking for a specific document

    I cant find a certain document on the portal. Its called the Post Go-live Questionaire. This document is to do a Post Go-Live System Audit and to document the results and possible issues of the initial SBO Go-Live. Do anyone maybe have a link to this

  • Goods Receipt at Moving Average price instead of PO price

    We are finding a scenario where in goods receipt is getting booked at Moving average price instead of PO price. The material is defined with price control indicator as V like any other material. The issue is identifed for a specific material only. Ca

  • SX20 has no video but c40 does

    We have a remote office. Recently,  when calling this office with the SX20, its connecting with audio  only.  This had previously worked before but we dont know whats  changed.  Calling the same remote office from a C40 in the same office  as the SX2

  • Function use for fetching mail body  in java mail api

    sir, plz tell us the function so that we can fetch mails from the specific mailbox to our mailclient in java mail api

  • 10.8.4 won't boot

    I recently bit the bullet and started using my 10.8.3 drive as my main drive, even though it breaks some of my plugins that work fine in Logic under 10.6.8. After 3 weeks of running stably, Apple pushed out the 10.8.4 update, which made my 2008 Mac P