XmlMap Request with circle Geometry

Hi all,
i'm using MV Ver1033p5_B081010.
Following Problem:
We are working on an application using MV where users have the possibility to add redline-, rectangle- and/or circle-tools. All elements which are drawn by the user are added to the map as MVFOI-Objects by using OracleMaps-JavascriptAPI.
Now, when I call objMapView.getMapAsXML("PNG", iX, iY); to get the XML-MapRequest for the current map I receive something like this (especially when the user has added one or more circles to the map) (take a look to the geoFeature which describes the circle):
<?xml version="1.0" standalone="yes"?>
<map_request datasource="TTTT" format="PNG" width="565" height="474" antialiase="true" srid="31466">
<center size="108.98346250000001">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>2576016,5728093</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
<themes>
<theme name="cached_basemap0">
<map_cache_theme map_cache_name="TTTT.BASE08" snap_to_cache_scale="true" />
</theme>
</themes>
<geoFeature render_style="C.REDLINE [BLAU]">
<geometricProperty>
<Polygon srsName="SDO:31466" >
<outerBoundaryIs>
<LinearRing>
<coordinates>2575998.774924889,5728101.7408607565 2575998.714362012,5728102.891715953 2575998.5333369206,5728104.023622908 2575998.2338329637,5728105.12418021 2575997.819131569,5728106.181329925 2575997.2937762914,5728107.183489697 2575996.6635230346,5728108.119679656 2575995.935276984,5728108.979642708 2575995.1170169557,5728109.753956918 2575994.2177079785,5728110.434138738 2575993.2472030697,5728111.012735952 2575992.2161352834,5728111.483409329 2575991.1358012147,5728111.841002074 2575990.01803723,5728112.081596324 2575988.875089784,5728112.202556079 2575987.71948125,5728112.202556079 2575986.5638727154,5728112.081596324 2575985.42092527,5728111.841002074 2575984.303161285,5728111.483409329 2575983.222827216,5728111.012735952 2575982.1917594303,5728110.434138738 2575981.221254521,5728109.753956918 2575980.321945544,5728108.979642708 2575979.503685516,5728108.119679656 2575978.775439465,5728107.183489697 2575978.145186208,5728106.181329925 2575977.6198309306,5728105.12418021 2575977.205129536,5728104.023622908 2575976.905625579,5728102.891715953 2575976.7246004874,5728101.7408607565 2575976.6640376104,5728100.5836663265 2575976.7246004874,5728099.43281113 2575976.905625579,5728098.300904175 2575977.205129536,5728097.200346873 2575977.6198309306,5728096.143197158 2575978.145186208,5728095.141037386 2575978.775439465,5728094.204847427 2575979.503685516,5728093.344884375 2575980.321945544,5728092.570570165 2575981.221254521,5728091.890388345 2575982.19175943,5728091.311791131 2575983.222827216,5728090.841117754 2575984.303161285,5728090.483525009 2575985.42092527,5728090.242930759 2575986.5638727154,5728090.121971004 2575987.71948125,5728090.121971004 2575988.875089784,5728090.242930759 2575990.01803723,5728090.483525009 2575991.1358012147,5728090.841117754 2575992.2161352834,5728091.311791131 2575993.2472030697,5728091.890388345 2575994.2177079785,5728092.570570165 2575995.1170169557,5728093.344884375 2575995.935276984,5728094.204847427 2575996.6635230346,5728095.141037386 2575997.2937762914,5728096.143197158 2575997.819131569,5728097.200346873 2575998.2338329637,5728098.300904175 2575998.5333369206,5728099.43281113 2575998.714362012,5728100.5836663265</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</geometricProperty>
</geoFeature>
</map_request>
As you can see this is a very long request for a map with just one circle FOI on it - too long in some cases! Since a circle can be described by only three points I do not understand why so many points are needed in this case. This behavior causes trouble when posting the request to the omserver because the request is to long!
Does anybody has a solution on this?
Dominik
Edited by: grueningd on Apr 14, 2009 5:13 PM

After getting this XML document you can send it to the server using HTTP Post instead of the normal/default GET method. POST does not have length restriction on your request.
The reason the circle became so long is because typically we do a densify (as in Geodetic system you cannot have a circle); however your coordinates appear to be projected so circle should be perfectly fine. Another issue is it is using too many digits after the decimal point which is probably meaningless as far as precision is concerned. we will look into this.
thanks
LJ
Edited by: lqian on Apr 16, 2009 9:51 PM

