How to set on block query only

dear all
i want to set on block update,inset,delete as property false,
and set query property true, and i want in same time enable to user to set values to execute query on this value.
help me plz
Message was edited by:
Hshihadah

** Built–in: SET_BLOCK_PROPERTY
** Example: Prevent future inserts, updates, and deletes to
** queried records in the block whose name is
** passed as an argument to this procedure.
PROCEDURE Make_Block_Query_Only( blk_name IN VARCHAR2 )
IS
blk_id Block;
BEGIN
/* Lookup the block’s internal ID */
blk_id := Find_Block(blk_name);
** If the block exists (ie the ID is Not NULL) then set
** the three properties for this block. Otherwise signal
** an error.
IF NOT Id_Null(blk_id) THEN
Set_Block_Property(blk_id,INSERT_ALLOWED,PROPERTY_FALSE);
Set_Block_Property(blk_id,UPDATE_ALLOWED,PROPERTY_FALSE);
Set_Block_Property(blk_id,DELETE_ALLOWED,PROPERTY_FALSE);
ELSE
Message(’Block ’||blk_name||’ does not exist.’);
RAISE Form_Trigger_Failure;
END IF;
END;

Similar Messages

  • How to display LOV on web in ENTER-QUERY mode with form or block query only.

    Hello all
    How can I display lov automatic on the web in from enter-query
    mode in form or block query only mode.
    thankx

    If I understand correctly your explanation, your called form
    fails to activate the LOV in enter-query mode when it is deployed
    and test on the browser.
    So lets proceeed like this, to make it work in all environments,
    let us programetically activate the LOV.
    HOW?
    In the called form, write in the WHEN-NEW-ITEM-INSTANCE TRIGGER
    at block level (if have more than one LOV)
    IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
    IF get_item_property(:system.cursor_item,lov_name) IN ('YOUR
    LOV1', 'LOV2' etc) THEN
    IF SHOW_LOV(get_item_property(:system.cursor_item,lov_name))
    THEN
    NULL;
    END IF;
    END IF;
    END IF;
    The above code maybe tweak to suite your need and condition.
    This way, we explicitly make the LOV appear in ENTER-QUERY mode
    whenever the user clicks on an item with an attached LOV.
    Hope this helps.
    Mohammed R.Qurashi

  • I can't figure out how to set the history to only save 2 days. Is there a way. Thank you

    I have tried to figure out how to set my history to only save 2 days. I am sure that in previous version of firefox that this option was available where as in this one I don't see that. So I am either blind that I can't find it in the history option or it doesn't exist. It seems the options are remember history no limit or always to remove when closed. I want the options of setting how many days not the other two. Is there a way to do that? Thank you.

    No need to crop your clips. The mask does the cropping of the upper clip.
    To use the image mask, you need an image to place into the drop zone in the inspector. In your case you'd want a simple black to white gradient as the image mask and choose Luminance in the Image Mask source luminance pop-up. I'm attaching a sample gradient. The original was 1280x720 to match a 720p movie but the forum shrinks it down. This gradient was created in Photoshop in less than 30 seconds.
    You import this gradient file into your event. Click on the Mask Source in the Image Mask effect and then click on the gradient file in your event list and click Apply Clip. Change the Mask Source to Luminance. Change the offset mask parameters to move where the gradient lines up in your movie.

  • How to set posting block in BIlling Doc type configuration

    Hi All,
    Can anybody tell me, How to set posting block in BIlling Doc type configuration.I need to do this to seperate billing creation from from FI/CO posting in my company.
    We right now run have the batch jobs which run VF06 & VFX3.
    Appreciate any input or suggestions.
    Regards,
    Vinay

    Hi
    If you want to check the Manual posting blocks you can configure them through FI/CO. Once you have configured the blocks with reasons it will automatically block for the payments.
    goto        SPRO-> Financial accounting->Account receivable & Payable ->Business Transactions-> Out going Payments-> Manual outgoing Payments-> Check payment block reason.
    Cheers

  • How to set Payment Block for Service PO when IR before GR?

    Hi,
    Could anyone advice me on how to set payment block especially for service Purchase order, item category D, when IR before GR (SES)?
    Thanks,
    Alex Kwon

    Hi
    Please try this...
    in IMG>MM>Invoice Verification>Invoice Block>Item amount check
    Here you can activate the item amount check for Item categories as well as GR item.
    Pls explore I have not tested.
    Hope it helps
    Karthik

  • I have suddenly been getting a lot of fraud emails.  Does anyone know how to set up blocks?

    Hello,
    I have been suddenly getting tons of fraud emails.  This has never been a problem in my mack mail in the past. Does anyone know how to set up blocks?  I have searched through preferences but have not been able to find any way to do it.  Bounce is of no use as these emails are not "respondable".
    Gabrielle

    Hi Gabrielle,
    If you're using Mail, open Mail > Mail menu > Preferences > Rules > Add Rule > set the parameters you want.

  • How to set input ready query to display mode as default when open workbook?

    Dear All,
    Hi, i have a question here about IP query.
    as my current situation, my workbook included one input ready query, therefore, when i open my workbook which default is Edit mode which mean all value can be edited.
    but, i want it to display mode when open workbook, and i already have a edit button, if i want to edit the value i will use Edit button, so, i wan it as display mode when i first open workbook.
    so, can anyone tell me how to set it as display mode when open workbook which included input ready query?
    Regards
    wenlong
    Thanks a million

    in Data Provide Specfici  commad
    Edit
    Dsiplay
    Filter command
    Assigen Query /Query view
    pls select Edit then save

  • How to set paramters through Query manager.

    Hi,
    I need to get Parameters when we are executing SQL Query through Query Manager.
    In Query manager how to set prompt window for parameters.
    Below I applied parameters for from date and to date but its showing error. How to set parameters prompt window.
    SELECT     OJDT.TransId, OJDT.Number,NNM1.SeriesName,ojdt.baseref as BaseRefNumber, JDT1.Account,JDT1.StornoAcc,OACT.AcctName,jdt1.credit,jdt1.debit, jdt1.profitcode as [Customer/Vendor],JDT1.OcrCode2 as [Region/Location] , JDT1.OcrCode3 as  Department,
                          JDT1.OcrCode4 as [Core/Deputees/DailyWage/General], JDT1.OcrCode5 as [SubAccofCA&CL],OJDT.RefDate, OJDT.Project,jdt1.project
    FROM         OJDT
    INNER JOIN JDT1 ON OJDT.TransId = JDT1.TransId
    INNER  JOIN OACT on OACT.AcctCode=JDT1.Account
    INNER JOIN NNM1 ON OJDT.Series = NNM1.Series
    where ojdt.transType=30 and  ojdt.refdate >= '[%0]' AND ojdt.refdate <= '[%1]'
    Please guide me.
    Regds,
    Sampath kumar devunuri.

    hi sampath,
    Try this query
    SELECT T0.TransId, T0.Number,T3.SeriesName,T0.baseref as BaseRefNumber, T1.Account,T1.StornoAcc,T2.AcctName,T1.credit,T1.debit, T1.profitcode as CustomerVendor,T1.OcrCode2 as RegionLocation , T1.OcrCode3 as Department,
    T1.OcrCode4 as CoreDeputeesDailyWageGeneral, T1.OcrCode5 as SubAccofCACL,T0.RefDate, T0.Project,T1.project
    FROM dbo.OJDT T0
    INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
    INNER JOIN OACT T2 on T2.AcctCode=T1.Account
    INNER JOIN NNM1 T3 ON T0.Series = T3.Series
    where
    T0.transType='30' and CAST(T0.refdate AS datetime) BETWEEN '[%0]' AND '[%1]'
    Jeyakanthan

  • How to set input ready query cell is different color?

    Dear All
      Hi, everyone, hereby i have a IP question.
      i would like to know, how to set the input ready query's cell different color between those cell which is unable to change value one in workbook..?
    Example :
      For my workbook which have a input ready query,
      i have 4 rows for my input ready query report.
      For the first row which is not input ready cell and unable to change any value for the cell, then following rows's cell can be change value,
      so, i would like to make first row's color cell different with following row's cell.
      In additional, all value of cell is initial zero.
      therefore, is there any mehtod to make different color between able cell and unable cell?
    Thanks a million.
    Regards,
    WenLong.

    Cells in the input ready query result have different styles given by SAP. All rows will have one style, column headings will have one style whereas input ready cells will have one style. If you are in Excel 2003, put cursor in the input ready cell, goto format -> style, you can see one BeX style attached to that cell, apply watever color you want for that style, save the workbook. If you do this for one cell, it will be applied to all the input ready cells by default. In the same way you can give different color to the non input ready cell styles. In Excel 2007, Cell styles are available in Home -> Cell styles. Here you can see all Bex related styles.

  • How to set input ready query to display mode and set edit mode in WAD?

    when I create A input ready query but not set query propery  start  query in change mode ,but I want to set this query in input ready mode ,how to set this in WAD?
    hope anyone can help me
    regard  by
    wenlong

    Hi,
          You can get all the info from this thread , try it out
           WAD - set data entry mode
           Hope it helps.
    Regards,
    Priya.

  • How to set delivery block in va01 by not use delivery block reason.

    Dear SAP Gurus.
    I have one scenario. I need to do delivery block on sales order while i create sales order via VA01.
    Normally, I use delivery block reason in header and set delivery block in schedule line.
    In addtion, i dont want to use above method and not use complete delivery (Tick on it)
    So, I would like to know it has other way to do delivery block.
    The cause is my manager do not allow to use  this field from company's policy.
    Please help me to solve this problem.
    Thank you in advance for your kindly help.
    Best Regards,
        Surakit

    Surakit,
    Well, do you want to say that user should not manually user delivery block at header or sch line to block the doc or any other method manually done before saving the sales order.
    In that case, for making default delivery block at header, in Sales doc type (TCode VOV8) in Shipping section, maintain a delivery block as 22-Statutory Compliance(even any other option available) or for Item based block on Sch line cat (TCode VOV6) maintain default delv block there.
    Or if I misunderstood your requirement then we can wait & see other solution coming for the same.
    Thanks & Regards
    JP

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

  • How to Set Assignment block in Display mode

    Hi All,
    I have a Z assignment block in Account (BP_Head), requirement to set this assignment block in display mode only.
    No user allowed to  edit its edit list.
    Could you help me how to do that with sample code and event.

    HI,
    In configTable set attribute displayMode = "TRUE". Then this AB will be always in display mode
    displayMode            = "TRUE" or
    if you ar using configCelleator uyou need to give iv_all_rows_editable = space
    cl_thtmlb_util=>translate_selection_mode(
      exporting
      iv_selection_mode    = ITEMS->SELECTION_MODE
    iv_all_rows_editable = space
      importing
      ev_selection_mode   = lv_cellerator_selectionmode
    ev_edit_mode        = lv_cellerator_editmode
      ev_selection_column = lv_cellerator_selectioncolumn ).
    Regards,
    Deepika.

  • How to set black and white only on Photosmart Plus B210a

    I just buy my HP Photosmart Plus B210a at staples on 25. Usually I will just print some word documents,I want to set to use black and white only (black ink only), but can't find it.

    Hi espressoking,
    I understand that you are looking to print grayscale from your iPad. 
    I have included 2 different documents about using Apple's AirPrint.  The first one is from Apple and the second one is from HP.  If you find that the option to print in grayscale isn't available with AirPrint then I suggest you check out HP's ePrint app.  It gives you the options to print 'Color, 'Grayscale', or 'Black Only'.
    For further reference I have also included a document about getting started with the HP ePrint app.
    AirPrint Basics from Apple Support
    http://support.apple.com/kb/HT4356#How_to_Print
    How to Use Apple's AirPrint Over a Wireless Network
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02623193
    Getting Started with HP ePrint Mobile Apps
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01616126
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Frm-41380 error - cannot set the blocks query data source

    Fairly new forms so bare with me. I am creating a form based on one table. This table has one column that is a nested table.
    table name: szrtime
    table columns: szrtime_code, szrtime_styp_list
    szrtime_styp_list is a table of varchar2(1).
    main block is szvtime_block
    the block that contains the nested table is szvtime_styp_block
    I read that I could use a WHEN_NEW_RECORD_INSTANCE trigger on the main block to display the related nested table. I have tried the folllowing:
    Declare
    select_stmt Varchar2(512) ;
    Begin
    If :szvtime_block.szvtime_code Is not null Then
         select_stmt := '(SELECT column_value FROM TABLE ( SELECT szrtime_styp_list FROM szrtime WHERE szrtime_code = ''' || :SZVTIME_BLOCK.SZVTIME_CODE || '''))';
         Go_Block('SZVTIME_STYP_BLOCK' );
         Clear_Block ;
         message('select_stmt = '||select_stmt);
    Set_Block_Property( 'SZVTIME_STYP_BLOCK', QUERY_DATA_SOURCE_NAME, select_stmt ) ;
    Execute_Query ;
    Go_Block('SZVTIME_BLOCK') ;
    Else
    Go_Block('SZVTIME_STYP_BLOCK' );
    Clear_Block ;
    Go_Block('SZVTIME_BLOCK') ;
    End if ;
    End ;
    The result is the frm-41380 error.
    I have tried change the query data source type on the nested table block to Table or From-clause but did not help. The select statement that is valid and returns the correct result in Toad.
    Any suggestions on what to look for? Thank you.
    Todd

    > But what is giving me pause is that the user will be updating, deleting, and inserting
    into this table and, of course, the nested table column.
    It would give me pause, too. I've never used nested tables, so I poked around in Forms on-line help. In Forms 6i, it specifically states that Forms does not support the Nested Table structure.
    In Forms 10g help, it describes Nested Table structures, but says NOTHING about how a form would handle it. And that implies to me that it is still not supported. So good luck.
    In addition to creating the view, you may need to provide your own nested table updating procedures via a package on the server which your form can call. I know Forms supports passing pl/sql tables ("indexed by binary_integer"), so you could pass your nested table back and forth between the package and the form in that format.

Maybe you are looking for

  • Tomcat 5.0.* global JNDI database connect pooling. complex config question

    Ok. I can't get global connection pooling to work in tomcat 5.0.24. (I am running windows xp pro) I am using MySQL (installed on the same machine) and I have succesfully worked through the tutorial titled "MySQL DBCP Example" found at http://jakarta.

  • Gmail reply button does not work

    reply and reply all icons are grayed out, unresponsive when trying to reply to an active email.

  • FLVPlayback Component Volume Issue

    Hopefully someone can give me a hand with this one. I'm using the FLVPlayback component to play a movie. In the parameters, I'm setting volume to "8" where the default is "1". This works great and gives me the right volume setting, but if the user to

  • Can't launch iTunes...so can't activate my iPhone

    I downloaded the 7.3 iTunes but it will not open on my PC/windows xp with Trend Micro PC. Help please, I can't use my new phone!

  • Mettle plug ins won't activate, cause crash

    I'm having no luck activating Mettle's FreeForm Pro and ShapeShifter plug ins in AE 12.2 on a brand new MacBook Pro. Using ShapeShifter unregistered crashes AE. AE's preferences also tell me that the NVIDIA GT 750M graphics card that comes with the c