I need to point the xmlValue.getParentNode().getNextSibling() node ?

Hi,
I am new to BDB development. Here i am working on node traversal using XmlValue class.
I have some of the queries on traversing the nodes using XmlValue class….
Steps followed for the same are as below…
1. Opening the BDB Environment
2. Loading the XML files in to the container(creating the container)
3. Applied the requested Xquery on the container.
4. After applying the Xquery on the container, the result is captured in to XmlResults class which is displayed as string format(as below).
<HCR:hapGeminimmIINodeEntry hapGeminimmIINodeId="1">
<HCR:hapGeminimmIINodeuserName>NULL</HCR:hapGeminimmIINodeuserName>
<HCR:hapGeminiblackBoxLogStreamTable>
<HCR:hapGeminiblackBoxLogStreamEntry hapGeminimmIINodeId="1" hapGeminiblackBoxLogStreamId="1">
<HCR:hapGeminiblackBoxLogStreamloggingEnabled>2</HCR:hapGeminiblackBoxLogStreamloggingEnabled>
</HCR:hapGeminiblackBoxLogStreamEntry>
</HCR:hapGeminiblackBoxLogStreamTable>
<HCR:hapGeminicoreFileMgmtLogStreamTable>
<HCR:hapGeminicoreFileMgmtLogStreamEntry hapGeminimmIINodeId="1" hapGeminicoreFileMgmtLogStreamId="1">
<HCR:hapGeminicoreFileMgmtLogStreamloggingEnabled>2</HCR:hapGeminicoreFileMgmtLogStreamloggingEnabled>
<HCR:hapGeminicoreFileMgmtLogStreamconfigStreamLevel>1</HCR:hapGeminicoreFileMgmtLogStreamconfigStreamLevel>
<HCR:hapGeminicoreFileMgmtLogStreamstreamDestination>NULL</HCR:hapGeminicoreFileMgmtLogStreamstreamDestination>
</HCR:hapGeminicoreFileMgmtLogStreamEntry>
</HCR:hapGeminicoreFileMgmtLogStreamTable>
</HCR:hapGeminimmIINodeEntry>
Rest of the code fragment for traversing the nodes are mentioned below…. Ignore the “#text” nodes
Initially the variable “m_resultValue” of type XmlValue is pointing to the node <HCR:hapGeminimmIINodeEntry hapGeminimmIINodeId="1">
XmlResults resultSet; // Result captured after applying the Xquery on the container….
XmlValue m_resultValue;
XmlValue tableValue;
If(resultSet.next(m_resultValue))
m_resultValue = m_resultValue.getFirstChild();
while(!m_resultValue.isNull())
If(The node name ends with Table)
tableValue = m_resultValue; // Here tableValue is pointing to the node <HCR:hapGeminiblackBoxLogStreamTable>.
tableValue = tableValue.getFirstChild(); // Here tableValue is pointing to the node <HCR:hapGeminiblackBoxLogStreamEntry hapGeminimmIINodeId="1" hapGeminiblackBoxLogStreamId="1">
cout<<” Next Sibling of the node name hapGeminiblackBoxLogStreamTable is : “<<tableValue.getParentNode().getNextSibling().getLocalName<<endl; // Here I am expecting the Node Local Name as “hapGeminicoreFileMgmtLogStreamTable”. But this is displaying as empty…
m_resultValue = m_resultValue.getNextSibling();
From the above code fragment, I am expecting the output as “hapGeminicoreFileMgmtLogStreamTable”. But I am able to see the output as empty. Please let me know any suggestions on the same…
Thanks in Advance,
Regards,
Sravan.

Any white space between the element nodes, such as line returns, count as text children and have no local name. Is it possible that tableValue.getParentNode().getNextSibling() is returning the text node between&lt;HCR:hapGeminiblackBoxLogStreamTable&gt; and &lt;HCR:hapGeminicoreFileMgmtLogStreamTable&gt;?
Lauren Foutz

