String Operations which contain the special character '#' in BDC Session

Hi
Iam getting a file from the application server, It is having the field seperator # .So i worked with SPLIT statement. Here i found that SPLIT is not working for # . Also i have tried with REPLACE ,It is also not working for # . But i found that both the statements are working for , and space also. So can anyone give me with any other alternative.
Your help is highly appriciated. Below is the code Iam working with.
1) replace '#' with ',' into string-string.
2) split string-string at '#' into
wa_vbak-auart wa_vbak-vkorg wa_vbak-vtweg wa_vbak-spart wa_vbak-kunnr.

Hi meshack prasan appikatla,
   If a character is non printable character then the SAP display that character as '#', But this # is not a real character that is the reason you are not getting the perfect answer. I thins your application file is tab de eliminater file.
Instid of declaring horzantal tab call you can use the follwoing logic.
(I think this is the better one)
use the following method.
create a hexa decimat variable.
Data:
c_hextab(1) TYPE x VALUE '09'.
use this hexadecimal character in your program
FORM fetch_header .
CLEAR fs_bbkpf.
SPLIT t_itab
AT c_hextab
INTO fs_bbkpf-tcode
fs_bbkpf-comp_id
fs_bbkpf-seq_no
fs_bbkpf-date
fs_bbkpf-rec_type_code
fs_bbkpf-rec_count
fs_bbkpf-tot_amt
fs_bbkpf-file_format
fs_bbkpf-iss_id
fs_bbkpf-proc_id
fs_bbkpf-reg_id
fs_bbkpf-proc_platform.
IF fs_bbkpf IS NOT INITIAL.
CASE fs_bbkpf-rec_type_code.
WHEN '28'.
w_header_28 = t_itab.
WHEN '05'.
w_header_5 = t_itab.
WHEN OTHERS.
w_header_ignr = w_header_ignr + 1.
TRANSFER t_itab TO p_file4.
ENDCASE. "CASE fs_bbkpf-rec_type_code
APPEND fs_bbkpf TO t_bbkpf.
ENDIF. "IF fs_bbkpf IS NOT INITIAL
ENDFORM. " fetch_header
Regards.

