Concatenate " Simple but tricky question "

Hey guys
How are u, this looked like easy problem. However, I tried so many things. I want to add a space in front of character. This is 2-character lengths field.
When I was executing this command, it is not adding up space.
If I am something wrong correct me
Here is the code
DATA:  i type i ,ONE(1) VALUE ' ',FINAL(2) ,TWO(1).
i = sTRLEN( t_record-trfgr ). “ first it shows 1 for H
if i LE '1'.
concatenate  TWO ONE  '.' into final.
CLEAR:I.
i = sTRLEN( final ). “ its still say 1
Thanks

Saquib,
  <b>Concatenate   '    '
                t_record-trfgr
         into
         final.</b>
  Following should also work:
<b> Concatenate  
         space
         t_record-trfgr
         into
         final.</b>
Thanks
Kam
Note: Allot points for all worthful postings

Similar Messages

  • [Theory] A simple but hard question about OO programming

    I was in my first class of OO programming (4th year of computer engineering in Valencia) and the professor gave us homework.
    The homework was a simple question about OO programming (it is not about a specific language, though we are going to use Java in the practice sessions), we shall find an answer to it and discuss it in class the next day.
    The question was:
    "May classes also be objects?"
    which can be said as:
    "May classes be instances of an(other) classes?"
    I hope that you, archers, can enlighten me in this question

    tvale wrote:I believe an object is an instance of a class.
    Yup, that's true. Let's see... An object is an instance of a class, so we can have a lot of objects coming from one class.
    We can say an object is not a class because it has a state (think about a light, it has a state: on or off, but a class light is not on/off, because in a class we just describe the behavior that class should have.
    But what we're asking here is if a class can have a state. I think it may refer to static properties about the objects.

  • ARRAY - simple (but tricky?)

    Hi, I have a simple querstion regarding Array intialization.
    I know that JAVA has the functionality to declare and initialize array in one line:
    String stringarray[] = { "string1","string2","string3"};
    Now my question is, why separating this kind of initialization from its declaration is not allowed?
    String stringarray[];
    stringarray = { "string1","string2","string3"};
    Thanks

    Okay, let me try again.
    In order to create an array, the compiler needs to know what type of array to create. If I have code like this:
    Object[] o;
    o = { new Long(1), new Long(2) };The compiler could create either an Object array, a Number array, or a Long array, and the code would run fine. Except that somewhere along the line your code might have expected something different and a class-cast exception would get thrown.
    So, to keep it simple, the rule seems to be that arrays can only be created when it is explicit what type is going to be created - in other words when there is no chance for ambiguity. The following lines don't have any ambiguity:
    // a variable declaration gives the explicit type to use
    Object[] o = { new Long(1), new Long(2) };
    Number[] n;
    // the "new" operator explicitly tells what type to use
    n = new Number[] { new Long(1), new Long(2) };SO, although the following seems pretty obvious to a human viewer:
    Object[] o = { new Long(1), new Long(2) };
    // versus
    Object[] o;
       // some code here ..
    o = { new Long(1), new Long(2) };The second part introduces the possibilty of ambiguity, because the array creation isn't part of a statement that explicitly tells the compiler what type of array to create. Take for example:
    Number[] n = { new Long(0), new Long(1)};
    Object[] o;
    o = n;Which shows how an array of one type can be assigned to another that is part of the heirarchy.
    As I mentioned above, I agree that this should be allowed, but I believe it was left out of the language because of the issues I've mentioned.

  • Simple, but dumb, question

    My wife wants to copy a cassette tape to her G4 laptop. Is GarageBand the right application to digitize an analog source? I looked at the Apple page on GarageBand and didn't see anything that helped.
    Thanks.

    You can use simpler programs than GB, but GB will do it:
    http://www.bulletsandbones.com/GB/FAQPages/RecordCassette.html

  • BPS Layout formatting looks simple but tricky - Help

    Hi ,
    Created a layout with the below charaterstics and Month1 give the qty for that month. It works great but
    1)  When there is no data i.e no qty for that month , it suppose to be blank but it gives the below out put
    Currenlty :
    Material     mplant  DType month(qty)
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    Desired :
    Material     mplant  DType month(qty)
    2) When there is data i.e qty for that month , it suppose to give two records but it gives the below out put
         i.e values and some more lines with material but no qty . Actually there is data for only 2 rows.
    Currently :
    Material     mplant  DType month(qty)
    552477     552477  A           10
    552477     552477  B           20
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    Desired :
    Material     mplant  DType month(qty)
    552477     552477  A           10
    552477     552477  B           20
    I created a macro to delete the duplicate when the number repeats but that doesnot solve because when ever I want to read the total number of rows in another macro it shows wrong total number of line because of these repeating material numbers .
    How can I get the desired output ? is there any simple setting in the layout or XL with out using a complicated macros etc.........
    Using sem bw 320
    Please help . Thank you inadvance.
    Raju
    Edited by: venkat bhuaptiraju on Jan 8, 2008 6:01 PM
    Edited by: venkat bhuaptiraju on Jan 8, 2008 6:04 PM
    Edited by: venkat bhuaptiraju on Jan 8, 2008 6:07 PM

    Thank you all for your reply very very useful tips. This is getting some how very interesting and frustating at the same time.
    Bindu : I used the similar code that you gave me that works perfect it removes the rows data that I do not need but retains the format for exmple the STYLES that I applied for the data and header data
    Arya : The cube has the 2 records and my below msg will clarify that the issue is not with this
    Aby : Yes even, I do not understand why the those 2 columns data with no key figure values
    Jeoffrey :
    - I checked 3- : Layout set to From Transaction data
    - I checked 4- restrictions (variables?)  may not be because ...see... my below observations........
    - I checked 5- ...may not be because ...see... my below observations........ BUT I am going through they
      are very interesting.
    Sappie :
    ...may not be because even for one material ...see... my below observations........
    More Facts :  Sorry I would have given this in the beginning.
    - I am running an adhoc package that contains an existing layout  which works perfect
    - When I copy layout and remove all the styles and macros still it works great
    - BUT when I create a new layout with exactly same setting NO CHANGE and run the SAME adhoc   package I get those material numbers repeating .........
    I have both the layouts in my PC and compared but did not see any difference , Can you please look at it if you think there could be something there ? Please send me you email I can email you.
    Again thank you for looking in to it, your replies are very logical.
    Regards,
    Raju

  • FB03 problem, looks simple but tricky

    Hi all,
    Go to FB03, click document list, give company code, fiscal year, execute.
    It shows a list of docs.
    Go to change layout and select “reference” from column set and add to displayed columns. Go to “display” tab and select “print out with date, title and page number”.
    Select “user specific” and “default setting” check boxes and save the layout.
    Come out the screen and execute FB03 again and select the lay out which you saved and go to change layout and then to the display tab. There you will find the “print out with date, title and page number” <b>unchecked</b>. (But it was actually checked and saved).
    Please explain why this is happening and suggest me solution.
    Thanks in advance.

    Hi Eric,
    The user says:
    This issue first came up after the upgrade when the date printed stopped appearing on his FB03 reports.  We found the check box on the display tab of the change layout screen and it properly caused the data to appear at the top of the report.  However, when we tried to save that setting with the layout, we were not successful.
    he says when he could do it befor, why not now?
    Please help.

  • Simple but elusive question

    I have a master/detail form. Upon updating a row in the detail block, I need to update a table which is different from both the master and detail tables. so far the insert and delete operations are working fine (I use post_insert and post_delete), but the problem is when I try to do an update because the pre_update and post_update triggers deal with the new value for the updated row. How can I handle the situation where there is an old/new value?

    The best way to handle something on a table where you need the old and the new-values would be a database-trigger. Also for reasons of data-consistency a database-trigger would be the better solution (its always executed, not just for dml coming form a specific forms-module).
    If you still want to do it the forms-way there are two possibilities:
    Use a POST-UPDATE-trigger and get the old-values via GET_ITEM_PROPERTY('BLOCK.ITEM', DATABASE_VALUE);
    Use a PRE-UPDATE-trigger and read the data directly from the db-tables via a select.

  • Simple but necessary question

    I have noticed my computer fans running more so when the unit is hooked up to the internet WITHOUT any extra applications running (i.e. Safari)as when unpluged yet running with the same CPU demands.
    In other words:
    When I'm at work, (no internet hook up), and the computer is sitting idle but not asleep, the fans hardly kick in, yet, in the same situation, but at home HOOKED to Cable Net but still running idle, the fans kick in every once in a while.
    Is this to be expected?

    neuroanatomist
    thank you again for the prompt answer.
    As far as I can recall, I did the diagnostic you recommended with the activity monitor and nothing appeared too extensive.
    I think I will attempt it again and hopefully, either find my answer, or ask for your advice again if negative.
    Thank you
    Ralph

  • Help with a simple but crazymaking question!

    hi there, would anyone here mind looking at my test site and
    telling me what I am doing wrong?
    http://presentations.patrickmeyers.com/
    I am VERY new at anything web related, and trying to learn
    some Dreamweaver, html, and css. Basically I want ALL my content
    (which for now is just images) to stay flush left with each other
    no matter what the user does with their web browser window. But
    when I expand my web broswer window, two of my images (one of which
    is a rollover image that I need to add a hyperlink to) bump over to
    the right and up. I don't want them to do that! I want them to stay
    flush left at all times.
    I also want to center everything so that no matter what a
    person does with their browser, the page stays in the center of the
    window (i.e. the Yahoo homepage) but all the content remains left
    aligned relative to the top.
    I've tried every concievable setting in Dreamweaver I can
    think of and nothing works. The button and bottom banner still move
    over to the right and up.
    Any tips? Thank you in advance!!!!!
    p

    <p><img src="banner.jpg" width="792" height="336"
    align="left" /><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Image3','','click-button-yellow.jpg',1)"><img
    src="click-button-purple.jpg" name="Image3" width="180"
    height="46"
    hspace="16" vspace="15" border="0" align="left" id="Image3"
    /></a></p>
    <p><img src="lowerbanner.jpg" width="792"
    height="41" vspace="30"
    align="left" /></p>
    </body>
    You have two elements horizontally adjacent (the banner image
    at 792px
    width, and the anchor tag at 180px width). Their combined
    width is
    792+180+32px = 1004px (the 32px comes from the hspace="16"
    attribute). When
    the browser viewport is less than 972px wide, the anchor tag
    and its
    associated image will just drop below the banner image (since
    they are
    contained in a <p> that has no explicit width).
    Change this -
    <p><img src="banner.jpg" width="792" height="336"
    align="left" /><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Image3','','click-button-yellow.jpg',1)"><img
    src="click-button-purple.jpg" name="Image3" width="180"
    height="46"
    hspace="16" vspace="15" border="0" align="left" id="Image3"
    /></a></p>
    to this -
    <p style="width:1004px;"><img src="banner.jpg"
    width="792" height="336"
    align="left" /><a href="#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Image3','','click-button-yellow.jpg',1)"><img
    src="click-button-purple.jpg" name="Image3" width="180"
    height="46"
    hspace="16" vspace="15" border="0" align="left" id="Image3"
    /></a></p>
    and see what happens.
    > I also want to center everything so that no matter what
    a person does with
    > their browser, the page stays in the center of the
    window (i.e. the Yahoo
    > homepage) but all the content remains left aligned
    relative to the top.
    It depends on whether you are using absolute positioning on
    the page, as to
    which method might be best, but in either event, this will
    work -
    Change this -
    </head>
    to this -
    <style type="text/css">
    #wrapper { width:1004px; margin:0 auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser
    window without */
    /* horizontal scrollbars. 1004px is pretty wide, and will
    display horizontal
    scrollbars on 1024 screens.*/
    </style>
    </head>
    change this -
    <body
    onload="MM_preloadImages('click-button-yellow.jpg')">
    (the ellipsis represents any other attributes that might be
    mentioned in the
    body tag, and SHOULD NOT BE INCLUDED EXPLICITLY!)
    to this -
    <body
    onload="MM_preloadImages('click-button-yellow.jpg')">
    <div id="wrapper">
    and this -
    </body>
    to this -
    <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "patrickpmm" <[email protected]> wrote in
    message
    news:[email protected]...
    > hi there, would anyone here mind looking at my test site
    and telling me
    > what I
    > am doing wrong?
    >
    http://presentations.patrickmeyers.com/
    >
    > I am VERY new at anything web related, and trying to
    learn some
    > Dreamweaver,
    > html, and css. Basically I want ALL my content (which
    for now is just
    > images)
    > to stay flush left with each other no matter what the
    user does with their
    > web
    > browser window. But when I expand my web broswer window,
    two of my images
    > (one
    > of which is a rollover image that I need to add a
    hyperlink to) bump over
    > to
    > the right and up. I don't want them to do that! I want
    them to stay flush
    > left
    > at all times.
    >
    > I also want to center everything so that no matter what
    a person does with
    > their browser, the page stays in the center of the
    window (i.e. the Yahoo
    > homepage) but all the content remains left aligned
    relative to the top.
    >
    > I've tried every concievable setting in Dreamweaver I
    can think of and
    > nothing
    > works. The button and bottom banner still move over to
    the right and up.
    >
    > Any tips? Thank you in advance!!!!!
    > p
    >

  • Simple But tricky for me

    Hi All
    I have a table like below
    application_id | Page_name | Group_name | Question_name | Data
    123 App1_Fina_1 Lia_Loan1 Type PersonalLoan
    123 App1_Fina_2 Lia_Loan2 Payment 2000
    124 App1_Fina_1 Lia_Loan1 AmmountBorrow 3000
    124 App1_Fina_2 Lia_Loan3 AmmountPaid 1500
    here my each application may have differnet question names and they are aplication based. can I have the extract as below
    appllication_id | Type | Payment | AmmountBorrow | AmmountPaid
    123 PersonalLoan 2000
    124 3000 1500
    can I have this kind of extract in select statement?

    Hi !
    I was typing this .. so i'm posting it ..
    SQL>
    SQL> with tab as (
      2  select 123 application_id, 'App1_Fina_1' Page_name, 'Lia_Loan1' Group_name, 'Type' Question_nam
    e,
      3   'PersonalLoan' Data from dual union all
      4  select 123, 'App1_Fina_2', 'Lia_Loan2', 'Payment', '2000' from dual union all
      5  select 124, 'App1_Fina_1', 'Lia_Loan1', 'AmmountBorrow', '3000' from dual union all
      6  select 124, 'App1_Fina_2', 'Lia_Loan3', 'AmmountPaid', '1500' from dual )
      7  select application_id,
      8         max(decode(question_name,'Type',data)) Type,
      9         max(decode(question_name,'Payment',data)) Payment,
    10         max(decode(question_name,'AmmountBorrow',data)) AmountBorrow,
    11         max(decode(question_name,'AmmountPaid',data)) AmountPaid
    12    from tab
    13   group by application_id
    14  /
    APPLICATION_ID TYPE         PAYMENT      AMOUNTBORROW AMOUNTPAID
               123 PersonalLoan 2000
               124                           3000         1500
    SQL> T

  • Pretty simple but annoying question for newbie

    when opening form is there a way to automatically display the
    record rather than having to hit F8.
    also....
    is there a way to navigate through records using PL/SQL rather
    than using the buttons on the tool bar at the top or form
    runtime.
    thanks in advance

    This is probably in the wrong forum. ;)
    Anyway, here's my suggestions for your two queries:
    Q1) Add a WHEN-NEW-FORM-INSTANCE trigger containing the
    following statement:
    EXECUTE_QUERY ;
    Q2) Use the up and down arrow keys - they navigate between the
    previous and next records respectively.
    HTH

  • Simple but drastic question...resizing windows

    I normally work with a Macbook connected to a 23" Cine display. Pulled the Macbook off the display, opened Photoshop, and the bottom of all the action panels (actions, layers, channels, etc...) are below the lower edge of the screen and there appears to be no way to recover them.
    The program is essentially useless until I can get connected to a big display, simply to click on the bottom of these panels.
    What's the secret to resizing these?

    This is in the System Preferences of the Mac in OSX Snow Leopard and above (perhaps previous versions as well)

  • Simple but frustrating question

    When I pressed f6, it used to create a keyframe duplicate of
    the most recent keyframe on that layer. For some reason, today I
    got on and f6 is making blank keyframes! even when I go to
    modify>timeline>convert to keyframes --- still blank! What
    happened and how do I fix it?

    Flash will create a blank keyframe if there is nothing on the
    layer where you are creating the keyframe (i.e. You press F6 when
    you have a 'white' frame selected).
    If you press F6 on a frame that is shaded grey (a frame that
    has content), the content of the frame where you have inserted a
    keyframe does not change, it simply converts the frame to a
    keyframe. I hope that makes sense - and that it is helpful.

  • Simple, funny but annoying question, putting a pixel

    Maybe this could be simple, funny but annoying question.
    How do you put a pixel or draw a pixel?
    Is there a method to draw a pixel directly on screen in j2SDK API?

    This is a very open ended question, do you want to draw a pixel in an image or just draw a shape on the screen?
    If you want to edit single pixels at a time then the best option is to create a BufferedImage and use the WritableRaster to edit the pixels you want by using setPixel().
    Something like the following:
    BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    WritableRaster raster = img.getRaseter();
    raster.setPixel(x_coord, y_coord, new int[]{R_val, G_val, B_val});This image can then be displayed by putting it in a JLabel (there are many other techniques but I find this the easiest method).
    JLabel l = new JLabel(new ImageIcon(img));
    JFrame jf = new JFrame();
    jf.setContentPane(l);
    jf.pack();Alternatively, you can draw shapes by using Graphics or Graphics2D objects
    e.g.
    public class MyPanel extends JPanel
      public void paintComponent(Graphics2D g)
         super.paintComponent(g);
         g.drawLine(x1,y1,x2,y2);
    }Hope this helps,
    Stef

  • Every time i get on my computer and click on imessage and facetime a little box pops  up saying an internal messages error occurred  or an internal facetime error occurred....but my question is how do i get it to stop doing this or how to stop it

    every time i get on my computer and click on imessage and facetime a little box pops  up saying an internal messages error occurred  or an internal facetime error occurred....but my question is how do i get it to stop doing this or how to stop it.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

Maybe you are looking for

  • Software Update error on Mountain Lion

    issues with app store when checking for software update an error message pops up stating "error=NSURLErrorDomain error -1100" and is unable to check update.this is on Mountain Lion 10.8.1 on my mid 2012 macbook pro 13''. it juat started acting like t

  • How to make Sales Office field mandatory in VA01 initial screen?

    Hi, How to make Sales Office field mandatory in VA01 initial screen? I mean in the first screen where we enter the document type and the sales area? Regards, Ajit

  • Com.sap.portal.prt.sapj2ee.error

    Hi, When i run "startsap" on our Portal CI, i see the following error message in: std_server0.out Mar 15, 2008 8:40:51 AM          com.sap.portal.prt.sapj2ee.error [SAPEngine_Application_Thread[impl:3]_34] Fatal: Exception during reference registrati

  • Capturing Screen using java

    Hi, Is there anyway I can do a printscreen using java and then send the image over the network? axlrose82

  • Send uploaded file to another server

    i have build a bsp who can i upload 2 files. these files are saved in a table with filename, extention and content. now i want to send these informations to a external server. i found nothing about this theme... have somone a idea? thx Dogas Message