Width of Component - Regardless of Internal 'includeInLayout'

Hey there,
I'm curious to know if there is a way to obtain the width of a component in Flex, that will disregard the 'includeInLayout' property.
Example:
If I have two rectangles in a component, side by side. One rectangle has a width of 10, the other 20. When I call 'width' on parent container, I get 30. But if I set the 'includeInLayout' property of second rectangle to false and call width, I assume I will only get 10.
Is there a way to obtain the width of everything in the component, while keeping the includeInLayout property to false? In the example above, I want to keep the second rectangle out of the layout, but obtain a width of 30.
Thanks

If you have two rectangles side-by-side, and one is not in the layout, the
container's width is going to be the one in the layout.  In most cases,
folks do not want the container to reserve room for the one not included.
If you want the container to reserve room, then just set visible=false, not
includeInLayout=false.
But if you don't want to reserve room, then you really aren't asking for
width, and will have to compute it yourself.

Similar Messages

  • I need to write a Java script to make my Art board bigger by 1 (one) inch on the Width and Length, Regardless of the Content?

    Hi,
    I am currently using "Visible bounds" (java script)to add 1 inch to the width and to the Length of my Art board, but when i make a clipping mask it actually reads the hidden content from the Clipping mask and makes conforms my art board to that particular shape. Am using Adobe illustrator cs6 Here is My Code:
    var myDocs = app.documents;
    var i = 0;
    for (i = myDocs.length-1 ; i >= 0; i--)
        var doc = myDocs[i];
        app.activeDocument= doc;
        var myVisibleBounds = doc.visibleBounds; //Rect, which is an array;
        myVisibleBounds[0] -= 36;
        myVisibleBounds[1] += 36;
        myVisibleBounds[2] += 36;
        myVisibleBounds[3] -= 36;
        doc.artboards[0].artboardRect = myVisibleBounds;
    All i Want is to add 1 inch to my width and length and this does it but if i have a clipping mask it will pick up the bounding box i guess? and it will conform it to the shape... any help please... Try my code and you will see that it does add 1 inch but now make you artboard lest say 12" x 12" and make a shape bigger than the art board and you will see how it adds 1 inch to the art board based on that shape...  now if you make a clipping mask to fit that shape in the 12" x 12" art board you will still get 1 inch bigger than the shape thats being clipped ... 

    yes, visible bounds is reading the non-visible masked objects too.
    you're going to have to do it the hard way, loop through all your objects to get your bounds manually, and while you're at it, test for clipping masks and use the masking path instead.

  • Mapping BAPI-structure-field to its internal component

    Hello Guru,
    I'm building a function builder that should transform any structure- or table-field to its corresponding component in the internal table.
    e.g.
    BAPI_MARA_GA-MATERIAL should be transformed in MATNR.
    My priority is concentrated by BAPI_MATERIAL_GETALL.
    I should MAP all the structure or table fields to their corresponding internal element.
    e.g.
    BAPI_MARA_GA should be mapped to MARA
    BAPI_MARA_GA-MATERIAL should be mapped to MATNR.
    Thanks for your help.
    Regards,
    Kais

    HI,
    Try to use the class CL_ABAP_STRUCTDESCR and its methods.
    Take a look at the example below :
    REPORT  z_assign_comp.
    *&   Dynamic Programming ! Usign Structure Descriptior Class.          *
    DATA: BEGIN OF line OCCURS 0,
            col1 TYPE i,
            col2(10) TYPE c,
            col3 TYPE i,
          END OF line.
    FIELD-SYMBOLS : <fs> TYPE ANY.
    FIELD-SYMBOLS : <itab_line> TYPE ANY.
    DATA : BEGIN OF t_comp OCCURS 0,
            comp(5) TYPE c,
           END OF t_comp.
    DATA : l_struc TYPE REF TO cl_abap_structdescr.
    DATA : l_typedesc TYPE REF TO cl_abap_typedescr.
    DATA : lt_comp TYPE abap_compdescr_tab,
           w_comp LIKE LINE OF lt_comp.
    line-col1 = 11.line-col2 = 'SAP'.line-col3 = 33.
    APPEND line.
    line-col1 = 44.line-col2 = 'P.I.'.line-col3 = 66.
    APPEND line.
    ASSIGN line TO <itab_line>.
    *Call the static method of the structure descriptor describe_by_data
    CALL METHOD cl_abap_structdescr=>describe_by_data
      EXPORTING
        p_data      = <itab_line>
      RECEIVING
        p_descr_ref = l_typedesc.
    *The method returns a reference of  a type descriptor class therefore we
    *need to Cast the type descriptor to a more specific class i.e
    *Structure Descriptor.
    l_struc ?= l_typedesc.
    *Use the Attribute COMPONENTS of the structure Descriptor class to get
    *the field names of the structure
    lt_comp = l_struc->components.
    LOOP AT line.
      WRITE :/ 'Row : ', sy-tabix.
      LOOP AT lt_comp INTO w_comp.
    *   Using the ASSIGN component ,assigns a data object to a field symbol.
        ASSIGN COMPONENT w_comp-name OF STRUCTURE line TO <fs>.
        WRITE :/ w_comp-name, ' ', <fs>.
      ENDLOOP.
    ENDLOOP.
    This might be a pointer to your requirement.
    regards,
    Advait

  • Structure & Internal Tables

    What is the difference between Structure & Internal Tables,
    Regards.

    Hi chidambar,
    to say simply the internal table can have data within it but a structure is that which can be used by an internal table to define its columns ,it cannot have data on its own
    coming to thoery this may help you,but dont confuse more with the theory
    Structures
    A structure is a sequence of any elementary types, reference types, or complex data types.
    You use structures in ABAP programs to group work areas that logically belong together. Since the elements of a structure can have any data type, structures can have a large range of uses. For example, you can use a structure with elementary data types to display lines from a database table within a program. You can also use structures containing aggregated elements to include all of the attributes of a screen or control in a single data object.
    The following terms are important when we talk about structures:
    Nested and non-nested structures
    Flat and deep structures
    A nested structure is a structure that contains one or more other structures as components. Flat structures contain only elementary data types with a fixed length (no internal tables, reference types, or strings). The term deep structure can apply regardless of whether the structure is nested or not. Nested structures are flat so long as none of the above types is contained in any nesting level.
    Any structure that contains at least one internal table, reference type, or string as a component (regardless of nesting) is a deep structure. Accordingly, internal tables, references, and strings are also known as deep data types. The technical difference between deep structures and all others is as follows. When you create a deep structure, the system creates a pointer in memory that points to the real field contents or other administrative information. When you create a flat data type, the actual field contents are stored with the type in memory. Since the field contents are not stored with the field descriptions in the case of deep structures, assignments, offset and length specifications and other operations are handled differently from flat structures.
    Internal Tables
    Internal tables consists of a series of lines that all have the same data type. Internal tables are characterized by:
    The line type, which can be any elementary type, reference type, or complex data type.
    The key identifies table rows. It is made up of the elementary fields in the line. The key can be unique or non-unique.
    The access method determines how ABAP will access individual table entries. There are three access types, namely unsorted tables, sorted index tables and hash tables. For index tables, the system maintains a linear index, so you can access the table either by specifying the index or the key.
    Hashed tables have no linear index. You can only access hashed tables by specifying the key. The system has its own hash algorithm for managing the table.
    You should use internal tables whenever you need to use structured data within a program. One imprint use is to store data from the database within a program.
    plz reward if helpful,
    plz get back to me for further queries.
    thanks and regards,
    srikanth tulasi.

  • In Delayed Pulse Generation vi,Problem With THE PULSE WIDTH??

    In Delayed Pulse Generation vi, I want to input a very low number for the Pulse Width while using an external timebase source. But the minimum pulse width has to be 2. Does anyone know how can I solve this problem??

    Hey 45,
    Unfortunately, there is no way to generate a pulse width smaller than 2x your external timebase.
    There is an option to create a pulse of arbitrary width of your external source if you can afford some software processing in between. What you can do is use 1 counter to measure how many source edges of your card's internal timebase (80 MHz for TIO only, 20MHz or 100kHz for TIO and STC) your external signal is. This uses pulse width measurement as the counter application. Once you know how many source edges it takes to represent your pulse, then you can use triggered pulse generation and use the internal timebase with the pulse specs set to create the exact pulse width you want (and delay) and you can use your external pulse as the trigger. Th
    is works well if your pulse is always the same width and you can measure it before hand. As an example, let's say your pulse is 20 internal timebase pulses when measured. This means you can use the pulse specs to specify a pulse width of 0.75 your pulse width by using only 15 internal timebase edges for your pulse width.
    I don't know if I was clear above or not but if you give me your exact application you are looking to achieve, I might be able to help you out. Hope that helps.
    Ron

  • Problem with international file names on FAT volumes

    I believe I've found a bug in QuickTime for Windows. I have a FAT32 volume on my Windows XP system where some folders containing QuickTime movies have Russian names. The QuickTime player fails to open these files, either from the Explorer shell or using the internal file dialog. Google Picasa, which embeds QuickTime to view the respective content, fails to "see" the movies as well. If I rename the folders such that the full path to the file contains only ASCII characters, the player is able to open it. Oddly enough, file names on NTFS volumes do not present such a problem regardless of international character use.
    I encounter this behavior with QuickTime 7.0 and 7.1.
      Windows XP  

    Hi
    Once you select the file, hit the Enter key, and you should get an immediate renaming opportunity.
    Matt

  • Using nullLayout for custom component

    I am writing an AccordianPanel as a custom component that can be dropped into a JPanel and behave as expected. I am using a null layout in the outer container (JPanel) as the accordian dividers need to move as told and not be managed by a layout manager. When I resize a window or another container that the custom component sits in, it doesn't resize anything - I understand this is the behavior I would expect as that is how I coded it.
    Now, I want to have the custom component resize its internal stuff when the container it resides in (i.e. JFrame or most likely another JPanel) gets moved, but I don't know how to do this. The outer most component in my custom components hierarchy is a JPanel whose layout is set to null and I stuff everything else inside there.
    I believe I need to add a componentListener to my JPanel whose layout is set to null, but I am not sure. Could someone send me in the right direction.
    thanks

    the best approach might be to implement your own LayoutManager (which is simple enough) and use it rather than absolute positioning....
    If you read postings in the forum you will find most people recommend using LayoutManagers and not a null layout so you don't have problems like this.Hello sarcommand , camickr, and anyone interested,
    I've tried to bring this discussion up again just a few days ago, and was disappointed I got no feedback - must be a dull read :o(
    Here is the [link to the thread|http://forums.sun.com/thread.jspa?messageID=10723670&#10723670], would you mind having an eye on it?
    I'm sorry to hijack this thread (seems slightly less rude than bumping my own former thread up), but I've read several discussions on this subject too, and still I can't decide whether I should follow the CustomLayoutmanager track.
    Although most of the writing there is specific to my current problem, it highlights 3 points I think are general enough:
    - A custom layout (whatever the way it is implemented, I discuss 4 approaches in the thread) is generally used to display custom components, or at least, components that represent custom application-specific entities or input points. -> Is is worth the trouble to abstract the positioning logic when this "custom layout" has only one, at best two, use cases (a couple of specific screens in your specific app that represents your specific entities)?
    - A custom (app-specific) layout manager is likely to require more knowledge about the things being layed out than the default min/max/pref sizes. In particular it may require to know data of the underlying model objects represented by the children components. How is that best designed? I tentatively think it's by way of custom Constraint classes which have to be abstract enough yet should be easily mapped from the app-specific data.
    - The CustomLayoutManager integrates natively with regular graphical events (hiding, resizing,...), but how to integrate app-specific events (such as, when the underlying data change in such a way that should be reflected by a change in the layout, how/when to force the re-layout)?
    Thank you for your help.

  • T61 Nvidia internal display vs. dock question

    I've read the threads on the Nvidia issue and I'm grasping at straws that my problem may relate to a different component. The internal screen on my T61 blanked out a few weeks ago but both analog and digital outputs are fine on the dock. The backlight is on and on startup the internal screen sometimes works for a few minutes. I've tried substituting a different screen with the same results. Is the Nvidia chip the only likely culprit or does a different chip do the internal/dock display switching?
    T61 6459CTO   Serial L3-xxxxx   Date 08/04
    Board 42W7876   P42X5035
    Thank you
    Moderator Note; s/n edited for member's own protection

    Welcome to the forum!
    Has the LCD been reddish/pinkish on intial startup recently prior to the issue that you're describing?
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Reference comp in dynamic internal table using CL_ALV_TABLE_CREATE

    Hi,
    I am using CL_ALV_TABLE_CREATE to create a dynamic internal table. Everything works fine, but there is one problem with it. How can i create a component in the internal table that is actually a REF TO a certain data type. i.e. later i would like to store a reference to some dataobj in this component of the internal table.
    I cannot use cl_abap_*descr classes to create internal table because of some other reasons, otherwise it would have been easy to do it.
    Any kind of help would be highly appreciated.
    Thanks and best regards,
    Ghufran

    Hi Ghufran,
    I do have an idea about the class <b>CL_ALV_TABLE_CREATE</b> , but i have writen an exmaple code to create a Dynamic Iternal table, please have a look, it may help you
    *& Report  Z_DYNAMIC_INTERNALTABLE                                 *
    report  z_dynamic_internaltable             .
    data: d_ref type ref to data,
    d_ref2 type ref to data ,
    i_alv_cat type table of lvc_s_fcat,
    ls_alv_cat like line of i_alv_cat.
    types tabname like dcobjdef-name .
    parameter: p_tablen type tabname.
    data: begin of itab occurs 0.
    include structure dntab.
    data: end of itab.
    field-symbols : <f_fs> type table,
    <f_fs1> type table,
    <f_fs2> type any,
    <f_fs3> type table,
    <f_fs4> type any.
    refresh itab.
    call function 'NAMETAB_GET'
    exporting
    langu = sy-langu
    tabname = p_tablen
    tables
    nametab = itab
    exceptions
    no_texts_found = 1.
    loop at itab .
    ls_alv_cat-fieldname = itab-fieldname.
    ls_alv_cat-ref_table = p_tablen.
    ls_alv_cat-ref_field = itab-fieldname.
    append ls_alv_cat to i_alv_cat.
    endloop.
    internal table build
    call method cl_alv_table_create=>create_dynamic_table
    exporting it_fieldcatalog = i_alv_cat
    importing ep_table = d_ref .
    assign d_ref->* to <f_fs>.
    select * from (p_tablen) into corresponding fields of table <f_fs>.
    loop at <f_fs> assigning <f_fs2>.
    assign itab-fieldname to <f_fs4>.
    loop at itab.
    write: / <f_fs4>.
    endloop.
    endloop.
    Thanks
    Sudheer

  • Problem with New Component in the Portal 7.0

    Hi, i have the problem wiht component: BP for Internal Sales Representative
    When trying open the new component in the portal show the error:
    in the flag "sales processing":
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 11:36_11/05/11_24157750
    See the details for the exception ID in the log file.
    com.sap.portal.appintegrator.sap.WebDynpro::WebDynpro/ABAPURLLayer
    ¨******************************************************************************************
    How find roles assigned to new component??

    Hi Shen, show errors in the portal
    #1.5 #001321FCA16D006B00000042000018900004A31C5414D97C#1305241971529#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < edition_history >. It is defined in group < DetailsSettingsSecondGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D006B00000044000018900004A31C5414DAAE#1305241971529#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < codification >. It is defined in group < DetailsSettingsSecondGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D006B00000046000018900004A31C5414DB9A#1305241971529#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < deactivateCodification >. It is defined in group < DetailsSettingsSecondGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D006B00000048000018900004A31C54AC60F3#1305241981463#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < GenerateCodeCommand >. It is defined in group < AdminResourceCommandGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D006B0000004A000018900004A31C54AC61F3#1305241981463#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < FixCommand >. It is defined in group < AdminResourceCommandGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D006B0000004C000018900004A31C54AC634D#1305241981463#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < UnUsedDocumentsCommand >. It is defined in group < AdminResourceCommandGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D006B0000004E000018900004A31C54AC644B#1305241981463#com.sapportals.wcm.rendering.uicommand.UICommandFactory#sap.com/irj#com.sapportals.wcm.rendering.uicommand.UICommandFactory#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/Applications/KMC#Plain###Could not find a command, masscommand or group command with alias < RestoreDocumentsCommand >. It is defined in group < AdminResourceCommandGroup >. Check whether the archive containing the mapped java class  is deployed.#
    #1.5 #001321FCA16D007D00000061000018900004A31C599E36D2#1305242064383#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_35##0#0#Error##Java###06:44_12/05/11_24157750 An error occured in iView: N/A in component: N/A##
    #1.5 #001321FCA16D006800000071000018900004A31C5A91112B#1305242080298#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_1##0#0#Error##Java###06:44_12/05/11_24157750 An error occured in iView: N/A in component: N/A##
    #1.5 #001321FCA16D006700000075000018900004A31C5A91887F#1305242080329#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#edramones#173##n/a##434407207ced11e09434001321fca16d#SAPEngine_Application_Thread[impl:3]_0##0#0#Error##Java###06:44_12/05/11_24157750 An error occured in iView: N/A in component: N/A##

  • Security component implementation

    I'm working on a security component that will grant access (or deny access) to protected resources through a password verification, in a JSF RI website.
    Can you tell me, in your opinion, what is the best practises to achieve this? Can I rely on the standard JSF validation approach?
    Thank you very much,
    Ivan Saorin

    ivan.saorin wrote:
    Maybe we have found an anomaly in the way JSF manage validation/security. It is not a exactly a bug, rather, the absolute lack of documentation on the argument.
    We have found that in certain situation the standard security offered by JSF MUST be enforced by some kind of measure.
    Immagine a scenario like this (real life sick), you build a custom component with an internal validation. The component accepts a password from the user, the confirm button is not on the component itself, instead the component rely on the confirm button present on the page (becouse the button is on a toolbar).
    The page confirm button usually is associated with an action that, for example, grant to the user to confirm a transaction of some kind.
    What normaly happen if the user put the wrong passord in the password field, is that tha validation rule fails, a ValidationException is thrown by the validator. The page re-render itself signaling the error occured to the user.
    But if an ill-intentioned user remove the component from the page (with a famous firefox plugin for example),The component exists on the server and the server only. The client cannot remove it from the JSF view.
    or simply remove the secCmpId=secCmpId parameter from the request, the decode of the component is not even called, and so any associated validation rule. The result is that the action fired by the page confirm button is not blocked at all!That sounds like a poorly written component to me. The component will exist in the restored view (or this is kept server side); if it is enabled and rendered then it should be decoded. The absence of the expected parameter in the request parameter map should cause an error.
    >
    For me isan error that JSF is not blocking action by default. They should be admitted only and only is all the validation are gone ok, ad not if one fails.
    I know that is a rather peculiar use case, but the extreme confidence in the absolute server-side security usually bounded by JSF can lead to such an implementation.
    Obviously we have resolved the security hole that luckily was found during an internal security test.Personally I wouldn't (and haven't) checked something like a password in a validator, preferring to do it in the action method.

  • Component maximumsize within nested splitpane

    Hi,
    I have a JSplitPane that contains another JSplitPane within it's right component. I want to constrict the right component of the internal JSplitPane to have a certain maximum size, meaning you can't slide the second divider left of a certain value. Any ideas on how I should implement this?
    Thanks,
    Max

    I solved this by setting a minimum size for the left component of the inner JSplitPane upon a ComponentResized Event based on the total size - the size of the right component

  • Inner join on internal table

    HI all,
    How to access data from two internal table using join condition ?
    suppose i have tow internal table itab and jtab and i want to access data by using inner join on this tow table.
    please tell .
    thanx..

    hi,
    You can use PROVIDE ENDPROVIDE statements in ABAP to achive this.
    Check the below documenttaion.
    PROVIDE
    Syntax
    PROVIDE FIELDS {*|{comp1 comp2 ...}}
                   FROM itab1 INTO wa1 VALID flag1
                   BOUNDS intliml1 AND intlimu1
                   [WHERE log_exp1]
            FIELDS {*|{comp1 comp2 ...}}
                   FROM itab2 INTO wa2 VALID flag2
                   BOUNDS intliml2 AND intlimu2
                   [WHERE log_exp2]
            BETWEEN extliml AND extlimu
            [INCLUDING GAPS].
    ENDPROVIDE.
    Effect
    The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly.
    To be able to process internal tables using PROVIDE, all tables itab1 itab2 ... must be fully typed index tables and contain two special columns that have the same data type (d, i, n, or t) for all relevant tables. For every table you must specify the names intliml1 intliml2 ... and intlimu1 intlimu2 ... of these columns using the addition BOUNDS.
    The columns intliml1 intliml2 ... and intlimu1 intlimu2 ... in every row of the relevant internal tables must contain values that can be interpreted as limits of closed intervals. Within a table, the intervals specified in these columns must not overlap and must be sorted in ascending order. The intervals therefore make up a unique key for every row.
    For every table you must specify a work area wa1 wa2 ... compatible with the row type and a variable flag1 flag2 ..., for which a character-type data type with length 1 is expected. In the PROVIDE loop, the components specified after FIELDS are filled with values in the relevant work areas wa1 wa2 ... for every specified internal table. The variables flag1 flag2 ... are also filled. A work area wa1 wa2 ... or a variable flag1 flag2 ... cannot be specified more than once.
    With the BETWEEN addition you must specify an interval extliml, extlimu. It must be possible to convert the data objects extliml and extlimu into the data types of the respective columns intliml1 intliml2 ... and intlimu1 intlimu2 ... of the individual tables.
    The interval limits intliml1 intliml2 ... and intlimu1 intlim2 for every row of all relevant internal tables itab1 itab2 ... that are within the closed interval made up by extliml and extlimu divide the latter into new intervals and every interval limit closes one interval in the original direction. If, within a relevant table, a lower interval limit follows an upper interval limit with no space or gap between them and the components of the corresponding rows specified after FIELDS have the same content, the two intervals are combined and the corresponding interval limits intliml1 intliml2 ... and intlimu1 intlimu2 ... are ignored for the new intervals.
    For every interval that is created in such a way and overlaps with at least one of the intervals of a table involved, the PROVIDE loop is passed once. The components of every work area wa1 wa2 ... specified after FIELDS and the variables flag1 flag2 ... are filled with values as follows:
    The components intliml1 intliml2 ... and intlimu1 intlimu2 ... of every work area wa1 wa2 ... are filled with the interval limits of the current interval.
    If the current interval overlaps with one of the intervals of an involved table, the remaining components of the corresponding work area are assigned the contents of the relevant components of this table row and the variable flag1 flag2 ... is set to the value "X". Otherwise, the work area components and the variables flag1 flag2 ... are set to their Initial value.
    Except for intliml1 intliml2 ... and intlimu1 intlimu2 ..., the components not specified after FIELDS are always set to their initial value. The components intliml1 intliml2 ... and intlimu1 intlimu2 ... are always assigned.
    The ABAP runtime environment checks for every table involved, whether the condition of sorted and non-overlapping intervals is met within the interval made up by extliml and extlimu and, if necessary, triggers an exception that can be handled.
    If the INCLUDING GAPS addition is specified, the system passes the PROVIDE loop for every interval, that is also when the current interval does not overlap with at least one of the intervals of an involved table. In the latter case, the variable flag is of initial value for every relevant table.
    You can use the WHERE addition to specify a condition for every table itab1 itab2 ... involved. After WHERE, you can specify any logical expression log_exp1 log_exp2 ... ; the first operand of every comparison must be a component of the internal table. As such, all logical expressions except for IS ASSIGNED, IS REQUESTED, and IS SUPPLIED are possible. You can only specify components that are in the list after FIELDS. Here it is not possible to specify a component using character-type data objects in brackets. The table entries for which the condition is not met are ignored by the PROVIDE loop. You can leave the PROVIDE loop following the instructions in the section Leaving loops.
    System fields
    The system fields sy-subrc and sy-tabix are set to the value 0 before every loop pass and at ENDPROVIDE. Only if the loop is not passed once, is sy-subrc set to 4 at ENDPROVIDE.
    Notes
    The relevant internal tables should not be modified in the PROVIDE loop.
    The WHERE condition can be used to remove overlaps between the tables involved or to ensure the sorting of the intervals.
    In two tables itab1 and itab2, the respective columns col1 and col2 are interval limits of type i. The filling of the internal tables results in the following intervals (rows two and three):
    |01|02|03|04|05|06|07|08|09|10|11|12|13|14|
    |   Itab1 Int1    |     |Itab1 Int2 |     |
    |        |      Itab2 Int1       |        |
    |  |          ... BETWEEN ...             |
    |  | i1  |   i2   | i3  |   i4   |i5|     |
    The interval specified in the BETWEEN addition to the PROVIDE statement is shown in the fourth row. It serves as a basis for the five intervals in the fifth row represented by i1 to i5. These can be processed in the PROVIDE loop.
    Because each of the five intervals overlaps with one of the intervals from rows two and three, the PROVIDE loop is passed five times.
    Only the component col3 of wa1 is filled in the first pass, only the component col3 of wa2 in the third pass, and the components col3 of both work areas in the second and fourth passes. The fields valid1 and valid2 are set accordingly.
    DATA: BEGIN OF wa1,
            col1 TYPE i,
            col2 TYPE i,
            col3 TYPE string,
          END OF wa1.
    DATA: BEGIN OF wa2,
            col1 TYPE i,
            col2 TYPE i,
            col3 TYPE string,
          END OF wa2.
    DATA: itab1 LIKE STANDARD TABLE OF wa1,
          itab2 LIKE STANDARD TABLE OF wa2.
    DATA: flag1(1) TYPE c,
          flag2(1) TYPE c.
    wa1-col1 = 1.
    wa1-col2 = 6.
    wa1-col3 = 'Itab1 Int1'.
    APPEND wa1 TO itab1.
    wa1-col1 = 9.
    wa1-col2 = 12.
    wa1-col3 = 'Itab1 Int2'.
    APPEND wa1 TO itab1.
    wa2-col1 = 4.
    wa2-col2 = 11.
    wa2-col3 = 'Itab2 Int1'.
    PROVIDE FIELDS col3 FROM itab1 INTO wa1
                                   VALID flag1
                                   BOUNDS col1 AND col2
            FIELDS col3 FROM itab2 INTO wa2
                                   VALID flag2
                                   BOUNDS col1 AND col2
            BETWEEN 2 AND 14.
      WRITE: / wa1-col1, wa1-col2, wa1-col3, flag1.
      WRITE: / wa2-col1, wa2-col2, wa2-col3, flag2.
      SKIP.
    ENDPROVIDE.
    The list output is as follows:
       2           3  Itab1 Int1 X
       2           3
       4           6  Itab1 Int1 X
       4           6  Itab2 Int1 X
       7           8
       7           8  Itab2 Int1 X
       9          11  Itab1 Int2 X
       9          11  Itab2 Int1 X
      12          12  Itab1 Int2 X
      12          12
    Exceptions
    Catchable Exceptions
    CX_SY_PROVIDE_INTERVAL_OVERLAP
    Cause: In one of the involved tables there are overlapping intervals within extlim1 and extlim2.
    Runtime Error: UNCAUGHT_EXCEPTION
    CX_SY_PROVIDE_TABLE_NOT_SORTED
    Cause: One of the involved tables is not sorted in ascending order by the intervals within extlim1 and extlim2.
    Runtime Error: UNCAUGHT_EXCEPTION
    Edited by: Velangini Showry Maria Kumar Bandanadham on Apr 28, 2008 1:36 PM

  • Internal mouse

    Internal mouse first works when you turn computer on but the minute you double click it it stops working correctly - it either freezes or it highlights everything and won't let it go. An external mouse does the same thing. I can't get it to work long enough to check the mouse preferences.
    Any help, please.

    I am have the same problem with an iBook G4/933. Mouse click will work sometimes after booting up but only briefly and loses function seemingly without any pattern. I have booted with a Tiger disc and the mouse click works briefly, if at all, regardless of internal or external mouse. Have managed to repair permissions and repair hard disk while booted from CD. Have used an external "known good" Apple USB mouse and doesn't help. Have also zapped PRAM and reset PMU multiple times and no help. I can't blame a faulty OS install if the mouse isn't functioning properly while booted from Tiger install disc. If the internal clicker is to blame and is bad, would that also disable an external USB mouse click? I'm really stumped on this one and any suggestions would be appreciated. Thanks!

  • Need to open flex screen in a pdf by using AlivePDF

    Hi all,
    I'm trying to get a screenshot of a flex application screen in a PDF(Adobe Reader). When i click on submit button, it supposed to show the screen in pdf page. VBox have some datagrid.
    I'm getting the screenshot, but its exceeding the height and width and also not getting clear screenshot.
    I just want to show as it is the flex screen.
    Can anyone help me out in this issue.
    Thanks in Advance.
    UI Component:
    <mx:VBox id="playout" width="100%" visible="false" backgroundColor="#FFFFFF" includeInLayout="false">
    </mx:VBox>
    <mx:Button  id="printButton" label="Print" cornerRadius="10" onClick=doPrint(event:MouseEvent)" fontFamily="Arial"/>
    class file:
     private function doPrint(event:Event):void {
    var createPDF:PDF = new PDF(Orientation.PORTRAIT, Unit.MM, Size.A4); 
    var image:ImageSnapshot = ImageSnapshot.captureImage(playout, 15, new JPEGEncoder());
    createPDF.addPage();
    createPDF.addImageStream(image.data, 0, 0, 500, 500);
    var ba:ByteArray = createPDF.save(Method.LOCAL); 
    new
    FileReference().save(ba, "casedetails.pdf");

    You do not need to pay for anything, so I think you have a misleading message, or a misunderstanding.
    For instance, on the iPad this can happen if you mistakenly ask Adobe Reader to open a file that is NOT a PDF. Then it will ask if you want to subscribe to a conversion service. But the solution of course is just to open in the right app - if you have it.
    Please give full details if this doesn't help. What Adobe software do you have? What kind of computer or tablet? What system does it run? What type of file is it? What is the message? That sort of thing.

Maybe you are looking for

  • URgent !!!!!!!!! How do i add information to server.xml of tomcat

    Hi , I want to add the conext information to my server.xml of tomcat for my hibernate configuration..... the conext information is as follows .... <Context path="/quickstart" docBase="quickstart"> <Resource name="jdbc/quickstart" scope="Shareable" ty

  • Open .pdf file in Word & "Convert File" Box appears...Weird.

    Using my MacBook Pro, I click on a PDF file to open in Microsoft Word & an angry box appears that says "Convert File." In the box it says: Convert file from: then it lists various file types i.e., Text only, MS-DOS Text, Rich Text Format, HTML Docume

  • How do I sort new iTunes store searched results (ie Popularity)?

    New iTunes Store (Ver. 11.0) will not let me sort search results. I'm almost certain this was a feature in older versions of iTunes store but can't get to work in new version. Any help would be appreciated.

  • Get LUN ID and TARGET ID

    Given an entry in /dev/rmt, how do you programmatically get its LUN ID and target ID? It shows up in dmesg's output but I'm wondering if there's a call to uSCSI to get in. Under Linux, you can use ioctl(fd, SG_GET_SCSI_ID, &info) to get it. Thanks, Q

  • A protected AAC song I purchased isn't available to convert to iTunes Plus.

    I'm in the process of converting my songs from the protected AAC format to the purchased AAC format.  A song I purchased a while back is in the protected AAC format and doesn't show up in the iTunes Plus section of the store.  I've already looked at