How do u append asterisks to a price field?

how do u append asterisks to a price field?

move price_var to charvar.
concatenate '*' charvar into charvar.
now use it,.....
Regards
vasu

Similar Messages

  • How do you append to a "string" type field?

    ABAPers,
    I am trying to understand how to append values to a "string" data type in an efficient way. One way to append to a string is using "concatenate" feature.
    data: myRetVal type string.
    DO
      CONCATENATE myRetVal ',' myNewData INTO myRetVal.
    ENDDO.
    However, CONCATENMATE is not efficient in this scenario. Each time you call it, myRetVal gets copied into myRetVal all over. As the string grows, this statement will execute slower and slower.
    The other option I thought is to use offset mechanism.
    MOVE myNewData to myRetVal+myRetValLen.
    However, it appears "string" and "xstring" type fields do not support offset and length operations.
    Is there a third choice that I am missing?
    Thank you in advance for your help.
    Pradeep

    There is no such operator.
    But if just using literals, you can use the &, like this.
    data: string type string.
    string = 'This is the first part ' & 'This is the second part'.
    Again, this will not work with variables.
    Regards,
    Rich Heilman

  • How to append yyyy to a text field

    I am using database 11.1 and APEX 3.0. The user requirement is to auto append the year to a text field where there is a popup date picker. The application blows when a PLSQL function is added to the fields post calculation. How should I append yyyy to a text field with mm/dd or mm/dd/ or mm/dd/yy to create a date mm/dd/yyyy. Dates with dd/mm/yyyy need no year appended.
    Edited by: user478244 on Mar 24, 2010 3:49 PM

    Here is my first stab at achieving what you described. Place this code in an application process and have it run on submit before computations and validations. I am sure there are some bugs with this as I have not tested it very thoroughly.
    declare
       date_parts wwv_flow_global.vc_arr2;
       l_save_val varchar2(20);
       l_delim    varchar2(1) := '/';
    begin
      -- for each date picker on the current page
      for x in (select item_name,
                       v(item_name) item_value
                  from apex_application_page_items aapi
                 where aapi.application_id = :app_id
                   and aapi.page_id = :app_page_id
                   and upper(display_as) like 'DATE PICKER%'
                   and v(item_name) is not null)
      loop
        -- split the value of the date picker into tokens for each '/' found.
        date_parts := htmldb_util.string_to_table(x.item_value,l_delim);
        -- if there is not three tokens (ex: mm/dd) or if the last token is not four characters long (ex: 09)
        if date_parts.last != 3 or length(nvl(date_parts(3),0)) != 4 then
          -- set the third token (the year token) to the current year (ex: 2010)
          date_parts(3) := to_char(sysdate,'YYYY');
          -- concatinate all token parts together, separated by '/'
          for i in date_parts.first..date_parts.last loop
            l_save_val := l_save_val || date_parts(i) || l_delim;
          end loop;
          -- save the new value to the date picker item.
          apex_util.set_session_state (x.item_name, rtrim(l_save_val,l_delim));
        end if;
      end loop;
    end;
    edit
    I replaced the hard coded app id and app page id values with their corresponding bind variables.
    Cheers,
    Tyson Jouglet
    Edited by: Tyson Jouglet on Mar 24, 2010 5:59 PM

  • Asterisk format for password field.

    Hello every one.
    I have to create 'PASSWORD' field in screen painter but this field should be in encoded format
    shows with  '******' (asterisk).
    How can I create asterisk format for PASSWORD field in module pool?
    How can I show this type of field in runtime environment?
    The screen element for password is input/output field.
    Ex:- I have created username and password field in module pool screen programming (screen same as login screen of SAP) but I have to shown password field in encoded format menas with asterisk.
    Waiting for your opinion....
    Thanks
    Regards
    Anukul

    Hi,
    Make the pass word field as invisible in the screen painter.
    Thanks,
    Sri.

  • How can i append the variable to filename in import statement?

    how can i append variable(substitution variable) to file name in import command for maxL?
    example : For suppose there is a file like "dataload.txt" and a variable like cur_month(august).How can i rename the file like daload_august in import statement.
    Edited by: 788996 on Aug 22, 2010 11:18 PM

    Are you saying you want to use an OS level environment variable in a MaxL statement to substitute for an entire file name? I am going to illustrate Windows, but do it your own way in *nix if you want.
    YourCallingCode.cmd
    REM Note the \\ and then the \\, you had \\ and \
    SET curmon=c:\\ABC\\datafile_21_AUG.txt 
    REM Call MaxL with a paramenter
    startMaxL.cmd DoItForTheCurrentMonth.msh %curmon%DoItForTheCurrentMonth.msh
    login blah blah for blah ;
    import database appname.dbname data from local text data_file $curmon using server rules_file "rulefile"
         on error abort ;The trick is to change whatever's in % and % and replace it with a $ in the MaxL script.
    I gave a presentation last year on MaxL at ODTUG Kaleidoscope. If you go to http://www.odtug.com, then Tech Resources, then Essbase, then search on my name, you'll find "Master Essbase with MaxL Automation". More than you could ever want to know about MaxL, variables (parameter, environment, and explicitly declared), scripting, etc., etc., are all there for the taking. If you're not already a member, you'll have to join, but an associate membership is free. You can then download my presentation and all of the others. It is a treasure chest of technical tips and knowledge.
    Yes, I am a fan a member of the Hyperion SIG, so I am ever so slightly biased. Regardless, it is good information, for free.
    Regards,
    Cameron Lackpour
    Edited by: CL on Aug 24, 2010 5:33 AM
    If you want to substitute part of the data file name, you can do that too:
    set curmon=21_AUG
    Your MaxL statement would look like:
    import database appname.dbname data from local text data_file "c:\\ABC\\datafile_$curmon.txt" using server rules_file "rulefile"
         on error abort ;

  • How can we append data in existing flat file

    how can we append data to a existing flat file (Text file).

    just fill the itab from data which suppose to append to text file.than read text file from GUI_UPLOAD and loop on itab and with the use of read statements you may append the data.

  • How to block an order if the price is too low?

    Hello,
    My problem is :
    How to block an order if the price is too low?
    I created a new type of condition ZMIN and an access by material.
    When the net price is below the minimum price the system must position the order on incomplete document for error of price.
    Thank you in advance.
    Frédéric Blaise
    e-Kenz S.A.

    Hello,
    you can enter a lower limit in the condition record:
    Lower limit of the condition rate/amount
    Indicates whether, during document processing, the system checks if manual changes fall short of the lower limit allowed for the corresponding condition record.
    Use
    When you maintain the scales in a condition record, the system checks whether the scale value falls below the lower limit.
    Or you can use the flag 'conditon update'.
    Condition update
    Controls whether limit values are relevant for pricing.
    E.g.: you can make the use of a particular condition record in the document dependent on a specified total value.
    This total value can be specified in the condition record.
    I hope that the information are helpful.
    With best regards
    Claudia Neudeck

  • How to make net price field in Purchase Order Uneditable

    Hello all,
    I am facing a problem. During creation of purchase orders the material price is picked up from the Info Record, but the net price field is editable. Please guide me how through standard SAP can i make this net price field uneditable.
    Thanks in Advance,
    Ritesh.

    Hi Ritesh,
    You can goto:
    SPRO-MM-Purchasing-Purchase Order-Define Screen Layout at Document Level
    from here you select ME21N-Selection group-Quantity and Price.
    Make the price and price unit as DISPLAY.
    By this it will show only display for price, but you have to take not that there is also condition tab which user can change the price, this price is from INFOREC.
    Goto to M/06 select your Condition type, In Manual entries maintain "D"-Not possible to process manually
    Regards,
    Maia

  • How to read appended objects from file with ObjectInputStream?

    Hi to everyone. I'm new to Java so my question may look really stupid to most of you but I couldn't fined a solution by myself... I wanted to make an application, something like address book that is storing information about different people. So I decided to make a class that will hold the information for each person (for example: nickname, name, e-mail, web address and so on), then using the ObjectOutputStream the information will be save to a file. If I want to add a new record for a new person I'll simply append it to the already existing file. So far so good but soon I discovered that I can not read the appended objects using ObjectInputStream.
    What I mean is that if I create new file and then in one session save several objects to it using ObjectOutputStream they all will be read with no problem by ObjectInputStream. But after that if in a new session I append new objects they won't be read. The ObjectInputStream will read the objects from the first session after that IOException will be generated and the reading will stop just before the appended objects from the second session.
    The following is just a simple test it's not actual code from the program I was talking about. Instead of objects containing different kind of information I'm using only strings here. To use the program use as arguments in the console "w" to create new file followed by the file name and the strings you want save to the file (as objects). Example: "+w TestFile.obj Thats Just A Test+". Then to read it use "r" (for reading), followed by the file name. Example "+r TestFile.obj+". As a result you'll see that all the strings that are saved in the file can be successfully read back. Then do the same: "+w TestFile.obj Thats Second Test+" and then read again "+r TestFile.obj+". What will happen is that the strings only from the first sessions will be read and the ones from the second session will not.
    I am sorry for making this that long but I couldn't explain it more simple. If someone can give me a solution I'll be happy to hear it! ^.^ I'll also be glad if someone propose different approach of the problem! Here is the code:
    import java.io.*;
    class Fio
         public static void main(String[] args)
              try
                   if (args[0].equals("w"))
                        FileOutputStream fos = new FileOutputStream(args[1], true);
                        ObjectOutputStream oos = new ObjectOutputStream(fos);
                        for (int i = 2; i < args.length ; i++)
                             oos.writeObject(args);
                        fos.close();
                   else if (args[0].equals("r"))
                        FileInputStream fis = new FileInputStream(args[1]);
                        ObjectInputStream ois = new ObjectInputStream(fis);
                        for (int i = 0; i < fis.available(); i++)
                             System.out.println((String)ois.readObject());
                        fis.close();
                   else
                        System.out.println("Wrong args!");
              catch (IndexOutOfBoundsException exc)
                   System.out.println("You must use \"w\" or \"r\" followed by the file name as args!");
              catch (IOException exc)
                   System.out.println("I/O exception appeard!");
              catch (ClassNotFoundException exc)
                   System.out.println("Can not find the needed class");

    How to read appended objects from file with ObjectInputStream? The short answer is you can't.
    The long answer is you can if you put some work into it. The general outline would be to create a file with a format that will allow the storage of multiple streams within it. If you use a RandomAccessFile, you can create a header containing the length. If you use streams, you'll have to use a block protocol. The reason for this is that I don't think ObjectInputStream is guaranteed to read the same number of bytes ObjectOutputStream writes to it (e.g., it could skip ending padding or such).
    Next, you'll need to create an object that can return more InputStream objects, one per stream written to the file.
    Not trivial, but that's how you'd do it.

  • How to arrive same day two difference prices for same material/customer

    how to arrive same day two difference prices for same material/customer.pls give the solution
    thanks in advance
    Aravinthan.K

    Hi
    This is possible through some careful customization
    In your condition table you need to bring the field PRICE LIST
    That is customer/ Material/ Price list
    That is customer  ABCD / Material X / Price list 01---Price is Rs 10
    That is customer  ABCD / Material X / Price list 02---Price is Rs 20
    The condition records to be maintained like this
    So same material and same customer with price list 01 price is Rs 10 and with  price list 02 price is Rs 20
    Now in sales order you will find  price list field in item details SALES B tab
    Through incompletion log you can make this field as an mandatory field
    Now in sales order same material and same customer according to the price lists different price is picked
    In img-sd-basic functions-Maintain Price-Relevant Master Data Fields--here you can define different price lists
    Regards
    Raja

  • How do I append texts in service process

    Hi Experts,
    I have a service process where i need to append the texts to the already existing one. I am using FM "CRM_ORDER_MAINTAIN" for chaning the service process.
    How do I append the texts to the earlier existing one.
    Regards,
    Arul Jothi A

    You have to use function module read_text to capture the already exsiting text and then append your text in it, then use function module save_text to save it back,you need to know correct parameters to pass in it.
    Thanks,
    Shweta

  • How I can append new node in existing  XML file

    I've just begun learning DOM XML , so I'm currently at a very beginner level.
    I have an existing XML file that I would like to add an additional node to before saving it to another variable.
    how I can append new node in this file.
    now this code is overwrite new data over old data
    The code looks like this:
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerFactoryConfigurationError;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    public class VerbXMLWriter
        static String EVerb3;
        static String englishTranslate3;
        public void VerbXMLWriter(String EVerb, String englishTranslate )
             EVerb3 = EVerb;
             englishTranslate3=englishTranslate;
        File xmlFile = new File("VerbDB.xml");
        DocumentBuilderFactory factory =  DocumentBuilderFactory.newInstance();
        try
         DocumentBuilder builder = factory.newDocumentBuilder();
         Document document = builder.newDocument();
        Element root = document.createElement("Verb");
         document.appendChild(root);
         Element verb = document.createElement(EVerb3);
         verb.setAttribute("EnglishTranslate",englishTranslate3);
         root.appendChild(verb);
         Source xmlSource = new DOMSource( document );
         Result result = new StreamResult( new FileOutputStream(xmlFile) );
        TransformerFactory transformerFactory = TransformerFactory.newInstance();
        Transformer transformer =
        transformerFactory.newTransformer();
        transformer.setOutputProperty( "indent", "yes" );
         transformer.transform( xmlSource, result );
      catch(TransformerFactoryConfigurationError factoryError )
        factoryError.printStackTrace();
       catch (ParserConfigurationException pc)
           pc.printStackTrace();
       catch (IOException io)
          io.printStackTrace();
       catch(Exception excep )
           excep.printStackTrace();
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Verb>
    <Play EnglishTranslate="playing" />
    </Verb>Edited by: itb402 on Mar 9, 2008 6:05 AM

    in your code you are already appending new nodes to the root node. so what exactly is your problem? The following steps are usually taken for appending a new node:
    1. Read the XML document
    2. Build a DOM tree
    3. Navigate to the node under which you want to insert the new node
    4. Create a new node.
    5. Insert the new node to the node selected in point #3.
    ~Debopam

  • How to get Material Master Moving average price into Purchase Order

    Hi,
    How to get Material master moving average price into purchase order instead of Purchase Info record.
    Thanks,
    Sridhar

    Hi,
            I  cannot understand whether it is necessary .
           How about as following step?
                 1. create Purcahse requisition
                                Price come form moving average price in material master.
                 2. Create Purchase order reference Purchase  requisition
                                There is a setting  from the unit price of P/R onto the unit price of P/O.
      Regards,
         Gaito

  • How to restrict append row upto 5 in ALV Webdynpro.

    how to restrict append row up to 5 in ALV Webdynpro.

    how did you resolve it?
    thank in advance.

  • Hi i am new in numbers iOS. How can i do that product's price appear automaticly when i'm tapping product's name.thank .

    Hi i am new in numbers iOS. How can i do that product's price appear automaticly when i'm tapping product's name.thank .

    If your iPhone is not recognized by iTunes when connected - not available under Devices in the iTunes source list, check this link.
    http://support.apple.com/kb/TS1538?viewlocale=en_US&locale=en_US
    For voice memos, I have include voice memos when syncing selected under the Music tab for my iPhone sync preferences with iTunes which transfers voice memos from my iPhone to my iTunes library when syncing.

Maybe you are looking for

  • Wired mouse pointer disappears?

    The pointer on my wired mouse regularly disappears from the screen, making it rather difficult to continue to use Word Any suggestions as to the cause?

  • How to get the channel logos in the guide?

    Ive been to other peoples houses who have fios tv and each of them have the channel logos in the guide, But i dont and ive checked my system information it says the stb is online and its running release 1.6.0 can anyone help?

  • How to include form

    hi guru's, i have design a payslip in PE51 but problem is that i dont know how and where i will include it or how i'll call it? can anyone please tell me step by step procedure? its urgent. regards nitin.

  • Numbers slow to open

    Hi I am using Numbers '08. I have a document/ template with about 10 sheets that i have created. It doesn't have a lot of data in it yet, just formulas and conditional formatting ready for when i start imputing my data. It takes around 5 mins to open

  • Early 2008 Mac pro freeze - anyone ?

    I just deployed my 2.8 Mac Pro yesterday, and within two days, I had three instances when the computer froze. The mouse pointer was still moving on the screen, but apart from that, no response to keys or clicks. There was also one instance when the v