Storing Value of less characters in SAP

Hi Experts,
I think this is a bug. In xk01, when we create a vendor and enter name, there is an option to write name up to 40 characters, but in LFA1, it stores up to 35 characters. It is happening with many fields. What is the solution?
How to restrict the user to enter name up to 35 characters in xk01?
Regards
Mani

Hi Mani,
    If you need to get 40 Name character for the Vendor, select the address code corresponding to the Vendor and from ADRC table you can get 40 Name characters and all other details that you enter in XK01. So, I'll suggest to go in this way rather than directly fetching from LFA1 table. Hope, it will be helpful for you.
Regards,
Anubhab Chirui

Similar Messages

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • Need to add special characters in sap scripts

    Hi All,
       I need to add special characters in sap script.
    I have used them as it is my script,but in the print preview i am able to see '#' instead of those special characters.Can anybody please tell me the way in which we can add special characters in the scripts.
    eg. 'Shlesha' i.e. name in inverted colons.
    Thanks

    Hi
    If # is coming means, that is the problem with the printer. I think u might have used your local printer to see the print preview.
    Don't use LOCL or LP01. Our local printer won't recognize those characters.
    Just change the printer name to client printer name. It will work.

  • Transferring files stored in a network directory to SAP.

    hi Guys,
    my requirement is this is  an inbound interface, transferring PDF files stored in a network directory to SAP and web direcotry.
    i think this is something releated to system call, can some one give me some idea on it or from soemwhere i could find some doc on this or any FM to do this.....
    Thanks in Advance.
    Regards.

    Hi Pawan,
    I'm not sure at this stage how this can be done if you don't have a user with a SAPGui at least for the first step.
    If you do, you could do it like this:
    - User enters path as a parameter to abap program
    - Program calls method DIRECTORY_LIST_FILES of class CL_GUI_FRONTEND_SERVICES
    - Program calls method GUI_UPLOAD of class CL_GUI_FRONTEND_SERVICES to read files one by one
    - Program uses open dataset, transfer and close dataset to write the files to the application server
    - Program calls method FILE_DELETE of class CL_GUI_FRONTEND_SERVICES to delete the files one by one from the directory.
    This, however, will only work if you have a dialog session and the user has access to the network directories in question.
    If you are running SAP on NT, and you have directories on this server mapped to PC drives, you could also use the FILE_COPY method rather than using open dataset, transfer, etc.
    If you MUST run this stuff as background jobs, I'm not sure that I can help much.
    Cheers,
    Brad

  • Surcharge should be automated  in pricing when order value is less

    Dear all,
    There is a client requirement where in if the order value is less than 1000 Rs. then a min surcharge of 2% has to be calculated in the pricing procedure automatically.
    Right now they are giving this condition manually.
    There is a cond type : SURG  this has to automatically flow into the system say 2% or 3% or Fixed amount say 200 or 300 ( client is yet to decide on the amount ) when the  order value that is when the user input  PR00 which is  lesser than 1000 then this surcharge condition type with whatever percentage or fixed amount kept in the condition record   should come automatically.
    Valuable inputs required.

    Hi, ram
    The thing is I dont want the system to replace the PR00 price. when ever the PMIn condition type comes.
    The senarion is  
    When ever the sales order value is less than 1000, say that PR00 is manually entered for 800 or 900 or 999 then there should be surcharge calculated say for 2% on basic price and the basic price should be there.  and this surcharge condition type should come automatically when the price is gettng inputed for 800  through PR00.
    And then finally total value will be displayed.
    Hope this above   example is clear , will the above logic which you have mentioned will work on this case.?

  • Reset or Edit IPTC Fields Stored Values

    Previous values used in IPTC fields are stored so that values can be auto-filled as a field is entered. I would like to remove some of the "stored values" for a field. How can I do this?
    Thanks,

    You can batch change. Select the photos you want to edit, batch change, leave the field empty, and check the "replace" checkbox.

  • ECC5 How to read the stored value from Team Viewer

    Hi,
    How can I pick up the stored value from the team viewer from within ECC5?
    I would normally use FM 'HR_ASR_WDA_GET_EMPLOYEE'  to read mem id MSS01 but this doesn't exist in ECC5.
    All help appreciated.
    Rob

    Hi,
    How can I pick up the stored value from the team viewer from within ECC5?
    I would normally use FM 'HR_ASR_WDA_GET_EMPLOYEE'  to read mem id MSS01 but this doesn't exist in ECC5.
    All help appreciated.
    Rob

  • Net income value  is less, its taken adding value

    Hi Friends,
             I have  design one profit report in sd , in that report we have taken material wise ,sold to party wise
    and condition type, they end taken over all result ,its fine
    Last one calculation part is there proft u2013 total   , the system taken add the values not less
    What to do
    profit     total     netincome(proft-total)
    RS 1,728.06     RS 400.00     RS 1,728.06
    0     0     RS 400.00
    RS 1,728.06     RS 400.00     RS 2,128.06
    RS 2,128.06 this is not write its add, its less the value  RS 1,328.06  this is corret
    Thanks
    Edited by: solv_ti on Jun 21, 2010 11:39 AM

    Hello;
    Did you try to put a formula to mark RS 400 as negative?
    Regards.

  • Where can i see stored values in the field

    hi
    where can i see stored values in the field(tcode)
    help

    Hi Sdnguna,
                       Every fields value stored in Database table only.
                      1. Goto T.code SE15.
                      2.Click the ABAP Dictionary.
                      3.Click the fields.
                      4.And click the Table Fields.
    In that field name you will enter the Field name and Execute it.
    You will get the so many table name you will find out eassily where the field value stored.
    Regards,
    K.Karthikeyan.

  • How to set value for radio button in sap crm survey suite

    Hi ,
    I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
    Thanks & Regards,
    Seshu

    Hi,
    I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
    Regards,
    Seshu

  • [JS/AS] Storing values that persist between runs of scripts

    I have written a number of Applescripts that use Applescript Properties to to store the values chosen by users in dialog boxes etc between successive runs of the script (in AS they persist until the script is recomplied).
    I am investigating converting these scripts to JS to enable them to be used cross platform, and am slowly bringing myself up to speed with JS. However, I cannot see any obvious equivalent to AS properties.
    Does any one have any advice on how they store user defaults, preferences etc between script runs. Any code fragments would be appreciated.
    Many thanks, Nye

    //NeonWithPrefs.jsx
    //An InDesign CS3 JavaScript
    //This script creates a "blend" or "graduation" from the selected object or objects.
    //For more on InDesign scripting, go to
    http://www.adobe.com/products/indesign/scripting.html
    //or visit the InDesign Scripting User to User forum at
    http://www.adobeforums.com
    main();
    function main(){
    var myObjectList = new Array;
    if (app.documents.length != 0){
      if (app.selection.length != 0){
       for(var myCounter = 0;myCounter < app.selection.length; myCounter++){
        switch (app.selection[myCounter].constructor.name){
         case "Rectangle":
         case "Oval":
         case "Polygon":
         case "GraphicLine":
          myObjectList.push(app.selection[myCounter]);
         break;
       if (myObjectList.length != 0){
        myDisplayDialog(myObjectList);
       else{
        alert ("Please select a rectangle, oval, polygon, or graphic line and try again.");
      else{
       alert ("Please select an object and try again.");
    else{
      alert ("Please open a document, select an object, and try again.");
    function myDisplayDialog(myObjectList){
    var mySwatchNamesList = new Array;
    var myLayerNamesList = app.documents.item(0).layers.everyItem().name;
    for(var myCounter = 0;myCounter < app.activeDocument.colors.length; myCounter ++){
      //Do not add(); unnamed colors.
      if(app.activeDocument.colors.item(myCounter).name != ""){
       mySwatchNamesList.push(app.activeDocument.colors.item(myCounter).name);
    for(var myCounter = 0;myCounter < app.activeDocument.mixedInks.length; myCounter ++){
      mySwatchNamesList.push(app.activeDocument.mixedInks.item(myCounter).name);
    //New stuff for setting dialog box controls to the last-selected options.
    //While the basic XML preferences-reading mechanisms are generic,
    //significant handling has to be done by the dialog box to read and
    //use the stored values.
    //List of dialog box parameters for Neon.jsx:
    //NumberOfSteps--integer
    //FromStrokeColor--string
    //FromStrokeWeight--double
    //ToStrokeWeight--double
    //FromStrokeTint--percent
    //ToStrokeTint--percent
    //LayerName--string
    var myParameterArray = myGetDialogPreferences("NeonWithPrefs", ["NumberOfSteps", "FromStrokeColor", "FromStrokeWeight", "ToStrokeWeight", "FromStrokeTint", "ToStrokeTint", "LayerName"]);
    //myPreferences is the XML object that should lead off the array.
    var myPreferences = myParameterArray[0];
    try{
      if(myParameterArray.length == 8){
       //If any of these conversions fails, we'll set the
       //values back to the defaults by handling the error.
       myNumberOfSteps = parseInt(myParameterArray[1]);
       if(myNumberOfSteps <=1){
        throw "Too few steps.";
       myFromStrokeColor = myParameterArray[2];
       myFromStrokeWeight = parseFloat(myParameterArray[3]);
       myToStrokeWeight = parseFloat(myParameterArray[4]);
       myFromStrokeTint = parseFloat(myParameterArray[5]);
       myToStrokeTint = parseFloat(myParameterArray[6]);
       myLayerName = myParameterArray[7];
      else{
       throw "Could not read from preferences file.";
    catch(myError){
      //Default values.
      myNumberOfSteps = 12;
      myFromStrokeColorName = "Black";
      myFromStrokeWeight =12;
      myToStrokeWeight = .25;
      myFromStrokeTint = 100;
      myToStrokeTint = 10;
      myLayerName = "Layer 1"; 
    //Now process the stroke color index.
    myFromStrokeColorIndex = myGetIndex(mySwatchNamesList, myFromStrokeColor);
    //Now process the layer index.
    myLayerIndex = myGetIndex(myLayerNamesList, myLayerName);
    //End of preference-gathering stuff.
    var myDialog = app.dialogs.add({name:"Neon"});
    with(myDialog){
      with(dialogColumns.add()){
       with(borderPanels.add()){
        with(dialogColumns.add()){
         staticTexts.add({staticLabel:"Number of Steps:"});
        with(dialogColumns.add()){
         //Updated.
         var myNumberOfStepsField = integerEditboxes.add({editValue:myNumberOfSteps});
       with(borderPanels.add()){
        with(dialogColumns.add()){
         staticTexts.add({staticLabel:"From:", minWidth:36});
        with(dialogColumns.add()){
         with(dialogRows.add()){
          with(dialogColumns.add()){
           staticTexts.add({staticLabel:"Stroke Color:", minWidth:100});
          with(dialogColumns.add()){
           //Updated, var name mySwatchIndex.
           var myFromStrokeColorMenu = dropdowns.add({stringList:mySwatchNamesList, selectedIndex:myFromStrokeColorIndex});
         with(dialogRows.add()){
          with(dialogColumns.add()){
           staticTexts.add({staticLabel:"Stroke Weight:", minWidth:100});
          with(dialogColumns.add()){
           //Updated.
           var myFromStrokeWeightField = realEditboxes.add({editValue:myFromStrokeWeight});
         with(dialogRows.add()){
          with(dialogColumns.add()){
           staticTexts.add({staticLabel:"Stroke Tint:", minWidth:100});
          with(dialogColumns.add()){
           //Updated.
           var myFromStrokeTintField = percentEditboxes.add({editValue:myFromStrokeTint});
       with(borderPanels.add()){
        with(dialogColumns.add()){
         staticTexts.add({staticLabel:"To:", minWidth:36});
        with(dialogColumns.add()){
         with(dialogRows.add()){
          with(dialogColumns.add()){
           staticTexts.add({staticLabel:"Stroke Weight:", minWidth:100});
          with(dialogColumns.add()){
           //Updated.
           var myToStrokeWeightField = realEditboxes.add({editValue:myToStrokeWeight});
         with(dialogRows.add()){
          with(dialogColumns.add()){
           staticTexts.add({staticLabel:"Stroke Tint:", minWidth:100});
          with(dialogColumns.add()){
           //Updated.
           var myToStrokeTintField = percentEditboxes.add({editValue:myToStrokeTint});
       with(borderPanels.add()){
        with(dialogColumns.add()){
         staticTexts.add({staticLabel:"Destination Layer:"});
        with(dialogColumns.add()){
         //Updated.
         var myLayersMenu = dropdowns.add({stringList:myLayerNamesList, selectedIndex:myLayerIndex});
    var myResult = myDialog.show();
    if(myResult == true){
      //Get the values from the dialog box controls
      var myNumberOfSteps = myNumberOfStepsField.editValue;
      var myFromStrokeColor = mySwatchNamesList[myFromStrokeColorMenu.selectedIndex];
      var myFromStrokeWeight = myFromStrokeWeightField.editValue;
      var myToStrokeWeight = myToStrokeWeightField.editValue;
      var myFromStrokeTint = myFromStrokeTintField.editValue;
      var myToStrokeTint = myToStrokeTintField.editValue;
      var myLayerName = myLayerNamesList[myLayersMenu.selectedIndex];
      myDialog.destroy();
      //Write dialog preferences file.
      //Change the values in the XML preferences object.
      myPreferences.NumberOfSteps = myNumberOfSteps;
      myPreferences.FromStrokeColor = myFromStrokeColor;
      myPreferences.FromStrokeWeight = myFromStrokeWeight;
      myPreferences.ToStrokeWeight = myToStrokeWeight;
      myPreferences.FromStrokeTint = myFromStrokeTint;
      myPreferences.ToStrokeTint = myToStrokeTint;
      myPreferences.LayerName = myLayerName;
      //Write the values back to the XML file.
      myWriteXMLPreferences("NeonWithPrefs", myPreferences);
      //Apply the effect.
      myNeon(myObjectList, myNumberOfSteps, myFromStrokeColor, myFromStrokeWeight, myToStrokeWeight, myFromStrokeTint, myToStrokeTint, myLayerName);
    else{
      myDialog.destroy();
    function myNeon(myObjectList, myNumberOfSteps, myFromStrokeColor, myFromStr

  • Issue with special characters in SAP CRM ICSS application.

    Hi ,
    I have issue with the special character in CRM web application.
    1. In CRM IC Webclient application(5.0) . i am copying and pasting some special characters in the description of the service request document. then this is saving the character as it is.
    But when i am opening the same service request in SAP CRM  ICSS(Internet Customer Self-Service) application, then the special characters are converting to different characters.
    I am not sure whether this is the right forum for this or not.
    Can anyone please suggest how can i correct this. Or is there any standard solution to handle the special characters in ICSS.
    Thanks
    Sudhansu

    misunderstood =/
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    it's in output but what is data in database ?
    sorry but without knowing about source data for forming the xml i haven't ideas about your problem
    in db it's "TM " or "™" or ... ?
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    Something like XAE or "K" after PAY Value in the xml tag and continued the text value.  (Tag value is not getting copied exactly here - i am sorry for that )
    that's ok. i need to see the problem not the data as is
    Expected (output):  "Here it needs to produce the "PAY TM" (Here "TM" should be super scripted to "PAY" Value in tag).
    as super scripted in xml?
    as idea - you can have <PAY_TXT>PAY TM</PAY_TXT> and in publisher set TM as super
    Designing XSL Subtemplates - 11g Release 1 (11.1.1)

  • Wrong ASCII values for control characters in Variables and Stack Call in CVI2013?

    Hi,
    I think there is an error in  "Variables and Call Stack" window if you want to look for your variables in ASCII format.
    The control characters (0 -  31) are not shown correct. They are shifted 2.
    For example:
    Character in Decimal format is 10 (LF) but when you are chancing to ASCII format it is showing \012.
    The same with 13 (CR). This character is \015 in ASCII format.
    I think that was no problem in CVI2012.
    Best regards
    Gunther
    Solved!
    Go to Solution.

    I'm not using CVI2013 yes so I cannot respond regarding this specific product, but the code you are showing are the octal equivalent of the decimal value you specified: it could be that control characters (or generally speacking non-printable ones) are replaced with their octal equivalent in string view.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Parsing XML and Storing values in instance variable

    hi,
    i'm new to XML.
    here i'm trying to parse an XML and store their element data to the instance variable.
    in my main method i'm tried to print the instance variable. but it shows "" (ie it print nothing ).
    i know the reason, its becas of the the endElement() event generated and it invokes the characters() and assigns "" to the instance variable.
    my main perspective is to store the element data in instance variable.
    thanks in advance.
    praks
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    public class mysax extends DefaultHandler
         String ctelement;
         CharArrayWriter contents;
         String vname1,vrcbreg1,vaddress1,vcountry1,vtelephone1,vfax1;
         String vname,vrcbreg,vaddress,vcountry,vtelephone,vfax;
         public mysax()
              vname1 = null;
              vrcbreg1 = null;
              vaddress1 = null;
              vcountry1 = null;
              vtelephone1 = null;
              vfax1 = null;
              contents= new CharArrayWriter();
         public void doparse(String url) throws Exception
              SAXParserFactory spf = SAXParserFactory.newInstance();
    SAXParser sp = spf.newSAXParser();
    ParserAdapter pa = new ParserAdapter(sp.getParser());
    pa.setContentHandler(this);
    pa.parse(url);          
         public void startElement(String namespace,String localName,String qName,Attributes atts)
              ctelement = localName;     
         public void endElement(String uri,String localName,String qName) throws SAXException
         public void characters(char[] ch,int start, int length) throws SAXException
              try
                   if(ctelement.equals("name"))
                        vname = new String (ch,start,length);
                        System.out.println("The method "+vname1);
              }catch (Exception e)
                   System.out.println("The exception "+e);
         public static void main(String args[])
              try
              mysax ms = new mysax();
              ms.doparse(args[0]);
              System.out.println("the contents name "+ms.vname1);
              catch(Exception e)
                   System.out.println("this is exception at main" +e);
    my XML looks like
    <coyprofile_result>
    <company>     
    <name>abcTech</name>
    <rcbreg>123456789</rcbreg>
    <address>Singapore</address>
    <country>sg</country>
    <telephone>123456</telephone>
    <fax>123155</fax>
    </company>
    </coyprofile_result>

    I believe that the problem has to do with the value you assign to ctelement. You are assigning the value of localName to ctElement, however for the element: <name>...</name> the localname is empty string i.e. "", but qName equals "name". Because you are assigning empty string to ctElement, when you do the comparison in characters of ctElement to "name" it will always be false. So in startElement change it to ctElement = qName; Try it and see if it works. I have produced similar programs and it works for me.
    Hope this helps.

  • Calculation of values in a dunning form (SAP Script)

    Hi Experts!
    I want to add values to a sum (dunning-amount + dunning-fee + interest) in a dunning form (SAP Script; Z150_DUNN_02).Therefore I'm using a subroutine (Z_FI_KX_DUNN_02_INTEREST) to summarize. Problem is the format of the output-field &Z_FAEBT&. It's not similar to field &MHNK-FAEBT& which was formerly printed (without calculation of interest and dunning-fees.
    /:   DEFINE &Z_FAEHW& := &MHNK-FAEHW&                 
    /:   DEFINE &Z_ZINHW& := &MHNK-ZINHW&                 
    /:   DEFINE &Z_MHNGH& := &MHNK-MHNGH&                 
    /:   DEFINE &Z_FAEBT& := &MHNK-FAEBT&                 
    /:   PERFORM ZFAEBT IN PROGRAM Z_FI_KX_DUNN_02_INTEREST
    /:   USING &Z_FAEHW&                                  
    /:   USING &Z_ZINHW&                                  
    /:   USING &Z_MHNGH&                                  
    /:   CHANGING &Z_FAEBT&                               
    /:   ENDPERFORM                                       
    /:   ENDIF                                            
    A3   &MHNK-WAERS& &Z_FAEBT(C)&       
    It would be fine to get a hint how to format the field &Z_FAEBT& correctly. Must be done in the subroutine Z_FI_KX_DUNN_02_INTEREST by a special WRITE-command? Is it possible to add these values only in the form?
    Thanks for support!
    Regards, Bernd

    hi!
    I defined the field like you said! After moving this field to a numeric field to add the different amounts the
    following error occurred:
    Runtime errors         CONVT_NO_NUMBER           
    Exception              CX_SY_CONVERSION_NO_NUMBER
    Occurred on     16.06.2009 at   15:15:25  
    Unable to interpret " 1.316,59" as a number.     
    Definition:
    FORM zfaebt TABLES in_par STRUCTURE itcsy
                       out_par STRUCTURE itcsy.
      TABLES: mhnk.
      DATA: z_faehw_num LIKE mhnk-faehw,
            z_zinhw_num LIKE mhnk-zinhw,
            z_mhngh_num LIKE mhnk-mhngh,
            z_faebt_num LIKE mhnk-faebt.
      DATA: z_faehw TYPE string,
            z_zinhw TYPE string,
            z_mhngh TYPE string,
            z_faebt TYPE string.
    statement:
      READ TABLE in_par WITH KEY 'Z_FAEHW'.
      CHECK sy-subrc = 0.
      z_faehw = in_par-value.
      z_faehw_num = z_faehw.
    I suppose a type-conflict.
    Regard, Bernd

Maybe you are looking for