How to determine line # from printstack() with cc compiler on Solaris 10

Hi,
printstack() when called produces a stack trace per the following:
/lib/libc.so.1:0xc5364
/lib/libc.so.1:0xb9e64
/platform/sun4u-us3/lib/libc_psr.so.1:memcpy+0x660 [ Signal 11 (SEGV)]
/opt_outside_local_disk/opt/zim/bin/program_name:function_name+0x160
How does one determine what the line # is in the C program for the above offset 0x160?
Thanks in advance.
Joe

Hi Joe,
I don't know what is the best way, but here is a 3-steps procedure to find the line.
I inserted a printstack(2) line in my program, and got this output:
/export/home/nikm/SunStudioProjects/4Queens/NQueens'main+0x711 [0x4023f9]I use Sun Studio 12 update 1 to compile my program.
It includes Performance Analyzer tools, and one of its utilities, "er_src", can help to find the line.
First of all, let's run it with "-disasm" option to find the line number, that corresponds to the address 4023f9:
nikm@OS-Dec2008:~$  er_src -disasm main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | grep 4023f9
                [137]   4023ed:  jle     .+0xc [ 0x4023f9 ]
                [141]   4023f9:  movq    0x11280(%rip),%rsiBasically, that's it, we have the line number - it is 141.
Let's verify that this is correct:
nikm@OS-Dec2008:~$  er_src -src main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | grep -n '141\.'
214:           141.     return total_pos;Well, it points to the line after the printstack(2) statement. Let's verify this:
nikm@OS-Dec2008:~$  er_src -src main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | head -214 | tail -5
           137.     if (debug > 0) {
           138.         printstack(2);
           139.     }
           140.
           141.     return total_pos;
nikm@OS-Dec2008:~$ That's it. The line is 138, and printstack(2) actually points to the next line.
Thanks.
Nik
Edited by: NikMolchanov on Aug 29, 2009 10:10 PM
Edited by: NikMolchanov on Aug 29, 2009 10:11 PM

