Sap Script multi lines

Dear All
      I want to print two tables data in two columns using sap script .
how to print the data in multiline in a column.
Thanks and Regards
Suresh

Hi,
     This how i used Main window for my requirement, you can modify Margins according to your use.
Window     Meaning                      Left      Upper     Width     Hght
MAIN    00 Main window                    7,00 CH  30,00 LN  70,87 CH   2,00 LN
MAIN    01 Main window                    7,00 CH  32,00 LN  70,87 CH   2,00 LN
MAIN    02 Main window                    7,00 CH  34,00 LN  70,87 CH   2,00 LN
MAIN    03 Main window                    7,00 CH  36,00 LN  70,87 CH   2,00 LN
MAIN    04 Main window                    7,00 CH  38,00 LN  70,87 CH   2,00 LN
MAIN    05 Main window                    7,00 CH  40,00 LN  70,87 CH   2,00 LN
MAIN    06 Main window                    7,00 CH  42,00 LN  70,87 CH   2,00 LN
MAIN    07 Main window                    7,00 CH  44,00 LN  70,87 CH   2,00 LN
ADDRESS    Addressee                     43,31 CH  10,00 LN  35,04 CH   7,80 LN
CONSGNEE   Consignee/ship-to address      7,00 CH  64,00 LN  34,65 CH   4,96 LN
FOOTER     Footer lines                   7,00 CH  58,00 LN  71,00 CH   4,00 LN
HEADER     Header lines/logo            168,00 MM  10,00 MM   2,98 CM   2,00 CM
INFO       General information - right    7,00 CH  11,81 LN  31,50 CH   5,91 LN
Regards
Bala Krishna

