How to remove character letter in variable

hi,
i am having one variable like this
data: g_partner type c.
g_partner = '1000ct99t5'.
is ther is any Function module to delete the character from this variable or give me a simple logic to delete the variable,
i need output like  this 1000995

Hi
I dont think that a function module is existing for deleting a character
but you can use
CO operator to check whether it is having the same content or not
Check this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm
http://www.planetsap.com/thesap_abap_keywords.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm
Reward all helpfull answers
Regards
Pavan

Similar Messages

  • How to remove leading zeros from variable

    hi,
       how to remove leading zeros from variable like it_vbap-matnr.
    value in it_vbap-matnr is 000000000000000358
    i want to remove leading zeros so that it become 358
    regards
    deepak

    You can use Function Module <b>'CONVERSION_EXIT_MATN1_OUTPUT'</b>
    This Function Module will eliminate leading Zeros.
    For each MATNR Value read form DB Table,u can eliminate Leading zeros and then modify ur Internal table.
    I think u will not get leading Zeros into utr Internal table when u read from VBAP.
    Bcoz MATNR in VBAP itself have Conversion routine.
    If u r getting leading zeros,U can use following Logic.
    tables:
      vbap.
    data:
       t_vbap like standard table of vbap.
    select matnr
    from vbap
    into corresponding fields of table t_vbap.
    loop at t_vbap into vbap.
      CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT'
          EXPORTING
            INPUT         =  vbap-matnr
          IMPORTING
            OUTPUT        =  vbap-matnr
      modify t_vbap from vbap transporting matnr.
    endloop.
    Hope this will work.....

  • How to remove character from cube

    Dear Friends,
    How to remove character from info cube.
    I have removed from info source and update rules.
    but unable to remove from cube.
    Regards
    Ramu

    Hi,
    If you are working in BI 7.0, then you can use remodelling to remove the characteristic from the cube without deleting the data.
    But, if you are working in BW3.x, then definately you need to first delete the data, then delete the characteristic and then again activate the cube and load the data.
    There is no other solution except the above one...

  • How to remove space from a variable in a smartform

    Hi,
    I have a problem in displaying a variable in a smartform..The variable shows some blank space that preceeds the data.
    for eg:,
    variable =        18.000.
    How to remove space before 18.000?

    To remove the decimal places for quantity and rate/quantity , use the syntax to restrict the number of digits after decimal places. The syntax is
    &symbol(.N)&
    where N is number of decimal places.
    Since you dont want decimals use &symbol(.0)&
    For the other case it depends on how the currency is represented , any way try using the syntex &symbol(T)&
    Please give me reward point If it is useful
    Thanks
    Murali Poli

  • How to remove character from desried place?

    Hi all;
    I need to remove 2nd desired character to remove.
    ex- "123-2335-456" i need to remove onve 2nd "-" i.e result sud be- "123-2335456"
    how to do it,without use of substr/instr to get 2 nd place of "-"...
    rgds,
    pc

    In that case, rejecting the only viable solution, not do it.
    Please avoid asking rhetorical questions.
    Sybrand Bakker
    Senior Oracle DBA

  • How to remove character names from the drop down

    I was writing off screen dialogue. Normally I would write  FRED (O.S.) but when I did this, Story treats it as a new character - different dot in the outline.  In trying to correct it I now have four different instances of the FRED character that pop up in the character drop down list. How can I make the ones I don't want go away?  How do I indicate a character is off screen without creating a new character?

    I hadn't noticed this as I use a (VO) tag under the character name rather than (OS) but this is a good point.  I agree, simply ignoring anything in parantheticals is a good way to go on this one.  It all goes to the same name then.  Good ideas.
    Not sure about all the formal formatting issues as I'm really an experimental filmmaker so I don;t get that involved int he formaities but can't you also simply write these as follows:
                                            JUDGE LAWLESS
                                                      (VO)
                             Why did Jesse go and shoot that old goat anyway?
    To represent his voice being heard over the scene.  Or is this indicitave of the person being physically on camera for the scene but overheard as an inner dialogue?
    Sean

  • How to remove Dublicate values in Variable Filter screen?

    Hi All,
    I have Master data Object, ABC, XYZ and XYZ Description, and below i have given the data for the same
    Ex  ABC    XYZ      Description
           A        1           Abc
           A        2           Bbc
           A        3           Ccd
           B       1            Abc
           B       2            Bbc
           B       3            Ccd
           C       1            Abc
           C       2            Bbc
           C       3            Ccd
    While executing the Query, we want to do Drill Down on XYZ, In Variable Filter screen we are able to see the Dublicate values, which is making confusion to endusers as which is realed to ABC i.e A or B or C?
    Regards,
    Kiran

    Hi Surendra,
    Say we have executed query using WAD, in Query when we do drill down on B, we are getting all dulicate values like Abc, Abc.
    So client is not able to find which is what.?
    Regards,
    Kiran

  • How to remove character '

    Hi am writing a program which analyze source codes some of the results are like "call function 'func_name' "  and I need to get the func_name here without ' . Since ' is a special character and used in ABAP coding I can't write a code like replace ' . Does anyone have a solution for this.

    Hello
    Working code:
    REPORT ZSEARCH.
    PARAMETERS: P_NAME LIKE D010SINF-PROG.
    DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
    DATA: FUNCT TYPE RS38L_FNAM OCCURS 0 WITH HEADER LINE.
    READ REPORT P_NAME INTO PROGTXT.
    LOOP AT PROGTXT.
      IF PROGTXT CS 'CALL FUNCTION'.
        SEARCH PROGTXT FOR ''''.
        IF SY-SUBRC = 0.
          DO.
            SHIFT PROGTXT LEFT BY 1 PLACES.
            IF PROGTXT(1) = ''''.
              SHIFT PROGTXT LEFT BY 1 PLACES.
              DO.
                SHIFT PROGTXT RIGHT BY 1 PLACES.
                IF PROGTXT+71(1) = ''''.
                  SHIFT PROGTXT RIGHT BY 1 PLACES.
                  CONDENSE PROGTXT.
                  FUNCT = PROGTXT. COLLECT FUNCT. EXIT.
                ENDIF.
              ENDDO.
              EXIT.
            ENDIF.
          ENDDO.
        ENDIF.
      ENDIF.
    ENDLOOP.
    LOOP AT FUNCT.
      WRITE: FUNCT. NEW-LINE.
    ENDLOOP.

  • My ipod wont let me buy any apps because it says i have an invalid security code for my moms credit card but its the right one. and it also says i owe money for upgrading an app does anyone know how to remove my moms credit card cause i cant figure itout

    my ipod wont let me buy any appps because it says i have an invalid security code for my moms credit card but its the right one. and it also says i owe money for upgrading an app does anyone know how to remove my moms credit card cause i cant figure itout

    To change asccount information see:
    Changing Account Information
    For the code issue this may help.
    iTunes Store: My credit card's security code or zip code does not match my bank's records
    For a standard iTunes account you need a valid payment method even for free apps and app updates.
    What is making it think that you own money for an app upgrade?

  • How to remove the old email address that was hacked from my iCloud account when iCloud won't let me?

    How to remove the old email address that was hacked from my iCloud account when iCloud won't let me?
    Pretty much the the email that I used (but didn't verify) to create my iCloud account was hacked and now I can't remove it from my iCloud account due to the iCloud password also being changed by the same person and the fact I had "Find my iPhone" app on my phone also??? I had to change my iTunes email as well but that was far easier so yeah :S.
    Please help. I live in NZ, out in the country, so reception is rare and so is getting into the nearest town that has an Apple Store.
    Thanks

    If you truly change your existing Apple ID's email address to a new email address, follow these instructions: iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    If you created a whole new Apple Account because you couldn't access the old one after being hacked, you will need to contact the Apple Account Security Team. Apple ID: Contacting Apple for help with Apple ID account security

  • How to remove Include/Exclude option on variable screen

    Hi,
    How to remove the include/exclude option in the variable screen for the variable of type selection option.
    Regards,
    Suresh.

    Hi Pradeep,
    You mean in the Query Designer.I tried to create a new variable There is nothing like select appropriate variable.
    Be more specific.Thanks.
    Regards,
    Suresh

  • How to remove Variables Personalization in the BEx Analyzer?

    Hi All, Help us. Say please:
    1. How to remove personal Variables Personalization for query/user in the BEx Analyzer with standart tools?
    2. How to disable personalization button on varible screen?
    Our users very often click this "bad" button and after that can't to find required criteria on selection criteria screen. We've studied BW Guides and Forum materials (may be not very thoroughly), but search usefull information only for Web Reporting. We've search corresponding table /BI0/APERS_VAR00 but fear to edit it directly.
    Best regards, Igor

    Hi All,
    I think that best way to remove personalization of any var or infoobject could be done through the next logic.
    we have ODS <b>0PERS_VAR</b>.
    we need to remove line from this ODS with specific parameters like USERNAME and VAR_NAME or IOBJ_NAME.
    <b>Step by step instruction</b>:
    1. Create <b>update rule</b> from ODS 0PERS_VAR to the same ODS.
    2. Write <b>'Start routing'</b> to update ODS with the next ABAP-code
      LOOP AT DATA_PACKAGE.
        DELETE FROM /bi0/apers_var00
          WHERE tctusernm = DATA_PACKAGE-tctusernm AND
              ( tctvarnm = DATA_PACKAGE-tctvarnm OR
                tctiobjnm = DATA_PACKAGE-tctiobjnm ).
        DELETE DATA_PACKAGE.
      ENDLOOP.
    3. Activate update rule.
    4. Update ODS Data in Data Target with <b>'full update'</b> !
    5. At the selection screen of info-package <b>specify fields</b>
              < 'TCTUSERNM' - username  > AND
              < 'TCTVARNM' - var name > OR < 'TCTIOBJNM' - infoobject name >
    PS:\ As result <b>personalisation will be reseted selectively</b>.
    if it help you, it is a chance to donate some points to me
    best regards

  • How to remove a character in a file??

    I'm not getting how to remove a character from a file.Could anyone post a method to do this?Any help would be appreciable.

    Ohhh... and one more thing... unless you're really unlucky, a few "extranious trailing nulls" won't make a jot of difference to the size of the file on disk, each each file "fills" whole blocks anyway, which is 1K (I think) on both fister and *nix... unless of course we're talking "lots" of trailing-nulls, or lots-and-lots of files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to remove /delete a particular character in a String

    Hii
    i have this problem.In order to specify the number of decimal palces for a double type variable,i have used the
    NumberFormat class.
    My code ;
    Double x=234566.4 ;
    NumberFormat n1= NumberFormat.getInstance();
    n1.setMaximumFractionDigits(2);
    n1.setMinimumFractionDigits(2);
    String st=n1.format(x);
    out.print(st) ;
    is giving me 2,34,566.40 which I dont want I want to have it lik 234566.40
    since i will again put it in function Integer.parseInt/Double.parseDouble...so those commas are giving me errors.So can anybody suggest how to remove those commas from that string...It would be of gr8 help.thanx
    Arnab

    hi
    You can use StringTokenizer
    Your code
    Double x=234566.4 ;
    NumberFormat n1= NumberFormat.getInstance();
    n1.setMaximumFractionDigits(2);
    n1.setMinimumFractionDigits(2);
    String st=n1.format(x);
    out.print(st) ;
    StringTokenizer sT = new StringTokenizer(st,",");
    String newstring="";
    while(sT.hasMoreTokens())
    newstring += sT.nextToken();
    out.println(newstring);
    this may help out
    cheers
    rambee

  • How to remove an e-mail, that won't let you to delete/move it.  There is no sender or subject.  I tried several times to get rid of it, but it bounces me out of mail back to home page?

    How to remove an e-mail, that won't let you to delete/move it.  There is no sender or subject.  I tried several times to get rid of it, but it bounces me out of mail back to home page?
    Never seen anything like it.  Do iPads get virus'?
    Thanks for any help.  I've never used this before.
    Linda

    There are no viruses for the iPad. Close the mail app and reboot the iPad.
    Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the Mail app and then swipe "up" on the app preview thumbnail to close it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

Maybe you are looking for

  • Airport Network Options Problem

    Hi All I have just upgraded from 10.3 to 10.4.5 and have found a problem with the Airport Network prefs pane which I can't fix. Originally the interface to the Airport Networks pane was not showing correctly and was still setup as in 10.3. I only not

  • Procedures

    Hi, All, Can a stored procedure be used as a function in a SQL? I knew procedure can return more than one values but function can only return one. I know how to use a function in a SQL, but don’t how to use a procedure in SQL (please give an example)

  • Security Questions MAJOR Problem

    I don't know my security questions.  I have my emails set up to contact me, but the email address to send the reset link is an email address that isn't even on my account contact info.  HELP!

  • Overview Query creation option is missing

    Hi, All Overview query option is missing from SNC Web view , is there any backend config for this? Regards, Vikram

  • OSB option on 11g

    Hello there, I've recently started with Oracle SOA suite 11g and I noticed that almost all documentation out there mentions the OSB which I've basically understood what was used for in the 10g. As several tutorials walk trough steps that use this OSB