Similar Messages

  • Find the Special character and non Ascii character

    Hi:
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

    i need some example..i am not have any idea....
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'β%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • How to escape the special character ' (ascii 39) in a query

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    Use two single quotes inside your literals to represent one single quote.
    For example, this would find my name:
    SELECT *
      FROM emp
    WHERE name = 'Michael O''Neill';
    Michael O'Neill
    (acutely aware of the apostrophe issues in the world)

  • How to allow the special character in folder or filename

    when i add the special character "&" in folder or file name it gives following error
    "The file or folder name "P&A" contains invalid characters. Please use a different name. Invalid characters include the following: ~ " # % & * : < > ? / \ { | }. The name cannot begin or end with dot and cannot contains consecutive dots."
    how can i allow these character in folder or file name.
    waiting

    Hello to everybody
    It's ok for the ~ " # % & * : < > ? / \ { | } characters, they cannot be allowed,
    but in a lot of languages there are letters like  è é à ù ò that are accepted for path and/or filename;
    how to allow these characters? Moss indexes them but when doing some searches and clicking on these files, in the new internet explorer windows the file cannot be opened abd examining the url the è é à ù ò are replaced with other character.
    Thanks in advance to everybody
    Regards to all
    Roberto GerlandoGerly

  • How can I replace the Special Character        '

    Hi Guru ,
    I want replace one Special Chareacter into space .
    Example -
    There have one variable .
    L_VAR = BANGA'LORE
    I want to delete the special character ( ' ) which is between A and L .
    Whenever I am tryiny to use replcae statement , it will show one Error Message .
    REPLACE ''' IN L_VAR WITH ' '.
    IT WILL GIVE ONE ERROR MESSAGE - " Literals that take up more than one line are not permitted."
    How Can I replace this .

    Hi Tarak Dey,
    This error
    Literals that take up more than one line are not permitted
    is not for the Replace statement. You would have missed a PERIOD in some statement before this.
    When we see the code that you have pasted,
    L_VAR = BANGA'LORE
    here period is missing at the end of the line. The error could be because of that.
    Kindly check.
    Best Regards,
    Ram.

  • How can I use Greek symbols in a text in Pages? Greek symbols are not in the special character list.

    How can I use Greek symbols in a Pages text? Greek symbols are not included in the special character collection.
    I need to import for example a sigma from Word or Adobe illustrator and then Pages can recognise it. I can not find it from within Pages.

    Special character palette from the edit menu does have sigmas under European ... > Greek ...
    You can do a search at the bottom of the Special Character palette. Double click on the greek capital letter sigma. You will get a lot of sigmas.

  • I live in Saudi Arabia and intend to buy an iPhone 5 (unlocked version) from U.K. I want to know, would it be possible to claim warranty from the local network operator which is the official Apple iPhone seller i.e. Mobily. Would they repair/replace ?

    I live in Saudi Arabia and intend to buy an iPhone 5 (unlocked version) from U.K. I want to know, would it be possible to claim warranty from the local network operator which is the official Apple iPhone seller i.e. Mobily. Would they repair/replace my iPhone 5 ?

    You would need to return to U.K. for warranty service. The iPhone warranty is not international.

  • How to discard the special character from field-Table.

    Hi
    In my data i am having a lot of SPECIAL CHARACTER also involved, I want to display only the consumer name (PURELY), is there any method/function module to discard the special character and display only the A-Z character as stored in DB.
    Gaurav

    if itab-field CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    or
    if itab-field CP 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
    then do ur else calculation.
    else.
    delete itab.
    Edited by: tahir naqqash on Feb 17, 2009 4:27 PM
    Edited by: tahir naqqash on Feb 17, 2009 5:21 PM

  • How to use the special character pallet in Maverics with Illustrator

    How to use the special character pallet in Mavericks with Illustrator - I follow the help instructions, but the pasted in object looks like a rectangle with an X, I have done this before, in earlier versions of AI, but cannot make it work in CS6.
    In fact, I can open an old AI file (CS4), copy the character (a graphic symbol, also taken from the special character set), paste it in, and it works, but can't do this with a new one, from the drop down, Show Character Viewer, in the Mavericks menu bar.

    The box with an X indicates the font you are using does not have the glyph you are trying to paste. Try a different font.

  • Table name which contains the email addresses maintained in address area of SCOT

    HI,
    I would like to know the table name which contains the email addresses maintained in address area of SCOT.
    I know how to see through SCOT, but I want to see as a list through SAP table.
    I am not able to see email list through SXNODE AND SXADDRTYPE tables.
    Thanks,
    Nagaraju Ravuri

    Hi Nagaraju,
    You may use ADR6 table and field SMTP to get email address of respective users.
    Regards,
    Deepak Kori

  • Why the SAX parser cannot support the special character like "¡"

    I do not understand why the SAX parser cannot support the special character like &iexcl; but it can replace the &quot; &amp; &lt; &gt;   to ", &, <, >, ,, but other characters will be replaced to empty charater.
    can somebody give me any suggestions or solutions. THX.
    Edited by: 844086 on 2011-3-14 上午2:27
    Edited by: 844086 on 2011-3-14 上午2:27

    I quote:
    Alternatively implement an EntityResolver that resolves the desired escapes.You are again an example that people only read/register the first thing written in a post.

  • How find the Special Character Table?

    Hi friends.
    i need table for special characters. how find the special character table.
    example : &,@<#<$ -- all are special characters.
    any body please reply immdly.
    regards
    pauldharma

    Hi Raj,
    Check this forum thread:
    Print Currency as symbols in SAPSCRIPT/Smartforms
    Hope this helps.
    Regards,
    Vivek Myadam

  • How to find the special character in a give string/sentance

    Hi All,
    I have one task to complete with in the give time. Since i am not very good in PL/SQL i need your your help.
    Requirement is :
    I have to come up with the SQL or PL/SQL code which should return and find the special or hidden character in the datafiles name in a database. There are nearly 400+ database are present in almost all the flavor of UNIX and i have to check the each and every database.
    As you know , Name of the data file will be like this :
    /u02/instance_name\oradata\datafile_01.dbf So it should avoid these things and find out only the special characters in the datafile name.
    a-z , A-Z , 0-9 and \ Please keep in mind that ...... I will be firing the Oracle script from Oracle 9i client which will access all the database from Oracle 9i to 11g in one short and give me the result.
    Please help me to resolve this issue and let me know if you need more information.

    Hi,
    Mukesh wrote:
    Hi Frank,
    This is excellent function. Thanks for you responce.
    I want to modify this query in such a way that .... i should get only those datafiles name which are holding special characters. I don't know how to put this in where condition. :( Here's one way:
    SELECT  file_name
    ,       ...     -- other expressions, if you want any
    FROM    dba_data_files
    WHERE   TRANSLATE ( file_name
                      , '?0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ\_/abcdefghijklmnopqrstuvwxyz'
                      ) IS NOT NULL Among the other expressions you can put into the SELECT clause (if you want to) is a copy of the TRANSLATE function, as you had in your message. That would highlight exactly which character(s) made the file_name invalid.

  • How to know the Special character?

    I am using Release 10.2.0.1.0 version of oracle. I am getting a special character, but i suspect it as any other language caharacter.
    Its appearing in my 'TOAD editor/Sql prompt editor' as 'A?'. but when i am selecting it from the table using below query, its giving 'No rows Returned'.
    select id from tab1 where id like 'A%';
    Please let me know, how can i be able to see the exact character or which editor will enable me to see the character?
    I think sql developer GUI might be able to show the same but i dont have sql developer with me.

    930254 wrote:
    I am using Release 10.2.0.1.0 version of oracle. I am getting a special character, but i suspect it as any other language caharacter.
    Its appearing in my 'TOAD editor/Sql prompt editor' as 'A?'. but when i am selecting it from the table using below query, its giving 'No rows Returned'.
    select id from tab1 where id like 'A%';
    Please let me know, how can i be able to see the exact character or which editor will enable me to see the character?
    I think sql developer GUI might be able to show the same but i dont have sql developer with me.select ASCIISTR(id) from tab1 where id like 'A%';

Maybe you are looking for

  • Problems with PO creation in SRM in Plan Driven Scenario

    Hi experts, I have a problem with creation of PO from SC in SRM 5.0 (Extended Classic) in Plan Driven Scenario: We transfer PM order from FI/LO (ECC 5.0) to SRM (the Extended Classic is activated). SC (External req) is being approved After approval t

  • Programati​cally Assigning Step Type Properties

    I have developed several COM instrument drivers in Visual Basic 6.0 which I can call from TestStand using the ActiveX/COM adapter. However, I would like to be able to create a custom step type for each of these ActiveX servers. Each server provides s

  • Help required in triggering concept for sending mails automatically

    I am developing an application in which i had to develop an Auto Responder application. For this application i need to send different mails to different customers automatically on different days. Though i got the concept of using timers and the sched

  • SCCM 2012 Reporting point server instance blank

    I have installed SCCM 2012 With remote SQL database server successfully, at the time of Reporting service point role installation, its verified the SCCm database successfully but SQL server service instance is blank, what would be the reason.... Belo

  • Checking if Date/Time is Available (and then some more)

    Okay, so I am stepping out of my as3 skill set here quite a ways and need some bookoo assistance (Flash 5.5). I am working on trying to come up with a way (an AIR desktop application, or web application) for the teachers on my campus to be able to as