How to copy a text element to another in sapscript

Question
Have a bug in the system and need to copy an existing text element to a new one.
How do you do this.
I have found the text elelement in tihe MAIN window - the code /E   510-C  <-- this needs to be copied to a new text element called /E    510-A.  I can cust and paste this into the text element screen  But doesn't the 510-A refer to some text created via SO10?  But then doesn't sapscript require you to use an include to get the text in there?
HELP - 2 days from go -live here!!
Thanks and big points to who can ever help!

Text elements are specified with "/E".  These are different from STANDARD TEXT objects that you define in SO10 and reference with the INCLUDE statment.
Text elements are called from the ABAP print program.  If you copy text element 510-C to 510-A, the ABAP print program has to call element 510-A to execute the statements in this section.
Are you dealing with errors from a syntax check?

Similar Messages

  • How to color the text  elements in script?

    how to color the text  elements in script?
    byeeeee
    plz send the answers

    Hi,
    Please go through my blog to know how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

  • How to transport the text elements in  Reports?

    need answer to this question.
    how to transport the text elements in the reports?
    Edited by: venkata kumar on Feb 18, 2008 1:33 PM

    Hi Venkata,
    Text Elements are a component/part of the SAP script and are not individual ABAP objects within the SAP environment hence they cannot be transported independently.
    You would need to make changes in your text elements in the SAP script which would result in the SAP script being saved under a transport and moving the transport across the landscape would result in the text elements also getting transported.
    In short: Move SAP script - to move text elements.
    Cheers,
    Aditya

  • Copy one text file to another text file and delete last line

    Hi all wonder if someone can help, i want to be able to copy one text file to another text file and remove the last line of the first text file. So currently i have this method:
    Writer output = null;
             File file = new File("playerData.xml");
             try {
                   output = new BufferedWriter(new FileWriter(file, true));
                   output.write("\t" + "<player>" + "\n");
                   output.write("\t" + "\t" + "<playerName>" + playerName + "</playerName>" + "\n");
                   output.write("\t" + "\t" + "<playerScore>" + pointCount + "</playerScore>" + "\n");
                   output.write("\t" + "\t" + "<playerTime>" + minutes + " minutes " + seconds + " seconds" + "</playerTime>" + "\n");
                   output.write("\t" + "</player>" + "\n");
                   output.write("</indianaTuxPlayer>" + "\n");
                  output.close();
                  System.out.println("Player data saved!");
             catch (IOException e) {
                   e.printStackTrace();
              }However each time the method is run i get the "</indianaTuxPlayer>" line repeated, now when i come to read this in as a java file i get errors becuase its not well formed. So my idea is to copy the original file, remove the last line of that file, so the </indianaTuxPlayer> line and then add this to a new file with the next data saved in it. So i would end up with something like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <indianaTuxPlayers>
         <player>
              <playerName>Default Player</playerName>
              <playerScore>0</playerScore>
              <playerTime>null minutes null seconds</playerTime>
         </player>
         <player>
              <playerName>Default Player</playerName>
              <playerScore>0</playerScore>
              <playerTime>null minutes null seconds</playerTime>
         </player>
         <player>
              <playerName>Default Player</playerName>
              <playerScore>0</playerScore>
              <playerTime>null minutes null seconds</playerTime>
         </player>
    </indianaTuxPlayers>
    However after all day searching the internet and trying ways, i have been unable to get anything working, could anyone give me a hand please?

    I would go the XML route too, but for fun, open a file as a BufferedWriter and do this:
    void copyAllButLastLine(File src, BufferedWriter tgt) throws IOException {
        BufferedReader in = new BufferedReader(new FileReader(src));
        try {
            String previous= in.readLine();
            for (String current = null; (current = in.readLine()) != null; previous=current) {
                tgt.write(previous);
                tgt.newLine();
        } finally {
            in.close();
    }

  • SAP Script - How to check a text element is empty in Script.

    Hello Friends,
                  I like to display a text element when it is not empty, otherwise I like to display some other text.
    I know how to read text element in Script, but 
    How to check a text element is empty in Script
    Thank you for your time.
    Senthil

    Hi Senthil,
    Inside text element, we print the variables.
    Variables actually gets printed in the form.
    if the variable contains value the variable gets printed on script. if not, then variable not gets printed.
    hope this helps.

  • How to copy Log text (with Date, Time stamp ) User IDfrom BP to Transaction

    Hi Experts,
                     Can someone guide us how  to copy Log text (with Date ,Time & User ID) fron Business partner  (Prospect) to transactions by text detrmination procedure.
    Regards,
    Basavaraj Patil

    save text
    Fill out following parameters of SAVE_TEXT function module:
    HEADER
    TDOBJECT C 10 BUT000
    TDNAME C 70 10 digit BP number
    TDID C 4 Z001
    TDSPRAS C 1 Language
    INSERT = ’X’
    LINES
    TDFORMAT TDLINE
    |
    |testtttttttttttttttttttttttt( Your text)
    I would suggest you to use some other BAPI that would attach your text to BP than SAVE_TEXT.
    If you still wanted to use SAVE_TEXT then first make sure how the TDNAME is generated. It depends on the text determination procedure. For examples, it can be guid of BP, GUID followed by date or time or else the BP number itself.
    Just go to BP transaction, double click on the text pad, it will open you the SAP Script editor. Click on menu GOTO and select Header which will give you info about your TDID, TDOBJECT, TDNAME....
    Hope this helps.

  • How to transport the  text elements

    hi guru's,
      i need answer to this question.
      how to transport the text elements in the sap script?

    Hi,
    U mean Standard Text?
    Standard Text can create using SO10.
    Use RSTXTRAN Standard Program..
    Do Like this..
    Goto se38 and enter program name as RSTXTRAN
    and press F8..
    and give Text-key Name as Standard Text Name
    then Press F8..
    And select Select check box.. and enter
    and press on trsfr to corr button..
    it asks transfee textxs to a correction..
    press on yes button..
    it will show request number or create your own request...
    and after goto SE10 tcode and Transport it...
    Regards,
    KK

  • How to end a text element

    Hi,
    Iam having a text element which holds the data of an internal table which has 15 records and it prints those records in the main window. Once all these 15 records got printed i need to print a standard text.
    for me what happens is it prints one record and then it prints standrad text then 2nd record and standard text klike this it goes for all 15records. Can any one tell me why this happend and how to correct it.
    the code which i have written is
         /E     E1
         P1   &IT_BKPF-BELNR&     &IT_BKPF-BLDAT&     &IT_BKPF-BUDAT&
         /:      INCLUDE ZTEXT_TEST OBJECT TEXT ID ST LANGUAGE EN.
    Please help.Thanks
    Regards,
    Rose.
    Edited by: camila phyrose on Feb 18, 2009 7:08 AM

    Hi,
    Create a window below main window  and write the standard text there.
    After every record,it will write the standard text there as u have written in the text editor
    without any condition.
    This is bcoz, the text elements only ends when there is another text element.
    If u are sure that only after 15 records it should print the text,then give condition.
    /E E1
    P1 &IT_BKPF-BELNR& &IT_BKPF-BLDAT& &IT_BKPF-BUDAT&
    /: If &w_temp& eq 15.
    /: INCLUDE ZTEXT_TEST OBJECT TEXT ID ST LANGUAGE EN.
    /: Endif.

  • How to copy a text file into a array.

    I have written a program which copies a txt file to another text file. I used BufferReader, and Bufferwriter objects to perform this. Now I want to copy the text file to an int array. The text file stores numbers. Could some one please tell me how I can perform this task?

    I'm completely on subject.No. This forum is entitled 'Reflections & Reference Objects'. There is a forum for I/O questions. By posting questions in the wrong place you are just asking the wrong people. It is not a rational mode of enquiry.

  • How to display standard text element of main window in next page

    hi all
    In scripts we have standard script medruck for purchase order.
    i want to pull text elements ( terms and payment terms ) in to main window of next page.
    i have included main window in page windows of next page ,but im unable to print text elements of terms and payment terms in next page...
    any one give your valuable inputs.
    Thanks
    deepika.

    Hi deepika,
    First copy standard MEDRUCK to ZMEDRUCK and do the necessary changes.
    Then check in driver program when exactly Terma and condition text element is called. Generaly its after printing all items but just check once to confirm.
    If TERMS and condition element is called ate end just put a NEW-PAGE  command at end of the text element which is called before terms.
    Hope this will help You.
    Thanks
    Dhiraj.

  • Copy a text layer to another image in the same location

    I am trying to find a way to copy a text layer in one image to another image of the same size so that the text layer is in the exact same location.
    Basically I have two images for a rollover button for a website. What is the easiest way to copy a text layer to the other image so that it will be in the exact same location to create the rollover effect?
    Thanks!
    Nick

    Right click on the layer, Duplicate Layer, set destination to the other image file in the dropdown.

  • How to copy/paste texts/images from webpages in iBooks Author?

    Hi,
    I want to copy/paste text/image contents from webpages with iBooks Author, somehow images can't be copied, only texts can be copied with copy/paste editing. Wonder if there are any ways to include images with simple copy/paste?
    Tried to search iBooks Author help, could not find answers. Please help.
    Thanks

    Perhaps the people who spent a lot of time and money to produce the websites.....and who own copyright ...don't want anybody using their work without payment or credits. Have you contacted the websites owners to ask permission? 
    IF any person(s)  use anything from websites without permission apart from being to lazy to email to request permission....could face a legal action if and when the sites owners fins out. 
    There is another her misconception that "free" websites and content on "social media" such as the dreaded FaceBook....can be used without consequence. Almost all "free" websites are common licence material - which requires permission and those who give permission do so only for personal or none profit reproduction.
    i Use a blocking script on my websites which apart from preventing a right click...those who try are whisked off  my website to the the UK copyright website page which explains my rights! 
    You may wish to check out your iBooks contract with Apple and read their warnings on use of others copyright material. 
    You could ..and should contact the websites...explain what you want to use and why....and ask them if they can supply media.

  • How to get the text elements for a particular program

    Hi All,
    I want to get the all text elements , selection texts for a particular program...How to get.
    I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
    please help me..
    Regards,
    raj

    Hi..
    You may use this statement to read the text elements:
    DATA: i_reptx  TYPE STANDARD TABLE OF textpool   WITH HEADER LINE.
    READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
    Best Regards,
    Pradeep.

  • How to ignore empty text element while using DOM to parse xml??

    hi everyone,
    i am using DOM to parse an xml file. But i dont know how to cinfig the DocumentBuilderFactory to ignore empty text elements.
    For example, i have an xml file like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
        <child>Tom</child>
        <child>Jerry</child>
    </root>I used the following codes to parse:
    String fname = "Tom-and-Jerry.xml";
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setIgnoringElementContentWhitespace(true);
    factory.setIgnoringComments(true);
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Generate a DOM tree from the DOM builder.
    org.w3c.dom.Document dom = builder.parse(new File(fname));
    org.w3c.dom.NodeList list = dom.getChildNodes();
    for (int i=0; i<list.getLength(); i++) {
        System.out.println("Child No."+i);
        System.out.println("NodeName="+list.item(i).getNodeName());
        System.out.println("NodeType="+getType(list.item(i).getNodeType()));
        System.out.println("NodeValue="+list.item(i).getNodeValue());
        System.out.println();
    }The result is not exactly what i want ---- there are 5 children in list!! The 1st, 3rd and 5th are #text and their values are all empty. Only the 2nd and the 4th are the child that i expect.
    It is really troublesome to get all these silly empty texts as sub elements. I tried to get rid of them, but i failed. I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.
    Anyone can help me? thanks.
    Heavy ZHENG

    I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.That only does something if the XML has a DTD that enables it to know what whitespace can be ignored and what is significant. The API documentation for the method refers you to this document:
    http://www.w3.org/TR/REC-xml#sec-white-space

  • How can I use Text-Elements in Dynpro Buttons ?

    Hello Experts,
    I have create a dynpro screen with the screen-painter.
    In this screen have a button, in which label i want to use defined textelements.
    This has the advantage that i can expand it to other languages.
    The screen is an standard screen.
    In the Button i have to try using   &&Text-001&& , but it doesn't show me the contain of Text-001 .
    It show me &&Text-001&& as label in the button.
    How can I do  ?
    Which possibilties are existing ?
    Thanx in advnace for your responses
    Best Regards

    In button attributes select output field . Then in program define a vairable for the button with the same name and assign the text element to it before screen is displayed.
    data: button(10) type c. "your button name
    button = text-001.
    call screen 100.
    Regards
    Marcin

Maybe you are looking for

  • Cannot open gmail page says server error, but other pages from google tool bar work just fine

    I cannot access gmail from any opiton, web address, or tool bar. it gives an error of cannot find root? other pages from the tool bar work ie, utube, or g +..............I have checked my cookies and all are accepted. Specific message is: This page i

  • Safari and comcast

    I recently moved and had my Comcast service transferred to my new house. Upon reinstallation of my service, I was unable to access the internet on my Macbook using Safari. I then called Comcast and the modem was reset by the tech and that in theory s

  • Weird things happening on macbook

    I called apple support about a week ago and they had me do an archive and install. It solved the problem because whenever I turned on my macbook only a blue screen appeared. The box didnt even appear where you have to type in your password. So my com

  • IChat with a camcorder

    Is there any way to use a camcorder for your iChat instead of the iSight camera?

  • How to use a Java Resource??

    Hello, I need to know how to use my external JAR I loaded in the database (hosted in Oracle 10.2.04) using this line below: CREATE OR REPLACE JAVA RESOURCE NAMED "MyJar" USING BFILE (BFILE_DIR,'MyExternal.jar'); In fact, I have a Java file using this