Vlines in sapscript

Hi Friends ..
I need to display a report with vlines... I used the BOX cmd to draw vlines But if the data is too short like half the page the lines are too short .. these lines are not going to fix as per the data size... I used as follows:
/E   VLINE                                                                
/:   DEFINE &HIGH& = &W_LINES_ZTRT&                                       
/:   BOX  YPOS 4 MM WIDTH 0 MM  HEIGHT &HIGH& MM FRAME 10 TW              
/:   BOX XPOS 68 MM YPOS 4 MM WIDTH 0 MM HEIGHT &HIGH& MM FRAME 10 TW     
/:   BOX XPOS 85 MM YPOS 4 MM WIDTH 0 MM HEIGHT &HIGH& MM FRAME 10 TW     
/:   BOX XPOS 109 MM YPOS 4 MM WIDTH 0 MM HEIGHT &HIGH& MM FRAME 10 TW    
and
DATA: w_lines_ztrt  type i.
  DESCRIBE TABLE ilist LINES w_lines_ztrt.
  w_lines_ztrt = ( w_lines_ztrt * 5 ) + 10.
If i took height as 0 if the data is less than page the same problem...
Please suggest me....
Thanking You

hi Sairam,
   If u wanna to insert lines in main window then u have fm to that job.
FM:  WRITE_FORM_LINES use this to get the lines in the main window
Rewards pts if its usefull.
Regards
Sathish