Similar Messages

  • Match downpayment request with payments through F-53

    Hello,
    Our client makes downpayment request in F-47 and then makes payment (invoice-based) through F-53 or F110.
    How can we match the downpayment request with the payment made if it is not through F-48?
    Thanks in advance....

    Hi,
    Request is as good as maintaining our communication to the vendor.
    Its only when the actual payment is done, that a down payment is posted.
    Only then it would affect the accounts. Hence until its posted thru F-48, its not affected.
    You can post F-47 and do a F110 run which would do a posting in F-48.
    Later a payment run can be done again thru F110.
    Caio
    Raghu

  • My hard drive crashed. Replaced my hard drive. Installed Yosemite. Restored from Time Machine most recent backup before hard drive crash. Now laptop won't start up. Grey screen with circle and slash through it.

    How to start up laptop from grey screen with circle and slash through it?

    After you installed Yosemite and prior to restoring from the backup, were you able to start the Mac?

  • Message V1478 - Credit memo request with reference to an invoice

    Dear all,
    Creating a credit memo request with reference to an invoice, I get the following message "Material in item 000060 does not exist in plant/storage location".
    Of course, this material exists in the plant and the storage location, as we could create the invoice without any problem.
    Any idea?
    Best regards,
    Iné

    Hello
    Generally, these errors may appear due to:
    - The plant is marked for deletion.
    - The plant should be copied from the referenced item.
    So, I would suggest you to
    - Check copying control for Invoice to Credit memo request, particularly, item.
    - Try and create Credit Memo Request with reference to sales order.
    - Or if you want rectify a invoice, then use invoice coreection request.
    Thanks & Regards
    JP

  • Creating a debit memo request with reference to an invoice

    Hi,
    An invoice shows wrong MWST value because of incorrect customer tax classification as Tax exempt. I corrected the cust tax classification to "Liable for Tax". Then I tried to create a debit memo request with reference to the incorrect invoice. Thats a requirement by the customer. Invoices with incorrect VAT are not to be cancelled. A specially created VAT only sales order (Debit memo request) is used to create a sales order with 0 net value and correct MWST . But while trying to create the debit memo request, the system picks up the same old condition record for the MWST. How to overcome this situation ?
    The copy control for the item category from billing doc to debit memo request is set to "B" that is  new pricing. I even tried to update pricing. But it does not work. Changing the Service rendered date or the pricing date to current date also does not help.
    Please help.
    Regards.

    This is working fine. What I did was
    1: create a new pricing procedure
    2: made the PR00 condition statistical
    3: using a routine calculate the MWST based on the PR00. But PR00 itself does not contribute to the net value. This part is working fine. I could create debit memos successfully.
    The problem is if we change either the customer or the material tax classification after creating the invoice, and then create a debit request with reference to the incorrect invoice, the system still considers the old tax classfication and therefore the old MWST rate. If I create a debit request without reference, the new rate is applicable.
    I hope I have made clear.
    Regards.

  • Doubt in customizing request with respect to table entries

    Hi All,
    I have a doubt in customizing request with respect to table entries.
    Suppose I have a customizing request with respect to a table that contains say 10 entries in the development system.
    Now I am transporting this request to the quality system in which the same table contains 20 entries.
    When I am transporting this table from the development system to the quality system, will my 10 entries in the development system get added to the 20 entries in the quality system or will my table get overwritten in the quality system.
    What difference will this be if it is a workbench request ? .
    Regards,
    Sushanth H.S.

    Hello,
    So if we are transporting contents of a table from one system to another, it should always be a customizing request and not a workbench request right.
    If the "Delivery Class" of the table is 'C'(Customizing table, maintenance only by cust., not SAP import) it will ask for a customizing request.
    If it is 'A'(Application table (master and transaction data)), it will ask for Workbench.
    To add to your previous qn, when you transport the entries to subsequent system it will always check the KEY FIELDS and then update. If you see a transport, then the table entries are represented by their key fields.
    If you create new entries in your table and transport, it will add the records. Else it will modify them
    Hope i am clear.
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 23, 2009 11:51 AM

  • Error when creating a travel request with Advance amount

    Hi Gurus,
    When I create a travel request with an Advance amount and try to save the same, the system throws up an error msg : "Trip country does not exist in the system (T005).
    However, it allows me to create the travel request without this error if i dont enter any advance amount in the travel request.
    I checked the tables V_T706L and V_T706O and found my trip county to be existing.
    Regards
    Prakash

    Hello Prakash,
    The following are the prerequisites for transferring trip costs to accounting.  In other words when you try to create and save a travel request with advance you are involving accounting entries and therefore the following needed to be checked:
    1.Travel Management and Accounting are both at Release 4.5A. If at least one of the systems
    has a release level lower than 4.5A, follow the instructions in Customizing for ALE.
    2. For payment to be effected, vendor accounts must exist in Accounting for the respective
    personnel numbers.
    3. The following Accounting tables must be replicated in the Travel Management System using
    Customizing transports:
      Company Codes (T001)
      Countries (T005)
      Input Tax Codes (T007A, T007S)
      Document Types (T003)
    4. The transfer of settlement results
    More relevant in your case would be the point 3. Countries(T005) not defined in TM.
    Hope the above provided you more information.
    Rgds
    CONMJI

  • Creating Travel request with TRIP Getting Error 'Infotype P0017 could not be read'

    Getting this error while creating travel request with TRIP transaction code. Please help for an alternate way to create Travel request or help to resolve this issue.
    If this error is due to 0017 maintenance, please help me to maintain infotype 0017.

    Hi
    This is done by functional Guy
    As work around
    Go to transaction PA30 to open master record of employee for whose trip need to be created type 17 at infotype ->  enter F5  and Save.
    With regards,
    Gopala Krishna

  • After Mavericks OS upgrade, can no longer make any HTTP requests with the OPTIONS verb

    My machine can no longer make any HTTP requests with the OPTIONS verb. This happens whether I try it curl, postman, or ajax.
    curl -i -X OPTIONS http://www.google.com returns curl: (52) Empty reply from server
    It should return a long string containing a 405 error code.
    I suspect that this is related to the Mavericks upgrade I did earlier this week. I only have one mac (my dev machine) with Mavericks. Other macs are Mountain Lion and they don't have this problem.
    Can anyone else with Mavericks confirm whether or not they have this problem too?
    If this is Mavericks related, anyone know of a fix or workaround?

    Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
    Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
    I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
    http://www.bennadel.com/blog/2559-Cisco-AnyConnect-VPN-Client-May-Block-CORS-AJA X-OPTIONS-Requests.htm?&_=0.10495476494543254#comments_44093

  • Credit Memo request with reference to Billing Document number via IDoc

    Hi,
    I want to create credit memo request with reference to billing document number via IDocs.
    I have tried through ORDERS05, but when I process I saw that it is only processing with reference to contract  number or quotation.
    So is any other way of creating credit memo request creation with reference to Billing document number via IDocs?
    Thank you in advance.
    Regards,
    Santhi

    Please Help... it is Urgent...  Thank you

  • Credit memo request with zero net value

    Hello all,
    when we create a credit memo request (VA01, doc type CR) and put a material quantity into the credit memo request that falls below the scale in VK13, the net value for the material will be zero.
    We do not want to allow to save the credit memo request with a zero net value, but SAP will just allow us do that.
    I was wondering if there is a way to pop up a warning or even an error message that avoids saving the document in case of a zero net value?
    Thanks
    Anne

    Hi,
    You can make the condition type (for which $0.00 is not allowed) as mandatory condition type in the pricing procedure. By this way the system will give error and wont allow to proceed any further unless the data is complete. (make sure this is not affecting your regular sales order cycle).
    Or if you just want to give a pop-up message then you can use user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ
    Regards,

  • Creation of Change request with reference to existing change request

    Hi
    I want to do Creation of Change request with reference to existing change request for MDG-F and MDG c/MDG S Is it possible? If yes, How?

    Hi Sanjay,
    No , its not out of box functionality in MDG. Reason being, MDG framework provided some standard API's with the help of which we can do our development with ease.
    Like Governance API                            : IF_USMD_GOV_API
           Convenience Governance API         :IF_USMD_CONV_SOM_GOV_API
           Change Request API Interface:       IF_USMD_CREQUEST_API
    With the help of which you can play around with your data in MDG with the pre-defined methods of it.
    Best Regards,
    Kaustubh

  • How to send a packaging request with a multiline description

    If I try to send a package request with this metadata description:
    <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">First Line
    Second Line</dc:description>
    Notice there is a carriage return between "First Line" and "Second Line".
    Then, the server will return a E_ADEPT_DISTRIBUTOR_AUTH error.
    If I remove the carriage return the packaging is done well.
    I would like to know how to send the multiline description or if it is not posible.
    Thanks in advance.

    Hi,
    It's not the faxformat in ITCPO.
    What I figured out by comparing my program with another program (printout of balance sheets) is that this other program is able to fax or to print but not at the same execution. When you execute the balance sheet program in order to fax, the sapscript formular is created with the printer POSTSCPT (driver: POST) and code page 1117. When you execute it for printouts another printer can be choosen and the code page is 1110.
    Could this be the problem of not beeing able to fax an existing spool (sapscript) request? Or is there a way to convert the OTFDATA from code page 1110 to 1117?
    Cheers,
    Thomas

  • How to submit request with default language as 'American English' in other non-english language sessions.

    Dear All,
    Kindly suggest how to submit request with default language as 'American English' in other language sessions (Ex: Arabic).
    R12: 12.1.3
    The issue is we created function using 'arabic' text in it, which runs perfect in the english session, but doesnt gets value in the arabic session.
    So we decided to make the submit request with default language as 'American English'.
    Below is the function. Kindly note that SEGMENT1 is not linked to any valueset.
    CREATE OR REPLACE FUNCTION F_GET_OLD_LEAVE(P_PERSON_ID NUMBER)
      RETURN NUMBER IS
      V_DAYS NUMBER;
    BEGIN
      select
         SUM(EXCD_DAYS)
        INTO V_DAYS
          FROM (
                SELECT
      --            NVL(SEGMENT5, 'تجاوز') Late_type,
      --             SEGMENT1 NOTES,
      --            ACTUAL_TERMINATION_DATE,
    (CASE 
    WHEN NVL(SEGMENT5,'تجاوز') not in ( 'تجاوز' ,'إجازة غير مدفوعة') and segment1 not in ('إجازة غير مدفوعة') THEN 0
    --WHEN SEGMENT1  like 'إجازة غير مدفوعة' THEN
    --TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    --TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') +1
    when segment1 not in('بدل نقدي','إجازة غير مدفوعة') and segment4 is null then
    TRUNC(to_date(ACTUAL_TERMINATION_DATE,'DD/MM/RRRR'))- TO_DATE(to_date(SUBSTR(segment3, 1, 10),'DD/MM/YYYY'), 'DD/MM/RRRR')-1 
    when segment1 in('إجازة غير مدفوعة') and segment4 is null then
    TRUNC(to_date(ACTUAL_TERMINATION_DATE,'DD/MM/RRRR'))- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'DD/MM/YYYY'), 'DD/MM/RRRR')
    WHEN SEGMENT1 <> 'إجازة غير مدفوعة' and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  <
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') 
    THEN 0
      WHEN SEGMENT1 <> 'إجازة غير مدفوعة' and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  <=1
    THEN 0
    WHEN SEGMENT1 like  '%بدل نقدي%' then 0
               -- TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  
      WHEN SEGMENT1 like '%إجازة سنوية%' and segment5 in( 'إجازة غير مدفوعة','تجاوز')and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  >=2
                then
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -1
    WHEN SEGMENT1 like '%إجازة حج%' and segment5 in('إجازة غير مدفوعة','تجاوز') and
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  >=2
                then
                TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')  -
                TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -1
    when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')<=1
    THEN
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
    when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND SEGMENT5 NOT IN('تجاوز','إجازة غير مدفوعة') AND
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')>=2
    THEN
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')+1
    when SEGMENT1 LIKE '%إجازة غير مدفوعة%' AND SEGMENT5  IN('تجاوز','إجازة غير مدفوعة') AND
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')>=2
    THEN
    TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
    TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
    WHEN
               EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))  <>
               EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) 
    THEN
       TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') -
       TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') - 2
    WHEN 
            to_char(to_date(SUBSTR(SEGMENT3, 1, 10),'YYYY/MM/DD'),'DD/MM/YYYY') =
            to_char(to_date(SUBSTR(SEGMENT4, 1, 10),'YYYY/MM/DD'),'DD/MM/YYYY')
            THEN  0
    WHEN
    EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))= 31
      THEN
         TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR') -
      TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')-1
    --------------------------------------------when enddate is NULL---------------------------------------------------------------------------------
    -- WHEN segment3 IS NULL THEN round(TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR') -
    --  TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'),'DD/MM/RRRR'))
    WHEN segment3 IS NULL THEN ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 30) +
             (EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment2, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))
    -----***********************************when segment1**********************************--------------------------
    WHEN SEGMENT1  like '%صادف%' THEN ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 0) +
             (EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))
      WHEN 
        EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) =
        EXTRACT(YEAR FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))
    THEN
          ((EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(MONTH FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR'))) * 30) +
           (EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment4, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')) -
            EXTRACT(DAY FROM TO_DATE(to_date(SUBSTR(segment3, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')))-1
             ELSE 0
             END )EXCD_DAYS
                 FROM HR.PER_ANALYSIS_CRITERIA C,
                   PER_ALL_PEOPLE_F         PPF,
                    PER_PERIODS_OF_SERVICE PPPS,
                   PER_PERSON_ANALYSES      T ,
                   fnd_id_flex_structures_vl f
                 WHERE 1 = 1
               AND T.ANALYSIS_CRITERIA_ID = C.ANALYSIS_CRITERIA_ID
               AND PPF.PERSON_ID = T.PERSON_ID
               and ppps.PERSON_ID=ppf.person_id(+)
              and   ppps.ACTUAL_TERMINATION_DATE           BETWEEN  ppf.effective_start_date and nvl(ppf.effective_end_date, to_date('31/12/4712', 'DD/MM/YYYY'))
              -- AND C.ID_FLEX_NUM = 50318
               and c.id_flex_num = f.id_flex_num
        AND f.id_flex_code = 'PEA' 
          and f.ID_FLEX_STRUCTURE_NAME =  'XX_Old_Leave_Details'
        AND PPF.person_id = P_PERSON_ID
    AND T.DATE_FROM>=( select
    TO_DATE(to_date(SUBSTR(xx.global_value, 1, 10),'YYYY/MM/DD'), 'DD/MM/RRRR')
    FROM
    ff_globals_f xx
    where xx.GLOBAL_NAME='XX_NEW_LEAVES_DATE_FROM'
    AND SYSDATE BETWEEN XX.EFFECTIVE_START_DATE AND XX.EFFECTIVE_END_DATE)
    and substr(c.segment1,1,10)>=
               select substr(xx.global_value,1,10)
    FROM
    ff_globals_f xx
    where xx.GLOBAL_NAME='XX_NEW_LEAVES_STD'
    AND SYSDATE BETWEEN XX.EFFECTIVE_START_DATE AND XX.EFFECTIVE_END_DATE
      RETURN NVL(V_DAYS, 0);
    EXCEPTION
      WHEN OTHERS THEN
        RETURN 0;
    END;
    Thanks in Advance.
    Regards,
    Afzal.

    Dear All,
    I found the solution for the above function.
    In the same function I removed the static arabic values replacing with code values from the value set.
    In my scenario there is a value set where some of these values exists, and other we can add there.
    Kindly let me know if someone was successful by using the arabic text in the coding and defaulting the language in conc prog as English.
    Thanks a lot.
    Regards,
    Afzal.

  • Report on Leave request (with HTML ) using ITS version

    we are using ITS version of ESS and MSS version EP 6.0 and SAP R/3 5.0.
    Our client wants a report on Leave Request(with HTML). the worflow used is WS20000081. my question is there any standard report to check the Leave Request which are approved or rejected. In SAP there is one standard report
    RPTARQDBVIEW where in when we execute no output exists.
    Please help me whether is there any report to view the leave requests.
    Regards
    Santosh Ghanwar

    Dear Claude;
    Thanks for your kind assistance... I was out for sometime & got up in some other urgent tasks...
    Sorry for delay...
    I had created the loop Payroll? with following conditions
    &Employee.ControlRecordState&     =          1     or
    &Employee.ControlRecordState&     =           2     or
    &Employee.ControlRecordState&   =          3     or
    &Employee.ControlRecordDate&     <           %Current Date%         
    but result is always "True"
    Please help me out...
    Best Regards,

Maybe you are looking for

  • Unable to open documents in Office (Word and Excel) - 3 authentication prompts followed by 'Could not open ...'

    I am getting multiple authentication prompts when I try to open or create a new .docx or .xslx document from SharePoint 2010.  I tried this on different machines and on different browsers (IE and Firefox) and see the same behavior. I am the site coll

  • How to append date in YYYYMMDD format in .par file for export

    Hi, Database Version: 10.2.0.4 OS: AIX I have an export script which reads .par file and executes "exp" to export schema. I would like to add date in "YYYYMMDD" format for the dump file like this owner=scott file=/exports/scott_${`date '+%Y%m%d'`}.dm

  • SD Order line item

    We have a requirement wherein we want to copy Order line items from VA01 or VA02. The first approach we thought about was to have a 'Duplicate' button on the screen and then create copies of the first line item created using XVBAP etc. But we are not

  • Good book for JSP

    Hi all Can u pls just me a good book for JSP especially for beginners other than "Core Servlets and JSP" by HALL .The customers review for this book in amazon.com is very poor .Pls help me. Thanx in advance.Bye

  • LyncServer UpgradeReadinessState always Busy

    Hallo, we have a Lync2013 Enterprise Pool with 2 Frontendservers deployed (+1 Mediation Server + 1 EdgeServer). I want to update the Lync Environment to the latest Cu but it always (since 8 hours) returns busy when I run get-CsPoolUpgradeReadinessSta