Parent not clipping children in certain cases

I've run into 2 different cases where clipping doesn't work.
One I can produce a test case that reproduces the problem where
another I have a program that is demostrating the problem, but I
don't know why. I've found a hack that causes clipping to get
turned back on, but I wanted to know if anyone else has encountered
these problems. I'm surprised because clipping is such a basic
neccessity, and easy to implement I'm confused as to why Flex is so
buggy. Here is one way of reproducing my first clipping problem.
Create two canvases one as a child of the other, and set a bottom
constraint on the child.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Canvas backgroundColor="black" x="10" y="10"
width="313" height="218" horizontalScrollPolicy="off"
verticalScrollPolicy="off">
<mx:Canvas id="c1" backgroundColor="blue" right="0"
height="166" left="0" y="149"/>
</mx:Canvas>
<mx:Canvas backgroundColor="black" x="367" y="10"
width="313" height="218" horizontalScrollPolicy="off"
verticalScrollPolicy="off">
<mx:Canvas id="c2" backgroundColor="red" height="166"
bottom="-97" width="313" x="0"/>
</mx:Canvas>
</mx:Application>
The above mxml will show clipping work (in blue), and
clipping failing (in red). Turn off the use of bottom constraints
and it will start working. I've filled a bug on the above code. I'd
like to file another bug on the second one I've found, but I can't
seem to boil it to down to a simple test cases.
The next one I'm not sure why it's not clipping. I have a
series of images being displayed on a Canvas in CD Coverflow in
iTunes/iPhone like UI. The images will spill outside the container
when they get larger than the parent. However, if I put another
child whose bounds also spill outside the parent, and set
visible="false" then clipping will start working and all children
will be clipped properly.
Any ideas why clipping is so flaky? Are there cases where
this is by design?
Charlie

d9tech,
It's definitely a bug. We need simplified test case that
exhibits the bug so we can submit it to JIRA. There are several
works arounds that you can do to get it to work. Including the one
Peter provided in the form. You can see others here:
http://bugs.adobe.com/jira/browse/SDK-13584
I don't think this problem is related to this bug though as
I'm not using bottom or right constraints in doing my layout. What
you describe sounds very similar to what I was doing as well. If
you post your some of your code it might help in working out a test
case that we can provide to JIRA so the Flex engineers can fix it.
My program is not that trivial so I wasn't going to post it, but if
you have one that's simpler then I'd be up for helping you work out
a test case.
Thanks
Charlie

