Regarding Paragraph format in SAP Script

Hi SAP Gurus,
Can any one please tell me the use of TABS in paragraph formats in SAP Script.
Thanks & Regards,
Pavan Bandaru.

Hi
first you define you tab in paragraph formats.
whene you must use this pharagraps you
just insert double comma before the text.
,,&matnr&
attention because if you define more than a tabulator il will take the tabulator in sequence.
,,(1st tab)&matnr&,,(2nd tab)&matnr&
if i define a tabulator of 2cm and another of 3cm and you insert 4 comma
,,,,&matnr&
it will take the summ of the two tabulator.

Similar Messages

  • How to get pt 9 in paragraph format in sap script

    Hi,
    I have a requirement to bold the data in output screen in main window,But that paragraph format font size is 9.0 pt if in font tab i select bold radio button then its comming bold in output screen some cases but some cases its not happening.So if i take font size - 8.0 pt then its bold happening for all cases.
    but i cannot put 8.0 pt because it is very old paragraph format so in pt 9.0 only i want bold.any body can help me for that.
    Thanks,

    Hi madhurao123 ,
    Thank u so much.
    I have configured the device type as pdf printer.
    And Now I can able to get the PDF File downloaded.
    Thanks       
    Alagappan

  • Urgent ......regarding date format in SAP Script

    In my MAIN WINDOW  I have date fields like Date of Manifacture, created date and Expiry date.
    So, currently  I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
    But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
    DEFINE &outdate& = &mchar-vfdat&
    SET &outdate& MASK = 'YYYY-MM-DD'.
    but still it is showing format YYYY-MM...
    Plz help me how to print my desired date format...
    I am waiting for ur reply...
    Regards,
    Kumar

    Hi Kishore kumar,
    What you can do is befor printing the Expiry date set the date Mask as 'YYYY-MM-DD' and after printing your Expiry Date again set the DATE MASK to 'YYYY-MM'
    i.e.
    /: SET DATE MASK = 'YYYY-MM-DD'
       &mchar-vfdat&
    /: SET DATE MASK = 'YYYY-MM'
    Regards,
    Sunil

  • How to change the format in sap script

    Hi,
    I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.

    hi,
    this will give you the whole idea about the scripts in SAP the t-code is SE71.
    refer this link::
    [SAP SCRIPTS|http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm]
    [WIKI|https://wiki.sdn.sap.com/wiki/display/ABAP/FormPrinting-SAPscript%2CSmartforms]
    regards
    sarves
    Edited by: Sarves Sombhatla on Feb 20, 2009 1:38 PM

  • Regarding Address EndAddress in SAP Script

    <i>Hi Abapers,
    I am having a problem while displaying the address in SAP Script through Address EndAddress.
    Problem is it is displaying the data correctly but it display the Region Code. Now the requirement is to display the Region Description instead of the Region Code.
    Can you please provide me any solution for this.
    I am sending the Address EndAddress which I have written in my code.</i>
    /:          ADDRESS DELIVERY PARAGRAPH ZC
    /:            NAME     &VBDKL-ZBTNAME1&, &VBDKL-ZBTNAME2&, &VBDKL-ZBTNAME3&, &VBDKL-
    /:            STREET   &VBDKL-ZBTSTRAS&
    /:            CITY     &VBDKL-ZBTORT01&, &VBDKL-ZBTORT02&
    /:            POSTCODE &VBDKL-ZBTPSTLZ&
    /:            COUNTRY  &VBDKL-ZBTSLAND&
    /:            REGION   &VBDKL-ZBTREGIO&
    /:            FROMCOUNTRY &VBDKL-ZBTLLAND&

    Hi
    ADDRESS and ENDADDRESS is used to specify the address which will
    be formatted according to the target country i.e the recipient country.
    e.g. /:ADDRESS sales PARAGRAPH C
    /:NAME &KNA1-NAME1&
    /:STREET &KNA1-STRAS&
    /:POSTCODE &KNA1-PSTLZ&
    /:CITY &KNA1-ORT01&
    /:COUNTRY &KNA1-LAND1&
    /:FROMCOUNTRY 'DE'
    formatting address
    http://help.sap.com/saphelp_46c/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm
    <b>Reward if usefull</b>

  • Page format for SAP-Script not working in 4.6C

    Hi all,
    I have a problem regarding check printing.
    I am using SAP version 4.6C
    The size of paper for check printing is
              width  = 231 mm
              Height = 304 mm
    So for this I have created a new page format with these details in SPAD.
    Then I assigned this Page format to spool format and assigned that spool format to SAPWIN driver. I have assigned this page format to the SCRIPT that is used for check printing .
    But when I am taking the print out for the check with new page format, the printer don’t print till the end of page, it prints till the total amount on check and then stops there. So this creates an alignment problem when taking printout for multiple checks.
    Please give some solution for this.
    Regards,
    Bharat.

    I guess you are printing on dot matrix printer. If yes, try to do some physical printer settings for the dot matrix printer by following the printer manual. I guess you have to change the page size.. or set default printer settings... it may help you to solve your problem...
    if not goto your device types tab in SPAD and select device types.. select your device from the list (for ex, SAPWIN) click format and goto the format that you have inserted for this device types.. double click on your format, you will see printer Indialization.. try to write code like this
    set page length to 8.5 inch (=52 lines at 6 LPI)
    \e\0x43\0x44
    Note the above hexa decimal value can be obtained by going through the printer manual.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Regarding Multiple pages in SAP Script Output

    Hi All,
    I have a requirement in SAP Script where i need to print data in multiple pages. I had created 1 page - FIRST with properties <b>Next Page</b> as FIRST , <b>Mode</b> as INC.
    In the output i have multiple line items, the data will carry upto 3 pages.
    Now In the output First page data is printing correctly.
    In the second page all the windows are carried forward to print all the data correctly except in MAIN WINDOW.
    In Second page in MAIN Window i have ITEM HEADER which i want to print on every page as it is printing in First page of output, but i am not been able print ITEM HEADER though i am able to print all the ITEM DETAILS correctly on every page.
    Can anybody tell how can i print ITEM HEADER on every page which is in MAIN Window.
    Thanks in advance.
    Thanks & Regards,
    Rayeezuddin.

    Hi Shaik,
             If you are only printing Item Details in the Main Window, why don't you create a saperate window just above your main window for Item Headers.
    Hope this should solve your problem or Please elobarate your query.
    Thanks,
    Vinod.

  • Change the charcter format in sap script

    hi experts,
    i m working first time chaneg in sap script i don't know how to change the sap script charcter.plz any body help me how can i change in sap script charcter format..
    thanks in advance
      kamal

    Hello Kamal,
    PLZ is an character format with the length 8. In VBScript it is a string.
    You can use e.g. the VBScript commands CLng(PLZ) to convert it into a number, FormatNumber to format the number or any other string command. What do you mean exactly with change character format? From ASCII to Unicode or from one character set to another, maybe from ISCII to TSCII?
    Cheers
    Stefan
    Edited by: Stefan Schnell on Dec 19, 2011 4:04 PM

  • Regarding screen shots of  SAP SCRIPTS

    Hi Frenz,
    please help me on sending SAP Scripts step by step procedure screen shots.

    hi
    good
    check these links, this may help u....
    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
    http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/introduction/
    SAPscript in Detail
    http://help.sap.com/saphelp_47x200/helpdata/en/d6/0db74a494511d182b70000e829fbfe/frameset.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
    reward point if helpful.
    thanks
    mrutyun^

  • Page format regarding cheque printing in SAP SCRIPTS

    How to create a page format of our own....so that it prints the contents of that layout exactly into the cheque size?

    hi,
    you need to go to <b>SPAD</b> transaction.
    click of <b>full administration</b>
    and then choose tab  <b>device types</b>-> and then click on <b>format types</b>.
    Regards
    vijay

  • How to Print PDF Format In SAP SCRIPT

    Hi All,
    I have a requirement to print the output in PDF format.
    First we can pass the parameter from Excel sheet,through on the parameters , we can fetch the output and print the PDF format.
    Please help me.
    regards
    raghava

    Hi Ragha,
    SAP has created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
    You will get the spool number from transaction SP02.
    Also go through the following document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556
    Regards,
    Nitin.

  • What are methods for converting otf to pdf format in sap script

    Hi,
    I have a requirement in script i have to convert that that otf file to pdf format,when i use function modules its corrupting that pdf file,So i want convert otf to pdf using class method any one can help me for that.If any sample coding for class method.
    Thanks.

    ok
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                = 'PDF'
    *      max_linewidth         = 255
         IMPORTING
           bin_filesize          = lv_bin_filesize
    *      bin_file              = pdf_xstring
         TABLES
           otf                   = lt_otf
           lines                 = lt_pdf_table
         EXCEPTIONS
           err_max_linewidth     = 1
           err_format            = 2
           err_conv_not_possible = 3
           err_bad_otf           = 4
           OTHERS                = 5.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
          bin_filesize                    = lv_bin_filesize
          filename                        = c_name
          filetype                        = 'BIN'
    *     APPEND                          = ' '
    *     WRITE_FIELD_SEPARATOR           = ' '
    *     HEADER                          = '00'
    *     TRUNC_TRAILING_BLANKS           = ' '
    *     WRITE_LF                        = 'X'
    *     COL_SELECT                      = ' '
    *     COL_SELECT_MASK                 = ' '
    *     DAT_MODE                        = ' '
    *     CONFIRM_OVERWRITE               = ' '
    *     NO_AUTH_CHECK                   = ' '
    *     CODEPAGE                        = ' '
    *     IGNORE_CERR                     = ABAP_TRUE
    *     REPLACEMENT                     = '#'
    *     WRITE_BOM                       = ' '
    *     TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *     WK1_N_FORMAT                    = ' '
    *     WK1_N_SIZE                      = ' '
    *     WK1_T_FORMAT                    = ' '
    *     WK1_T_SIZE                      = ' '
    *     WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *     SHOW_TRANSFER_STATUS            = ABAP_TRUE
    *     VIRUS_SCAN_PROFILE              = '/SCET/GUI_DOWNLOAD'
    *   IMPORTING
    *     FILELENGTH                      =
         TABLES
           data_tab                        = lt_pdf_table
    *     FIELDNAMES                      =
        EXCEPTIONS
          file_write_error                = 1
          no_batch                        = 2
          gui_refuse_filetransfer         = 3
          invalid_type                    = 4
          no_authority                    = 5
          unknown_error                   = 6
          header_not_allowed              = 7
          separator_not_allowed           = 8
          filesize_not_allowed            = 9
          header_too_long                 = 10
          dp_error_create                 = 11
          dp_error_send                   = 12
          dp_error_write                  = 13
          unknown_dp_error                = 14
          access_denied                   = 15
          dp_out_of_memory                = 16
          disk_full                       = 17
          dp_timeout                      = 18
          file_not_found                  = 19
          dataprovider_exception          = 20
          control_flush_error             = 21
          OTHERS                          = 22.
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    TRY.
           GET PARAMETER ID 'RECEIPTENT' FIELD lvs_recipient1.
           send_request = cl_bcs=>create_persistent( ).
    *      lt_attach_bin = cl_document_bcs=>xstring_to_solix( ip_xstring = lt_solix ).
           APPEND 'Test message' TO lt_text.
           l_sub_50 = lc_test1.
           document = cl_document_bcs=>create_document( i_type    = 'RAW'
                                                        i_text    = lt_text
                                                        i_subject = l_sub_50 ).
           document->add_attachment( i_attachment_type    = 'PDF'
                                     i_attachment_subject = 'script.pdf'
                                     i_att_content_hex    =  lt_attach_bin ).
           l_sub_line = lc_test1.
           TRY.
    * Build subject line for email.
               CALL METHOD send_request->set_message_subject
                 EXPORTING
                   ip_subject = l_sub_line.
             CATCH cx_send_req_bcs INTO loref_obj_error.
               PERFORM sub_catch_error1 USING loref_obj_error.
           ENDTRY.
           send_request->set_document( document ).
    *      sender    = cl_cam_address_bcs=>create_internet_address( '[email protected]' ).
           recipient1 = lvs_recipient1-objkey.
           recipient = cl_cam_address_bcs=>create_internet_address( '[email protected]' ).
    *      send_request->set_sender( sender ).
           send_request->add_recipient( i_recipient = recipient
                                        i_express   = 'X' ).
           sent_to_all = send_request->send( i_with_error_screen = 'X' ).
           COMMIT WORK.
         CATCH cx_bcs INTO bcs_exception.
           MESSAGE 'eee' TYPE 'S'.
           EXIT.
       ENDTRY.

  • Regarding text printing in SAP Script

    Hi experts,
    I have a form already which has been developed already.
    Now I want to include the text in the footer which should appear only in the last page of the footer.
    How to achive this and how to add the following text into my Script
    All tools used during this task are present and accounted for at completion of this work order.  _______
    All loose parts are present and accounted for at completion of this work order.  ________
    Food Contact Zones are clean and suitable for Food Production at completion of this work order.  _______

    Hi,
    Adding to Chenna kesava reddy's point, if you want to include your texts taht you had mentioned above, create standard texts in SO10 with the language as EN and then include them in ur script withhte following command:
    INCLUDE <textid>  OBJECT TEXT ID ST LANGUAGE E
    Hope this helps
    Regards
    Priya

  • To arrange in a proper format in SAP script

    Hi all,
    I have to display the text in the below format:
    Column 1                                                                                Column2
    Remit info                                                                               ACH/ info
    Alexandra Technopark                                                           Bank Of America, Singapore
    I have maintained this in window bank_details:
    IF &NEXTPAGE& = '0' AND &BSID-BUKRS& EQ '0729'
    POSITION XORIGIN '2,0' MM YORIGIN '+158' MM
    BOX HEIGHT '30' MM FRAME 10 TW INTENSITY 15
    BOTTOM
    INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
    INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS
    ENDBOTTOM
    ENDIF
    And getting in the below format:
    Remit info:
    Alexandra Technopark
    ACH/ info
    Bank Of America, Singapore
    Please suggest me how to arrange it in proper format.
    Appreciate your help.
    Thanks,
    Kiran
    Edited by: kiran162 on Feb 3, 2012 2:30 AM

    Hi Kiran,
    I did not mean you choose the tag column for the 2nd include in the sapscript editor. I meant you should edit your text of the 2nd include in the tcode for standard text SO10 with the given object text name and text ID. But this is just applicable if each of your include text as only 1 line.
    Here's the details:
    + Go to tcode SO10, enter the text name as ' F_0729_FOOTER' and text ID as 'ADRS' and your language (I guess EN).
    + Go inside, choose the tag column for the text as continuous text ( yah, blank indicator again).
    But each of you include text has more than 1 line, so this is not applicable. You can ignore my third suggestion. I have another suggestions for you here:
    + No1: you can present like in the followings in your sapscript editor:
       Remit info:
                 ACH/ info      // blank inditor means continuous text
           /:   INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
           /:   INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS      // in SO10 for this text, leave the tag column blank
    This means you should hard-code the name of the address info.
    + No 2:   - You can create 2 global text variables in the printing program.
                  - Use FM 'READ_TEXT' to read your address from the text pool. Store in 2 text table.
                  - Loop at the text table, transfer data from the text table to the 2 global text variable above, and write the window and the element here as well.
                  - You can use some wrapping FM to wrap the text in each variable.
                  - Then in the sapscript form, you just put the 2 global variables in the same line.
    Hope you can complete the requirement.
    Thanks,
    Paul

  • Regarding line feed in sap script

    hi
    i had a long if statement.
    it is extending more than one line.
    IF &REGUH-RZAWE& = '2' AND ( &REGUH-LAUFI0(1)& EQ 'E' OR &REGUH-LAUFI0(1)& EQ 'G' )
    IF i use '=' Extended line  the statement in that line is printing as it is.
    If i use '/:' this command even for the next line it works fine
    what i s the correct procedure

    Hi Guys!
    I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).
    If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:
    /: IF &VBDKA-VKORG& EQ '0001'
    /: AND &NAST-SPRAS& EQ 'DE'
    In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<
    BR, Michał

