I  want to write data in 10th line or 20th line in sap scripts

i  want to write data in 10th line or 20th line in sap scripts,how can write it

Give 10 line feeds in your Paragraph Formats
then write your Data there &DATA1&
again give 10 line feeds and write your data2 there
Reward Points if helpful .
Regards,
Ismail

Similar Messages

  • I want to write data into eeprom(93LC86) in parallel port using labview?

    I want to write data into eeprom(93LC86) in parallel port using labview? Also I want to read data from EEprom.

    Hi Mr. Mz,
    after having a look to 93LC86-Datasheet I do not see a problem. The self-timing programming cycle of this Chip avoids timing problems; the rest is only logical stuff.
    If you need more general info, how to use the parallel port, I recommend: http://[email protected]/ or
    in case you need an example of SPI-Interface in LabVIEW with paraport - then write to: [email protected]
    You are welcome
    regards
    wha

  • Why last  4 lines of  every page in sap script are not coming ,it is not o

    pls give some solution why last  4 lines of  every page in sap script are not coming ,it is not over flowing to next page even? it is any page format related problem or coding problem?

    Hi,
    Use PROTECT ENDPROTECT statement it displays hole paragraph in to the single page and also to over come this issue.
    Regards
    Md.MahaboobKhan

  • Same set of data should print twice on same page in SAP SCRIPT

    Hi Experts,
    I come across a requirement where I need same set of data in sap script should print twice as it is on same page.
    and if first page overflow, then same scenario should continue till complete data is printed. Basically main window data should print twice in two blocks on same page.
    E.g.
    If I have 10 line item which is to be printed on top window on  first page. Now I want that same 10 lines should be printed in a block below the first block. Data should flow similarly across multiple pages.
    Hope my question is pretty clear. I am expecting suitable answers from experts.
    Thanks in advance.
    Regards,
    Vijay

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • Getting Dynamic XPOS and YPOS for drawing the line in MAIN window in SAP Script using BOX command

    Hi Experts,
    I am trying to draw a line using the BOX command in the main window.
    /:         BOX HEIGHT 0 TW FRAME 10 TW INTENSITY 100
    I want to draw a line in XPOS and YPOS dynamically..
    Is there any way to find such I can draw a line dynamically after triggering a Text element. or determine the XPOS and YPOS dynamically such that I can draw a line in an intended position dynamically.
    Thanks in Advance
    Regards
    Rajesh Chowdary Velaga

    Any update on this ??

  • For every line item, I want to write horizontal line.

    Hello experts,
    In the main window of my sapscript form, I am displaying multiple line items. What I want to do is write a horizontal line so what I did is this:
    /: SIZE WIDTH '75.0' CH HEIGHT '0' LN
    /: BOX FRAME 10 TW
    /: POSITION YORIGIN +1 LN
    I was having a problem yesterday as to why my &ULINE& is always shorter than the width of my MAIN window. So I am currently experimenting with BOX statement. But the problem is, I want to write it after every end of a line item. I placed the code above where the original &ULINE& was placed(inside the main window).
    Hope to hear from you guys. Thank you and have a nice day to all!

    Hi,
    Below is my code inside my MAIN window.
    MAIN
    /* Element /E set outside PROTECT statement
    Element POS_ZEILE
    /: PROTECT
    I1 ,,&MSEG-ZEILE&,,&MSEG-MATNR&,,&MSEG-ERFMG&,,&MSEG-ERFME&
    /: IF &MSEG-BWART& EQ 'Z75'
    =  ,,&MSEG-UMLGO&
    /: ELSE
    /:  IF &MSEG-BWART& NE '315'
    =  ,,&MSEG-LGORT&
    /:  ENDIF
    /: ENDIF
    /: IF NOT &MSEG-BWART& EQ '631'
    =  ,,&MSEG-CHARG&
    /: ENDIF
    /: IF &MSEG-BWART& EQ '631'
    =  ,,&KNA1-NAME1&
    /: ENDIF
    /: IF &MSEG-BWART& NE '631'
    /: IF &MKPF-TCODE2& NE 'MB01' AND &MKPF-TCODE2& NE 'MIGO_GR'
    I1 ,,&MSEG-WEMPF&
    /: ELSE
    I1 ,,&MSEG-EBELN&
    /: ENDIF
    /: ENDIF
    I2 ,,&MABDR-MAKTX&
    /: PERFORM GET_RCV_LOC IN PROGRAM ZSR_GOODS_TRANSFER_SLIP
    /: USING &MSEG-EBELN&
    /: USING &MSEG-EBELP&
    /: CHANGING &WA_KOSTL&
    /: ENDPERFORM.
    /: IF &MKPF-TCODE2& EQ 'MB1A' OR &MKPF-TCODE2& EQ 'MB1C' OR &MKPF-TCODE2& EQ 'MIGO_GI'
    /:   IF &MSEG-GRUND& EQ ''
    /*     IF &MSEG-BWART& EQ 'Z29'
    /* ,,</><TX>&MSEG-SGTXT(15)&</>
    /*     ELSE.
    =  ,,&WA_KOSTL&
    /*     ENDIF.
    /:   ELSE.
    =  ,,&MSEG-GRUND&
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB01' AND &V_REVRS& EQ 'Y'
    /:   IF &MSEG-GRUND& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-GRUND&
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MIGO_GR' AND &V_REVRS& EQ 'Y'
    /:   IF &MSEG-GRUND& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-GRUND&
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB1B' AND &MSEG-BWART& NE '315'
    /:  IF &MSEG-BWART& EQ 'Z75'
    =  ,,&MSEG-LGORT&
    /:  ELSE
    /:   IF &MSEG-UMLGO& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-UMLGO&
    /:   ENDIF
    /:  ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB1B' AND &MSEG-BWART& EQ '315'
    /:   IF &MSEG-LGORT& EQ ''
    =  ,,&WA_KOSTL&
    /:   ELSE
    =  ,,&MSEG-LGORT&
    /:   ENDIF
    /: ENDIF
    /: IF &MKPF-TCODE2& EQ 'MB1A'  OR &MKPF-TCODE2& EQ 'MIGO_GI'
    /:   IF &MSEG-KOSTL& EQ ''
    =  ,,&MSEG-EBELN&
    /:   ELSE
    /:    IF &MSEG-BWART& EQ 'Z29'
    =  ,,<TX>&MSEG-SGTXT(15)&</>
    /:     ELSE.
    =  ,,&MSEG-KOSTL&
    /:    ENDIF.
    /:   ENDIF
    /: ELSEIF &MKPF-TCODE2& EQ 'MB1B' OR &MKPF-TCODE2& EQ 'MB1C' OR &MKPF-TCODE2& EQ 'MB01'  OR &MKPF-TCODE2& EQ 'MIGO_GR'
    /:  IF &MSEG-BWART& EQ '323' OR &MSEG-BWART& EQ 'Z73'
    =  ,,&MSEG-GRUND&
    /:  ELSEIF &MSEG-BWART& EQ 'Z75'
    =  ,,&MSEG-GRUND&
    /:  ELSE
    /:    IF &MSEG-UMCHA& EQ ''
    =  ,,&MSEG-EBELN(10)&
    /:    ELSE
    =  ,,&MSEG-UMCHA(10)&
    /:    ENDIF
    /:  ENDIF
    /: ENDIF
    =  ,,&MSEG-KUNNR&
    /: IF &MSEG-BWART& EQ '601'
    /  ,,   &V_BEZEI&
    /: IF &V_MATGRP& EQ 'X'
    /: ENDIF
    /: ENDIF
    /: ENDPROTECT
    /: IF &V_SERIAL_NO& = 'N'
    /: SIZE WIDTH '75.0' CH HEIGHT '0' LN
    /: BOX FRAME 10 TW
    /: POSITION YORIGIN +1 LN     
    /: ENDIF
    Element SERNUM
    /: PROTECT
    /: IF &V_SERIAL_NO& = 'Y'
    /: IF &V_FIRST_NUM& = 'Y'
    /: IF &SERIAL_TAB-END& EQ &SPACE&
    SI ,,Serial Numbers:,,&SERIAL_TAB-START&
    /: ELSE
    SI ,,Serial Numbers:,,&SERIAL_TAB-START&,,-,,&SERIAL_TAB-END&
    /: ENDIF
    /: ELSEIF &SERIAL_TAB-END& EQ &SPACE&
    SI ,,,,&SERIAL_TAB-START&
    /: ELSE
    SI ,,,,&SERIAL_TAB-START&,,-,,&SERIAL_TAB-END&
    /: ENDIF
    /: ENDIF
    /: IF &V_FINISH& EQ 'Y'
    /: SIZE WIDTH '75.0' CH HEIGHT '0' LN
    /: BOX FRAME 10 TW
    /: POSITION YORIGIN +1 LN
    /: ENDIF
    /: ENDPROTECT

  • I want to write the name (label) of push_button in multiple lines.....

    I have a push button, I want to write the name of it in multiples lines because its too long so how can we do it... I mean I think there's some coding or any thing else. Just if we want to label a button we take it properties and in the label properties we write its name but if the name is too long then it does not come from the next line..We have to maximize the button so the full name comes....How we can do this thing that the name comes from the next line or in multiple lines....

    Also, you could make a text item, with raised bevel and a when-mouse-click trigger:
    Re: Changing caption of a single row button in multi-record block

  • How to write data into a file

    Hi
    I want to write data from a string into a file. I am created a directory and a .doc file . But when i write this data from a string into .doc file , its give an error : File not found exception
    But, when i check in my directory, a file is created with blank.
    My code is:
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    class createFile {
         public static void main(String[] args) {
    try {
         String mss = "This is for dedo";
         FileInputStream fis;
         FileOutputStream fos;
    File file = new File("C:\\JD\\m4.rtf");
    // Create file if it does not exist
    boolean success = file.createNewFile();
         success = true;
    if (success) {
                   System.out.println("suc");     
                   fis = new FileInputStream(mss);
                   System.out.println(fis);
              fos = new FileOutputStream(file);
              int c;
                   while ((c = fis.read()) != -1) {
         fos.write(c);
                   System.out.println("mss");
              fis.close();
              fos.close();
         System.out.println("created");
    // File did not exist and was created
    } else {
    // File already exists
    } catch (IOException e) {
         System.out.println(e);
    regards
    madhu

    InputStream inputStream = new ByteArrayInputStream(mss.getBytes());Use this to push into the file>
    Ummm.... no. InputStreams are for reading, not for writing.
    Anyway, OP, you're making a mistake. You're trying to open a stream to a file called "This is for dedo". Use FileOutputStream(File file) constructor or FileOutputStream(String pathToFile). You can then wrap that stream with a PrintWriter or whatever you need.

  • Write data in Excel Sheet

    I want to write data from oracle table to Excel sheet in formated way like bold or merge the cell in case of same value.
    Edited by: shiv kumar on Jul 27, 2010 10:18 AM

    Read Suns JDBC Tutorial, then if there is already an Excel spreadsheet set up to use as an ODBC datasource use JDBC and the JDBC/ODBC bridge. If there is not an already setup ODBC Datasource then Google POI HSSF and/or JExcel to do the Excel part.

  • How to write data to file Java ME cldc 1.1 midp 2.0?

    I newly in java me, please help me.
    I make project in NetBeans 7.0.1. and use cldc 1.1 midp 2.0.
    I want to write data to the file.
    How can I do it?
    I try to use FileOutputStream. But it don't exists in java.io
    NetBeans shows me only this list of classes and interfaces in java.io:
    ByteArrayInputStream, ByteArrayOutputStream, DataInput, DataInputStream, DataOutput, DataOutputStream, InputStream, InputStreamReader, OutputStream, OutputStreamWriter, PrintStream, Reader, Writer.
    Why it so short?
    And how I can write data to file?
    Data can be array of bytes (byte[]) or Object it better.

    You must use JSR 75: FileConnection. Please check the following article "Getting Started with the FileConnection APIs":
    http://developers.sun.com/mobility/apis/articles/fileconnection/
    Be sure to use FileSystemRegistry.listRoots().
    And welcome to Java ME development. :)

  • How to write data to xml file?

    Hi,
    I have done a project which read data from a web then write in log file.
    Now i want to write data in xml file.
    how to write?
    i read some java and xml tutorial, quite quite difficult.
    Who can give a simple example with some comments?
    If you also give some tips on learning java web services, i will be very appreciated.
    Thanks
    Yang Bin

    Choose Xerces2.4 to serialize the DOM object is an option.
    javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
    java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
    below is the source file: XercesTest.java
    //JAXP
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    //APACHE SERIALIZE FUNCTION
    import org.apache.xml.serialize.*;
    class XercesTest
    public static void main(String[] args) throws Exception
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse( new File( args[0] ) );
    File f = new File( "copy_of_"+ args[0] );
    OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
    FileOutputStream fout = new FileOutputStream( f );
    XMLSerializer ser = new XMLSerializer(fout, format );
    ser.serialize( doc );
    hope it's helpful
    land

  • Multiple line issue in sap script

    Hi All,
    There is a window in the sap script.
    The window consists of a text element and i am displaying 4 lines of text in that window.
    Sap script:
    /E   Reason
    AC  &LINE&
    In the source code, an internal table will have 5 text lines and those 5 lines should be reflected in sap script.
    The source code as follows.....
    loop at li_tline.
    CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'
             EXPORTING
                  NAME  = 'LINE'
                  VALUE = li_tline-tdLINE.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'REASON'
                WINDOW  = 'REASON'
                function = 'APPEND'.
    endloop.
    In final output, the last line of the internal table is reflacting..... Hope its getting over written each time in the loop.
    How to make the code, so that i can reflect all the lines from internal table to the sap script....??????????????
    Please help me, as this issue is very much urgent..........
    Regards
    Pavan

    Hi
    Do like this.
    declare 5 variables each of 80 char length.
    data: v1(80), v2(80), v3(80), v4(80), v5(80).
    Read the Internal table li_tline with index and move each line to different variables and write those variables in the script.
    if not li_tline[] is initial.
    read table li_tline  index 1.
    if sy-subrc = 0.
       v1 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 2.
    if sy-subrc = 0.
       v2 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 3.
    if sy-subrc = 0.
       v3 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 4.
    if sy-subrc = 0.
       v4 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 5.
    if sy-subrc = 0.
       v5 = li_tline-tdline+0(80).
    endif.
    endif.
    write the &V1& &V2& &V3& &V4& &V5& variables ins cript
    Reward points if useful
    Regards
    Anji

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • Write data to GrossBuyPr in document lines

    Hi all
    Is there any good workaround to write data to the field "GrossBuyPr" in document lines, according to the circumstance that this field isn't accessible trough the DI API?
    Best Regards, Adrian

    Hi Adrian,
    If it is not exposed to the DI API (which you are right, it seems not to be) then the only way I can think of doing it programatically is by using the UI to set the value in the field in the document in Business One - however, this requires the client to be open and for the document to be added through the GUI and not DI.
    As direct update queries are not supported, I'm afraid I can't think of another way to achieve this.
    Sorry I can't be more helpful,
    Regards,
    Niall

  • How to write data in differt line in .txt file

    Hi all,
    I am tring to write data on one file using utl_file,
    the first cursor loop write data on first line of the file using
    utl_file.put_line(..........................);
    end the second cusor loop write the data on secion line of the same file using
    utl_file.put_line(..........................);
    file format we are given as .txt;
    problem we are facing is when we open the file in notepad all the data is showing in one line...
    same file if we open another tools like edit plus, word pad etc it showing the write formate( line by line)
    Can any one help on this we need to set any setups in note pad????????????/

    As others have said it sounds like an operating system difference.
    If your Oracle is installed on a unix based server then the file will be written using Unix style newlines which are just Line Feed characters.
    In Windows environments a newline is considered to be made of the Carriage Return/Line Feed character pair, not just the Line Feed.
    Some applications such as MS Word or Wordpad can read Unix style linefeeds and interpret them as you expect as a Newline. However Notepad doesn't.
    When you transfer the file from Unix to Windows, usually this is done using an FTP based mechanism. If you transfer the files using FTP Binary mode, then every byte of the file is transferred as it is on Unix, and the file will essentially be a unix file on a windows system. If, however, you transfer the files (from Unix to Windows) using FTP ASCII mode, then whenever FTP encounters a LineFeed character it will convert it to a Carriage Return/LineFeed pair of characters, so that the file will appear correctly in Notepad. Likewise if you transfer files from Windows to Unix in ASCII mode, then Carriage Return/LineFeed pairs of characters are converted to just a LineFeed character so that the file becomes Unix compatible. Note, you shouldn't transfer binary files in ASCII mode as it can corrupt them, it's only intented for text based files.

Maybe you are looking for