Similar Messages

  • I need to get the tagName after a node of the first child of the Root

    Hi All,
    I need to get the TagName of the Node immediete after the Root. I won't know what is the TagName, and based on the Tagname only I can process the records.
    For example I might receive a SALES object or a MARKETING object wrapped under the root.
    eg.
    <PARENT>
    <SALES>
    </SALES>
    </PARENT>
    or
    <PARENT>
    <MARKETING>
    </MARKETING>
    </PARENT>
    I tried to using like this
                   DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
                   File file = new File("c:/example.xml");
                   document = documentBuilder.parse(file);
                   Node node = document.getDocumentElement().getFirstChild();
                   System.out.println("node Name:" +node.getNodeName());
                   System.out.println("node Value:" +node.getNodeValue());
    It returns only something like #text, but I need the response like 'SALES'.
    Can anyone let me know if im missing something somewhere.
    thanks in advance,
    Harish

    That's because the first child of the document element is that whitespace text node between <PARENT> and <SALES>. You need to scan through the children of the document element until you find one that is an Element node.

  • I need to get the tagName of a node of the first child of the Root

    Hi All,
    I need to get the TagName of the Node immediete after the Root. I won't know what is the TagName, and based on the Tagname only I can process the records.
    For example I might receive a SALES object or a MARKETING object wrapped under the root.
    eg.
    <PARENT>
    <SALES>
    </SALES>
    </PARENT>
    or
    <PARENT>
    <MARKETING>
    </MARKETING>
    </PARENT>
    I tried to using like this
    DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
    File file = new File("c:/example.xml");
    document = documentBuilder.parse(file);
    Node node = document.getDocumentElement().getFirstChild();
    System.out.println("node Name:" +node.getNodeName());
    System.out.println("node Value:" +node.getNodeValue());
    It returns only something like #text, but I need the response like 'SALES'.
    Can anyone let me know if im missing something somewhere.
    thanks in advance,
    Harish

    Hi Blaise,
    thanks for your reply.
    but still i couldn't get the tag name even after using setIgnoringElementContentWhitespace true.
              Document document = null;
              DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
              documentBuilderFactory.setIgnoringElementContentWhitespace(true);
              try
                   DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
                   File file = new File("c:/example.xml");
                   document = documentBuilder.parse(file);
                   Node node = document.getDocumentElement().getFirstChild();
                   System.out.println("node.getNodeName: "+node.getNodeName());
                   System.out.println("node.getNodeValue: "+node.getNodeValue());
    it really confuses what im going wrong.
    can you let me know if the code that i have given is correct?
    thanks,
    Harish

  • JTree - need to get the value of a node at a specific node in the tree

    For Example here is a tree:
    Root
    -Item1
    A
    B
    C
    -Item2
    A
    B
    C
    Scenario: Somebody selects B in Item2 from the tree and drags it to a JList. Need to be able to tell the JList that the B came from Item2 and not Item1. So how do I get the Item1, Item2 value? Thanks in advance for all your help.
    Here is the code I am working with...so I have a TreeSelectionEvent(e), a DefaultMutableTreeNode(node) and my JTree(mainTree)
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node = (DefaultMutableTreeNode) mainTree.getLastSelectedPathComponent();
    getChildren(node);

    public void valueChanged(TreeSelectionEvent e) {
       javax.swing.tree.TreePath path = e.getPath();
       ...Then use path.getLastPathComponent() and path.getParentPath().getLastPathComponent() methods.
    Tristan

  • How to copy the data of one node to another of the same context

    hi experts,
          i need to copy the data of one node to the other node of the same context.
    the source node is a model node ( i.e comming from <b>RFC</b> ) and the destination node is a value node which i have creted.
    what i have done is.
    i have read the source node using wizard
    do.
    elem_t_p0591 = node_t_p0591->get_element(
        index = sy-index ).
        IF ( elem_t_p0591 IS INITIAL ).
          EXIT.
        ENDIF.
    elem_t_p0591->get_static_attributes(
          IMPORTING
            static_attributes = stru_t_p0591 ).
    IF stru_t_p0591 IS NOT INITIAL.
          wa_p0591 = stru_t_p0591.
          APPEND wa_p0591 TO itab_p0591.
        ENDIF.
      ENDDO.
    and then i am trying to read the destination node so the tha data i have got by above method can be binded to the destination node.
    but when i am trying to get the child node it is giving me a dump saying that
    <b>'Access via 'NULL' object reference not possible' </b> i understand this because when i debug my value node is becoming <b>initial</b>, and when i am trying to access the destination node using this <b>initial</b> node it will give me a dump,
    but what is the work aroud for this.
    Plz help.
    Regards,
    Santosh.

    Hi Santosh,
                   I tried replicating your behaviour in my system. This is what my context structure looks like:
    Node_Test (c-> 0:n)
      Name(attribute)
      Node_Test2 (c-> 0:1)
         Name2(attribute)
    Now when i try to access Node_Test2 then it returns me (initial) i.e. no reference and i believe the reason is that my parent node, Node_Test, is of type table( because of the cardinality) so I am expected to perform an operation on my sub node, Node_Test2, based on the node i have selected, or have specified via index .. 1 is taken by default, in Node_Test.. which in WDDOINIT is initial as i havent got access to my view yet.. so instead what you can do is bind data to your parent node, relevant data ofcourse, and then bind the recieved data to your child node i.e. Node3.
    I am pasting the code here for your reference :
    method WDDOINIT .
           DATA:
             node_test                           TYPE REF TO if_wd_context_node,
             elem_test                           TYPE REF TO if_wd_context_element,
             stru_test                           TYPE wd_this->element_test ,
             lt_table   LIKE TABLE OF stru_test,
             item_test_1                         LIKE stru_test-test_1.
         navigate from <CONTEXT> to <TEST> via lead selection
           node_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
         @TODO handle not set lead selection
           IF ( node_test IS INITIAL ).
           ENDIF.
         get element via lead selection
           elem_test = node_test->get_element(  ).
         @TODO handle not set lead selection
           IF ( elem_test IS INITIAL ).
           ENDIF.
    stru_test-test_1 = 'Anoop'.
    APPEND stru_test to lt_table.
    stru_test-test_1 = 'Avi'.
    APPEND stru_test to lt_table.
    stru_test-test_1 = 'Sid'.
    APPEND stru_test to lt_table.
    CALL METHOD node_test->bind_table
      EXPORTING
        new_items            = lt_table
       set_initial_elements = ABAP_TRUE
       index                =
          DATA:
            node_t2                             TYPE REF TO if_wd_context_node,
            elem_t2                             TYPE REF TO if_wd_context_element,
            stru_t2                             TYPE wd_this->element_t2 ,
            item_t2_1                           LIKE stru_t2-t2_1.
        navigate from <CONTEXT> to <TEST> via lead selection
         node_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
        @TODO handle not set lead selection
          IF ( node_test IS INITIAL ).
          ENDIF.
    <b>*     navigate from <TEST> to <T2> via lead selection
          node_t2 = node_test->get_child_node( name = wd_this->wdctx_t2 ).</b>
    <b>*     alternative navigation via index
         Node_T2 = Node_Test->get_Child_Node(
           Name = `T2` Index = 1 ).</b>
        @TODO handle non existant child
        if ( Node_T2 is initial ).
        endif.
        get element via lead selection
          elem_t2 = node_t2->get_element(  ).
        get single attribute
          elem_t2->get_attribute(
            EXPORTING
              name =  `T2_1`
            IMPORTING
              value = item_t2_1 ).
    endmethod.
    I hope this helps.
    Regards,
    Anoop

  • Just bought a 2tb external hard drive with the intention of moving my iPhoto data files on it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app? Do I need to point iPhoto to this new location?

    Just bought a 2tb external hard drive with the intention of moving my iPhoto data files to it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app?
    Do I need to point iPhoto to this new location?
    Thanks!

    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    Assuming a Managed Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • I forgot to back-up my information (pictures, excel documents) on MAC before installing boot camp and Windows.  I am mid-way through the process, at the point where I need to install the drivers. Will i be able to retrieve my documents on MAC or not?

    I forgot to back-up my information (pictures, excel documents) on MAC before installing boot camp and Windows.  I am mid-way through the process, at the point where I need to install the drivers. Will i be able to retrieve my documents on MAC and finalizing the Windows 7 installation (for the 1st time) or not?
    I am worried that  may lose my information... Appreciate any feedback! Note: already half-way in the process of installing!

    Yes, IF you picked the right partition, as in the Boot Camp partition. If everything is done right you should be able to boot into the Mac side.
    If you already booted into Windows and are at the point of installing the Boot Camp Drivers your already done installing Windows! Yea! All you need to do is just install the drivers and everything should work normal.
    The Windows partition and the Mac partition are seen as two different HD's now as far as the computer knows.
    You can use the Boot Camp control panel in Windows to boot into the Mac side and the Startup Disk in System Preferences on the Mac to switch to Windows. If you can't then press and hold down the Option key untill you get the boot screen.

  • I get black screen on my new macbook air but I can see the mouse pointer. usually need to restart the computer so everything works as it should

    I get black screen on my new macbook air but I can see the mouse pointer. usually need to restart the computer so everything works as it should

    Repair Disk
    Steps 2 through 8
    http://support.apple.com/kb/PH5836
    If that does not help, reinstall OS X

  • I have an issue where coloured dots (small squares) appear on my screen and it gets to the point where the entire screen freezes although the mouse still moves but nothing works and I need to turn the computer off at the switch. Any ideas?

    I have an issue where coloured dots (small squares) appear on my screen and it gets to the point where the entire screen freezes although the mouse still moves but nothing works and I need to turn the computer off at the switch. It doesn't happen all the time but is very annoying. Any ideas?

    Reset the SMC and PRAM, if the issue continues then you likely have a failing GPU (hardware) that requires repair. To be sure take it in and have it professionally assessed.
    Intel iMac SMC and PRAM resets

  • WHAT IS THE POINT OF FOLDER IN DOCK IF YOU NEED TO KEEP THE ORIGINAL FOLDER

    Hi there,
    If I put a folder of pictures on the new Leopard dock, can I trash the original folder? I want to keep my desktop clean and just have it in the dock but I think it will just delete the folder if I do that. If this is the case, what is the point of keeping the folder in the dock if you still need to keep the same original folder on the desktop or elsewhere on your hard drive? Thanks to anyone who can hep with this!

    Daniel Avedon wrote:
    If I put a folder of pictures on the new Leopard dock, can I trash the original folder? I want to keep my desktop clean and just have it in the dock but I think it will just delete the folder if I do that.
    If it behaves as in Tiger, then the folder will indeed be deleted.
    If this is the case, what is the point of keeping the folder in the dock if you still need to keep the same original folder on the desktop or elsewhere on your hard drive?
    If the folder is on your desktop, then it's rather easy to access, but if it's buried on your hard drive, you my not want to open a Finder window if you need to access it regularly. Basically, placing a folder in the Dock creates an alias (shortcut) to the folder. But if you place the folder in the Dock and move the actual folder to your documents folder (for example) instead ot trashing it, your desktop will still be clean, and you'll be able to access your folder easily. IMO, it's not that bad…

  • I need to upgrade the silverlight version that is deployed with the SCCM 2012 client installation

    We have SCCM 2012 SP1 installed and I need to upgrade the version of silverlight that get installed on the client deployement.
    The version that is automaticly deployed is 5.1.10411.0 and this one is not compatible with Firefox.  When you click on Application Catalog it start the browser but it fails to load because of the silverlight plug-in that is not up to date.  The
    version that is working fine is the 5.1.20913.0 and it's already installed on my SCCM site server.
    So that is why I'm looking to upgrade the silverlight that is installed with the SCCM client.
    I know that a simple workarround would be to create a package that would be deployed after the client gets installed, but why not changing the original package at the source instead of installing twice the same software the get the right version!
    Is there someone that could point me where I could upgrade this Silverlight prerequirement software version ?

    Note that I have not tested either of these and they will not be supported by Microsoft. 
    1. Copy your new version of Silverlight.exe to C:\Program Files\Microsoft Configuration Manager\Client\i386
    (you'll have to re-distribute the client package after this).
    OR
    2. You could edit the ccmsetup.xml file with an alternative location for silverlight.exe
    </Item>
     <Item FileName="i386/Silverlight.exe" FileHash="417B442E128D821119008ACEEEE6CDC2A41224377A829B6EC52BABA2724F0151">
      <Applicability Platform="ALL" OS="ALL">
       <Skip>Embedded</Skip>
      </Applicability>
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • ASA 5505 Failure replaced and need to move the license key?

    Can someone point me in the right direction? My ASA 5505 died due to a power surge and I swapped it with a spare. I had Security Plus and a 50 user license and need to move the license keys from the failed ASA 5505 to the new one. I kept both my emails with the activation keys, but not sure how I get this transferred?  Thanks in advance.
    Joe

    I think this is totally unacceptable. For anyone else who uses a 5505 at home and has bought licenses and the hardware out of their own pocket, the idea here should be that you've already bought the hardware and the license. Seems obvious, right?
    Yes I can see the license being device specific if not only because that's the way you've designed your licensing activation schema; but if I've just had your product fail and bought another replacement, there should be an understanding or agreement between Cisco and the user that we can reinstate any licenses we've already bought.
    Do you really believe it's fair to make someone buy something from you twice, something that they've already bought from you? Do you actually believe that? I believe that the people in the Cisco Licensing department would agree with my viewpoint and I have a pending case with them for this issue right now. I will post my result here.
    Make your products last and perhaps I can give credence to your licensing beliefs, until then your products fail and so does your licensing logic.

  • Upgrading to FF, need to upgrade the glass too... 5D mkiii and 1 lens, or 6D and 2 lenses?

    I've been shooting for several years now, and my trusty 40D has been in dire need of an upgrade. I have had some good paying jobs in the last few months and I have some cash to play with. I've just been beating my head against the wall trying to figure out the best course of action.
    I recognize that style determines one's needs, but my needs change. Sometimes it's portrait, studio/location... sometimes it's event, action... sometimes low light and long exposure. Increasingly, paid video is becoming part of my workflow.
    I waited to see what the 70D would offer, I was impressed with the new AF system, fps, ISO performance, as well as the usefulness of the flip screen/wifi (more than I thought I would have been). The problem is that it's still a crop sensor, and still on the lower end of the "prosumer" line. I try not to let my ego get in the way too much, as I know that an expensive camera doesn't always make for a good photographer. However, after shooting the xxD line for many years (since the 10D), I would like to move up, and I don't know that I have the patience to wait for the 7D mkii.
    I started looking at the 6D as the entry full frame option. The price is right, and if you put it together right, you can get the body and a good kit lens for around $2200. The limitations, as far as I can tell, would be AF system (number of points, and virtual lack of cross-type), fps, build quality, lack of headphone jack, single card slot, sync speeds, etc. If you are familiar with this camera, you are familiar with its functional shortcomings, especially when compared to the Nikon counterpart, the D600. However, I have to respect this camera in its sheer photo taking power, and that in some cases it carries better sensor ratings than the 5Dmkiii. The end result will be as good, if not better than the 5Dmkiii, so long as you are able to get the subject in focus and in frame due to the bogus AF system/fps rating. Seemingly, this camera will not do a lot of the work for you, not as much as it's big brother will, anyway.
    I had the opportunity to shoot with a 5D mkiii, and I was blown away with every aspect of its layout and functionality. The AF system was stellar, the ISO performance was amazing, the IQ was well beyond anything I am used to. I was also able to use a full stable of L glass along with it, as well, so I could really express the potential of the camera. Every shot I got was in focus. The grouping options worked flawlessly, and I didn't have to focus/recompose as I have gotten so accustomed to. On the video side, I like the headphone jack and greater resistance to moire (supposedly). It felt solid in my hand, fit perfectly, and wasn't too heavy to carry around a 12 hour corporate gig (even with a broken finger). Was pretty stoked on it.
    All of this being said, I need to upgrade the body. This much is clear. The limitation is that my lenses aren't up to par. Half of them are EF-S, and the EF lenses I have aren't much worth mentioning (28-135mm IS, 50mm f2.5 compact macro). The big question is, do I spend the money on the 5D for the greatly advanced features and functionality, and suck it up on the lenses for a while? Maybe just get the 24-105 and use that for basically everything? Or should I get the lesser 6D, and play with some classic lens options like the 16-35mm, 24-70mm, 70-200mm, etc? After all, the focus system wont matter if I don't have the lens to capture it anyway.
    What is the better option?
    1. Buy the more functional (expensive) body and maybe one lens to start.
    2. Buy the less functional (cheaper) but equally IQ rated body and a few lenses, or other pro-business expenses?
    Common knowledge seems to state that you invest in glass first.
    In the past, I have felt limited by my camera's ability to keep up with low light and focus issues. I don't want to voluntarily step into an inferior system.  Conversely, I don't want to get saddled with a pricey body and no glass to use with it.  Are the technology gains in the 5D mkiii worth it if my budget is limited?
    Just wondering if anyone has any insight to this dilemma?

    Hi jadphoto, thanks for getting back.  I shot film for many years as well.  It gave me a really good foundation for making sure that you do everything as right as possible before hitting the shutter.  Making the change to digital was certainly revolutionary in the way that I was able to approach photography (cost, learning curve, instant gratification).  I was hoping that the move from crop to FF would be liberating and vision-changing, as well. 
    Not needing a tripod as often would be awesome.  I do some long exposure stuff that will always require it, but I would like to be able to get some sharp, clean, hand-held images when I don't feel like lugging it around.  I was at a music festival recently, and basically all of my night shots were hand-held, or taken with the camera resting on something.  A lot of the shots were unusable because of blur or noise.  The lighting in those scenarios can be tough, and I've read that the 6D and 5D can basically focus in the dark.  Not needing external flash and a tripod would be great.  On the 40D, I don't like to push the ISO above 1250 (defintely the extreme end for that camera, in my opinion).
    I was looking at the 24-70 2.8, or the 24-105 4 IS in that range.  The 24-70 has a lot of clout, and I like the lens.  I really like the bokeh/DOF of a 2.8.  However, the 24-105 has a little more reach, and the IS which is nice.  So I don't know that I would want to do double duty in that range, and like everything else, they seem to spread the awesome features around a bit.  I have really enjoyed the 28-135 over the years.  It has a solid build, really good optical results, but it can be a bit long on a crop sensor, so it gets limited indoor use.  I also recently dropped it from about chest high onto the street... while attached to the body... lens down (first time I've ever done something like that).  It slipped out of the tri-pod collar which was not fully secured.  The filter shattered, and I had to convince the barrel to go back into position so it would zoom properly, but everything alse still works fine.  Still sharp with fast AF.  Pretty incredible.  The 50 compact macro can be a lot of fun for still-life/detail/nature stuff, but I rarely take it out for portrait because the AF is loud and slow, and the results are not always spot-on.  Could be user error.  I might need to keep trying it out, but it doesn't get a lot of love in the paid portrait department.  My 50 1.8 had a cheap build too, but would take some pretty awesome photos (sometimes). 
    I figured the rest of the kit would make sense once I settled on a mid-range.  I have an 11-18 EF-S that I would have to find a replacement for.  The 24mm on a FF was impressively wide, and might require less immediate attention.  Makes me realize the tunnel vision effect of the crop (good when you want it for reach)...  With that being said the 70, 105, and even 135 might need some help reaching on the FF.... and I've always wanted a fancy, beige/white 70-200.  I just don't know what would get the most use yet.  I was able to use a 70-200 2.8, and I loved the cross-room candids I could get when I wasn't all up on people.  A lot of time, they didn't know I was shooting them.  It's just a beast, though.  It's big, and not too discreet, which can serve the ego but can get you in trouble too.  I can imagine that it is a great tool to have when you need it.

  • HR: Need to Send the Paysilp as a PDF file through Mail to Employees

    Dear All ,
           Need to Send the Paysilp as a PDF file through Mail to Employees.
           can anyone please suggest any Standard Function Modules which takes the Payslip Form as input and convert it into PDF and can send it through mail to the concern employees.
          Can anyone please explain the procedure in detail.
    Thanks in Advance,
    Regards.

    venu,
    below is code which helps to generate pdf ,,,,hope u know how to use the mail sending function
    data:
    fm_name TYPE RS38L_FNAM, "Smart Forms: FM Name
    sf_name TYPE TDSFNAME
    value 'YOUR_FORM_NAME', "Smart Forms: Form Name
    P_OUTPUT_OPTIONS TYPE SSFCOMPOP,
    P_JOB_OUTPUT_INFO TYPE SSFCRESCL,
    P_CONTROL_PARAMETERS TYPE SSFCTRLOP,
    P_LANGUAGE TYPE SFLANGU value 'E',
    P_E_DEVTYPE TYPE RSPOPTYPE.
    data:
    P_BIN_FILESIZE TYPE I,
    P_BIN_FILE TYPE XSTRING,
    P_OTF type table of ITCOO,
    P_DOCS type table of DOCS,
    P_LINES type table of TLINE,
    name type string,
    path type string,
    fullpath type string,
    filter type string,
    guiobj type ref to cl_gui_frontend_services,
    uact type i,
    filename(128).
    GET SMARTFORM FUNCTION MODULE NAME ---
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = sf_name
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    I_LANGUAGE = P_LANGUAGE
    I_APPLICATION = 'SAPDEFAULT'
    IMPORTING
    E_DEVTYPE = P_E_DEVTYPE.
    P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XSF = SPACE.
    P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XDF = SPACE.
    P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
    P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    P_CONTROL_PARAMETERS-GETOTF = 'X'.
    ****...................................PRINTING.........................
    CALL FUNCTION fm_name
    EXPORTING
    CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
    OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
    (....) <--- your form import parameters
    IMPORTING
    JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    ****...................................CONVERT TO PDF...............
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    BIN_FILESIZE = P_BIN_FILESIZE
    TABLES
    OTF = P_OTF
    DOCTAB_ARCHIVE = P_DOCS
    LINES = P_LINES
    EXCEPTIONS
    ERR_CONV_NOT_POSSIBLE = 1
    ERR_OTF_MC_NOENDMARKER = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    now you can mail the pdf.
    Reward points if helpful
    Regards,
    jinesh

  • How do I create a stand-alon​e execute out of my teststand sequence? I need to run the execute on a computer that does not have the tesstand applicatio​n installed on it.

    I would also like to use the teststand basic gui window wich asks for the serial number and then runs the tests without seeing the teststand environment in the background
    ie I would like the test to look simple to the user without building a new gui.
    Sincerely
    Aik Lewin

    Hi,
    You will need to use the Run Engine Installation Wizard found on the Tools menu. In addition you need to create a installation set for the operator interface.
    Look at Chapter 16 Distrubuting TestStand ( chapter 17 for version 2).
    Once you have created your installation, install is on your new system.
    The serial number etc is part of the process model. When you run the entry point 'Test UUTs' the PreUUT callback is executed which asks the user for the serial number.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for