Maybe you are looking for

  • Why doesn't firefox 8 work on windows 7 32 bit

    I recently downloaded firefox 8 and it won't work with my systsm configuration. I am running 32 bit firefox 3.6.24. When i downloaded it was all good and ready to run but I have problems doing certain tasks that block me from enjoying the internet.

  • Apple Authorized Center swapped my RAM with a fake one!

    I had given my MBP [Mid 2008] model for motherboard repairs in Mumbai, India around 6 months ago. Just recently, my MBP started making a long beep kinda sound & refused to boot up. I figured that this was a RAM problem. I went to the Apple Center to

  • Problem using iTunes restore to transfer library to new PC

    I have used iTunes 8 to back up my entire library to 5 DVDs following the instructions at http://support.apple.com/kb/HT1382 When I insert the DVDs in my new PC I get the option in iTunes to restore from the DVD's - which I do. However about 50% of m

  • Expecting a response within a specified time frame

    I need urgent help please. I am expecting some data from the server within 20 seconds. If I dont receive this data within the time frame,I exit from the application else If i receive this data I will display it. Please can any write a small example f

  • Saving position in flash

    HI, I Have some open source flash game with me with the source code.I just wanted to save the position of the game. So when the user start the game, the game will start from where he has stopped playing last time. So he will not loose anything and he