How to display a particular character  of a word

Hi,
can anyone tell me how to display  a particular character of a word in smart forms,Ex:suppose word is India and i want to display character d..
Thanks in advance.
Rajesh

please look at the below explanation:
DATA: VAR TYPE CHAR20.
VAR = 'INDIA'.
WRITE:/ VAR(3) - THIS WILL PRINT FIRST THREE CHARACTERS OF THE INDIA SO THE OUTPUT WILL BE : IND
WRITE:/ VAR+3(1) = THIS WILL PRINT 1ST CHARACTER AFTER FIRST 3 CHARACTERS SO THE OUTPUT WILL BE : I
COPY REQUIRED CHARACTERS IN ANOTHER VARIABLE.
DATA: VAR2 TYPE CHAR10.
VAR2 = VAR+3(2) .

Similar Messages

  • How to test if particular character is empty in a row

    Hi All ,
    Requirement : To split the input file into two files .
    If the length of the row is 93 characters and the condition is If characters from 28 to 32 are empty then create a file with the name PCO1 .txt else create a file with the name PCO2 .txt
    Please let me know how to test in a row if particular character has certain value or from 28 to 32 are empty .
    Thanks for your help

    hi Sharma,
    IF line+27(5) EQ space.
    ==> positions 28-32 have no value (i. e. all characters are spaces)
    ELSE.
    ==> positions 28-32 have some value
    ENDIF.
    some explanation:
    line+27(5) ==> this means: 5 characters after position 27
    hope this helps
    ec

  • How to display a unicode character in a list ?

    Hi,
    sorry if the question seem to be really easy but I doenbt found of to diaply a special character in a list.
    I thank that it was easy :
    1) display tha windows character map
    2) copy paste the charatcter in the ABAP Program to obtain something like this :
    write '≤'.
    But the displayed character is '#' . So, could you tell me how to display a gived unicode character ?
    Regards,
    morgan

    Hello Morgan,
    you need SAP system with unicode. You can check it from every dynpro/mode:
    System->Status: SAP System dada  Unicode system: yes
    I have checked your sign '≤' on my not UC system: is displayed: '='.
    Bye,
    Peter

  • How to Display Heirarchy and Character at a time in the report...

    Hi
    I have a req ...where I need to design a query to display a character and its heirarchy colum by colum...I mean, I have document type master data info object it has texts and Heirarchy data source...and we loaded this data...Also we have document type directly coming from ECC  Transactional DS...Now When I take this document type and do not select heirarchy its displaying the document types (KN,KA ,KR etc...)..If I select the heirachy in my query..its displaying in heirarchy structure and the document types (KN,KA,KR ) are displaying as the last nodes. But I want to display the heirarchy and also the document type in 2 diff colums... how it would be possible..is there any thing needs to be done at query level / do i need to take a RKF / CKF and write any code to bring heir and info object value?
    Iam bit confused here..pelase advice ASAP.
    regards

    you cannot have the same character in the query twice.  You can either have it in the hier format or just the char.
    I am wondering why you need to display the same characters twice in each column.
    The best way is to have them in the hier. format and in the char. properties expand the node level as you want so you will see them in the detail level.
    assign points if helpful

  • How to display a particular transaction over portal as per its id

    hi
    we have a requirement like this...
    we have already developed some 200 iviews and the corrosponding pages...
    now we want to develope an application either in web dynpro or pdk that we will upload over portal. that application will be having an inputfield for entering transaction number and a search button.
    on the click of button our application must be able to search and display the corrosponding transactional iview already developed
    plz guide on how this is possible

    Hi,
    I don't think message input text allows to set URI property and it is available with MessageStyledText.
    So if you want to achieve your requirement then you can take two items one message text input and other one as messageStylesText then if it is readonlymode then hide input text and render MessageStyled text and viceversa.
    In this case you will be able to display links in case of Readonly text.
    Regards,
    Reetesh Sharma

  • How to display the special character ' ' ?

    I have defined a button with the name '|<<', but in the runtime, it's displayed as '|&lt ;&lt ;', then how can i display '<' in runtime?
    Message was edited by:
            bo wang

    Hi bo wang,
    I will suggest a solution, take the properties of the button in Layout mode, Click the Display Tab, remove everything in the Label text box, click the Formula button right of the Label text box, use this function TRIM('|<<')
    Save it, deploy & run ,.... Check the output now.
    Regards,
    Shemim

  • How to display this 2 character for date field (    \   \       )

    hi friends
    it's possible to display the character format in text field after you run the form
    plz I need your help
    thanks

    Hello,
    So you mean for the date field you want to show slashes by default. I don't think that forms will support this type of things.
    BTW may i know what is the purpose to show like this?
    If you use the normal format which is DD/MM/RRRR it will add the slashes automatically. When user will enter date like this 01012010.
    -Ammad

  • How to count a particular character in a column ??

    I am facing a probem while intergrating a module, we have a column in which user inserts conditions like 1.asd.2.err.3.errr..etc..now my requirement is that i need to count the number of conditions made in this particular column . Can anyone please suggest me how to do this as i have tried many ways but couldn't get the desired result.

    Do you mean like this?
    SQL> ed
    Wrote file afiedt.buf
      1  select length(regexp_replace(regexp_replace('1.asd.2.err.3.errr','([^0-9]|^)([0-9])','~'),'[^~]')) as num_conditions
      2* from dual
    SQL> /
    NUM_CONDITIONS
                 3
    SQL>

  • How to display first SPACE character in Column of ALV Grid Report?

    Hello All,
    In ALV Grid report, One of the column has a value like ' Test_Value'. In this value first character is SPACE but in display SPACE is not appearing.
    Field catalog type is:- slis_t_fieldcat_alv
    I have used the function module:- REUSE_ALV_GRID_DISPLAY
    Is there any settings required in Fieldcatalog Internal table for displaying leading SPACE chara.?
    its a field not the header.
    thanks in advance.
    Rahul

    Hi all,
    did any body have a solution for this problem?
    In ALV Grid report, One of the column has a value like ' Test_Value'. In this value first character is SPACE but in display SPACE is not appearing.
    Field catalog type is:- slis_t_fieldcat_alv
    I have used the function module:- REUSE_ALV_GRID_DISPLAY
    Is there any settings required in Fieldcatalog Internal table for displaying leading SPACE chara.?
    its a field not the header.
    thanks in advance.
    Rahul

  • How to display the Japanese character

    Hi
    Im trying to display the Japanese characters in pdf report(Using iText Report). I have the method as follows which is encoding the characters in a particular format in my say, Reports.java
    public String stringFormat( String strData ) throws Exception {
              String result=null;
              try{          
              result = new String(strData.toString().getBytes("Shift-JIS"),"UTF-8");
              }catch(Exception e)          {}
              return result;
    Im calling this method to display a category code in another one java file like
    Phrase colm_2          = new Phrase(report.stringFormat(strCatgdes),font);
    But Im nt getting the correct japanese chars, instead im seeing like this ??????? in my pdf report. I tried with different encoding char set like "ISO2022JP,EUC_JP,SJIS,Shift-JIS,MS932,Cp33722". All giving the wrong characters.
    Can anyone help me to solve this issue?
    Thanks in Advance.

    result = new String(strData.toString().getBytes("Shift-JIS"),"UTF-8");Priceless. So you take a string, convert it to Shift-JIS bytes, and then read the Shift-JIS bytes, pretending they're UTF-8. And you really expect that to work?
    Strings are always in UTF-16, so there shouldn't be any need for you to do anything.
    1) Make sure you read your ressources with the correct encoding
    2) Make sure your font can actually display the letters

  • How to find no of bytes per character in a word - Urgent need

    Hi,
    I have some data in the database with chinese characters. I want to know how many bytes per each character in a word and get the total bytes.
    Is there any built in Oracle function or anything where i can get no of bytes for each character or a word.
    I am not able to find the solution anywhere.
    Any help is appreciated.

    Hi,
    You can use LENGHTB function.
    SQL>SELECT LENGTHB(dummy) FROM DUAL;
    LENGTHB(DUMMY)
                 1
    1 row selected.
    SQL>Regards

  • HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS

    HI,
       HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS?

    in ur script main window
    /: IF &TTXSY-PAGE& = 15.              
    ur text or standard text           
    /: ENDIF.                             
    use this.
    hope it helps if any issues revert back

  • How  to display particular language in a program ( just in header)

    I want to display a particular line in the top of page in japanese how can I do ??
    Thanks in advance

    then set it to JP in the top-of-page event & back to EN or whatever before your first write statement.
    ~Suresh

  • How to display greek character in adobe digital edition using urf-8

    how to display greek character in adobe digital edition using urf-8

    when i tried to open below link
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm
    It's not opening & displaying access denied message as below.
    403 Access denied
    You do not have the permissions to access this resource
    Error is logged with Tag:
    Just want to know, Is it possible to display japanese characters on report using crystal report 8.5?
    We've constraint to use only CR 8.5
    Regds,
    Kaushal

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

Maybe you are looking for