Formatting the write statements

i need to write 5 statements tgther and rest 3 togther
used at difft places in my program
how do i formatit?
Please let me know?

Hi,
Your problem is not clear enough. Wat do u want? Is it that you have 5 statements to be displayed togather in a block and rest three in separate bunch? you said ur statements come from different locations in the program. In that case you can declare certain header titles at certain coloum positions. As and when u get ur statements to be displayed then write the same usin 'WRITE UNDER <HEADING>' statement.
Hope it helps you.
Reward points if helpfull.

Similar Messages

  • Formatting the write to meaurement file

    I would like to format the write to measurement file.vi  in such a way so that I get the format as shown in the attached datalogger.txt. I am currently getting lot of unnecessary information as shown in data.xls file.
    Any help is appreciated.
    Mozill
    Attachments:
    data.xls ‏2 KB
    datalogger.txt ‏14 KB

    Hi Mozill,
    The best solution for you will be to use the Write to Text File VI in combination with the Concatenate String VI (both located in the Strings pallette). You can use the Tab constant between different strings on the same row At the end of each line simply add the "End of Line" constant and during the next iteration of your loop you will start at a new line. Open up example finder in LabVIEW by to Help»Find Examples 
    Then search for "text" and look at the Write to Text File VI.
    Hope this helps!
    Message Edited by Kalin T on 04-16-2007 11:43 AM
    Kalin T.
    National Instruments
    Attachments:
    write_to_text_file.jpg ‏91 KB
    strings_pallette.jpg ‏47 KB

  • Can we write in Italic font on to the screen by using the WRITE Statement

    Hello Abappers,
    Can we write in Italic font on to the screen by using the WRITE Statement.
    Please reply.
    Regards,
    Rahul

    Hi Rahul,
    >Sandeep Wrote:
    If you have the codepage for Italian language installed in your machine , you can write the same.
    The OP is asking about italic font not about the language.
    You need to upload font files ITALICI.TTF. Go to SE73 . Click on Install True type font and upload the italic file on to your system.
    Check Font Attribute Italic
    We already have help files on this. Refer:
    [Using TrueType Fonts|http://help.sap.com/saphelp_nw70/helpdata/en/36/5b3438fd263402e10000009b38f8cf/content.htm]
    I don't have idea on write statement in ABAP reports. Hope it cannot be.
    Edited by: K.Manas on Dec 30, 2010 6:08 AM

  • How to show a data in Higher fonts with write statement

    Hi.
    how to show a data in Higher fonts with write statement
    I want to show a statement in large fonts with write statement.How can I do that.
    write : 'Company Address'.
    Regards
    Mave

    Mave,
      I would precribe you to use the FORMAT options available with the WRITE Statement.
    Because this allows us to differentitate between the HEADIngs and the LINEs in the report.
    Here u go dear:
      http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9e7135c111d1829f0000e829fbfe/frameset.htm
    Thanks
    Kam

  • Issue with WRITE statement from Internal Table

    Hi All,
    I have written the below code in a infoset query, the syntax check is ok & when i run the query in debugging mode, i find the internal table being filled with the values & the write statement outputing the values as well.
    But the problem is when i execute the query the output does not show all the lines, instead just displays the last record . What could be the mistake?
    Is it because i have defined Y_EBELN, Y_EBELP & Y_OPENQTY as nodes in the Extras Tab of the infoset & have chosen this for display in my query? How to display the output from my internal table in my query output?
    Hope my problem is clear, await clarification.
    Vivek
    Code
      types:
        Begin of itab,
          wl_ebeln   type eket-ebeln,
          wl_ebelp   type eket-ebelp,
          wl_openqty type eket-menge,
        End of itab.
    Data: il_po type table of itab with header line.
    *Display open PO for materials
      SELECT EKETEBELN EKETEBELP EKETMENGE EKETWEMNG EKET~EINDT
           INTO (Y_EBELN, Y_EBELP, WL_MENGE, WL_WEMNG, Y_EINDT)
        FROM EKET
          INNER JOIN EKPO
             ON EKETEBELN     = EKPOEBELN
              AND EKETEBELP = EKPOEBELP
          INNER JOIN MARD
             ON EKPOMATNR     = MARDMATNR
              AND EKPOWERKS = MARDWERKS
              AND EKPOLGORT = MARDLGORT
        WHERE EKPO~MATNR = MARD-MATNR
          AND EKPO~WERKS = MARD-WERKS
          AND EKPO~LGORT = MARD-LGORT
          AND EKPO~LOEKZ = SPACE
          AND EKPO~ELIKZ = SPACE.
    *Display only still open qty per schedule line
      Y_OPENQTY = WL_MENGE - WL_WEMNG.
      il_po-wl_ebeln = Y_EBELN.
      il_po-wl_ebelp = Y_EBELP.
      il_po-wl_openqty = Y_OPENQTY.
        append il_po.
      ENDSELECT.
    ENDIF.
    Loop at il_po.
      write:/ il_po-wl_ebeln, il_po-wl_ebelp, il_po-wl_openqty.
    endloop.

    Hi Vivek,
      Try it like this.
    Data: Begin of itab,
           lifnr type lfa1-lifnr,
           name1 type lfa1-name1,
           land1 type lfa1-land1,
          End of itab,
          it_lfa1 like table of itab with header line,
          lifnr like lfa1-lifnr,
          name1 like lfa1-name1,
          land1 like lfa1-land1.
    select lifnr name1 land1 into (lifnr, name1, land1)
           from lfa1.
    it_lfa1-lifnr = lifnr.
    it_lfa1-name1 = name1.
    it_lfa1-land1 = land1.
    append it_lfa1.
    endselect.
    loop at it_lfa1.
    write:/ it_lfa1-lifnr, it_lfa1-name1, it_lfa1-land1.
    endloop.
    Note:
    In place of the above select you insert your join select statement. It is working for me.
    You have declared your internal table wrongly. In the internal table instead of TYPE use LIKE, it will work.
    Hope this will work for you.
    Thanks & Regards
    Haritha.

  • Clearing write statements

    We are facing a problem with clearing the write statement buffer.
    Our aim is to send mail by compressing the list memory, and the mail is sent in a loop. In each loop we have different set of data to be sent. But problem here is in the mails after the first mail, the data is getting appended in the subsequent mails.
    For example,
    do 10 times.
    *****Have to clear buffer here*****
    write :/ hi.
    perform sendmail.
    enddo.
    The above code should give ten emails...with only "hi". In other words, the list output should be only one "hi" and not 10 times hi. WE have tried all possibilites to clear the write buffer, Any help in this regard is highly appreciated.

    Hi aakash,
    1. use MODIFY LINE concept,
       to modify the line number 1
       (so that line 1 is RE-WRITTEN there itself,
        instead of line 2, 3, 4,..etc)
    2. just copy paste
    3. It will give only 1 HI, in 10 loops.
    4.
    report abc.
    DATA : MSG(100) TYPE C.
    MSG = 'HI'.
    DO 10 TIMES.
      IF SY-INDEX = 1.
        WRITE :/ MSG.
      ELSE.
        MODIFY LINE 1 LINE VALUE  FROM MSG.
      ENDIF.
    ENDDO.
    regards,
    amit m.

  • Write statements after OO ALV

    Hi,
    i have the following problem. In a report we are using the set_table_for_first_display method for ALV display. In the ALV, once pressed the 'BACK' button we want to show per screen some WRITE commands. The lines are being short printed, but the program is not stoping at that point, and therefore going back to the selection screen. So, we are not able to see the content we are printing with the WRITE statements.
    Anyone knows how to solve this???
    Thanks to everyone...

    Hello,
    did you try the 'LEAVE TO LIST-PROCESSING'-Command before your write-statements ?
    Regards Wolfgang

  • A problem about WRITE statement

    Hi all
    I want to use the WRITE statement in the program.But when I write it ,the result doesn't show all in the screen . It only shows a part of the result.
    CALL TRANSFORMATION id
      SOURCE root1 = source1
             root2 = source2
      RESULT XML xml_string.
      WRITE  XML xml_string.
    Q: I want to show all the result , so what can i do now ?
    write /5(108) XML xml_string.
    what about the rest how to do ?
    Thanks in advance
    Nick.

    Hi,
    <b>write /5(108) XML xml_string</b>
    The above statement says that starting from 5th character write 108 characters of the string.
    If the string is bigger that this in size, then complete text will not be displayed.
    If the string is more in length, then u shud remove this 108 specification.
    Regards,
    Himanshu

  • HR-Unicodes for WRITE Statement

    Hi All,
    Am getting the problem with the WRITE Statement in Unicodes.
    i have declared the table like:
    FORM list_result
    TABLES p_pcl1_tab STRUCTURE pcl1.
    & i have writtten the write statement as follows:
    LOOP AT p_pcl1_tab.
    WRITE: / sy-tabix, p_pcl1_tab.
    ENDLOOP.
    Am getting the follwing Error:
    "P_PCL1_TAB" cannot be converted to a character-type field.
    So could any body can tel me the solution for this.
    Points will be rewarded,
    Thax in Advance.

    Hello
    Try this
    LOOP AT p_pcl1_tab.
    WRITE: / sy-tabix, p_pcl1_tab-RELID, p_pcl1_tab-SRTFD.
    ENDLOOP.
    ****i.e you will need to write fields individually.
    Reward points if helpful

  • Avoid Write statement in a Submit.

    Hi Experts,
    I am writing a report say R1 which has a submit statement to report R2, later R2 submits to R3.
    Now there is a write statement in R3. So output of R3 is being displayed.
    my problem is that I can make changes only in R1, due to my client standards.
    Is there any way to skip this R3 output and show it as output for the R1?
    I tried SUBMIT AS JOB, but we cannot use WITH LIST MEMORY with it.
    PS : I want to catch output of R3 and show it as output for R1. And the requirement should be achieved without use of back button.
    Thanks,
    Anil

    Hi Frederic,
    SUBMIT .... AND RETURN EXPORTING LIST TO MEMORY.  Still displays the output of 3rd report. then I need to click back button to come back to the Report1.
    I actually need to add few more changes in Report1 after this submit statement. And then dispaly the Write statements of third report.
    Thanks,
    Anil

  • Write statement - currency

    Subject changed by moderator to something more meaningful.  Please take care in future
    Hi,
             I want to write the currency using the write statement.. but i am getting the error for the same:
    "Use addition CURRENCY when outputting LW_AMOUNT
    Use auxiliary field when outputting with MESSAGE"
    my statement is :
    write : lw_amount.
    where lw_amount is type curr having a reference key attached to it..
    kindly help me..
    Edited by: Matt on Dec 22, 2008 11:01 AM

    >
    neha gupta wrote:
    > Hi,
    >          I want to write the currency using the write statement.. but i am getting the error for the same:
    >
    > "Use addition CURRENCY when outputting LW_AMOUNT
    > Use auxiliary field when outputting with MESSAGE"
    >
    > my statement is :
    > write : lw_amount.
    >
    > where lw_amount is type curr having a reference key attached to it..
    >
    > kindly help me..
    Ur question itself has the answer, marked by me in red.
    A simple F1 on write statement wud have given u the solution.
    Sap has provided really intensive documantation with examples so try to make use of it.
    use as write: lw_amount currency <ur currency key>.
    кu03B1ятu03B9к
    Edited by: kartik tarla on Dec 22, 2008 3:26 PM

  • Properly displaying currency amounts (negative sign) via WRITE statement

    Dear forumers,
    Using the WRITE statement, how may I properly display a currency amount that has a negative value?
    In my program, the variable, V_AMOUNT to be displayed is originally of the type "WERTV12".
    Using the WRITE statement for this, nothing gets displayed in the screen (blank only).
    So, I assigned V_AMOUNT to another variable of the type "P DECIMALS 2", V_AMT.
    Using the WRITE statement for this, the amount is displayed in the screen.
    But, if the amount has a negative value, the negative sign is not displayed there.
    I.e. If V_AMT has the value '500.00-', only '500.00' is displayed in the screen.
    Finally, I changed the type of V_AMT as type string.
    This works - any amounts with negative sign is displayed in the screen properly.
    But, with this approach, I'm unable to "customize" the display of amounts according to currency, like this:-
    DATA int TYPE i VALUE 12345678.
    WRITE int CURRENCY 'EUR'.
    The output of the WRITE statement is "123456,78".
    Is there a better way to achieve this?

    SAP display amounts/quantities as positive numbers with another field that denotes whether positive or negative.  You could change the value to a character field and put the negative where you need it (or put an additional field next to the amount with the sign)... but using a character field probably would negate the currency display, too....

  • Not able to see write statements in spool

    Hi,
        When i'm executing a bdc program using call transaction in background i'm not able to see the write statements in the spool.Please let me know if there is anything which should be done to send the write statements to spool.
    thanks in advance,
    poornima

    Hi poornima
    The best way to do is store it in memory once your BDC is done use FMs to do the writing process .
    CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject       = l_abap
    EXCEPTIONS
      NOT_FOUND        = 1
      OTHERS           = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
      LIST_INDEX               = -1
      WITH_LINE_BREAK          = ' '
    IMPORTING
      LIST_STRING_ASCII        =
       TABLES
         listasci                 = ascitab
         listobject               = l_abap
    EXCEPTIONS
      EMPTY_LIST               = 1
      LIST_INDEX_INVALID       = 2
      OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Writing Messages
      LOOP AT ascitab FROM 6.
        WRITE: ascitab-line.
      ENDLOOP.
    Regards
    Hitesh

  • "Invisible" Write statement possible?

    Hi!
    I want to print a list which includes a checkbox in every line. I use the write statement therefore and loop afterwards with read line over the list to check whether the checkbox was checked or not.
    In the line I write the tabix, to know which dataset the user wants, that works but it's not really nice, that the user sees the tabix.
    Is it possible to make the write statement invisivble so that I can read the information with read line, but the User doesn't see it?
    Thanks!
    Tobi

    Hi Tobias,
      try it this way:
    Tables:
      sflight.
    Data:
      char type c.
    Data:
      t_sflight like standard table of sflight.
    Select * from sflight into table t_sflight.
    Loop at t_sflight into sflight.
      Write:/ char as checkbox,
              sflight-carrid,
              sflight-connid.
    Endloop.
    At line-selection.
        DO.
        READ LINE sy-index FIELD VALUE char sflight-carrid  sflight-connid.
        IF sy-subrc NE 0.
          EXIT.
        ELSEIF char = 'X'.
          WRITE: /
              sflight-carrid,
              sflight-connid.
        ENDIF.
      ENDDO.
    With luck,
    Pritam.

  • WRITE statement column position as variable

    hello everybody,
    kindly help me how to do this:
    Vendor          2004    2005    2006
    xxxxxxx         xxx.xx  xxx.xx  xxx.xx
    the year is select-option. the number of year depends on the on year range entered by the user.
    how could i write this using the WRITE STATEMENT since the column year depends on the range entered by the user. if the user entered 2004-2007 meaning i have 4 year in the title of the report.
    how could i write that the position of the column is VARIABLE.
    thanks.
    den

    Hi donna,
    1. Simple.
    2. we have to use
       <b>WRITE : at</b> pos year
      where pos = position variable
            year  = year data.
    3. just copy paste in new program
    4.
    report abc.
    data : pos type i.
    data : yr(4) type n.
    yr = '2003'.
    do 5 times.
      pos = pos + 6.
      yr = yr + 1.
      write : at pos  yr.
    enddo.
    regards,
    amit m.

Maybe you are looking for

  • Blog summary weirdness

    okay this is nutty. I've got 3 blogs on a site. published them to a mobile me account. one is just fine, but on the other two, the links in the blog summary are all dead. however if you go the archive. the links are fine. and all other links are fine

  • Dual boot Windows and Linux?

    I recently bought a T61, and will be taking a programming course.  One prof I spoke with said they ask us to use Unix tools, so one option is to dual boot linux and Windows.  I haven't decided yet whether I will keep Windows Ultimate, or go to XP for

  • Macbook air 11" connecting to bluetooth headphones

    Quick question. do only mono bluetooth headphones work with the new macbook airs or do stereo headphones work as well Thanks

  • Brightness Issue in my Hp 15-R006TU Note book

    Hi, I have a problem with my screens brightness.Its My HP 15-R006TU notebook.I purchased my notebook on may 31 and it came with DOS OS.So i formatted it windows7 64 bit OS.But now i am having some display problem.When i am switching over any window m

  • Firefox Hangs every opening, but loads from internet to "home".

    After downloading Windows Live Essentials 2011 Firefox (and Windows Explorer) hangs on opening every time though it is my primary start page. I can open it by internet access (i.e. windows update) back to "home". Are there problems with live essentia