Similar Messages

  • Vline in sapscript

    i want to make vline that will be 50 why i get small
    like this <b>|</b>

    hi
    good
    try this out
    REPORT  z_find_view LINE-SIZE 80.
    TABLES: dd26s.
    DATA: ctr1 TYPE i,
          ctr2 TYPE i,
          col  TYPE i.
    DATA: BEGIN OF itab OCCURS 0,
          viewname TYPE viewname,
          tabname  TYPE vibastab,
    END OF itab.
    DATA: vtabs TYPE vibastab OCCURS 0 WITH HEADER LINE.
    RANGES: r_tab FOR dd26s-tabname.
    PARAMETERS: p_tab1 TYPE vibastab OBLIGATORY,
                p_tab2 TYPE vibastab,
                p_tab3 TYPE vibastab,
                p_tab4 TYPE vibastab,
                p_tab5 TYPE vibastab.
    START-OF-SELECTION.
      PERFORM fill_table_range.
      PERFORM select_views.
      FORMAT COLOR 1.
      WRITE: / sy-vline,
              '   View   ',
            20 sy-vline,
           (57) 'Tables' CENTERED,  
               sy-vline.
      ULINE.
      LOOP AT itab.
        AT NEW viewname.
          CLEAR ctr2.
        ENDAT.
        ctr2 = ctr2 + 1.
        AT END OF viewname.
          IF ctr2 = ctr1.
            PERFORM write_view.
          ENDIF.
        ENDAT.
      ENDLOOP.
      ULINE.
    AT LINE-SELECTION.
      SET PARAMETER ID 'DVI' FIELD itab-viewname.
      CALL TRANSACTION 'SE11'.
    FORM fill_table_range .
      ctr1 = 1.
      r_tab-sign = 'I'.
      r_tab-option = 'EQ'.
      r_tab-low = p_tab1.
      APPEND r_tab.
      IF NOT p_tab2 IS INITIAL.
        r_tab-low = p_tab2.
        APPEND r_tab.
        ctr1 = ctr1 + 1.
      ENDIF.
      IF NOT p_tab3 IS INITIAL.
        r_tab-low = p_tab3.
        APPEND r_tab.
        ctr1 = ctr1 + 1.
      ENDIF.
      IF NOT p_tab4 IS INITIAL.
        r_tab-low = p_tab4.
        APPEND r_tab.
        ctr1 = ctr1 + 1.
      ENDIF.
      IF NOT p_tab5 IS INITIAL.
        r_tab-low = p_tab5.
        APPEND r_tab.
        ctr1 = ctr1 + 1.
      ENDIF.
    ENDFORM.                    " fill_table_range
    FORM select_views .
      SELECT viewname tabname
        FROM dd26s
        INTO TABLE itab
       WHERE tabname IN r_tab.
      SORT itab BY viewname.
    ENDFORM.                    " select_views
    FORM write_view .
      REFRESH vtabs.
      SELECT tabname
        FROM dd26s
        INTO TABLE vtabs
       WHERE viewname = itab-viewname.
      IF col = 0.
        FORMAT RESET.
        col = 1.
      ELSE.
        FORMAT COLOR 2.
        col = 0.
      ENDIF.
      WRITE: / sy-vline, itab-viewname(16), sy-vline.
      HIDE itab-viewname.
      DO 5 TIMES.
        CLEAR vtabs.
        READ TABLE vtabs INDEX sy-index.
        WRITE: vtabs(08) NO-GAP, sy-vline.
      ENDDO.
      READ TABLE vtabs INDEX 6.
      IF sy-subrc = 0.
        WRITE: ' <more>', sy-vline.
      ELSE.
        WRITE: '       ', sy-vline.
      ENDIF.
    ENDFORM.                    " write_view
    thanks
    mrutyun

  • SAPscript - Fixed position for vline

    Greetings.
    Hi i'm facing this problem in fixing the position for my vline ( to draw vertical line). The reason i need this solution is because currently i'm using variable that have flexible length.
    The vline will be push to the left and right depend on the outcome value.
    &sum1-zsumin&,,&sum1-zsum1&<vl>&Vline&</>
    Thanks.

    Tayori Higurashi-san
    I'm using different paragraph format for this line(W6) and for the vline I'm using character formats.
    W6 ,,&sum1-zdpnokl&,,&sum1-zdpstok&,,&sum1-zdpamkl& <vl>&Vline&</>
    W6 - is my pragraph format.
    Could you help to explain more. I'm newbie to this SapScript
    arigato
    Edited by: badz lee on Jun 12, 2009 11:46 AM

  • To display vline if main window flows to next page in SAPScript.

    Hello,
    We are facing issue that we have to put vertical line at the end of page , if main window flows to next page.
    In our case, we have payment done for different currencies as well, so that means if for first currency USD we have 20 records then after 16 records page gets break then we want sy-vline to print there and next 4 records in next page, similarily for next currency EUR, then if we have 4 records it gets displayed on one page only, so no vline is required then.
    So like this if we have 3 pages to be displayed then on first page it should displayed vline as records gets overflowed.
    May be in Script we can have more than 3 pages as well, so at different currency when we have more records then only it should show vline, otherwise not.
    Also we have signature window inside main window, so on next page it should not display line after signature.
    So please help us for finding the solution to this issue as its really urgent.
    Thanks.

    Hi friend,
    So as of now you know that the line count for a page is 16.
    So after displaying records in main window just check the sy-index or keep a variable incremental for the loop.
    Check whether the variable count is 16 and put a sy-vline. So if we have less number of records or if we have a signature window the vline wont be executed.
    This will only be executed when there are 16 records for a page. So for better handling you can use the number of lines per page dynamically. Ie to know the size of lines in the page dynamically.
    Else use of end of page command to draw lines at the end of page. But the end of page command should be used inside an if else command.
    See the link below for more options in Scripts Link : [Editing Format Actions|http://help.sap.com/saphelp_nw70/helpdata/en/ce/6f0f82ea6311d18e2f0000e83dd9fc/content.htm]
    I think this solves your issue. Please revert back to me if you face any issues. I will help you.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 31, 2012 4:27 PM

  • Can we migrate smartform to sapscript

    hello excuse me,
      i am trying to do innovative things...
    can any one tell me how to do a sapscript with table in it..
    else you have to tell how to migrate a smartform into sapscript..
    because i am struck with an issue..it seems in DOTMATRIX printer table is not appearing when a smartform is printed..
    so my master mind tells me i have to do it via sapscripts and do hardcoding for table lines...i dotn any anything in sapscripts..i tried 3 days in smartforms to get ulines vlines ..no luck..now i am set to learn sapscripts
    ok...so help me..
    bye

    Hi,
    I wouldn´t recommend to migrate to SAPscript, because this is an old technology that in future versions is going to be not supported any more by SAP; therefore, you´ll have to migrate SAPscript forms to SmartForms or AdobeForms.
    There´s a migration tool from SAPscript to SmartForms but not on the opposite way. You never get that from a new version to an old version.
    What do you mean by a table ?? a table like in SmartForms is not supported by SAPscript, ´cause the graphical design is very poor. It is more for text display. You can create windows and set the line borders and also you can make the background gray or dark but that´s all.

  • Drawing a vertical line in sapscript

    Hi all,
    How can I draw vertical lines in sapscript? Box can be used, but is there any other way? like vline or something else?
    Regards,
    Netrey.

    Hi
    Try with the field &VLINE&
    if don't work,You have to draw boxes only as per the size of the windows.
    /: BOX FRAME 10 TW
    There is no other way like how we write in Report output.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Issue in drawing table as XPOS and YPOS can't be determine SAPscript

    Hi All,
    I'm in a  issue in drawing a table in SAPSCRIPT.
    I have to draw a fix 5 rows 5 coloumns table.
    But issue is that i cannot give the X and Y pos as above to it is text element which displays some other line items.
    So as the items may vary and thereafter i have to draw a new table.
    I used sy-uline and sy-vline but it is not looking completely like a table as it has broken lines.
    Kindly advice.

    ZS   &uline(80)&
    ZF   &vline& Shift 1,,&vline&,,|,,&vline&,,&vline&,,&vline&
    ZS   &uline(80)&
    in this way im making boxes , but for box statment i will need xpos and ypos else it will draw box at the beginning of window.
    Can any one please help me with this paragraph format.
    I have used small text but exact tabular structure is not possible.
    Paragraph format used : ZF : Line Spacing    0.80    LN
    Family     HELVE
    Font Size  10.0  pt
    What else can help it to look like a complete table ? Srihari any advice ?
    Edited by: ujjwal_d15 on Feb 7, 2012 12:47 PM

  • IF statement in SAPscript

    I'm probably making a really simple mistake, but I've got the following code in a SAPscript window:
    /: IF &REGUD-WRBTR& GT 0
    HE <S>DR></>
    /: ELSE
    HE <S>CR></>
    /: ENDIF
    I've debugged through the print program and REGUD-WRBTR is 1175.00 but it still prints CR.
    Any ideas?
    Gill

    use
    IF REGUD-WRBTR GT 0
    without &

  • Barcode C128 is not getting displayed in Sapscript

    HI,
    I need to print the barcode in the Sapscript.
    The barcode is not getting displayed even in the preview also, when I give the Barcode C128.
    But when I give other Barcodes, it is getting displayed in the preview.
    Can anyone let me know the solution to print the barcode for C128, as others are not that much fit to print.
    Thanks
    Rakesh

    Hi Dieter,
    No. I haven't.
    Is this the reason for that?
    let me know the procedure.
    thanks
    Rakesh

  • How can I transfer sapscript from one client to another

    Please tell me the steps , how can I <b>transfer</b> SAPscript from one client to another (like DEV Client to Test Client)?

    Hi,
    Utilities --> Copy from client.
    If you have to copy from once system to another use Program RSTXSCRP
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • Sapscript translated in non-english language - Garbled output as Email

    Hi Experts,
    I've translated a SAPscript  to Chinese and Thai language.
    As per my requirement, the output can either be printed, emailed or faxed.
    I'm using the standard include  RVADOPFO for Open form.
    For the english version, I'm able to recieve the properly formatted e-mail output.
    However in case of thai and chinese, the Thai and Chinese characters do not appear. Most of them are substituted with blank spaces and some are substituted with boxes and unknown characters. However, the numbers and english characters appear.
    Please help in getting the correct output.
    Thanks!
    Nitya.

    Hi,
    SAP 141343. PDF Conversion: Latin-2.
    SAP 141901. Customer-specific fonts for PDF conversion.
    SAP 163266. PDF conversion: character set for softfonts.
    SAP 171698. SAPconnect: Formats, conversion, device type.
    SAP 317851. Creating PDF format via spooler in 4.6C/4.6B/4.5B.
    SAP 322998. PDF conversion: Cyrillic support.
    SAP 323736. Restrictions with "PDF print" through spooler.
    SAP 398357. PDF converter: Width of letters is incorrect.
    SAP 414325. SAPconnect: Conversion of ALI to PDF.
    SAP 504952. Composite note spool and print.
    Find these notes, there You'll find some answers.
    Regards,
    Nisrin.

  • Gerar PDF com código de barras a partir de um SAPScript

    Bom Dia Senhores!
    Estou tendo problemas na geração de um arquivo PDF a partir de um SAPScript com código de barras.
    Tenho um formulário SAPScript que contém código de barras, este, é gerado pela F110.
    O programa precisa que este arquivo PDF gerado seja enviado por email, porém ao gerarmos um arquivo PDF deste SAPScript, o código de barras contido nele é meramente ilustrativo, ou seja, não sai com as informações certas do boleto, sai como imagem.
    É de meu conhecimento que se este formulário fosse um SmartForm sairia tudo perfeito já que a transformação do SmartForm em PDF mantém o código de barras de forma correta.
    Porém, se formos na SP01 e mandamos imprimir este SAPScript com a saída 'PDF Creator' ele gera o código de barras corretamente.
    Minha pergunta é se alguem conhece alguma função de transformação de SAPScript para PDF que funcione corretamente, algo similar ao funcionamento do PDFCreator.
    Obrigado;
    Daniel Salerno de Arruda

    Boa Tarde Daniel Salerno,
    Tenho o mesmo problema que você tinha.
    Gero um arquivo em PDF com Boleto de pagamento para enviar mas o código de barras neste arquivo é meramente ilustrativo e não consigo enviar o código para leitura.
    Este formulário está em SAPScript,
    Será que você pode me ajudar ?
    Obrigada.
    Solange Guimarães.

  • IF condition in Sapscript

    Hi all,
    Have created a new window in one of the scripts recently.
    I was asked to display this  window( with some data) only for company code NL01.
    So I kept the condition , IF reguh-zbukr = 'NL01'..and wrote the code..
    Now Im asked to extend the functionality to some other company codes..
    I have written code lke this..pls suggest whether it is correct or not...( I cant test this now..but no test data available as of now..so need your help..Thanks)
    /:IF &REGUH-ZBUKR& = 'NL01' OR  &REGUH-ZBUKR& = 'BE01' OR
    /=  &REGUH-ZBUKR& = 'BE02'
    ZI  Sold to
    /:   ENDIF

    Max notes correctly...but you might also consider:
    /: DEFINE &CO_SWITCH& = ' '
    /:PERFORM CHECK_COCO IN PROGRAM(your routines program)
    /:USING &REGUH-ZBUKR&
    /:CHANGING &CO_SWITCH&
    /:ENDPERFORM.
    /: IF &CO_SWITCH& eq 'X'
    ZI  Sold to
    /: ENDIF.
    Your CHECK_COCO routine would examin the value passed in and determine whether or not to set &CO_SWITCH ON or OFF.  This would allow you to read rows of customizing table or variables table, or apply logic to determine on/off, and you would not have to change your SAPScript in the future if the requirements changed.

Maybe you are looking for