Similar Messages

  • I am using final cut express. It seems that any clip over a certain length, say 5 min, does not fully transfer! All shorter clips are perfectly fine. Is there some reason why longer clips are not fully transferred? (a half blue circle shows up on the tran

    I am using final cut express 4. It seems that any clip over a certain length, say 5 min, does not fully transfer! All shorter clips are perfectly fine. Is there some reason why longer clips are not fully transferred? (a half blue circle shows up on the transfer list, indicating that the clip was not fully transferred. When I check in the capture scratch folder, sure enough the whole clip is not there!
    Is there some glitch in final cut express that only allows short clips to be transferred in full?

    Thanks for the reply. I'll try to answer all the questions (I am a relative novice). Your help is appreciated.
    By the way, the other reply I received suggested the following:
    In Final Cut Express>System Settings>Scratch Discs make sure the Limit Capture/Export File Segement Size To: is not checked.
    I did this and it was already unchecked. So this is not the answer...
    The strange thing is, I have been logging and transferring with FCE for 2 yrs without any problems at all with shorter clips, but have come up against the problem with long clips (over 5 or so min)  the whole time. I got around it by simply making sure I stopped recording after less than 5 min while shooting footage. OR if I accidentally got a long clip, I import into imovie and then import into FCE. Not very streamline and I worry about compressions altering quality!
    I am now trying to import a 20 min and a 17 min clip and it only transfers around 3 minutes of each, I have re-tried several times and it happens repeatedly. The blue circle in the transfer list shows up as a half blue circle instead of full. Clip cuts off after 3 or so minutes.
    ANSWERS
    how you are ingesting the files
    From external flash drive connected directly to mac using FCE.
    the format of the source footage
    digital via ext flash memory. Frame size :1929X1080 / 25fps
    what camera shot the footage
    SONY HXR NX5
    how you are connecting to the computer
    from flash memory directly via usb
    what version of FCE you are using
    4
    what OS your computer is running
    10.6.8
    what model Mac
    macbook Pro intel Core i7
    what drive you are using for Capture Scratch
    3TB external drive (plenty of room left)

  • XML having many parents and many children but all unrelated!***URGENT***

    This is very urgent..Please HELP!!!
    Iam in a project which is planning to store the entire XML file in the database in a XML datatype column. The XML has multiple parents AND multiple children for each of those parents. My problem is how to read/store the data for each of the parent and associate the parent to the child elements. The child elements does not have a parentID in its column. Here is an example- Parent table - SHIPMENT. Child Table - SHIPMENTUNITS. ShipmentNBr is the business key in both these tables. This column comes in the SHIPMENT node but does not come in the SHIPMENTUNITS node. When I try the OPENXML, all the data just gets stored..how do I link the child to the parent?
    <SHIPMENT xmlns="">
    <SHIPMENTNBR>US1011<SHIPMENTNBR />
    <SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
    <LINESCAC>ACLH</LINESCAC>
    <TERMINAL_CD>USJAX</TERMINAL_CD>
    <ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
    <VESSEL_CD>VES</VESSEL_CD>
    <VOYAGE_CD>VOYA</VOYAGE_CD>
    <POL />
    <POD>POD_0</POD>
    <SHIPMENTUNITS>
    <UNITNBR>1234</UNITNBR>
    <UNITTYPE_CD>CAR</UNITTYPE_CD>
    <MAKE>HON</MAKE>
    <MODEL>ACCO</MODEL>
    <COLOR>RED</COLOR>
    <FULLEMPTY_CD>F</FULLEMPTY_CD>
    <LENGTH>0011</LENGTH>
    <WIDTH>0022</WIDTH>
    <HEIGHT>0033</HEIGHT>
    <DIMENSIONUOM>C</DIMENSIONUOM>
    <WEIGHT>000010</WEIGHT>
    <WGTUOM>K</WGTUOM>
    </SHIPMENTUNITS>
    </SHIPMENT>
    <SHIPMENT xmlns="">
    <SHIPMENTNBR>IN2052<SHIPMENTNBR />
    <SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
    <LINESCAC>ACLH</LINESCAC>
    <TERMINAL_CD>USJAX</TERMINAL_CD>
    <ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
    <VESSEL_CD>VES</VESSEL_CD>
    <VOYAGE_CD>VOYA</VOYAGE_CD>
    <POL />
    <POD>POD_0</POD>
    <SHIPMENTUNITS>
    <UNITNBR>1234</UNITNBR>
    <UNITTYPE_CD>CAR</UNITTYPE_CD>
    <MAKE>HON</MAKE>
    <MODEL>ACCO</MODEL>
    <COLOR>RED</COLOR>
    <FULLEMPTY_CD>F</FULLEMPTY_CD>
    <LENGTH>0011</LENGTH>
    <WIDTH>0022</WIDTH>
    <HEIGHT>0033</HEIGHT>
    <DIMENSIONUOM>C</DIMENSIONUOM>
    <WEIGHT>000010</WEIGHT>
    <WGTUOM>K</WGTUOM>
    </SHIPMENTUNITS>
    </SHIPMENT>

    I don't quite understand what you want to achieve.
    If you store the data in an XML data type then you get the XML as is and all the children are associated with their parents.
    If you want to decompose them into relational tables using OpenXML, then you either use the id values provided in the data and use the parent axis, or if no such id values are present look at the so called meta properties @mp:id and @mp:parentid. In your case you have the shipment number and unit number that you could use. The first approach you can do with the nodes() method too (but the meta properties are OpenXML only).
    In the following example I show you both. In your case you don't need the @mp: parts. Also, since OpenXML needs a complete document I added a single root node.
    declare @i int;
    exec sp_xml_preparedocument @i output,
    N'<doc><SHIPMENT xmlns="">
      <SHIPMENTNBR>US1011</SHIPMENTNBR>
      <SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
      <LINESCAC>ACLH</LINESCAC>
      <TERMINAL_CD>USJAX</TERMINAL_CD>
      <ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
      <VESSEL_CD>VES</VESSEL_CD>
      <VOYAGE_CD>VOYA</VOYAGE_CD>
      <POL />
      <POD>POD_0</POD>
      <SHIPMENTUNITS>
        <UNITNBR>1234</UNITNBR>
        <UNITTYPE_CD>CAR</UNITTYPE_CD>
        <MAKE>HON</MAKE>
        <MODEL>ACCO</MODEL>
        <COLOR>RED</COLOR>
        <FULLEMPTY_CD>F</FULLEMPTY_CD>
        <LENGTH>0011</LENGTH>
        <WIDTH>0022</WIDTH>
        <HEIGHT>0033</HEIGHT>
        <DIMENSIONUOM>C</DIMENSIONUOM>
        <WEIGHT>000010</WEIGHT>
        <WGTUOM>K</WGTUOM>
      </SHIPMENTUNITS>
    </SHIPMENT>
    <SHIPMENT xmlns="">
      <SHIPMENTNBR>IN2052</SHIPMENTNBR>
      <SHIPMENTTYPE_CD>BK</SHIPMENTTYPE_CD>
      <LINESCAC>ACLH</LINESCAC>
      <TERMINAL_CD>USJAX</TERMINAL_CD>
      <ISSUE_DT>2006-08-17T14:23:09</ISSUE_DT>
      <VESSEL_CD>VES</VESSEL_CD>
      <VOYAGE_CD>VOYA</VOYAGE_CD>
      <POL />
      <POD>POD_0</POD>
      <SHIPMENTUNITS>
        <UNITNBR>1234</UNITNBR>
        <UNITTYPE_CD>CAR</UNITTYPE_CD>
        <MAKE>HON</MAKE>
        <MODEL>ACCO</MODEL>
        <COLOR>RED</COLOR>
        <FULLEMPTY_CD>F</FULLEMPTY_CD>
        <LENGTH>0011</LENGTH>
        <WIDTH>0022</WIDTH>
        <HEIGHT>0033</HEIGHT>
        <DIMENSIONUOM>C</DIMENSIONUOM>
        <WEIGHT>000010</WEIGHT>
        <WGTUOM>K</WGTUOM>
      </SHIPMENTUNITS>
    </SHIPMENT></doc>'
    select *
    from OpenXML(@i, '/doc/SHIPMENT')
            with (
                     id int '@mp:id'
                   , nbr varchar(40) 'SHIPMENTNBR'
    select *
    from OpenXML(@i, '/doc/SHIPMENT/SHIPMENTUNITS')
            with (
                     id int '@mp:id'
                   , ship_id int '@mp:parentid'
                   , ship_nbr varchar(40) '../SHIPMENTNBR'
                   , nbr varchar(40) 'UNITNBR'
    exec sp_xml_removedocument @i
    Best regards
    Michael

  • Ever since upgrading to Mountain Lion, my AOL messages sometimes, but not always open with a blank page. If I open AOL in Firefox, the messages open fine.  This does not happen with any messages by any means, and it is not any type of certain message

    Ever since upgrading to Mountain Lion, my AOL messages sometimes, but not always open with a blank page. If I open AOL in Firefox, the messages open fine.  This does not happen with any messages by any means, and it is not any type of certain message. In fact, in the same screen I can often open an email from the same sender with email intact. This is weird. Sometimes I close the page and open a new page. Sometimes that works and sometimes it does not. It is a very annoying thing.

    Hi,
    When you start Messages fro the first time you are asked for an Apple ID
    When this is verified and entered it appears in Messages Menu > Preference > Accounts and is Enabled.
    The App should have also picked on on those iChat Accounst you had before.
    These should be Enabled if they were when you last used iChat.
    Exactly which "Accounts" are logged in can be seen in Message Menu > Accounts and will include the iMessage "Account" and Bonjour.
    In the Window menu you will see CMD +0 for the Messages window and CMD+1 for the "Buddies" window which is a combined list at this stage.
    Go to the Preferences > General Section and Untick the "Collect all accounts into one list".
    This will give you separate iChat type Buddy lists.
    You can check if that account/Buddy list is set to Invisible or if in the Preferences > Accounts > Security you have settings that will block some people from seeing you as On line.
    You are saying Buddies can see you as On Line which implies they are still sending to your AIM based Names (@Mac.com is a valid AIM Screen Name)
    I am not sure from your post if you are trying to iMessage their email IDs thinking they are Apple IDs and that they are using Messages as well.
    There is no Buddy list for iMessages side
    No-one can tell you are "On Line" until they have your details in the "To" spot in Messages with the correct iMessaged contact info (iPhone Number or Apple ID)
    Obviously an Apple ID can be an email or look like one.
    In some cases they are also valid AIM Screen Names as well.
    In the case or the @mac.com name you may have linked this Apple ID to iMessages as well.
    11:31 PM      Saturday; August 11, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to know if a parent has no children in JTree?

    How to know if a parent has no children in JTree?

    Be careful about depending on isLeaf. Common practice states that isLeaf() returns true ONLY if the node in question is not capable of having children (for example, a file in Windows Explorer). A directory with no items in it would not be a leaf node, but would have a child count of 0.

  • JTree - Parent Icon for children

    Hello,
    I have a JTree that displays Categories (=Parent) and it's content (=Child):
    Cat 1
    Cat 2
    Content 1
    Cat 3
      Cat 3.1
        Content
    ...There are some categories that do not have children, and so their icon is the same as the leaves's icon.
    How can I change the icon of categories who do not have children to a "parent-icon"?
    thanks,

    Inherit DefaultTreeCellrenderer and override getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus). Now you can set the icons individually.
    Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

  • Diagram disable adds overhead in certain cases

    I was doing some timing tests of two ways to do the same thing – a typecast and flatten to string.  Well, in the process I saw a discrepancy when a diagram disable structure was wrapped around a typecast.  Without the diagram disable, 1000000 iterations took 274 msec.  With a diagram disable around the same thing, it took 1485 msec.
    This scared me a bit, because technically the diagram disable case should be no different (ok, maybe a small overhead).  It further scared me, because the same overhead is invisible with flatten to string.  Inconsistent behavior…
    The vi that clearly shows the “bug” in 8.0.1 is attached.
    This is not a show stopper, but says “use the diagram disable structure with caution”.
    Thoughts?
    Attachments:
    Diagram Disable Bug.vi ‏24 KB

    Apparently that wasn't the only case where Diagram Disable behaves differently than just having the code inline.  I also was  investigating the performance of certain VIs, because I wanted to know if variant operations were faster than flatten/unflatten to/from string.
    In the following snippet, I set the number of loop iterations to 100 and ran the VI, resulting in an Elapsed Time of ~50ms.  I then moved the 'To Variant' VI inside the Enabled structure for both cases (Disabled and Enabled), and running the VI again resulted in an elapsed time of over 2 seconds!  The source code should be identical in both cases, but it appears as though there is some optimization occuring in the first case that is not occurring in the 2nd case. It's as though in the first case, the compiler is smart enough to realize that the loop output does not change from iteration to iteration, but in the 2nd case it gets stupid.
    So continue to beware of the Diagram Disable structure...
    Attachments:
    benchmark.png ‏71 KB

  • Sharing resources between parent FDO and children PDO

    Hello,
    I 'm developping a WDM driver for a FPGA that embeds several uarts and a CAN controler in one PCI slot.
    I use the DDK Toaster sample as a basis.
    Has someone already shared resources between  parent FDO and children PDO ?
    One way will be to export a direct-call interface between tha parent and the children. Is there something better to get the interrupt trigger in the child and the memory as a direct access ?
    Thanks
    Marco

    Hi Doron,
    here is the full debug output................
    ADDITIONAL_DEBUG_TEXT:  
    You can run '.symfix; .reload' to try to fix the symbol path and load symbols.
    MODULE_NAME: Nitin
    FAULTING_MODULE: fffff8000324a000 nt
    DEBUG_FLR_IMAGE_TIMESTAMP:  549ced55
    EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.
    FAULTING_IP:
    +501cfc0
    00000000`00000000 ??              ???
    EXCEPTION_RECORD:  fffff88003b9a9c8 -- (.exr 0xfffff88003b9a9c8)
    ExceptionAddress: 0000000000000000
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 0000000000000008
       Parameter[1]: 0000000000000000
    Attempt to execute non-executable address 0000000000000000
    CONTEXT:  fffff88003b9a220 -- (.cxr 0xfffff88003b9a220;r)
    rax=fffffa8022124c40 rbx=0000000000000000 rcx=0000000000000000
    rdx=fffff88003b9ac58 rsi=fffff88000fc60c0 rdi=fffff88003b9acf8
    rip=0000000000000000 rsp=fffff88003b9ac08 rbp=000000000000000c
     r8=0000000000000065  r9=0000000000000003 r10=4679726575516f64
    r11=000000000000000c r12=fffff88000fc92c0 r13=0000000000000312
    r14=0000000000000000 r15=0000000000000000
    iopl=0         nv up ei ng nz na pe nc
    cs=0010  ss=0018  ds=002b  es=002b  fs=0053  gs=002b             efl=00010282
    00000000`00000000 ??              ???
    Last set context:
    rax=fffffa8022124c40 rbx=0000000000000000 rcx=0000000000000000
    rdx=fffff88003b9ac58 rsi=fffff88000fc60c0 rdi=fffff88003b9acf8
    rip=0000000000000000 rsp=fffff88003b9ac08 rbp=000000000000000c
     r8=0000000000000065  r9=0000000000000003 r10=4679726575516f64
    r11=000000000000000c r12=fffff88000fc92c0 r13=0000000000000312
    r14=0000000000000000 r15=0000000000000000
    iopl=0         nv up ei ng nz na pe nc
    cs=0010  ss=0018  ds=002b  es=002b  fs=0053  gs=002b             efl=00010282
    00000000`00000000 ??              ???
    Resetting default scope
    CUSTOMER_CRASH_COUNT:  1
    DEFAULT_BUCKET_ID:  WIN7_DRIVER_FAULT
    BUGCHECK_STR:  0x7E
    CURRENT_IRQL:  0
    ANALYSIS_VERSION: 6.3.9600.17029 (debuggers(dbg).140219-1702) amd64fre
    LAST_CONTROL_TRANSFER:  from fffff8800b9eb091 to 0000000000000000
    STACK_TEXT:  
    fffff880`03b9ac08 fffff880`0b9eb091 : fffff880`0b9ec9a0 00000000`00000001 00000000`00000000 fffff880`009cf180 : 0x0
    fffff880`03b9ac10 fffff880`0b9ec9a0 : 00000000`00000001 00000000`00000000 fffff880`009cf180 00000000`00000001 : Nitin+0x4091
    fffff880`03b9ac18 00000000`00000001 : 00000000`00000000 fffff880`009cf180 00000000`00000001 00000000`00000000 : Nitin+0x59a0
    fffff880`03b9ac20 00000000`00000000 : fffff880`009cf180 00000000`00000001 00000000`00000000 00000000`03060001 : 0x1
    FOLLOWUP_IP:
    Nitin+4091
    fffff880`0b9eb091 ??              ???
    SYMBOL_STACK_INDEX:  1
    SYMBOL_NAME:  Nitin+4091
    FOLLOWUP_NAME:  MachineOwner
    IMAGE_NAME:  Nitin.sys
    STACK_COMMAND:  .cxr 0xfffff88003b9a220 ; kb
    BUCKET_ID:  WRONG_SYMBOLS
    FAILURE_BUCKET_ID:  WRONG_SYMBOLS
    ANALYSIS_SOURCE:  KM
    FAILURE_ID_HASH_STRING:  km:wrong_symbols
    FAILURE_ID_HASH:  {70b057e8-2462-896f-28e7-ac72d4d365f8}
    Followup: MachineOwner

  • RV042 Failover does not work properly in certain WAN1 signal condition

        Our RV042 has cable modem in WAN1 and ADSL in WAN2; it is set in smart link backup mode.
    In certain cases of WAN1 signal loss, RV042 seems not to detect this condition. Consequently it does not switch automatically to WAN2.
    One way to get it to switch is to disconnect WAN1 modem power (manually in situ), then WAN2 assumes as active link.
    We conclude that, in the mentioned cases, although WAN1 signal is not good enough to provide internet service, RV042 makes a wrong decision and determines WAN1 is ok.
    Is there a way to have a correct switchover for these cases?
    May be with a firmware fix, or an internal user programming/setting, or different router model- or a combination of these elements, or any other solution you can provide us.

    Eduardo,
    It sounded like you have the device setup properly, however under the system management tab, it has the ways it will detect if there is a disconnect.
    If you have wan 1 and wan 2 set checked beside the default gateway it will ping the gateway and if it gets a reply from the modem, it will stay connected. 
    You might not have internet connectivity, but the router thinks you do cause it can ping the modem.  If you uncheck this and set it to remote host.  Then
    set wan 1 to www.google.com and wan 2 to www.yahoo.com.  This way it has to get all the way out to the internet to resolve internet names.  If it can't,
    it starts the failover process.

  • Firefox not remeber password for certain websites.

    Firefox not remeber password for certain websites.For eg Hotmail.com and freelancer.com. When first time i entered details it asked to remember password, even in saved passwords i can see the password but when i go to these websites username use to be there but no password. but password is saved in Firefox and i can see using show password option.

    You can inspect and manage the permissions for all domains on the <b>about:permissions</b> page.
    *https://support.mozilla.org/kb/how-do-i-manage-website-permissions
    In case you are using "Clear history when Firefox closes":
    *do not clear the "Site Preferences"
    *Tools > Options > Privacy: History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

  • Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?

    Why iPhone 6 Plus sound microphone not working, but in the case of sound recordings in conversation mode work?

    Sighhhh, wasted so much time yesterday and today going around Sony centre and then carphone warehouse. They told me to come back after Easter.
    I came home, banged the phone against the wall and it worked.
    Turned out that mic was working on loud speaker and when using headphones so I thought that the secondary mic is working and the main one (placed with the speakers) isn't. So I banged that part against the wall slightly (in plastic case to prevent scratches) then put the phone underwater, waited for it to dry and now it's working. Idk how well and if it's of perfect quality again but people can hear me well.

  • How do i get my code to be applicable in a certain case

    Greetings ABAPers. I would like to know the various ways in which i can get my code to be applicable in a certain case. Ive include the code below. I want the code to execute only when the object type is 'BP' for business partner. That is, i want my logic (code) to execute only when the object type is an external object (BP) otherwise it should be handled normally the way SAP handles internal objects. The tricky part for me isnt the actual check because i could have used the CHECK statement. The tricky part is how do i tell it to handle it the way SAP handles normal internal object assignments i.e. pass execution onto SAP so to speak.
    Any suggestions as to how i can clean up my code and improve my commenting is also greatly appreciated.
    Code:
    method if_ex_hrbas00infty~before_output.
    Ensure that this validation only occurs for this user
    check sy-uname = 'LMANDIMIKA'.
    If the function code is an insert then continue or stop otherwise
    check pppar-fcode = 'INSE'.
    *Data declarations
    data: lt_hrp1001 type table of hrp1001,
    ls_hrp1001 type hrp1001,
    lv_sobid type sobid,
    lv_sclas type sclas,
    lv_rsign type rsign,
    lv_relat type relat,
    lv_plvar type plvar,
    lv_otype type objid.
    Clear the local table and local variables
    refresh lt_hrp1001.
    clear: lv_sobid, lv_sclas, lv_rsign, lv_relat, ls_hrp1001, lv_plvar, lv_otype.
    *Take our data declarations and insert data elements from the new relationship which we are trying to create.
    lv_sclas = old_innnn-vdata+0(2). "target object type
    lv_sobid = old_innnn-vdata+2(10). "target object ID
    lv_rsign = old_innnn-subty+0(1). "relationship direction
    lv_relat = old_innnn-subty+1(3). "relationship type
    lv_otype = old_innnn-otype.
    lv_plvar = old_innnn-plvar. "planned version
    *Check for existing relationships between a BP of that type with other external objects
    select * from hrp1001 into table lt_hrp1001
    where plvar = old_innnn-plvar
    and sobid = lv_sobid
    and sclas = lv_sclas
    and rsign = lv_rsign
    and relat = lv_relat
    and otype = lv_otype.
    *Loop through the table and compare the existing relationship with the new one
    loop at lt_hrp1001
    into ls_hrp1001.
    Check that the end date for the existing relationship is after (greater than) the start date for the new relationship.
    if ls_hrp1001-endda > old_innnn-begda and ls_hrp1001-begda < old_innnn-endda.
    message e004(/cco/a3_msg) with lv_relat lv_sobid '' ''.
    exit.
    endif.
    endloop.
    endmethod.

    Hello kpmolinarivera,
    The iTunes Store country can be changed in Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Allen

  • How do i get my code to be applicable in a certain case only

    Greetings ABAPers. I would like to know the various ways in which i can get my code to be applicable in a certain case. Ive include the code below. I want the code to execute only when the object type is 'BP' for business partner. That is, i want my logic (code) to execute only when the object type is an external object (BP) otherwise it should be handled normally the way SAP handles internal objects. The tricky part for me isnt the actual check because i could have used the CHECK statement. The tricky part is how do i tell it to handle it the way SAP handles normal internal object assignments.
    Any suggestions as to how i can clean up my code and improve my commenting is also greatly appreciated.
    Code:
    method if_ex_hrbas00infty~before_output.
    Ensure that this validation only occurs for this user
      check sy-uname = 'LMANDIMIKA'.
    If the function code is an insert then continue or stop otherwise
      check pppar-fcode = 'INSE'.
    *Data declarations
      data: lt_hrp1001 type table of hrp1001,
            ls_hrp1001 type hrp1001,
            lv_sobid type sobid,
            lv_sclas type sclas,
            lv_rsign type rsign,
            lv_relat type relat,
            lv_plvar type plvar,
            lv_otype type objid.
    Clear the local table and local variables
      refresh lt_hrp1001.
      clear: lv_sobid, lv_sclas, lv_rsign, lv_relat, ls_hrp1001, lv_plvar, lv_otype.
    *Take our data declarations and insert data elements from the new relationship which we are trying to create.
      lv_sclas = old_innnn-vdata+0(2).    "target object type
      lv_sobid = old_innnn-vdata+2(10).   "target object ID
      lv_rsign = old_innnn-subty+0(1).    "relationship direction
      lv_relat = old_innnn-subty+1(3).    "relationship type
      lv_otype = old_innnn-otype.
      lv_plvar = old_innnn-plvar.         "planned version
    *Check for existing relationships between a BP of that type with other external objects
      select * from hrp1001 into table lt_hrp1001
        where plvar = old_innnn-plvar
          and sobid = lv_sobid
          and sclas = lv_sclas
          and rsign = lv_rsign
          and relat = lv_relat
          and otype = lv_otype.
    *Loop through the table and compare the existing relationship with the new one
      loop at lt_hrp1001
        into ls_hrp1001.
    Check that the end date for the existing relationship is after (greater than) the start date for the new relationship.
        if ls_hrp1001-endda > old_innnn-begda and ls_hrp1001-begda < old_innnn-endda.
          message e004(/cco/a3_msg) with lv_relat lv_sobid '' ''.
          exit.
        endif.
      endloop.
    endmethod.
    Edited by: Lovemore Mandimika on May 14, 2008 10:36 AM

    Hello kpmolinarivera,
    The iTunes Store country can be changed in Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Allen

  • Tax code not flowing while ME59N in case of conversion of service PR to PO

    Hello,
    I am trying to create automatic PO using ME59N for Service PR. But system is showing an error Tax code is not found. In my case I cannot create Contract. I have to maintain Service conditions in ML33 from which the Service amount will flow. Everything else is working fine, except that I cannot bring the tax code. My vendor is ERS vendor. So the tax code is manadatory and I don't want to remove the check.
    Please suggest how to bring the tax code automatically? I have tried creating inforecord using the material group of the service. But it has not worked.
    Please help. Useful suggestions will be awarded.

    I have found a solution in standard itself

  • Certain songs wont transfer from Itunes to Iphone, telling me to authorize computer and when I do so, it's telling me that computer is already authorized. So why am I not able to tranfer certain songs from itunes to my iphone?

    Certain songs wont transfer from my itunes to my iphone, it's telling me that the computer is not authorized but once I go up to Store and authorize computer and enter in my info, it tells me that the computer is already authorized. So why am I not able to transfer certain songs from my itunes to my iphone?

    Hello Jfalconi19,
    Thank you for providing the details of the issue you are experiencing with transferring the apps purchased from the iTunes Store.  I recommend following the steps in this article:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for