Similar Messages

  • How to fetch data from Mysql with SSL.

    I am using jdk1.5 and mysql 5.0.
    How to fetch data from Mysql with SSL
    I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true.
    It shows error. how to fetch

    I have created certificate in mysql and checked in mysql.
    mysql>\s
    SSL: Cipher in use is DHE-RSA-AES256-SHA
    but through ssl how to fetch data in java.

  • How can I change from paying with a credit card to using prepaid for itunes

    How can I change from paying with a credit card to using prepaid for itunes on ipad 2 .alrwady have app ID

    iTunes Store: Changing Account Information
    http://support.apple.com/kb/HT1918
    Apple ID Support - Manage Account
    http://www.apple.com/support/appleid/manage/
     Cheers, Tom

  • How to share contacts from ipad2 with older iMac running 10.6.2?

    How to share contacts from ipad2 with older iMac running 10.6.2?

    Well I guess I was too optimistic. Since last posting I have had three hang events, one during reboot. When the login dialog box came up I clicked on it and it hung.
    However I do have a new data point. I have enabled the remote login (sshd). I have discovered that when the system hangs like I described above, I can still log in via SSH from my Windows system. The shell appears normal, but when I tried a "killall Safari" command the OS crashed hard. After a hard reset, the system hung during the login process. Again I could login remotely, and that time I executed a "sudo reboot" via the remote session. That cleared the display to all-blue but did not successfully reboot.
    Can anyone suggest what to try via the remote login to help diagnose what is happening? I am familiar with typical Linux architecture but the differences in Mac OS X are leaving me a bit disoriented.

  • How to determine line count in single multiline textbox

    I have data that comes out of a sql db text field that already has line breaks and paragraph breaks.  I would like to determine how many lines this will be (w/ line wrapping on) so that I can say if over 20 lines font = 12 pt. etc.  How do you determine how many lines there are in a multiline textbox?  In .net a textbox can be called w/ .linecount to get the # of lines.
    How can I accomplish this in Crystal Reports?
    Any help would be appreciated.
    Dave

    That would work if we had full lines of Text.  The problem is that we have line breaks and paragraphs which would prevent lines from being full.  Here is an example:
    My name is Dave.
    I went to the store today and bought some bread, lunch meat, juice,
    and wine.
    Signed by:
    David
    08/01/2008
    The middle section could be x lines long.  But as it grows I need to shrink the font since there is a finite amount of height for the textbox.
    Thanks for the idea,
    Dave

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • How to determine line number on Table control in BDC

    Hi,
    I am uploading changes for CG02 using BDC. I have to change data to specification type which are listed in a table control having some of the fields as IDCAT, IDTYPE, LANG, ORD, IDENT etc.
    For a particular substance number, there can be variable number of idtypes. Since there were 8 Idtypes already created for the substance number I was working with while recording and I created 9th Idtyep(Z_SARADOT#) while recording (Using SHBD), I am getting the code like ...'ESTRI-IDTYPE(09)....ESTRI-IDCAT(09).....'RCGRIIOT-IDENT(09)' which indicate that while recording, the values were added on 9th line of table control.
    Now this line number can vary for other substance number. How can I know
    (1) The last line of table control
    (2) Line number based on Value of field
        Example - here I want to know line number corresponding to IDTYPE Z_SARADOT# if it was created so that I can change the value of field IDENT of the table control.
    The piece of code I got after recording is:
              perform bdc_field       using 'ESTRI-IDTYPE(09)'
                                            'NUM'.
              perform bdc_field       using 'ESTRI-IDCAT(09)'
                                            'Z_SARADOT#'.
              perform bdc_field       using 'RCGRIIOT-IDENT(09)'
                                            '1175'.     
    Please help friends.
    Thanks & Regards,
    Surya

    There are around 800 Substance numbers and for each substance number there are around 10 IDtype. So It would be a costly processing.
    If there no other way doing it?
    I think, I need to follow this way as We can not determine the line number untill BDC is running.

  • How to determine receiver from multiple receiver systems

    Hi all,
    I've scenario :
    soap req -> XI -> req to external database -> resoponse from db to XI -> BAPI request -> response from BAPI to XI -> send response to SOAP Response.
    In this scenario we have multiple SAP HR Systems. Now external database sends URL field and using that URL field I've to determine which SAP HR system is going to be used to get BAPI response.  Each SAP HR system uses the same BAPI structure.
    How can I determine particular SAP HR system based on URL field.
    I am using BPM for this scenario.
    Is there any way I can do this whole scenario without BPM?
    Please help me on this issue.
    Thank You,
    Chintan

    Hi Chintan,
    Have you tried with the conditional routing with Receiver Determination.
    That could probably help you to route to various SAP HR business systems based on the URL field.
    For the whole flow you need BPM...but for SAP HR systems receiver determination will be sufficient.
    Let me know if you need any more details on it.
    also check with below links
    Xpath expression
    Illustration of Enhanced Receiver Determination - SP16
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    Customise your 'XPATH' Expressions in Receiver Determination
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    Hack: Using XPATH in XI Message Mappings
    /people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings
    Thanks
    Swarup
    Edited by: Swarup Sawant on Apr 4, 2008 4:40 AM

  • How to determine the bit rate with button over video subtitles?

    I have a project where I've got several questions that come up on the screen. The DVD is subtitled in 14 languages, so depending on the language chosen, it will show the question in the proper language along with navigation buttons to go to the next question or track.
    The problem is this: I added several new questions that each have a black only video that runs about 1min with 14 subtitle tracks made from photoshop psds. When I try to build, it fails saying "bit rate too high." When I removed all but 5 of the subtitle tracks, then it would build. I came up with a workaround, but then hit the limit of 99 tracks, menus or stories on a DVD.
    I went back and tried combining all 3 questions in to one slide, but now with more information on the psd, it will only allow 3 subtitle tracks before it reaches the max bit rate.
    How does it determine the bit rate? What can I do to lower the rate? I tried compressing the video at the lowest bitrate, but it didn't' help. I tried changing the psds to much smaller jpg files, but it didn't change anything. If anyone has any suggestions, please let me know!
    Thanks.

    CS,
    Almost all DVD SP Tracks should first be completely constructed in a Sequence in FCP, the markers placed there, and then everything encoded into a single Mpeg 2 clip with matching length audio (even if just low bit rate AC3 silent audio, as the case may be, because all Mpeg 2 clips in the Title domain should be accompanied by an audio stream), and then imported into DVD SP.
    Lay your subtitles under that and see what happens.
    Take care,
    Trai
    TFDVD Research Labs

  • How to read data from ABAP with filter?

    I know the famous pass which uses RFC_READ_TABLE to get a whole table into IdM. How can I only read a part of it, e.g. The currently locked users from table USR02 having UFLAG NE 0?

    Let's have a look to ABAP (with basis release 702):
    The function RFC_READ_TABLE offers filters using the input table OPTIONS. OPTIONS is a simple text table with line length 72 which directly is copied into the WHERE clause of the SELECT.
    The result is restricted to tables having maximum record length of 512 characters. However, using the input table FIELDS you could list the FIELDNAMES which should be read from the database. This way it would be possible to read larger tables - if you only choose fields which sum up to maximum 5121 characters.
    Coding example in ABAP:
    data: ls_OPTIONS type          RFC_DB_OPT,
           lt_OPTIONS type table of RFC_DB_OPT,
           ls_FIELDS  type          RFC_DB_FLD,
           lt_FIELDS  type table of RFC_DB_FLD,
           ls_DATA    type          TAB512,
           lt_DATA    type table of TAB512.
    ls_FIELDS-FIELDNAME = 'BNAME'.
    append ls_FIELDS to lt_FIELDS.
    ls_FIELDS-FIELDNAME = 'UFLAG'.
    append ls_FIELDS to lt_FIELDS.
    ls_FIELDS-FIELDNAME = 'BCODE'.
    append ls_FIELDS to lt_FIELDS.
    ls_OPTIONS-TEXT = `BNAME LIKE 'J%'`.
    ls_OPTIONS-TEXT = `AND`.
    ls_OPTIONS-TEXT = `UFLAG NE 0`.
    append ls_OPTIONS to lt_OPTIONS.
    CALL FUNCTION 'RFC_READ_TABLE'
       DESTINATION 'NONE'
       EXPORTING
         QUERY_TABLE                = 'USR02'
    *   DELIMITER                  = ' '
    *   NO_DATA                    = ' '
    *   ROWSKIPS                   = 0
    *   ROWCOUNT                   = 0
       TABLES
         OPTIONS                    = lt_OPTIONS
         FIELDS                     = lt_FIELDS
         DATA                       = lt_DATA
       EXCEPTIONS
         TABLE_NOT_AVAILABLE        = 1
         TABLE_WITHOUT_DATA         = 2
         OPTION_NOT_VALID           = 3
         FIELD_NOT_VALID            = 4
         NOT_AUTHORIZED             = 5
         DATA_BUFFER_EXCEEDED       = 6
         system_failure             = 8 "MESSAGE l_message
         communication_failure      = 9 "MESSAGE l_message
         OTHERS                     = 7
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    write: / 'RFC_READ_TABLE', 30 'SY-SUBRC =', sy-subrc.
    loop at lt_DATA into ls_DATA.
       write: / ls_DATA.
    endloop.
    How can we create a FromSAP pass in IdM which uses function RFC_READ_TABLE with OPTIONS and FIELDS?
    Let's have a look to alternatives:
    Function RFC_GET_TABLE_ENTRIES has the same limitation of maximum record length of 512 but does not offer data or field selections. -> Not useful for IdM
    Function GET_TABLEBLOCK_RFC is not remote enables but a local starter in ABAP for function GET_TABLEBLOCK_COMPRESSED_RFC, however, this one retrieves compressed results. -> Not useful for IdM 
    Function TABLE_ENTRIES_GET_VIA_RFC has a maximum line length of 2014 and offers data selection using input table SEL_TAB (no field selection). Limitation: This function can only process table which have character-like fields only, i.e. table USR02 is out of scope. (Function RFC_READ_TABLE does not have this limitation.)
    Coding example in ABAP:
    data: ls_SEL_TAB  type          BDSEL_STAT,
           lt_SEL_TAB  type table of BDSEL_STAT,
           ls_NAMETAB  type          BDI_MFGRP,
           lt_NAMETAB  type table of BDI_MFGRP,
           ls_TABENTRY type          BDI_ENTRY,
           lt_TABENTRY type table of BDI_ENTRY.
    ls_SEL_TAB-ZEILE = `BNAME like 'B%'`.
    append ls_SEL_TAB to lt_SEL_TAB.
    CALL FUNCTION 'TABLE_ENTRIES_GET_VIA_RFC'
       DESTINATION 'NONE'
       EXPORTING
    *   LANGU                     = SY-LANGU
    *   ONLY                      = ' '
         TABNAME                   = 'UST04'
    * IMPORTING
    *   RC                        =
       TABLES
         SEL_TAB                   = lt_SEL_TAB
         NAMETAB                   = lt_NAMETAB
         TABENTRY                  = lt_TABENTRY
       EXCEPTIONS
         INTERNAL_ERROR            = 1
         TABLE_HAS_NO_FIELDS       = 2
         TABLE_NOT_ACTIV           = 3
         NOT_AUTHORIZED            = 4
         system_failure            = 8 "MESSAGE l_message
         communication_failure     = 9 "MESSAGE l_message
         OTHERS                    = 5
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    write: / 'TABLE_ENTRIES_GET_VIA_RFC', 30 'SY-SUBRC =', sy-subrc.
    loop at lt_TABENTRY into ls_TABENTRY.
       write: / ls_TABENTRY.
    endloop.
    Despite the limitation, how can we create a FromSAP pass in IdM which uses function TABLE_ENTRIES_GET_VIA_RFC?
    Kind regards
    Frank

  • How to Stop Lines From Editing: Creating/Altering

    I noticed that Illustrator tends to edit allot of things that I create and try to fix, and my goal is to make everything as natural as possible without the interference of this unwanted editing. I have multiple questions under this category. 
    While painting lines with my Intuos Pro tablet, I use the pressure settings, and I have the paint settings set for no smoothing and the lowest fidelity.  This allows my lines to not do their own funky thing when I draw them, but yet it still seems to change little things here and there.  For instance, sharp point edges i draw still become slightly rounded.  This is probably one of the most pesky things. Say for instance i draw a bunch of continuous sharp points in a row with one single line, like monster teeth or something, most become slightly curved. The smaller I make them, the more the problem occurs. Big isnt a problem, but in detailed drawings its a hassle. Also, unwanted and intentional curves get filled in sometimes depending on the intensity of the curve's angle.  Finally, lines still have a tendency to slightly change their shape ever so slightly. 
    When editing lines with the direct selection tool, when i pick an end point and delete it from a drawn line, that suddenly changed the whole shape of the line i drew.  This is especially a pain with lines that feature allot of bumps and curves, resulting in points throwing off into new directions.  Even the thickness of the line changes. Parts can become skinnier, and fatter.  I'm not sure if this has to do with the fact that i used the pressure option with my tablet since thats how i drew the line, and its creating its own pressure points throughout the line?  I also double clicked on the direct selection tool and there is an option under its settings about altering or what not that is check marked, but its greyed out and wont let me choose it. 
    In the end, I just want to draw things how I want them, and be able to edit without unwanted reshaping.  

    I feel as though then pressure is best used for painting an object, rather than making an outline with it as well.  I'm assuming ill have better luck if i just created lines with a fixed setting, rather than the pressure. The whole deleted points affecting my lines things, sounds like it will still happen, but if my lines are the same fatness then that will be alright to some extent i suppose.  If i wanted perfect lines I'd just use the pen tool, but the time it would take would be unnecessary and pointless.  Its a shame, the problems I encountered seemed like there would be some sort of fix for something so silly.  But thank you so much though!  

  • How to determine endpoint from a handler

    I want to write a request handler which will set a special header based upon the target endpoint.
    How do I determine the endpoint from the request handler?
    On a (possibly) related note, is there a good reference somewhere of the typical properties which are likely to be set related to the message context during web services flows?
    Thanks,
    -- Frank

    I found at least partial answers to my questions.
    MessageContext.getPropertyNames() can be used to see the properties on a given flow.
    MessageContext.getProperty(prop) can be used to get information for paroperties such as:
    prop=javax.xml.rpc.service.endpoint.address
    prop=wsdl.portName
    -- Frank

  • How to remove application from Open With?

    Hi,
    I added by accident a wrong application to a file type in Finder. Now I would like to remove this entry from the files Open With list. How could this be done?
    Thanks and best regards
    Ralph

    Is it just that specific document you want to open with another application or is it all documents of the same format?
    #1 Hold down Ctrl key and choose Open with. Choose the application you want to open the document with. IF you want to always open this one document with another app then the pre-chosen one hold down both the CTRl and the Option key and choose application.
    #2 When you want a certain format of documents to open with another application, let us say all .rtf should open with Pages instead of Textedit, select one rtf document and use Command (apple) key and I to get the information window for this document. Somewhere in the middle you can choose with which app. to open this document with and right beneath there is another button that gives you the opportunity to open all document of the same format with the same application.
    Pardon my Swenglish, but I hope you are helped by this!

  • How to determine 0calday from 0fiscper field ?

    we have a requirement where the user will enter the calmonth variable in the user input, and need to get the amount for top 20 customer's on sales, in the report. The problem is we dont have calmonth in the infocube. we have only 0fiscper and 0fiscalyear , and -0calday.
    0calday is mapped to the transaction date. No calmonth in the infocube and we cannot add it now. its too late.
    The columns we need in the report are ( orange color are column names)
    customer        YTD           DEC 2012 ( sales amount) ....for top 20 customers. like
    customer 1      99999            900
    customer 2      55555             200
    customer 20      11111             234
    sample data is as follows: ...what I want is user will input 0calmonth and 0fiscalyear. and I need to display the data for that month . Please advise how to achieve it. YTD - is 1st of jan of the current year till today's date right ? Irrespective of the user entry variable. Is that right ?

    Now as per your suggestion, I have restricted Z_FY_INPUT to the KF, and created another ZYTD and put this as Z_FY_INPUT as replacement path and and put offshet as 2 to 4 on it.
    Again i will clarfiy:
    First selection--Revenue KF--Fiscper--variable--User input--Z_FY_INPUT--This selection will give the value of that period which user is entering.If user enters 004.2014 so it will give value for the same.Correct!
    Now for YTD we need data from 001.2014 to 004.2014. correct..
    A) Take the revenue KF--Drag and drop 0fiscper --Restrict--Show--Value ranges---Less than or equal to--Choose the variable Z_FY_INPUT.
    B) Now again restrict the above selection with 0fiscyear--Create a characteristic variable with replacement path--Follow steps with screenshot as mentioned in the document.
    So basically for YTD you have restricted with two variables based respectively on 0fiscper and 0fiscyear.
    How this works let me explain that also.
    In Part A i have restricted the kf with the same user input variable which you used in first selection but the range less that or equal to.
    Till this stage if user enters 004.2014 then it will bring all the data which is less or equal to the user input which is not our requirement.We need data from the starting of the year upto user entered value.
    In Part B we have restricted the same selection with replacement path variable on 0fiscyear--We are replacing it with variable entered by user.
    So now this part will hold only the year i.e 2014..How--user entered 004.2014.
    Internal format K42014004--Offset we have given 2 length 4..
    Which gives 2014.
    On combining both the parts we get data data from the starting of the year up to the user entered value.
    I tried my level best to explain you how this works and believe me i have created YTD using the same method in so many queries and it really works as desired.
    Regards,
    AL

  • How to determine which languages available with portal, and how to install

    I have a customer who may have a need for languages that might not be default delivered with the portal.  They are able to install languages in an ABAP environment (unicode).  What I'm trying to understand is:
    1.) What languages are available after a NW70 portal installation?  How can I determine this?  The pull-down list of languages in the UME record for a user is extensive, but they aren't all actually active because I tried some like Korean and the logon to portal was still English.  But then I tried Thai and that seemed to work, as did French, Spanish, etc.
    2.) How can I install needed langauges for the portal?
    I realize that even with the language support, the actual portal content needs to support those.  But that's an entirely different issue.

    Hi,
    In this thread you have informations you need:
    How to add Hindi language in Portal
    Regards,
    Praveen Gudapati

Maybe you are looking for