Can I generate a CR (Carriage Return) in a dynpro entry field ?

My problem is the following
I have a card reader and the information of this card will go into a SAP dynpro entry field.
Now I need an addition CR (Carriage Return)
Is that possible ?
Thanks

Basically this card reader is nothing more than any other barcode scanning or otherwise, so here is what I'm thinking.  At my old company, we had a bunch of barcode scanners which connected directly with SAP, the user would scan the barcode and it would put the value directly in the dynpro field.  This was great, but the user had to then hit enter.  There was no way for us to control this on the ABAP side.  We then discovered that in the barcode reader itself, there is some configuration around what is called a "postamble".  This is a keystroke which is fired automatically when a barcode is scanned, or maybe when a card is swiped?  Check your terminal and see if their is such a setting or configuration.
Regards,
Rich Heilman

Similar Messages

  • Add a carriage return in a Unbound String Field

    Post Author: Razzle00
    CA Forum: Formula
    Hi,
         How can I add a carriage return to an unbound string field in a crystal report.  I am using the bundled version of CR with MS Visual Studio 2003 & 2005.  My formula needs to look something like this....
    'Heading One:' + CARRIAGE RETURN + trim({tablename.fld_1}) + CARRIAGE RETURN + 'Heading Two:' + CARRIAGE RETURN  + trim({tablename.fld_2})
    this code all needs to be in 1 unbound string field.  Is this possible?
    Thanks,
    Razzle

    Post Author: SKodidine
    CA Forum: Formula
    To add a carriage return, add CHRW(13)
    For example:
    'Heading One:' & chrw(13) & 'sample text';
    will result in:
    Heading One:
    sample text

  • Using a Macro to add a Carriage Return after each data entry within all cells of an imported range of cells

    I have a macro that copies data from a Target workbook then pastes the data into a destination workbook.  I then wish to use lookups in the destination workbook to view specific data from the pasted range of data on a separate sheet. 
    The problem is, the cells that contain numbers from the pasted data have the green dogeared error flags associated with the cell. The only way I can make a lookup function work, is to go to each cell and manually enter a carriage return after each entry. 
    The code for the macro is given below.  What can be done so that the pasted data contains no errors associated with the number cells?  Or can a second macro be written to clean the data.  If so can you help me out?  Thanks in advance.
    Kindest Regards
    Sub ImportData()
     ' ImportData Macro allows user to select an Excel workbook (i.e. Orchestrate Excel Output),
     ' then copy & paste it into the MediaSpreadsheet.
        Dim wbk As Workbook
        Set wbk = Application.Run("MediaSpreadsheet_1.0.xlsm!OpenFile")
        If wbk Is Nothing Then
            Beep
            Exit Sub
        End If
        Set wbk = ActiveWorkbook
        Range("A9:S116").Copy
        Workbooks("MediaSpreadsheet_1.0.xlsm").Activate
        Sheets("OrchestrateData").Select
        Range("A1").Select
        ActiveSheet.Paste
        With Selection.Font
            .ColorIndex = xlAutomatic
            .TintAndShade = 0
        End With
        With Selection.Interior
            .Pattern = xlNone
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
        Selection.Borders(xlDiagonalDown).LineStyle = xlNone
        Selection.Borders(xlDiagonalUp).LineStyle = xlNone
        Selection.Borders(xlEdgeLeft).LineStyle = xlNone
        Selection.Borders(xlEdgeTop).LineStyle = xlNone
        Selection.Borders(xlEdgeBottom).LineStyle = xlNone
        Selection.Borders(xlEdgeRight).LineStyle = xlNone
        Selection.Borders(xlInsideVertical).LineStyle = xlNone
        Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
        wbk.Close
        Sheets("MediaSchedule").Select
    End Sub
    DAPulliam64

    Hi DAPAugust64,
    The green "dogeared error flags" of the cells means that you paste numbers in these cells, but they're formated as Text.
    So you need to change the cells back to the correct format so that the lookup function works fine. You can simply call this method after pasting:
    ActiveSheet.Cells(1, 1).NumberFormat = "General"
    ActiveSheet.Cells(1, 1) = ActiveSheet.Cells(1, 1).Text
    Or use PasteSpecial method to paste the numbers as well as it's format:
    https://msdn.microsoft.com/en-us/library/office/ff837425.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to handle carriage return/linefeed embedded in text field as first char

    Hi,
    I am trying to use sqlldr to import text that is comma-separated and double quote-enclosed, but contains embedded carriage return/linefeed pairs. I have a control file which works for most cases and looks like this:
    LOAD DATA
    INFILE './foo.new'
    APPEND
    CONTINUEIF LAST PRESERVE (<>'"')
    INTO TABLE <tablename>
    FIELDS TERMINATED BY "," ENCLOSED BY '"'
    TRAILING NULLCOLS
    Unfortunately, this fails when the very first character of the text field is a carriage return/linefeed pair, e.g.,:
    "11","22","33","\r\nThis is the fourth field","","","","",""
    In that case, what is actually the opening double-quote for the fourth field, is interpreted by the CONTINUEIF clause as the end of that line. Can anyone please point me to a solution?
    thanks.
    stan.

    Thanks for the suggestion. Unfortunately, I've already tried it, and it doesn't help. I believe the problem is that sqlldr tries to figure out where each record is delimited before it parses out the field. So, any field-level trimming depends on sqlldr first determining that the cr/lf is actually part of that record, and not an indication of the start of a new record (and it's doing the latter right now). Fwiw, Python's csv parser will handle this type of record just fine.
    regards.
    stan.

  • How can I change the event registration layout for registration information entry fields?

    Hello,
    I want to change the arrangement of the event registration entry fields.  For example I want t arrange them into 2 columns and add some comment to them.  The template editor doesn't allow to select a specific field.  Who can help?

    Hello
    As far as I know you cannot edit registrations data. What you can do it to contact Toshiba and explain the situation.
    For contact use follow mail address: [email protected]
    You must contact Toshiba in your country. Contact details can be found at http://eu.computers.toshiba-europe.com/innovation/contact_toshiba.jsp
    Good luck!
    Message was edited by: ADMIN

  • Can I preserve carriage returns in a string variable from SQL Server?

    I have an OLE data source that pulls data from sql server via a SELECT query.  One of the fields is an NVARCHAR(max) which goes into a string variable which is later used in an expression.  I am noticing that in the expression, carriage returns
    / line breaks in this field are being lost.  Does anyone know how I can preserve these in the expression?

    Thanks everyone for the suggestions.  I am certain there are both \r and \n in the database as when I print the field and then copy/paste to textedit to show the hidden characters, I can see both the CR and LF's.  
    I have implemented a workaround that is by no means elegant, but it gets the job done.
    I found that \r and \n will evaluate in an expression but if they are part of another string variable, SSIS escapes them. My workaround was to change my OLE_DB select statement (which fetches the custom SQL query) to explicitly change the hidden characters
    to '\r' and '\n' respectively:
    SELECT REPLACE(REPLACE([CUSTOM_SQL],char(13),'\r'),char(10),'\n')
    Then, in my SSIS expression, I de-escaped these characters:
    REPLACE(REPLACE(@[User::vAlertCustomSQL],"\\r","\r"),"\\n","\n")
    Now when the expression is executed, the SQL is formatted correctly and oddly placed comments in the query no longer break the query.  

  • How do we remove Carriage Return (line feed) inserted in FCC files

    Hi Experts,
    The file that we generate has a carriage return at the end.
    Is there any way in which we can remove this carriage return (line feed) from the file?
    The FCC parameters used at our end are as below:
    structure.filedNames:
    structure.fieldFixedLengths:
    structure.fixedLengthTooShortHandling: Cut
    Kindly tell us a solution ASAP.
    Thanks & Regards
    Dhwani

    Dear All,
    Let me elaborate on my query
    Consider that the files output looks like below:
    12  34  45  545 5454 UL
    23  33  43  434 4545 FG
    45  44  44  586 6535 GM
    Now there is an extra line(Carriage Return) getting inserted after the last line 45  44  44  586 6535 GM  which is not required at our end.
    The cursor of the file instead of stopping on the last character M, points to the next line.
    Can you please suggest how to remove this extra line from the files.
    I dont understan how will remove context help in this case.
    Regards
    Dhwani

  • What do you enter for a Carriage Return in Find&Replace?

    I'm using TextEdit to find and replace all instances of a string in an exported .txt with Carriage Returns (CRs). Only, I can't figure what to press in the 'Replace with:' field to tell TextEdit that I want the CR to go in there. Obviously, if I just press Enter, it will just Find then next occurrence of the 'Find' string.
    Any tips?
    What I have been doing as a clumsy work-around is type a CR in the .txt file, and then copy-paste in into the 'Replace with:' field. Only I thought maybe there's a cleverer way of doing it.

    Alex Zachopoulos wrote:
    What I have been doing as a clumsy work-around is type a CR in the .txt file, and then copy-paste in into the 'Replace with:' field.
    I don't know of a better way to initially set up the Carriage Return in the "Replace with:" field. However once you have done that, you can get it back from the drop-down list associated with that field (it will appear there as a blank line).

  • Place a carriage return in the field separator of an iChart

    In the Data Mapping of an iChart, the Field Separator is a good tool to obviously separate data.  The problem I see is the two fields and the separator are on one line.  How can I place a carriage return to place the two fields on separator lines?

    Hi,
    This is not possible to do; however, perhaps it could be entered as a feature request for a later version.
    Diana Hoppe

  • Write to spreadsheet adds carriage return

    I am using build array function to put together a number of strings and build an array of strings.  The build array is in a while loop.  A new line is added to the array every loop.  I am using write to spread sheet function to save the spreadsheet to a file with xls extension.  For some reason, a carriage return is inserted within the array.  The array has 9 columns and a carriage return is put after the fourth column.  I have not added this carriage return.  Does anyone know why write to spreadsheet might automatically add a carriage return and how to remove it?  
    Thank you!
    Solved!
    Go to Solution.

    Hi,
    I took your posted VI and compiled it to an exe.  I do not see the carriage return problem you are describing?
    If you compile the VI you attached, do you see the problem or is it only in the original main application (that you cannot share)?
    If the compiled exe works on your PC, does it also work on the 'different' computer where you see the issue with your original code?  
    -If it does work, then the issue must be in the source code for your original code.  Sometimes, if you re-size string constants, for example, it can be hard to see carriage return's.
    Another thing it could be perhaps, is if you are calling the "write spreadsheet" in two different places in your main code, then the way it works is it will write your two (different) input arrays to separate lines.  If it is as in your example VI though, there should be no carriage return in the "middle" of the array.
    For debug purposes, you could consider making a VI that takes a 1D string array input, iterates over each element in the array and searches for the carriage return character and gives an error/message on what iteration it found it, then you can back-track from there to see in the code responsible for making the string that went into that index.
    QFang
    CLD LabVIEW 7.1 to 2013

  • Carriage return broken for comments

    I'm not sure how I did.  But now I can no longer use a carriage return in a comment.  
    I've restarted LabVIEW.  I've rebooted my PC.  
    But now, instead of moving to the next line when I hit retrun while typing a comment, it just closes it.  Probably not a big deal.  But I'm right in the middle of a super tight deadline, and now commenting is going to take me way longer.  
    How can I fix this?
    Patrick Allen
    Solved!
    Go to Solution.

    Patrick,
    is there a difference between the enter key and the numpad enter key?
    Where are you creating those free labels (FP or BD)?
    Do you have any key-locks active (numlock/capslock)?
    hope this helps,
    Norbert
    [Edit] Since you already rebooted your PC: What happens if you use another keyboard? 
    Message Edited by Norbert B on 11-23-2009 08:51 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Stripping variables for carriage returns

    Hi all, would appreciate any thoughts on this problem......
    Using the Show Me ODBC piece as a guide, I've successfully
    imported a table
    from an access database. The table comprises three fields
    [ID], [Question],
    [Response] which are stored as a variable called DB_ODBCData.
    This variable
    looks something like this:
    "1\tQuestion bla bla bla\tResponser bla bla
    bla100\r2\tAnother question bla
    bla\tAnother response bla bla\r3\Question 3 bla bla........ "
    etc etc
    I was then able to split this into three separate variables
    (eg. varID,
    varQuestion, varResponse) by sorting DB_OBDCData as a list.
    Everything
    looks fine and I'm able to display the correct field in the
    correct
    variable.
    However, if there is a carriage return in the actual field in
    the database,
    for example.....
    Can you confirm the times the following evidence were found:
    1) the watch
    2) training shoe
    ....this messes up my variables. It treats the carriage
    returns in the
    questions as an end of field, consequently (in the example
    above) "Can you
    confirm...." would be assigned to varQuestion correctly, but
    "1) the watch"
    ends up in varResponse, and "2) training shoe" ends up in
    varID
    I have tried to use the Authorware STRIP command to remove
    unwanted carriage
    returns from the DB_OBDCData variable, but this is
    unworkable. It won't
    recognise the carriage returns as anything other than "\r",
    which
    consequently strips away all the field separation and leaves
    everything in
    one big variable!
    Any clues guys as to how I can overcome this problem? I know
    the easiest
    thing would be to ensure there were no carriage returns in
    the actual
    database fields, but for other reasons this is impossible to
    achieve.
    TIA
    Reg.

    You could have just replaced it with something short, like
    "~". But
    whatever.
    "RegTheDonk" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks everybody for your help :-)))
    >
    > Amy, the actual data within the database is inserted "on
    the fly" by
    > students. Its part of a system that is used for
    communicating in critical
    > incident simulations - they type in a question which the
    "control room"
    > answers appropriately. As time and pressure is a factor,
    they won't
    > adhere
    > to any specific rules like not using the carriage
    return, or using special
    > characters like ~ etc. So Im stuck with what I've got,
    > unfortunately....(they won't be to fussed about the
    spelling or grammer
    > either lol!)
    >
    > Steve, I'm unable to modify or control the table
    structure as the
    > databases
    > in question are part of a larger, non-open source
    programme, specifically
    > written for the above purpose. The reason I've been
    asked to get involved
    > is to make a kind of "3rd party application" where
    observers can view the
    > communications between students and trainers, to assist
    their own
    > debriefing
    > sessions. The main programme was developed by a company
    which offers no
    > real support, so its up to the clients to try and make
    any improvements on
    > the system themselves.
    >
    > Fortunately, as the first field [ID] always starts with
    a number, I tried
    > a
    > variation of Mike's idea and did a series of REPLACE
    statements on the
    > variable; eg:
    >
    > tempString := Replace("\r1", "carriagereturn1",
    tempString)
    > tempString := Replace("\r2", "carriagereturn2",
    tempString)
    > tempString := Replace("\r2", "carriagereturn3",
    tempString) etc etc,
    >
    > .... I then STRIPed out all the returns "\r" that were
    left, which
    > eliminated any returns that the students had typed
    themselves....
    >
    > .... I then re-REPLACEed the "carriagereturn1" with
    "\r1" etc.
    >
    > Its a bit long winded, but blow me - as long as a
    student doesn't start an
    > input with a number (which should never happen) it
    works!
    >
    > Thanks again everyone for your suggestions....doubtless
    I'll be along with
    > other problems as this thing gets bigger! lol
    >
    > Cheers,
    >
    > Reg.
    >
    >

  • Carriage return with concatenation

    Hi, I have an address table that has the address, city, state, and zip. I'm trying to make a select statement that will display each field on a line. I want to place address, city, state, and zip into an Alias Address. Is there a char value that I can use to do the carriage return?
    Select address || city || state || ', ' || zip AS "Address" From address;
    I want the output to be like:
    address
    city
    state, zip
    I just need to know what to put between the address, city and state to make them go on their own line.

    SQL> SELECT
      2  'John Doe'
      3  || CHR(10)
      4  || '100 Main St.'
      5  || CHR(10)
      6  || 'Anytown, USA  00000' address
      7  FROM DUAL
      8  /
    ADDRESS
    John Doe
    100 Main St.
    Anytown, USA  00000HTH,
    T.

  • Creating Wordpress blog entries with Safari 3 loses carriage returns

    Hi all,
    Ever since I started using Safari on Leopard, I've been losing all my carriage returns in my Wordpress entries. I don't know what's causing it, but Safari for Tiger, and Firefox 2.0.0.8 running on Tiger, Leopard, and Windows XP don't cause this to happen.
    Anyone have a clue as to why this is happening? The carriage returns are apparently getting erased somehow because where there should be a <p />, there's instead no space between the last period of a sentence and the first letter of the next.
    eg:
    This is the end of the line.This is the next line
    I'm not sure this is fixable by the users.
    Message was edited by: Michael Gaines

    Hi all,
    Same safari/wordpress problem here.
    And not the only one! (cookies, crashes)
    With the safari troubles I am now using camino more and more often. If it did copy formated text properly it would now be my first choice.
    However I do like safiris search/find a lot!!
    Detlev

  • Converting carriage return in HTML spool

    I've written an sql for spooling the result of a Select in HTML format by using "set markup html on spool on head".
    The problem is that when I open the HTML file I no longer find the carriage returns. I mean the carriage returns that were in CLOB field of the table now miss. Could you help me?
    This is the script:
    set pagesize 10000
    set scan off
    set markup html on spool on head ' - '
    column text heading "TEXT"
    spool c:\temp\report.html
    select dbms_lob.substr (t.field, 5000, 1)     text
    from table t;
    spool off;
    exit;
    The "field" contains a long text with carriage returns that aren't in the report.html anymore

    user12180597 wrote:
    I've written an sql for spooling the result of a Select in HTML format by using "set markup html on spool on head".
    The problem is that when I open the HTML file I no longer find the carriage returns. I mean the carriage returns that were in CLOB field of the table now miss. Could you help me?
    This is the script:
    set pagesize 10000
    set scan off
    set markup html on spool on head ' - '
    column text heading "TEXT"
    spool c:\temp\report.html
    select dbms_lob.substr (t.field, 5000, 1)     text
    from table t;
    spool off;
    exit;
    The "field" contains a long text with carriage returns that aren't in the report.html anymoreset preformat to ON:
    set markup html on spool on head ' - ' PRE ON

Maybe you are looking for

  • How do I change the default settings on ical

    how do I change the default settings on ical - I upgraded to Lion and now every event is automatically clicked as an "all day" and when I unclick the "all day" it gives me an 8 hour window for my event instead of the 1 hour that I prefer! Help!

  • Automatic refresh in the inbox.

    Hi There,      We have implemented a new workflow project. Work items are not being refreshed automatically when the user comes back to the inbox. Is there any way we can automatically refresh the inbox. Joe Vellaiparambil

  • How to allign text under the barcode with same width?

    Hi, I need to put a barcode in my form with the human readable text right under it and more importantly,irrespective of the number of digits of the text number, it needs to be space out exactly equal to the barcode length.can anyone please help with

  • Is there a keyboard shortcut to keep a clip in sync as you move it vertically to other tracks?

    I noticed that if you take a clip and hold down the shift key after starting to move it, there is an interesting behavior which forces the clip to be stuck to that track; in other words, you can only move it horizontally to other parts of the same tr

  • Want Help on Neural Network

    I have developed some code for the implementation of a two layer neural network structure in Labview. The network is supposed to read the training sets of data from a file and should train itself, but it is not working may be because of some error. T