Vertical line issue in SAP Script main window

Hi All,
I want to draw a vertical line in my main window in SAP Script output.
But problem is in main window i am printing some texts at the beggining then i am printing line items.
So this is not fixed line (box). It may increase/decrease based on text available before line items.
How can i manage this prining vertival line as i don't know height, top of this line!
Thanks in advance.
Thanks,
Deep.

Hai Deep,
Use Elements as suggested by Kodarapu.
Now goto Paragraph Formats create a format for Item lines.
ex.
Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
now in "Tab Position" enter the spacing that you need for your item dispaly
ex.
Number     Tab position       Alignment
1               6.00   CH          LEFT
2               25.00  CH         LEFT
3               54.00  CH         LEFT
The above example is for 3 items
Now in your Script Windows-> Main
do the following.
/E           ITEM_LINE_A
IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
Hope it SOlves your Issue.
Cheers,
Suvendu

Similar Messages

  • Sap script main window related question

    hi
    i have a requirement to add a new column to sap script main window picking information from some table
    this new column is C2 and it takes reference from C1
    i ahve below queries
    1) is is better to add a new column to main window and increase and decrease alsl columns width of all columns
    or create a new window below the main window in which this new field will apear
    ie C1 and C2 to appear in this new window
    c1 is already coming in main window it needs to reaper with the new C2 in new window
    my concern is that since main window is only one and it it being called again and again to polultate the data
    how this new window will work will it be able to display the corect data
    whcih is better approach
    2) ASLO the requriement is that the new field should appear only when Reprint is done for the transfer order
    can anyone tell how to catch the reprint option or code from teh program what is defined for reprint option in program and how to catch it and put condtion?
    regards
    Arora

    If you would like to have vertical lines as well inside the frame....
    /:   BOX FRAME 10 TW                                                
    /:   BOX XPOS '1.2'  CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    /:   BOX XPOS '11.00' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW    
    /:   BOX XPOS '15.5' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    /:   BOX XPOS '18.4' CM WIDTH 0 TW HEIGHT '12.7' CM FRAME 10 TW     
    Regards,
    Rich Heilman

  • Problem with sap script main window

    Hi,
    I am modifying the existed sap script. I added a box and some line items to the sap script main window.
    Now i want to increase the size of the mainwindow.
    Please guide me how to increase the lines of main window . I am unable to edit the standard attributes of the main window ,because all are in disable mode.
    Please guide me how to increase the size of the main window.
    Thanks in advance
    Regards
    Sudhakar

    Hi,
    You might be trying to edit the script in non original language. You can change the layout only in the original language.
    Check the attributes of the script to see the original language.
    Thanks,
    Vinod.

  • 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

  • Problem with line items print in Script MAIN window.

    Dear Friends,
    I am facing a problem with display the line items in main window.
    Here i have created my form with 2 pages,
    in first page i have created header window(my header information is full length of page), in second page i have created 2 windows, one for MAIN window and second for FOOTER window,
    i am having the Footer information about to off the page.
    and in my main window total 3 line items are coming, if i am having 3 line items then it is displaying properly (first 3 line items then immediately footer information on same page) but if am having more then 3 line items say four, then in my second page first it is printing 3 line items then it is switching into another page. After that footer is coming but. in previous page after printing 3 line items the remaining page is empty..
    my client want me to remove that place also. he wants to display continue..
    i think so u people r understand what is my problem...pls advice me what i want to do to solve this problem.
    Thanks
    Sridhar.

    Hi Sridher,
    If you want to display the footer information only on the last page why dont you use a table to display your details and place the footer details in the table footer instead of a seperate footer window.
    Regards,
    Vidya.

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

  • T400's Vertical line issue

    I'm not sure how Lenovo doesn't have recalls yet but in our company we have T430's T440's and T450's that have a vertical line on the LCD screen. Almost everyday we have 1-2 laptops with this issue. What's even worse is we purchased some T440p's last year and for some reason they were only under warranty for a year and not 3 years and now one of the laptops T440p ran out of warranty as of 7/20/2015 and it's having this Vertical line issue. What is one suppose to do in a situation like this? It's fairly a new computer. We've had this issue on brand new machines out of the box. How is lenovo not getting sued for this problem?

    Hai Deep,
    Use Elements as suggested by Kodarapu.
    Now goto Paragraph Formats create a format for Item lines.
    ex.
    Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
    now in "Tab Position" enter the spacing that you need for your item dispaly
    ex.
    Number     Tab position       Alignment
    1               6.00   CH          LEFT
    2               25.00  CH         LEFT
    3               54.00  CH         LEFT
    The above example is for 3 items
    Now in your Script Windows-> Main
    do the following.
    /E           ITEM_LINE_A
    IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
    Hope it SOlves your Issue.
    Cheers,
    Suvendu

  • How to leave half line space in SAP Script

    Actually , I have a doubt regarding half line spacing on SAP Script ..
    I am working on Cheque Printing with  fbz5
    Now the issue in  the date, there are 8 box for the date in cheque .
    i.e  0 2 0 7 2 0 1 4
    Currently the date is comming on the cheque box ..like half up the box and half inside
    IF I give one space in cheque  window of my script with  /   its taking complete 1 space
    and result is ,it going down ..with one space
    I want to leave exact half line space ..so date is  adjusted  in the middle .
    I also tried moving my cheque  window from  upper margin in all format(CH , CM , MM  IN ..) above
    But it is taking exact one space .

    Hi Darshit,
    While creating the tab position, you have a option of line spacing.
    make it to 0.5 lines, to make exact half line.
    And also another way out, you can check by moving the 8 box created for the date up by 0.5 lines.
    Regards,
    Ganesh Lathi.

  • Need to print horizontal line at the end of main window in each page.

    Hi,
    I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it contains footer.
    Please suggest how to proceed.
    Thanks,
    RKU

    Hi,
    If you don't have any frame set on your main window:
    Go to output options and mark frames, and then go to details and uncheck checkboxes for above, laft and right, leving only below marked.
    This will give you a line in the bottom of you main window.
    If you dont' want to do this on the main window, can you create a new window placed at the bottom of the page and use this framing technic on that window. But in that case don't forget to mark the "always draw box and shading" checkbox. as this window contains no values, the will not get printed unless  you mark this checkbox.
    Regards
    Åsa Thenstedt

  • Line number in Sap Script

    hi,
    How to get line number in sap script form?
    Regards,
    Sal.

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • Samrtform: table line should be displayed whole main window.

    Hi All,
       I have a requirement, the table lines in smartform should be displayed in whole window.
    The above should be like,
    Note: the table control height gets dynamically changed, in my case there is only one item in table so the table control lines are not filled the main window.
    Appreciate your help.
    Thanks.

    Hello Alexander,
    You need to create a TEMPLATE with extact width and height of your main window. This Template should contains the line type with the borders.
    Remove the borders from the table line in the main window.
    Regards,
    Naimesh Patel

  • Alignmnet Issues with SAP Script

    Hi All i have an issue with SAP script i have few columns in the script where in the values in the column changes dynamically.For example the value of second column in the first row can be 5 characters and the value of the same in the 2nd row can be of 10 characters and it keeps varying for every row but the max length of it would be 20 characters.
    Now the issues is with the second column as the text in this column keep varying the text in the same row after the second column keep moving either towards right or towards left depending on the text in the second column,Can any one help me as how  can i fix this issue.
    Looking for your valuable inputs.
    Regards
    Hari Krishna.

    Hari,
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802d91454211d189710000e8322d00/frameset.htm
    Even though it is not the solution,I guess this link will be helpful.
    K.Kiran.

  • Script - Main window Formatting issue

    Dear Experts,
    i am developing  shipping note. used standard program and script, in main window contains many text elements. what ever not required text elements i commented. But problem is my text element is printing in last page, first pages are printing blank. i want to display the text element in my first page.
    For understanding purpose i am giving the below details.
    /E   GENERAL_HEADER_DATA_TITLE
    /E   GENERAL_HEADER_DATA_TYPES
    like this all text elements have.
    /E SHIPPING_UNIT
    /E  SHIPPING_UNIT_DELIVERY_ITEM
    i want to display shipping details in main window first page it self. i am getting data but it's not in first page.
    if i delete unnessary text elements i am getting info messages while executing the transaction.
    Thanks,
    Satheesh.

    Hi,
    Dont delete the text elements, Instead comments the lines below the text element.
    /E SHIPMENT_HEADER
    /E SHIPMENT_DET
    Regards
    Praveen

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • Drawing Boxes in Script - main window

    hi,
    In script, in main window <u>after table line item datas</u>, i want to draw a box in which i will place some text. On drawing box, it appears on top of that window which i dont want, since it should be placed after item details.
    kapil.

    I do not know this is still relevant for You or not but here is the solution what I did:
    First of all I have to mention this requires SAP standard object modification. !!!
    1.Start SE80 and get into STXC function group.
    2.Select COP_RELATIVE_NUMBER subroutines and double click on that.
    3.Click on Edit button and Get SSCR  Object number from SAP.
    4.Change interface of the COP_RELATIVE_NUMBER subroutines extending it with TYPE parameters
    5.Change the first if Statement.
    6.Extend the Relative case section with a new WHEN '#'.
    7. Cange All COP_RELATIVE_NUMBER calls with new input parameter in CO_BOX, In CO_POSITION, In CO_SIZE.
    From now in Your SAP script You can call BOX statement like this:
    BOX XPOS ‘#10’ TW YPOS ‘#10’ TW  …..
    Will start drowing BOX from cursor current position plus 10 twip.
    Numbers after the # sign are optional.
    Solution works only with TW.
    form co_box.
    data: begin of bx,
            x    type i,
            y    type i,
            w    type i,
            h    type i,
            f    type i,
            i(3) type n,
          end of bx,
          next(10),
          xpos         type i,
          ypos         type i,
          is_relative like boolean.
      bx-x = ft-wpx.
      bx-y = ft-wpy.
      bx-w = ft-wpw.
      bx-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XPOS'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using is_relative xpos.
            perform cop_relative_number using is_relative xpos 'X'.
    *}   REPLACE
            add xpos to bx-x.
          when 'YPOS'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using is_relative ypos.
            perform cop_relative_number using is_relative ypos 'Y'.
    *}   REPLACE
            add ypos to bx-y.
          when 'WIDTH'.
            perform cop_number_value using bx-w.
          when 'HEIGHT'.
            perform cop_number_value using bx-h.
          when 'FRAME'.
            perform cop_number_value using bx-f.
          when 'INTENSITY'.
            perform cop_next using next 3.
            bx-i = next.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      perform pc_box using bx-x bx-y bx-w bx-h bx-f bx-i.
    endform.
    form co_position.
    data: begin of pos,
            x type i,
            y type i,
          end of pos,
          next(10),
          relative like boolean,
          xpos     type i,
          ypos     type i.
      pos-x = ft-wpx.
      pos-y = ft-wpy.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XORIGIN'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative xpos.
            perform cop_relative_number using relative xpos 'X'.
    *}   REPLACE
            if relative = true.
              add xpos to pos-x.
            else.
              pos-x = xpos.
            endif.
          when 'YORIGIN'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative ypos.
            perform cop_relative_number using relative ypos 'Y'.
    *}   REPLACE
            if relative = true.
              add ypos to pos-y.
            else.
              pos-y = ypos.
            endif.
          when 'WINDOW'.
            pos-x = ft-tdwlefts.
            pos-y = ft-tdwtops.
          when 'PAGE'.
            pos-x = 0.
            pos-y = 0.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpx = pos-x.
      ft-wpy = pos-y.
    endform.
    form co_size.
    data: begin of dim,
            w type i,
            h type i,
          end of dim,
          next(10),
          relative     like boolean,
          width        type i,
          height       type i.
      dim-w = ft-wpw.
      dim-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'WIDTH'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative width.
            perform cop_relative_number using relative width 'X'.
    *}   REPLACE
            if relative = true.
              add width to dim-w.
            else.
              dim-w = width.
            endif.
          when 'HEIGHT'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative height.
            perform cop_relative_number using relative height 'Y'.
    *}   REPLACE
            if relative = true.
              add height to dim-h.
            else.
              dim-h = height.
            endif.
          when 'WINDOW'.
            dim-w = ft-tdwwidths.
            dim-h = ft-tdwheights.
          when 'PAGE'.
            dim-w = form_header-tdpagwidth.
            dim-h = form_header-tdpagheigh.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpw = dim-w.
      ft-wph = dim-h.
    endform.
    *{   REPLACE        ED1K902054                                        3
    *form cop_relative_number using is_relative like boolean
    *                               val         type i.
    form cop_relative_number using is_relative like boolean
                                   val         type i
                                   type        type c.
    *}   REPLACE
    data: num type f,
          next(10).
      clear is_relative.
      perform cop_next using next 10.
    *{   REPLACE        ED1K902054                                        1
    *  if next(1) cn '+-.0123456789 '.
      if next(1) cn '#+-.0123456789 '.
    *}   REPLACE
        perform cop_warning using subrc_param_unknown next.
        clear: is_relative, val.
        exit.
      else.
        if next+1(9) cn '.0123456789 '.
          perform cop_warning using subrc_param_unknown next.
          clear: is_relative, val.
          exit.
        else.
          case next(1).
            when '+'.
              is_relative = true.
              num = next+1(9).
            when '-'.
              is_relative = true.
              num = next+1(9).
              num = -1 * num.
    *{   INSERT         ED1K902054                                        2
            when '#'.
              is_relative = true.
              num = next+1(9).
              case type.
                when 'X'.
                  num = ( ft-line_width  - ft-rem_width ) + num.
                when 'Y'.
                  num = ( ft-fill_height - ft-rem_height ) + num.
              endcase.
    *}   INSERT
            when others.
              num = next.
          endcase.
        endif.
      endif.
      perform cop_num_val using num.
      val = num.
    endform.

Maybe you are looking for

  • Use of nvarchar field in a Unicode database

    Hi, I'm using an application (SPI) where, in the manual of this application, is clearly stated under the chapter to create the Oracle database: i. Under Database Character Set, select Use Unicode (AL32UTF8). ii. Under National Character Set, select A

  • Mirroring issue with retina 5k

    i have bought Imac retina 5k and i've got latest apple tv.  The problem is when i connect my mac to apple tv, its just showing black screen  but when i airplay from itunes it plays ok.  I tried disconnecting the bluetooth and i also updated apple tv

  • Oracle BPM Connection to SFTP

    Hi all, Can Oracle BPM connect to SFTP .. If yes, how? There is no External Resource Connection? Or do we just have to add the URL in the code, in one of the automatic activities? Or do we use Fuego.Net.FTPServer? Will this work for SFTP? Edited by:

  • Trying to create and run my first class

    I am creating a simple class that should create a basic looking calculator type UI. When I try to build the program it builds successfully. However I get some null pointer exeption messages, and the GUI never appears. I am hoping that my problem is s

  • Stopping an RMI server

    hi all, i was curious about one hting: how can i stop a running RMI server via command line? will stop rmiregistry works?? thanx and regards marco