Inserting blank lines in script output of a single variable

Dear All,
I have a requirement where i am printing amounnt in words. It is stored in a variable ITAB-RBETR.
I want to insert a blank line when the amount field exceeds the line limit and start printing in second line.
Normally we use '/' command to insert line in between 2 variables in script output. but here it is
a single variable(ITAB-RBETR).
Currrently the output is like this -
Eighty nine crore eighty four lakh twenty
three thousand seven hundred fifty only
My requirement is -
Eighty nine crore eighty four lakh twenty
(Blank line)
three thousand seven hundred fifty only

Hi,
May be you can use the offset value for displaying the text in the variable ITAB-REBTR.
Let's say the total allowed length is 50 chars, then use ITAB-REBTR0(50) in the first line and blank line and then ITAB-REBTR51 in the third line.
I hope this is what you required.
Regards,
Santhosh.

Similar Messages

  • Inserting new line in script output based on character count

    Dear All,
    I want to print amount in words on cheque. Condition is if on the first line the character
    count reaches 40 the rest words should be printed in next line. Also amount in word
    should be printed  on the same line. 
    I have the internal table values itab-amtwords(amount in words and ) itab-rbetr(amount in number)
    I want to print them something like this -
       Sixty seven crore eighty five lakh twelve thousand     
       fourty five                                                                678512045.00
    the amount in word should come in second line only. The amount in word if reaches certain point
    the rest word should print in second line.
    How to write the logic in script editor
    Regards,
    Sandeep

    the amount in number should print in the second line.
    2163126312.00
    regards
    sandeep
    Edited by: Sandeep Sahoo on Apr 17, 2009 4:34 PM
    Edited by: Sandeep Sahoo on Apr 17, 2009 4:38 PM

  • How to insert blank lines in the ALV output.

    Hi Friends,
    Could any body help me out How to insert blank lines in the ALV output.?? Any Code pls...
    Thank you,
    Vikram.C

    hi vikram
    do like this
    In the fieldcatalog table all the fields should be in editable mode
    ie lw_fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    is_layout = lv_layout
    it_fieldcat = lt_fcat[]
    i_save = 'A'
    is_variant = lv_variant
    TABLES
    t_outtab = lt_license[]
    EXCEPTIONS
    program_error = 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.
    ENDFORM. " display_data
    *& Form user_command
    FORM user_command USING r_ucomm TYPE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CASE r_ucomm.
    WHEN 'ADD'. "
    data: lv_ind type i.
    data: lv_line type i.
    describe table lt_license lines lv_line.
    loop at lt_license into lw_license.
    lv_ind = sy-tabix.
    if lv_ind = lv_line.
    append initial line to lt_license.
    endif.
    endloop.
    ENDCASE.
    ENDFORM. "user_command
    reward points if useful
    Rohan

  • Report Painter insert blank line after report header

    Hi Expert,
    I have a problem to insert a blank line (a spacing) after the report header of my customized report painter.
    For example, in standard cost center report, S_ALR_87013611, there is a small box listed information like cost center/group ... and reporting period.
    Right after reporting period, the report header box ends, and there is a space line between it and the cost element data ...
    For my customized report painter, I cannot make this space line.
    I tried edit > row > insert blank line ... but not successful ... kindly advise.
    Thanks and regards,
    -CK

    Hi
    In KKO2 go to output tab, here under layout, tick header and then press pencil symbol and in the editor you write your header. I think this will give you desired result.
    Regards
    Rajneesh Saxena

  • Long lines corupt script output

    When SQL run as Script (F5) produces too long lines any Script Output gets blank. Text is there in tab Script Output and I can copy and past it but I can't see it.
    What setting could affect this?
    --This SQL is working fine
    select rpad('Test1',4000), rpad(' ',996) from dual;
    --and this sql output is white on white:
    select rpad('Test2',4000), rpad(' ',997) from dual;
    Adam Dziurda
    PS. Affected version Oracle SQL Developer Version 4.0.0.12.27 (aka 4.0 EA1)

    Yes, I see that. I've logged bug 17218146 for it.
    Thanks
    Barry

  • Sharepoint Designer 2010 inserting blank lines

    Sharepoint Designer (SP1) is intermittently inserting hundreds of thousands of rows as I am working with an .aspx document. This bug, which was first present in 2007, has been reported by many people over the years; it seems to remain in 2010.
    Does anyone have a solution for this issue? Is there something in my page, which contains a bunch of xsltlistviews, that could be blowing up this file?
    Thanks.

    All -- 
    FYI, here is a decent workaround to the problem of SPD 2013 (SharePoint Designer 2013) inserting blank lines into pages.
    Here are the steps.
    - Get CodeMaid (free) or similar coding-tool plugin/extension for Visual Studio 2013 (VS 2013) that can remove blank lines.
    - Check out the file in SPD.
    - From SPD, right click the file and choose open with, then choose VS.
    - Run CodeMaid clean processing in VS, which will remove multiple consecutive blank lines.
    - Save file in VS.
    - Close file in VS.
    - Check in file with SPD.
    - Done.
    It may seem like a lot of steps, and it is, and it odd the MS does not simply use the same code editor base for both VS and SPD, but using this workaround is actually pretty quick and easy, and easier still if you use the VS editor to code the files (instead
    of the SPD editor) because the VS has way better code-folding and code-completion and code-digging anyway.
    Just thought I would mention a (fairly) quick and easy way to workaround this SPD shortcoming.
    HTH.
    Thanks.
    -- Mark Kamoski

  • Inserting Blank Line after subtotal in ALV

    Hi,
    I am using REUSE_ALV_GRID_DISPLAY for my report output and I am displaying the following fields :
    Company Code Comp Name  Bank Name Amount Data
    I am sorting my output based on the company code and displaying the subtotal for each company code.
    My requirement is that I need to insert a Blank line after every subtotaled value in the report output. like after the subtotaled value of company code say XXX a blank line should be inserted and then I should start displaying data for company code YYY.
    Please let me know if this is possible and if yes how to do that.
    In case I am not clear with my question please let me know.
    Regards,
    Lalit Kabra

    Hi,
    Following is my code ::
      wa_sort-fieldname = 'BUKRS'.
      wa_sort-tabname = 'WT_OUTPUT'.
      wa_sort-spos = '1'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
      wa_sort-fieldname = 'WRBTR'.
      wa_sort-tabname = 'WT_OUTPUT'.
      wa_sort-spos = '4'.
      wa_sort-up = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    I have put the wa_sort-Group = 'UL' but could not get the desired results.
    What my need is that say for one company code there are five line items, and I need to sort the output by company code then after displaying the 5 line items, I need to display the subtotal of amount for that company code , then a blank line and then the data for the next company code should start.
    Please suggest how this can be achieved.
    regards,
    Lalit

  • Grid using - GL_GUI_ALV_GRID inserting blank line

    Hi experts ...
    I am creating report using grid instance of class GL_GUI_ALV_GRID  ...
    its displaying results output table say itab[] ... I want to insert one blank line in display ...
    if i append work area of type itab to itab ... in that case the column which showing amount displays 0.0
    instead i want complete blank row ...
    Thanks & Regards  ...
      Ashish

    Hi,
    check this link;[Blank Row in ALV Grid Display;
    hope u'll get some idea.
    Regards,
    Sneha.

  • Inserting blank line

    Hi All,
    How can I insert a blank line at output, for example my output is:
    3 rows extracted.
    8 row extracted.
    but the result should be has below,
    3 rows extracted.
    8 row extracted.
    Thanking u,
    mahe

    The easiest solution is to use the "format wrapped" option of the SQL*Plus command "set serveroutput".
    Example:
    SQL> set serveroutput on size 10000 format wrapped
    SQL> begin
      2     dbms_output.put_line ('line 1') ;
      3     dbms_output.put_line (' ') ;
      4     dbms_output.put_line ('line 2') ;
      5  end ;
      6  /
    line 1
    line 2
    Procédure PL/SQL terminée avec succès.
    SP2-0158: option SET inconnue "format"
    SQL> set serveroutput on size 10000 format word_wrapped
    SQL> begin
      2     dbms_output.put_line ('line 1') ;
      3     dbms_output.put_line ('') ;
      4     dbms_output.put_line ('line 2') ;
      5  end ;
      6  /
    line 1
    line 2

  • Inserting blank line in internal table

    Hi
    I am inserting a report  from a internal table for eg the content of my internal table is
    data : abc
    event initialization.
    perform read_data.
    Now I want  1 blank line after every line in the internal table for eg
    data:abc
    event initialization
    perform read_data.
    How to insert a blank line in an internal table?
    Edited by: priya singh on Feb 4, 2009 9:37 AM

    hi,
    DATA: BEGIN OF i_pernr OCCURS 1 ,
    pernr TYPE pa0002-pernr,
    vorna TYPE pa0002-vorna,
    nachn TYPE pa0002-nachn,
    END OF i_pernr.
    TYPES : BEGIN OF string1  ,
         a TYPE char100,
        END OF string1.
    DATA : wa_string TYPE string1,
           it_stirng TYPE TABLE OF string1.
    START-OF-SELECTION.
      SELECT pernr vorna nachn FROM pa0002 INTO TABLE i_pernr UP TO 20 ROWS.
      LOOP AT i_pernr.
        CONCATENATE i_pernr-pernr i_pernr-vorna i_pernr-nachn INTO wa_string-a SEPARATED BY '|'.
        APPEND wa_string TO it_stirng.
        APPEND INITIAL LINE TO it_stirng.
      ENDLOOP.
      BREAK-POINT.
    Thanks

  • Page break(blank line) in a output list

    Hi,
    I want to display the equipment numbers (it_equi) in the ouput list. IT_EQUI is having thousands lines, its going to multiple pages (but blank line is inserted between the pages).
    But I dont want the blank lines between the pages.
    Can you please let me know how I can avoid the blank lines between the pages.
    Its quite urgent,please help me at the earliest.
    Thanks & Regards,
    Janardhan

    Hi Manoj,
    Thanks for your valuable reply.
    But for my specific rquirement, it should not be continuous page.
    My requirement is,
    For every functional location I need to display the equipments. For every new functional location it should start in a new page.
    please let me know the correct solution.
    Regards,
    Jana

  • How to create blank line in alv output

    Hi all,
    Iam getting alv output with currency values like below
    text1    20.0  10.0  30.0
    text2    25.0  11.0  30.0
    text3    27.0  19.0  30.0
    text1    24.0  18.0  30.0
    text2    27.0  16.0  30.0
    text3    29.0  15.0  30.0
    text1    23.0  17.0  30.0
    text2    22.0  13.0  30.0
    text3    21.0  14.0  30.0
    and so on...
    My requirement is to create blank line after text3. Since its currency field even i claer work area iam able to get 0.0.
    If i use no-zero in field catalog i will be able to get blank values for all 0.0, but thats not required.
    Can u help me out how to crate blank line after one set of values(text1, text2, text3) in alv display
    Thanks

    Hi,
    If i use no-zero, then all 0.0 will be replaced by blank, but that is not required.
    I want only blank line to be displayed after set of line items.
    Skip doesn't help in alv. Secondly if i append blank work area i will be getting 0.0 as it is a currency field.

  • Blank Lines at end of file when using Variable Substitution in File Adapter

    Hi all,
    I'm using variable substitution in a File Adapter, it's refers an element of message, like:
    filename    payload:MESSAGE_INTERFACE,1,FILENAME,1
    The variable substitution is working right, but it's append a BLANK LINE at end of file.
    Anyone knows how to solve this problem ?
    Thanks in advance.

    Hi Regis,
    I suppose you're using content conversion?
    if so try adding
    <b>endSeparator</b> = '0'
    to your last element
    this will delete the default line break at the end
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • How to remove blank lines in the end of list .

    hi,
    in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
    so plz help me how to remove the blank lines here and immediately print the endof page.

    Hi,
    will this work for you.
    SET BLANK LINES OFF.
    These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
    Regards
    Viswanath Babu

  • How do you force source formatting to leave blank lines in CS6?

    I inherited some code with paragraph breaks between some lines so that there's a blank line between two lines of code.  When I Apply Source Formatting, the original blank lines remains, but when I insert a blank line & then Apply Source Formatting, the blank lines I inserted disappear.
    I showed the hidden characters and found that on the lines that remain blank, there are 4 spaces & a paragraph marker.  When insert the same thing, source formatting still removes my blank lines, but keeps the ones that someone else inserted (while not using DW) by adding 4 spaces & a paragraph marker.
    Is this behavior due to opening a file that was created outside of DW?  Is there anyway to get source formatting to leave my inserted blank lines alone?
    Thanks!

    That worked: I want to be able to preserve blank lines when I apply source formatting, not get rid of them.  I copied the lines that didn't disappear & they were also preserved wherever I copied them in my doc. 
    It would be nice to know what that hidden character is that prevents the blank line from being removed, but I guess I can't tell with DW. 

Maybe you are looking for

  • Help on ABAP coding

    Hi experts, I have a selct-option for a date field. This will accept only 3 months date range. now in report i have to display data based on months. ie.. 1st month data in 1st col, 2nd month data in 2nd col n 3rd month data in 3rd col. Can any one gi

  • (V9I) ORA-2095 WHEN MODIFYING LARGE_POOL_SIZE OR JAVA_POOL_SIZE

    제품 : ORACLE SERVER 작성날짜 : 2004-05-03 (V9I) ORA-2095 WHEN MODIFYING LARGE_POOL_SIZE OR JAVA_POOL_SIZE =============================================================== PURPOSE 이 자료는 Oracle 9i에서 LARGE_POOL_SIZE 또는 JAVA_POOL_SIZE 파라미터를 동적으로 변경하려고 할 때 발생하는

  • Converting Report Builder time-based metrics in Excel

    I am having trouble with my time-based metrics (avg. time spent) when I pull it in using Report Builder. Excel seems to take it out of the HH:MM:SS format and makes it a number. So when I run a report with the Avg Time Spent metric in the Adobe Inter

  • Time Machine Not Overwriting Older Backups

    Time Machine is telling me that the 1TB backup disk is full, albeit there is 62GB of available space (why is TM stating it's full?). In any event, TM is not overwriting the older backups. How can this be enabled? Thank you!

  • New 2.0 update

    __**hey..i have the old iphone..im trying to update its software put it doesnt let me..i really want the new stuff...hope you guys can help me!!thanks**__