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

Similar Messages

  • 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

  • Problem with sap script formatting?

    hi,
        can anyone please tell me how do we reduce the fony size in sap script, actually i have used it with character format by giving font name as helve and size as 6 pt but its not reflecting , what can be the problem? or my procedure is wrong.please help me out

    ok character format is the wrong thing
    just use paragraph formats for that.
    if you are insisting to use character formats you need to use the syntax as well.
    e.G. if you have defined yourself a characterformat lets say 't' like tiny, thnen the syntax in your form will be:
    SL | <t>you text</>.
    if you are using paragraph formats it will be
    SL | your text
    but now you should edit the font properties of that paragraph format

  • SAP Script Formatting Dec Values

    Hello All,
    I am printing some decimal data in my sap script(10,200.30).However this depends on user specific settings.If the user specific setting is changed (10.200,30) value appears different.Is there any command in Script through which i can control just as date (SET DATE MASK).
    Please let me know.
    Thanks in advcance.
    Regards
    Amruta

    Hello Svetlin,
    Thanks for the reply.
    I have kept my user setting to 1.234,5.I have checked T005X table.The Decimal notation is 1,234.5 for the country which i have selected.
    I have used the command .
    However even after that i am still getting the same output(1.23,5)Is there any thing additional that needs to be done?
    Regards
    Amruta

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

  • 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

  • Why last  4 lines of  every page in sap script are not coming ,it is not o

    pls give some solution why last  4 lines of  every page in sap script are not coming ,it is not over flowing to next page even? it is any page format related problem or coding problem?

    Hi,
    Use PROTECT ENDPROTECT statement it displays hole paragraph in to the single page and also to over come this issue.
    Regards
    Md.MahaboobKhan

  • Get no. of lines in sap script

    I am using Command  'Address / End address' in sap script for printing address.
    How do I get the Number of Lines we get from this command.

    /: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: ENDADDRESS
    LINES
    This specifies how many lines may be used for formatting the address.
    If there are too few lines available to allow all the address data to be formatted,
    then the data specified in the PRIORITY parameter are omitted.
    If there is no LINES parameter and if this command is in a layout set window of
    a type other than MAIN, then the number of lines available for formatting
    the address are automatically calculated based on the current output position
    and the size of the window.

  • To convert Sap Script output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Sap Script output to PDF format and send it via email. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Plese check this sample code from other thread.
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    The extension is put the it_mailpack-obj_name parameter of 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

  • Dispalying SAP script output in landscape format

    Hello All,
    Could anyone please tell me the step by step process to display a SAP Script output in landscape format?
    Also is it possible to display a column name in 2 lines if it does not fit into 1 line.
    Regards
    Indrajit.

    Hi,
    Here is the way to print the SAPSCRIPT in landscape ..
    Goto SE71, then give you layout name then press change, then press the Header button(CAP ICON), then you will get the Header infomation, then select the Basic Settings pushbutton, then there we have an option to Print the Layout in  Portrait format or Landscapr format, then select the LANDSCAPR format Radio button then activate it
    Regards
    Sudheer

Maybe you are looking for

  • HELP!!MacBook Pro and iPhone 5 won't sync via iCloud!

    I've just purchased and set up my first Mac. I have a MacBook Pro, and use and iPhone 5. I've set up iCloud on both in the settings / system preferences to sync contacts, calenders, notes etc... but for the love of trying and following any support I

  • BI Content Infoobjects missing

    Hi All, I am using SAP demo version of BI 7.0 to practice at a training class. I have got BI all setup to practice. However I am missing a lot of Business Content delivered objects like InfoObject, InfoCubes etc. I checked the table RSDIOBJ and only

  • Conversion of an actuate report to BI Publisher fails

    Hi all, After I started an conversion of an actuate report to BIP using the conversion tool (version 2), the batch process just stops. It writes successfully to the logfile that some of the elements have been converted, i.e. "2010/02/09 04:02:462 Ele

  • 68 gbs of app's on the HDD but there is no where near that amount as the mac book air is only a week old

    Hi - I recently migrated to Mac from a PC (about a week ago) and I noticed today that the HDD is nearly full already. There is no where near this amount of data on the HDD and I am confused as to what the Time machine is doing for me. I have two sepe

  • Edge Animate playing all symbols on replay?

    Hi, I am at my wits' end here--I've created a basic animation using Edge Animate CC 2014.0.1, featuring groups of symbols which have a stop trigger at the beginning of the animation and are then played at the appropriate time. It works fine--the firs