Which API to get Annotation Authoer information?

Hi, I read through the API document but I cannot find an API to extract the Author information.
I can find PDAnnotGetTititle, PDAnnotGetSubType, PDAnnotGetDate.
Is there a PDAnnotGetAuthor?

If there isn't a direct API, get the Cos object, and use the Cos API
to get the dictionary entries. The PDF Reference will tell you what
keys are used to store specific items.
Aandi Inston

Similar Messages

  • Which command can get physical disks information?

    Hi all,
    I need to put datafiles, controlfiles and logfiles into different disks to get better performance.
    I used "df -k" to get the disks' spaces, and I only got the filesystem information.
    I CAN NOT get physical disks information. How can I do that?
    Thanks for your help.

    I need to put datafiles, controlfiles and logfiles into different disks to get better performance.<br>If the disks are different but under the same disk controler, the result will be the same.<br>
    If you want tune, you need to know what disks are under what disk controler.<br>
    <br>
    Anyway, are you sure that you need this repartition ? Is there no other way to increase perf before to think disk repartition ?<br>
    <br>
    And to conclude, try to see in help for IBM AIX : Which physical disk is associated with your logical volume? => lslv<br>
    <br>
    Nicolas.

  • Is thre any API to get WiFi RSSI informations?

    There is the new function to get RSSI of WiFi. Is thre any API to get that informations?
    iOS 8: Wireless roaming reference for enterprise customers - Apple Support
    There is new function to Measuring Client RSSI using AirPort Utility.
    BSSID
    Last RSSI
    Channel
    Last Time Found

    Hi Pratap,
    thanks for your reply.
    only user API can resolve my requirement.
    I have an OAF page in ebs user can link from other application system named 'aaa' after login 'aaa' system,and user can open the oaf page without input username and password,as i have granted the oaf page to guest user.
    Before display the oaf page, i should get the previous page'url to check if the user login 'aaa' application system first.
    thanks,
    Tao
    Edited by: Ming Tao on 2010-3-16 上午4:19

  • API to get Work Item and Attached Information

    Dearl all,
    Is there any API to get the work items assigned to specific users and their attached information during runtime?
    Thanks, Jerome

    HI Jerome,
    This code will help you: API FM is " 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    DATA : w_name TYPE sos04-l_adr_name.
    SELECT-OPTIONS :
    Recipient address
      s_name FOR w_name DEFAULT sy-uname NO INTERVALS.
    START-OF-SELECTION.
    E-mail Abap report
      PERFORM f_send_mail.
    Form f_send_mail
    FORM f_send_mail.
    Data Declaration
      DATA:
        l_datum(10),
        ls_docdata    TYPE sodocchgi1,
        lt_objpack    TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
        lt_objhead    TYPE TABLE OF solisti1   WITH HEADER LINE,
        lt_objtxt     TYPE TABLE OF solisti1   WITH HEADER LINE,
        lt_objbin     TYPE TABLE OF solisti1   WITH HEADER LINE,
        lt_reclist    TYPE TABLE OF somlreci1  WITH HEADER LINE,
        lt_listobject TYPE TABLE OF abaplist   WITH HEADER LINE,
        l_tab_lines TYPE i,
        l_att_type  LIKE soodk-objtp.
      WRITE sy-datum TO l_datum.
    List of Users According to Logon Date and Password Change
    NOTE: Create ALI/OTF Document in Spool
        MESSAGE ID 'ZWF' TYPE 'I' NUMBER '001'.
      SUBMIT ZMM_MIR_RPT_FOR_WORKFLOW VIA SELECTION-SCREEN WITH valid = 'X'
                      WITH notvalid = space
                      WITH unlocked = 'X'
                      WITH locked = space
                 EXPORTING LIST TO MEMORY AND RETURN.
                 IF sy-subrc = 0.
      ENDIF.
    MESSAGE ID 'ZWF' TYPE 'I' NUMBER '000'.
    Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'LIST_FROM_MEMORY'.
      ENDIF.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = lt_listobject.
    ENDIF.
    IF sy-subrc = 0.
    endif.
    Because listobject is of size RAW(1000)
    and objbin is of size CHAR(255) we make this table copy
      CALL FUNCTION 'TABLE_COMPRESS'
        TABLES
          in             = lt_listobject
          out            = lt_objbin
        EXCEPTIONS
          compress_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'TABLE_COMPRESS'.
      ENDIF.
    NOTE: Creation of attachment is finished yet.
    For your report, the attachment should be placed into table
    objtxt for plain text or
    objbin for binary content.
    Now create the message and send the document.
    Create Message Body
    Title and Description
      ls_docdata-obj_name = 'Outstanding MIR'.
      CONCATENATE 'Outstanding MI-Report sent by' sy-uname l_datum                                     "#EC *
            INTO ls_docdata-obj_descr SEPARATED BY space.
    Main Text
      lt_objtxt = 'Outstanding MIR Report' &
                  'List of Outstanding Goods Receipts under inspection 103 movement'.                       "#EC *
      APPEND lt_objtxt.
    Write Packing List (Main)
      DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
      READ TABLE lt_objtxt INDEX l_tab_lines.
      ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
      lt_objpack-transf_bin = 1. " If u want to CLEAR inbox evrytime
      lt_objpack-head_start = 1.
      lt_objpack-head_num = 0.
      lt_objpack-body_start = 1.
      lt_objpack-body_num = l_tab_lines.
      lt_objpack-doc_type = 'RAW'.
      APPEND lt_objpack.
    Create Message Attachment
    Write Packing List (Attachment)
      l_att_type = 'ALI'.
      DESCRIBE TABLE lt_objbin LINES l_tab_lines.
      READ TABLE lt_objbin INDEX l_tab_lines.
      lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objbin ).
      lt_objpack-transf_bin = 'X'.
      lt_objpack-head_start = 1.
      lt_objpack-head_num = 0.
      lt_objpack-body_start = 1.
      lt_objpack-body_num = l_tab_lines.
      lt_objpack-doc_type = l_att_type.
      lt_objpack-obj_name = 'ATTACHMENT'.
      lt_objpack-obj_descr = 'Outstanding MIR'.                   "#EC *
      APPEND lt_objpack.
    Create receiver list
      LOOP AT s_name.
        lt_reclist-receiver = s_name-low.
        lt_reclist-rec_type = 'B'.
        APPEND lt_reclist.
      ENDLOOP.
    Send Message
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = ls_docdata
          put_in_outbox              = ''
        TABLES
          packing_list               = lt_objpack
          object_header              = lt_objhead
          contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          receivers                  = lt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc = 0.
      Document sent
        MESSAGE ID 'ZWF' TYPE 'S' NUMBER '002'.
      ELSE.
      Document <&> could not be sent
        MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
           WITH ls_docdata-obj_name.
      ENDIF.
    ENDFORM.
    Thanks and Regards,
    Prabhakar Dharmala

  • How to get the log information when using a class?

    Hi All,
    I have a simple question, which I don't know how to solve. I am using org.apache.commons.logging.Log and LogFactory to do some logging. A typical situation is exemplified in the following code snippet.
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class LogClass {
        private static final Log LOG = LogFactory.getLog(AClass.class);
        public void logit(){
            LOG.debug("This is the debugging log.");
    public class AClass{
        public static void main(String[] args) {
            LogClass l=new LogClass();
            l.logit();
    }But this way, I do not get the log information from the class LogClass. Could anybody please help?
    Many thanks.

    jschell wrote:
    jverd wrote:
    ...configuration in log4j.xml or log4j.properties.And far as I recall you need one of those two also. If there is no config then there is no output.I thought it used some default config if no file is present, but I could be mistaken. Either way, it adds to the possible problems that the OP could be having, any of which are consistent with his rather vague question.
    1) He's passing the wrong class to the LogFactory, and hence getting a logger with the wrong name, so he's seeing a different name than he expects in the output that's being produced.
    2) His config file does not contain the proper format to include the actual classname, independent of the logger's name, so he's missing a piece of desired information in each line of the output that's being produced.
    3) His config file indicates a threshold that's less verbose than the level at which his code is logging, so no output is present when he wants it.
    4) His config file is missing (or not where it's expected to be), so no output is being produced at all.
    5) His config file is missing (or not where it's expected to be), so a default level or format is being produced, effectively the equivalent of one of the misconfigurations described in #2 and #3.
    Since the OP seems to have vanished, we may never know.

  • How to get TaskId's Information using UWL in Webdynpro?

    Hi,
      I've to get TaskId's Information using UWL in WebDynpro
      from SAP R/3 workflow.
      For e.g.  Name, Creation Date, Status etc.
    I'm able to see property Value in WebDynpro but instead of Property Value I want same Information in WebDynpro without using any Functional Module from R/3
    I'm giving the XML file structure which I'm using
    I want to display information about the task Id which I'm giving in this configuration.
    <?xml version="1.0" encoding="utf-8"?>
    <! DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd' [
      ]>
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType name="uwl.task.webflow.TS91000129.UWL" connector="WebFlowConnector"
    defaultView="Test" executionMode="default" defaultAction="launchWebdynpro">
    <ItemTypeCriteria systemId="UWL" externalType="TS91000129" connector="WebFlowConnector"/>
    <Actions>
    <Action name="launchWebDynPro" handler="SAPWebDynproLauncher"
      returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="width=800,height=600,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
      <Properties>
        <Property name="WebDynproApplication" value="TEST"/>
        <Property name="WebDynproDeployableObject" value="local/TEST1"/>
        <Property name="isnewwindow" value="1"/>
        <Property name="fruit" value="apple"/>
        <Property name="DynamicParameter" value="wi_id=${item.externaId}"/>
        <Property name="System" value="LocalSystem"/>
      </Properties>
    </Action>
    </Actions>
    </ItemType>
      </ItemTypes>
    </UWLConfiguration>
    Then in WebDynpro application I'm using this code
    String text = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("DynamicParameter");
    If I give any other property name I'm able to get in WebDynpro application.
    But I tried it for Task Id using Dynamic Parameter I was getting a Blank Value.
    Please Help Me.

    Hi Niharika,
    I think you have a typo in your code. You can retrieve the work item id by using [code]<Property name="DynamicParameter" value="wi_id=${item.<b>externalId</b>}" />[/code] instead of [code]<Property name="DynamicParameter" value="wi_id=${item.<b>externaId</b>}"/>[/code]
    In addition, you can get values from the work item container by extracting them as custom attributes:
    [code]<ItemType name="uwl.task.webflow.TS90000001.<system id>" connector="WebFlowConnector" ...>
      <ItemTypeCriteria ... />
      <CustomAttributes>
      <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="<element name>" ...>
      <Attribute name="<element name>" type="string" displayName="<element description>" />
      </CustomAttributeSource>
      </CustomAttributes>
      <Actions>
        <Action name="launchWebDynPro" handler="SAPWebDynproLauncher">
          <Properties>
            <Property name="DynamicParameter" value="<custom param>=${item.<element name>}" />
          </Properties>
          <Descriptions default="" />
        </Action>
      </Actions>
    </ItemType>[/code]
    Hope this helps,
    Mikko

  • Which Api..?

    Hello everyone, as a newbie in xml, I would like your help :)
    I would like to create an application, that allows a user to create/modify/save an xml file that follows a specific w3c xml-schema,not dtd (although if it gets much easier with dtd i will probably use that in the end). The user should be able to see the tree structure of the xml and to be able to navigate through it [in one frame(left)] and fill in values to the fields that he wants(e.g. add in the xml that "david" is the 'author') [in a second frame(right)]. Ideally, this should run on a web server, so that the user can create/modify/save the xml by visiting a webpage.
    The procedure to do so (the way i have it in my mind right now) is this:
    1)somehow parse my xml-sxhema and create a tree(?) data structure (on the memory(?)) that contains all the empty fields
    2)present this structure to the user
    3)when the user clicks on an a tree item [left frame], that has fields that can be filled, then I must find out(how?) which are these fields and present them to the user, to fill them in[right frame].
    I have been searching on the subject on the web the last few days, but got myself really confused. I am not sure which API to use e.g. JAXB, JAXP, DOM, JDOM, SAX etc.Since random access of the xml is needed, will I need to create java classes that manipulate the xml file or a simple parser will be fine?
    Which one would you recommend me to use and why? Please enlighten me :)
    Thanx in advance, your help is greatlly appreciated!
    -Orestis

    The Price_Request procedure in the QP_PREQ_PUB package is the pricing engine API that is available for public use. However, you need to prepare data before and for calling this API. Here is a proposed structure
    Qp_Attr_Mapping_Pub.Build_Contexts
    ...here you build the various data records (E.g. LINE_TBL_TYPE, CONTROL_RECORD_TYPE etc..)
    QP_PREQ_PUB.PRICE_REQUEST -- to compute the price
    I suggest you look at the price_line and price_order apis that order management uses. While these are not public apis, they will give you a sense for how to call the pricing engine.
    Hope this helps.
    Thanks.
    Kannan

  • Cannot access external data , Failed to get the document information.

    Hi All,
    In my dashboard there are live office connections which has optional prompts defined in SAP BI. I have bound the cells to these prompts in live office object properties.
    There are no errors while refreshing the LO connections from excel sheet.
    But when i run that dashboard and give BLANK value for that prompt then it throws the error :
    Cannot access external data , Failed to get the document information. (LO 26315).
    Reply highly appreciated.
    Thanks & Regards,
    DJ

    Hi Hardik,
    I am building a similar solution as yours connecting webi reports to Bex queries and reading the webi data through live office into the dashboards. I am using almost similar versions as yours - BW 7.1 SP5, BO 4.1 SP4, Dashboards and Live Office SP4 versions. I am facing issues setting up the live office connections itself. I create the Live office connections within an excel and when I try to import this excel spreadsheet into my dashboard designer, it runs forever and crashes.
    Could you please list out the steps you performed to get the Dashboard to preview live office data? Do you have OLAP connections for BW cubes and created WebI reports using these connections or You created a Universe on top of the Bex Queries?
    It would be great if you could share the steps performed.
    With respect to your issue, check if the report engine service is running. Do you have any error message details apart from this error?
    Thanks.
    Regards,
    Rohini.

  • IPhone SDK: UIWebView - How to get the anchor information from  URLRequs

    I was planning to use the UIWebView but i am stumped now.
    When the user clicks on a hyperlink, the web view delegate shouldStartLoadWithRequest is called and it does not contain the anchor information.
    For e.g. if the href is say #01_02. This to a normal browser is a local anchor. The URL in the NSURLRequest contains just the file name information not the anchor.
    In my particular case a anchor can be some other view of the topic which i will generate and keep it ready for the browser at this point. But since i don't get the anchor information it just shows the current page.
    Is there a way to get the original value encoded in the HREF?
    Thanks in advance,
    -TRS

    I may not have understood your question but if you want to pull out the anchor information out of a request, have you tried the fragment property of the NSURL object?
    // request is type (NSURLRequest *); within shouldStartLoadWithRequest
    NSString *fragment = \[\[request URL\] fragment\];
    Usually this will have the anchor without the #, in your case 01_02.

  • Has anyone managed to get HP Warranty Information into SCCM?

    Has anyone managed to get HP Warranty Information into SCCM?
    I have tried a few scripts that I found on the net but none of them seem to work as I believe HP updated there site this year..

    OK, I played around a bit (scripting from a web page isn't way beyond me) but... a few caveats.  My lab isn't available right now; so all I could test was that the script ran on an HP laptop.  A single HP laptop.  and created the regkeys in
    (in my case) HKLM\software\wow6432node\CompanyName\WarrantyInformation.  So... one single test on one single workstation, and no testing of the mof edit means... I'll need your help to confirm it works.
    Anyway, below is the script.  Other caveats:  It drops a log, and then continuously adds to the log file in %temp% (of the SYSTEM, which is using %windir%\temp).  So depending upon what you want/need--you may want to change the EnableLogging
    = True to EnableLogging = False (once you confirm it works on all/most of your boxes).  The other caveat, of course, is to change the sCompanyname = to be your Company Name; although I suggest you don't have spaces or special characters in it.  Short
    'n' sweet.  Then, naturally, once you have a box with the regkeys, use Mark Cochrane's RegKeytoMof 3.0 or higher to build the mof edits for you to paste to the bottom of your configuration.mof and sms_def.mof.  In that blog above Eric Schloss was
    using DCM as the delivery method to deliver the script to populate the regkeys--that worked for him and I see no reason it wouldn't work for everyone--so once you've tested the script interactively from a psexec -s -i cmd.exe shell on an hp box (to see it
    create the regkeys) I'd make a DCM like Eric did and target a collection with a few HP laptops or desktops and confirm it works via the DCM. 
    Anyway, give this a try--again... only tested on 1 single, lonely little HP laptop.  Needs a bigger test base!
    Edit:  and... even using Regkeytomof sometimes regkeys can be tricky.  If the mof edit doesn't work right to pull the data back, post what you've added.  someone here can usually spot if there's something not right about it and help you fix
    the mof edit.
    Edit #2: removed bad space, and bad copy/paste job as discovered by sevengs.  Thanks!
    on error resume next
    EnableLogging = True
    sCompanyName = "CompanyName"
    Set oShell = CreateObject("wscript.Shell")
    Set fso = CreateObject("scripting.filesystemobject")
    strTemp = oshell.ExpandEnvironmentStrings("%temp%")
    If EnableLogging Then
    Set oLogFile = fso.OpenTextFile(strTemp & "\WarrantyInfo.log", 8, True)
    oLogFile.WriteLine "*********************************************************"
    End If
    WriteLog "Beginning warranty information lookup."
    sWebServiceHost = "http://h20000.www2.hp.com/bizsupport/TechSupport"
    sWebServiceURL = "WarrantyResults.jsp"
    sWebService = sWebServiceHost & "/" & sWebServiceURL
    'Get the system's serial number from WMI
    Set oWMIService = GetObject("winmgmts:\\.\root\cimv2")
    Set colItems = oWMIService.ExecQuery("Select SerialNumber from Win32_BIOS",,48)
    For Each objItem in colItems
    sSerialNumber = objItem.SerialNumber
    Next
    WriteLog "Serial number of system is " & sSerialNumber
    'Get the Product ID from WMI
    Const wbemFlagReturnImmediately = 16
    Const wbemFlagForwardOnly = 32
    lFlags = wbemFlagReturnImmediately + wbemFlagForwardOnly
    strService = "winmgmts:{impersonationlevel=impersonate}//./root/HP/InstrumentedBIOS"
    strQuery = "select * from HP_BIOSSetting"
    Set objWMIService = GetObject(strService)
    Set colItems = objWMIService.ExecQuery(strQuery,,lFlags)
    sProductNumber = ""
    For Each objItem In colItems
    If objItem.Name = "SKU Number" Then
    sProductNumber = objItem.Value
    End If
    If objItem.Name = "Product Number" Then
    sProductNumber = objItem.Value
    End If
    Next
    If Len(sProductNumber) = 0 Then
    WriteLog "ERROR: Product Number could not be determined."
    oLogFile.WriteLine "*********************************************************"
    oLogFile.Close
    WScript.Quit(9)
    Else
    WriteLog "Product number of the system is " & sProductNumber
    End If
    Set colItems = oWMIService.ExecQuery("Select AddressWidth from Win32_Processor",,48)
    For Each objItem in colItems
    sAddressWidth = objItem.AddressWidth
    Next
    WriteLog "Operating system is " & sAddressWidth & " bit."
    'Define the parameters string to send to the web site
    sParameters = "nickname=&sn=" & sSerialNumber & "&country=US&lang=en&cc=us&pn=" & sProductNumber & "&find=Display+Warranty+Information+%C2%BB&"
    WriteLog "Opening the web site URL " & sWebService & "?" & sParameters
    'Define and call the web site
    Set oHTTP = CreateObject("Microsoft.xmlhttp")
    oHTTP.open "GET", sWebService & "?" & sParameters, False
    'oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    oHTTP.send
    If oHTTP.Status = 200 Then
    WriteLog "Successful response from the web site."
    'WriteLog oHTTP.ResponseText
    Process oHTTP.ResponseText
    Else
    WriteLog "ERROR: the web site returned status code " & oHTTP.Status
    WriteLog "Returning exit code 1."
    nExitCode = 1
    End If
    If EnableLogging Then
    oLogFile.WriteLine "*********************************************************"
    oLogFile.Close
    End If
    WScript.Quit (nExitCode)
    Function Process (HTML)
    WriteLog "Processing the HTML returned from the site."
    intSummaryPos = InStr(LCase(html), "serial number")
    If intSummaryPos = 0 Then
    Process = ""
    Exit Function
    End If
    intSummaryTable1Start = InStrRev(LCase(html), "<table", intSummaryPos)
    intSummaryTable1End = InStr(intSummaryPos, LCase(html), "</table>") + 8
    intSummaryTable2Start = InStr(intSummaryTable1End, LCase(html), "<table")
    intSummaryTable2End = InStr(intSummaryTable2Start, LCase(html), "</table>")
    table1 = getStr(intSummaryTable1Start, intSummaryTable1End, html)
    table2 = getStr(intSummaryTable2Start, intSummaryTable2End, html)
    const HKLM = &H80000002
    Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
    sKeyPath = "SOFTWARE\" & sCompanyName & "\WarrantyInformation"
    WriteLog "Registry key path is HKLM\" & sKeyPath
    oReg.CreateKey HKLM,sKeyPath
    WriteLog "Processing the first table from the web page."
    arrGeneral = processTables(table1,1)
    'arrGeneal should be in the form Serial Number, Product Number, Product Line, Product Description, Warranty Check Date
    WriteLog "Processing the second table from the web page."
    arrContracts = processTables(table2,2)
    'arrContracts should be in the format Warranty Type, HW Warrenty Start Date, HW Warranty End Date, HW Warranty Status, Setup Warranty Start Date, Setup Warranty End Date, Setup Warranty Status
    WriteLog "Setting registry values."
    WriteLog "SerialNumber is " & arrGeneral(0)
    oReg.SetStringValue HKLM, sKeyPath, "SerialNumber", arrGeneral(0)
    WriteLog "ProductNumber is " & arrGeneral(1)
    oReg.SetStringValue HKLM, sKeyPath, "ProductNumber", arrGeneral(1)
    WriteLog "SerialLine is " & arrGeneral(2)
    oReg.SetStringValue HKLM, sKeyPath, "ProductLine", arrGeneral(2)
    WriteLog "SerialDescription is " & arrGeneral(3)
    oReg.SetStringValue HKLM, sKeyPath, "ProductDescription", arrGeneral(3)
    WriteLog "WarrantyCheckDate is " & CStr(CDate(arrGeneral(4)))
    oReg.SetStringValue HKLM, sKeyPath, "WarrantyCheckDate", CStr(CDate(arrGeneral(4)))
    WriteLog "WarrantyType is " & arrContracts(0)
    oReg.SetStringValue HKLM, sKeyPath, "WarrantyType", arrContracts(0)
    WriteLog arrContracts(1)
    WriteLog "HardwareWarrantyStartDate is " & CStr(CDate(arrContracts(1)))
    oReg.SetStringValue HKLM, sKeyPath, "HardwareWarrantyStartDate", CStr(CDate(arrContracts(1)))
    WriteLog "HardwareWarrantyEndDate is " & CStr(CDate(arrContracts(2)))
    oReg.SetStringValue HKLM, sKeyPath, "HardwareWarrantyEndDate", CStr(CDate(arrContracts(2)))
    End Function
    Function getStr(startpos, endpos, data)
    Dim tmp
    'Get the substring
    tmp = Mid(data, startpos, endpos - startpos)
    ' Remove end of line
    tmp = Replace(Replace(Replace(tmp, VbCrLf, ""), vbCr, ""), vbLf, "")
    getStr = tmp
    End Function
    Function processTables(table, ttype)
    ' Remove HTML Tags and replace with "|"
    Set re = New RegExp
    re.Pattern = "<[^>]+>"
    re.IgnoreCase = True
    re.Global = True
    table = re.Replace(table, "|")
    table = Replace(table, "&nbsp;", "")
    table = Replace(table, ":", "")
    table = Replace(table, " ", "")
    ' Remove excess |
    re.Pattern = "[|]+"
    table = re.Replace(table, "|")
    ' Clean up a bit more
    re.Pattern = "\|\s+\|"
    table = re.Replace(table, "|")
    ' Remove | from start and end of string
    re.Pattern = "^\||\|$"
    table = re.Replace(table, "")
    arrTable = Split(table, "|")
    arrTmp = ""
    If ttype = 1 Then ' General Info Table
    i = 1
    For Each cell in arrTable
    Select Case LCase(Trim(cell))
    Case "serial number"
    sSerialNumber = arrTable(i)
    Case "product number"
    sProductNumber = arrTable(i)
    Case "product line"
    sProductLine = arrTable(i)
    Case "product description"
    sProductDescription = arrTable(i)
    Case "date of warranty check"
    sCheckDate = arrTable(i)
    End Select
    i = i + 1
    Next
    arrTmp = sSerialNumber & "|" & sProductNumber & "|" & sProductLine & "|" & sProductDescription & "|" & sCheckDate
    ElseIf ttype = 2 Then ' Contract Info
    i = 0
    For Each cell in arrTable
    cell = Replace(cell," ","")
    if Instr(lcase(trim(cell)),"wty hp hw maintenance onsite support") > 0 then
    cell = "wty hp hw maintenance onsite support"
    end if
    if Instr(lcase(trim(cell)),"wty hp hw maintenance offsite support") > 0 then
    cell = "wty hp hw maintenance offsite support"
    end if
    if Instr(lcase(trim(cell)),"wty hp support for initial setup") > 0 then
    cell = "wty hp support for initial setup"
    end if
    Select Case LCase(Trim(cell))
    Case "warranty type"
    sWarrantyType = arrTable(i+8)
    Case "wty hp hw maintenance onsite support"
    sHWStartDate = arrTable(i+1)
    sHWEndDate = arrTable(i+2)
                        sHWStatus = arrTable(i+3)
    Case "wty hp hw maintenance offsite support"
    sHWStartDate = arrTable(i+1)
    sHWEndDate = arrTable(i+2)
    sHWStatus = arrTable(i+3)
    Case "wty hp support for initial setup"
    sISStartDate = arrTable(i+1)
    sISEndDate = arrTable(i+2)
    sISStatus = arrTable(i+3)
    case else
    End Select
    i = i + 1
    Next
    arrTmp = sWarrantyType & "|" & sHWStartDate & "|" & sHWEndDate & "|" & sHWStatus & "|" & sISStartDate & "|" & sISEndDate & "|" & sISStatus
    End If
    ' Remove | from start and end of string
    re.Pattern = "^\||\|$"
    arrTmp = re.Replace(arrTmp, "")
    'wscript.echo arrTmp
    arrResult = Split(arrTmp, "|")
    Set re = Nothing
    processTables = arrResult
    End Function
    Function WriteLog (sText)
    If EnableLogging Then
    oLogfile.WriteLine Now() & " " & sText
    End If
    End Function
    Standardize. Simplify. Automate.

  • How to get the spool information for a job

    Hi,
    After a job is run, how to get the spool inforamtion. which API can be used.?
    Thanks in advance.
    Johnney.

    Hi,
    thanks for your reply.
    My requirement is as followings.
    1. Report Z_REPORT_TEST
    EXPORT RUNUUID = '****************' TO MEMORY ID sy-repid.
    2. In Funciton Module Z_FM_test
                create a job(Z_JOB_TEST) to run report 'Z_REPORT_TEST'.
                after the job is run successfully.
                question is
                how to get the RUNUUID exported from the report ????
    Thanks & Best Regards,
    Johnney.

  • Which API is invoked by coherence when a object meets it's expiry interval

    Hi,
    Need an Information about which API is invoked by Coherence Internally when an cached object meets it's expiry delay time or interval?
    Will Coherence invokes CacheFactory. releaseCache(NamedCache map) API or CacheFactory.destroyCache()?
    We need this details because we see increase in size(byte) of object and count as 0 in our JMX stats. expiry-delay is 10 sec.

    Hi Jonathan,
    Thanks a lot for the response. We've observed that cached objects size shrinks and it's sporadic and for expired cache objects we see increase in size of the object. We are using following code to calculate size of cache object in bytes.
    import com.vladium.utils.ObjectProfiler;
         * Returns the size of near cache
         * @param cache
         * @return size of near cache
         int getSizeInBytes(){
    NamedCache cache = CacheFactory.getCache(cacheName);
              return ObjectProfiler.sizeof(((NearCache) cache)
              .getFrontMap());
         }

  • API for getting diagnotic server info

    Is there an API for getting diagnostic information about the server (memory usage, etc.). We'd like to write a program to monitor the server.

    I am trying to do something similar my call to Session.getSession generates
    the following exception:
    com.iplanet.portalserver.session.SessionException: Can't find resource for
    base name iwtNaming, locale en_US
    Can you help?
    Thanks?
    "Marshall Levin" <[email protected]> wrote in message
    news:9ljs3s$[email protected]..
    Hi,
    I have a JSP running on the same web server as the portal server but not
    running within the portal desktop (it is a stand-alone JSP).
    I have successfully gotten the user's Profile object via the Sessionobject
    and I can get the Hashmap of attributes.
    What I'm trying to get now is the user's domain and role -- is there anyway
    I can get this? I don't see these in the list of attributes. Is there an
    API to find this out? Any suggestions on how I can obtain this info
    programmatically?
    Thanks

  • Looking for two BAPIs which will provide me specific BI information

    Hello,
    I am developing something from the Java side and I am looking for two BAPIs which will provide me the following information regarding our BI:
    1. a BAPI that by giving it a userid will provide me a list of the ODSs the users has access to.
    2. a BAPI that by giving it an infoArea will provide me the list of ODSs inside this infoArea. Here, all I could find was BAPI_ODSO_GETLIST which gives me all the ODSs in our Business Wearhouse in all infoAreas.
    Thank you in advance,
    Roy

    hello Maxwell ,
    hhave a look at tcode BAPI , under MM application area.... u will get all BAPIs related to MM modules.
    Identify if a quotation number exists in the system which a specific sales organization.
    Determine the sale price of a material for a specific customer-->u need to ask your functional consultant , may be he is creating info record for that one?
    A simplier way to identify the plant specific status of a material without using the MATERIALGETALL-->use table MARC
    Identify if a specific customer used a supplied purchase order before.
    Identify if a customer has been placed on credit hold-->i think u can make use of tcode vkm4 or custome master data will have all these info.
    regards
    Prabhu

  • Hi All, I recently bought a Mac Book Pro and transferred all my photos from my hard drive onto the Mac. I realised that there were some folders which didn't have the camera information embedded in the files and these files refuse to open on iPhoto. HELP!!

    Hi All, I recently bought a Mac Book Pro and transferred all my photos from my hard drive onto the Mac. I realised that there were some folders which didn't have the camera information embedded in the files and these files refuse to open on iPhoto. I know that the folders that have the problem were not transferred to the hard drive via a photo transfer application (I have a Canon camera) but I simply copied them out of the photo card and onto my old PC.
    Is there some way I can open these pictures on my Mac? They work fine on a PC.

    Thanks for your reply.
    The files don't open in preview either. In preview I get the error message 'The file "xxxx_xxx.jpg" could not be opened. It may be damaged or use a file format that Preview doesn't recognize'. The folders with these un-openable pictures do not even get imported into iPhoto. When I try to import them I get an error message about the files being unreadable.
    The color profile information on the un-openable files is not visible but I see that all the other files from my old drive are RGB.

Maybe you are looking for

  • I bought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?

    Iibought 500gb iCloud storage for ł30 with my macbook air, how to install it and will i still be charged a monthly fee?

  • Issue with signatures viewed in outlook express

    I have a signature I use containing business contact details etc, used in all emails. If I send an email to a computer using outlook express the signature appears as normal. If however I attach a attachment when viewed in outlook express the signatur

  • SCCM 2012 R2 Report Viewer not working.

    I have recently upgraded to SCCM 2012 R2 and now when I go to the reports I get this message. Has anyone come across this? The DefaultValue expression for the report parameter 'UserTokenSIDs' contains an error: The encryption type requested is not su

  • 2011 MBP Frequent Kernel Panics

    I recently purchased a 17" MBP with 4GB of RAM. For the first several weeks the machine worked flawlessly, but then it suddenly started giving me constant kernel panics. It seems completely reproducible, as it often occurs when watching video online,

  • Need help in uninstalling driver through inf

    Hi, I need help in removing files, deleting service from INF when the device is getting uninstalled through the device manager. In my INF file i have the following section to add service and copy files during installation. [XYZ.NTAMD64] CopyFiles=Dri