Similar Messages

  • SAP Script - Formatting Line

    Hi Experts,
    In a classical ABAP report we make use of
    write:/20 'Text'.
    to print text from the 20th column. Can we do something similar in a SAP Script Page Window. I have a box and lines drawn. Now I want the text to start exactly after the vertical line(column). Is there a way to do in SAP Script.
    Regards
    Abdullah.

    You can use Paragraph format in SE71 Transaction,
    here you can able to see Tab position ,give first tab would be 20 char alignment would be Left or right.
    If you need design the box ,then i am giving simple example below :
    POSITION WINDOW                               
    BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW
    POSITION WINDOW                               
    BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10  
    POSITION XORIGIN '0.9' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '3.0' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '5.0' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '7.2' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '8.3' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '9.5' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '12.0' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '14.5' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '17.0' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '19.7' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    Thanks
    Seshu

  • Sap script blank line comand

    hi
    i need to insert 2,3 blank lines after a test element,plz tel me how to do?
    i am placing / but its not showing any balnk line,plz tell any way?

    hi,
    Refer to the link.
    http://help.sap.com/saphelp_40b/helpdata/fr/7e/c81a5352c511d182c50000e829fbfe/content.htm
    This May help.
    Regards
    Sumit Agarwal

  • SAp SCRIPT Multiple lines in MYWINDOW

    hello friends,
    can i print internal table data(Multiple lines) in a window ither than MAIN window?
    Ex.
    Loop at itab into wa,
    call function 'write_form'
      exporting
       element = 'MULTIPLE'
       window = MYWINDOW (VAR).
    endloop.
    Please suggest.
    Thanks,
    Mohammed.

    Hi
    You can print Multiple lines but if the content is exceeding the window size then it is truncated that means it is not displayed and we cannot have flow data  with secondary windows .
    Regards
    PAvan

  • SAP Scripts: reserve lines

    Hi
    How do one reserve lines in a layoutset

    Enter Default paragraph in the command line and dont write any thing in that line.

  • SAP Script - Logical expression in multi lines

    Hi Friends,
    How can I write logical expression in more than one lines in SAP script editor?
    Case:
    I have to write:
    IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND &J_1BPRNFHD-SHPUNT& = ' '
    I am writing in first line
    /:  IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND
    and &J_1BPRNFHD-SHPUNT& = ' ' is not coming in the same line. How to write it in more than one line?
    What I mean is that:
    Can I write like:
    /:  IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND
    /:     &J_1BPRNFHD-SHPUNT& = ' '
    In fact, above is not working. Please help.
    Regards,
    Surya
    but the rest of the things, that is, &J_1BPRNFHD-SHPUNT& = ' '

    I'm not an SAP script expert but this is just a suggestion.
    Write 2 seperate conditions.
    You can replace this:
    IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND &J_1BPRNFHD-SHPUNT& = ' '.
    ENDIF.
    by this:
    IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X'.
    IF &J_1BPRNFHD-SHPUNT& = ' '.
    ENDIF.
    ENDIF.

  • Unable to print multiple line items in Z-SAP SCRIPT

    Hi ALL,
    We have a scenario where in we are calling the Driver program (RFKORD50) for Document Extract(F.64), Where in we have attached the Z-Script to the program(RFKORD50),
    Unable to print multiple items.
    1) Checked with all the elements in STD program for printing multiple items in main window but unable to get all the items we are able to fetch only 1 item .
    (&BSEG-BUZEI&,,     &BSEG-SGTXT&,,,,&BSEG-DMBTR&)
    2) I have also tried with external subroutine but it also didnot work.it is fetching the latest value.
    Ex: if we have 3 items say 1,2,3 first 2 items are not getting fetched it is taking 3rd item and printing it straight away(Problem is it is not going to script for fetching the first item).
    see the perform which i have used
    /: PERFORM ITEMS IN PROGRAM ZTFI_ZNV20296
    /:USING &BSEG-BUKRS&
    /:USING &BKPF-BELNR&
    /:USING &BSEG-GJAHR&
    /:CHANGING &V_BUZEI&
    /:CHANGING &V_SGTXT&
    /:CHANGING &V_DMBTR&
    /: ENDPERFORM
    IL  &V_BUZEI&,,     &V_SGTXT&,,,,&V_DMBTR&
    Please suggest me whetther we can call write_form from external subroutine. or is there any loop commands in SAP SCRIPT Form.
    Regards,
    Jana

    Hi!
    The LOOP is always within the printer program. In this case also.
    Just check out the RFKORI35 include, the LOOP begins in the 215th line (in 4.6C).
    SORT HBSEG BY BUKRS SORTP1 SORTP2 SORTP3 SORTP4 SORTP5
                          BELNR GJAHR BUZEI.
            LOOP AT HBSEG.
    *         WHERE BUKRS = SAVE_BUKRS.
              SAVE_BUKRS  = HBSEG-BUKRS.
              IF  ( HBSEG-KUNNR = SAVE_KUNNR
              AND   NOT SAVE_KUNNR IS INITIAL )
              OR  ( HBSEG-LIFNR = SAVE_LIFNR
              AND   NOT SAVE_LIFNR IS INITIAL ).
                CLEAR RF140-ELEMENT.
                RF140-ELEMENT = '521'.
                CALL FUNCTION 'WRITE_FORM'
                         EXPORTING  WINDOW    = 'MAIN'
                                    ELEMENT   = '521'
                         EXCEPTIONS WINDOW    = 1
                                    ELEMENT   = 2.
    You might try out to write your code within the 521 elemnt in the sapscript.
    Regards
    Tamás
    Edited by: Tamás Nyisztor on Jun 12, 2008 3:34 PM

  • How to display line items twice in a single page in sap script

    HI,
      I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
    I want to display the line items twice in the same page and sub sequent pages.
    Currently I am able to display line items only once.
    Example:
    PAGE1.
    line item1
    line item2
    line item3
    line item4
    line item5
    line item1
    line item2
    line item3
    line item4
    line item5
    line items 1 to 5 which are in main window.
    How to achive this problem.
    Regards,
    vinod

    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

  • Find line no in sap script page

    In sap script there are five pages to be printed
    I want to check in each page the first line exists or not.
    as well as to identify the first line of each page.
    How to get a line number for each page in Sap script
    Please revert back asap
    Thanks

    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.

  • How to delete a line in SAP Script

    Hi,
         How to delete a line in SAP Script.
    Cheers
    S Kumar

    Okay.if still you are looking the option of deleting line there is one solution.
    Just delete the all contents of perticuler(which needs to deleted) line including the tag column(Where you are /*) and save.if you see again than line would not be seen as blank,you will found it has been deleted.

  • 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

  • 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

  • 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.

  • Sap Scripts-printing the text in a single line

    In Sap Scripts I would like to have my text in a single line. For that I have used the extended line (=) tag. But It is not working.
    Can anyone help me how can I achieve this.
    Actually how many characters I can put in a single line. I think it is 72. But my text is less than 72 characters.
    Can anyone Please help me.
    Regards
    Meshack Appikatla.

    A Text Symbol in Script or Smartform can take lenght of Maximum 80 characters. Any thing more than that will be truncated even if the window is long enoguh to hold more than 80 characters. Si your character formated need to be have the PROTECTED option checked.
    At Topic:
    Try increasing the window size in lenght or width, If that is not possible pratically, you can try by decreasing the font size.

  • Print data at new line in SAP Scripts

    Hi,
    Is there any way that i can print data at new line in sap scripts. I am looping my data and its printing in the same line but i need to print it at new line. Is there any formating options or any command to do that.
    Thanks

    Than you must take all the values from the internal table into the different variables and than print them.
    In program:
    READ TABLE ITAB INTO WA_TAB INDEX 1.
    IF SY-SUBRC = 0.
      VAR1 = WA_TAB-FIELD1.
    ENDIF.
    * read all the lines and fill the VAR variables
    In SAPScript:
    /E LINE_VAR
    /P &VAR1&
    /P &VAR2&
    /P &VAR3&
    /P &VAR4&
    Regards,
    Naimesh Patel

Maybe you are looking for