Create pragraph in sapscript

hi
how create paragraph in sapscript

Hi Yassine..
To create paragraph format in SAP Script, go to transaction SE71 and in that select paragraph format and then select EDIT and in that Select create element, which will create a new paragraph format.
Regard with Points if info is useful.
Karan

Similar Messages

  • Creating a Custom SAPscript Editor

    I am trying to create a custom SAPscript editor and I'm having problems. We are on SAP 640.
    We use texts to store notes against invoices recording details of the dunning process. Our users have ask if we can tailor the notes so that users can insert new notes against an invoice but not update or delete old notes. I have tried to do this by creating a custom editor EDIT_TEXT_FORMAT_XXXXX where XXXXX is ZGTENO a text format that has been set up against text object BELEG. Unfortunately the new module is never called.
    For most text objects SAP picks up the text format  and moves it into the SAPscript header and this field in the SAPscript  header is used to call the custom editor. For example in program sapfv45t include FV45TFDB_TTXER_SELECT_CREDM   text format is in gt_tdtexttype or lv_tdtexttype  one of these fields is then moved into the SAPscript header field xthead-tdtexttype which is used in function group STXD function module EDIT_TEXT (the field is in chead-tdtextline) to decide whether to call the standard editor (function FULL_SCREEN_NEW) or a custom editor but for text object BELEG it gets the text format but never moves it to the SAPscript header (for example see program sapfv45t include FV45TFDB_TTXER_SELECT_BELEG it gets the text format in lv_tdtexttype but doesn't move it to xthead-tdtexttype so it can't be used to call a custom editor) so it looks as if a custom editor cannot be used with text object BELEG, is this correct or am I missing something?
    I can see my new text format ZGTENO being picked up in the debugger but because it isn't moved into the SAPscript header it doesn't call my function module, it always calls the standard editor.

    Two days after you posting you original question: http://forum.java.sun.com/thread.jspa?threadID=651625&messageID=3831712
    you find the answer on your own. Yes, the general Java forum sure is helpfull.
    If the question was posted in the Swing forum you would have had the answer in a couple of hours:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=637581

  • Creating sapscript from a standard sapscript - need suggestions

    Hi,
    I am currently working on a settlement form.
    There is a standard invoice settlement with the following details:
    - SAPscript - MR_PRINT
    - Program - RM08NAST
    - Entry Routine - ENTRY_KONS
    My task is to create a new SAPscript, which will have a different look. However, the new SAPscript will be 90% composed of existing standard data, with the other 10% composed of several new fields.
    At 1st, I thought of just copying the entire standard print-program.
    However, the entry point ENTRY_KONS calls an FM that does all the data selection. This FM has tons of includes inside.
    What is generally done, especially in regards to output type KONS? what do I do?
    Do I copy every include or create my own program and copy only what I need?
    Please help.
    Thanks,
    John

    Hi,
         If additional fields are few and any relationship with the existing data.
         Copy Standard sapscript and use original print program.
         You try using Subroutines, You can get the data for the additional fields and other calculations in the   subroutines and pass the data to the sapscript.
          First identify from which tables the additional fields reside and any relation with the existing data in the
    sapscript which can be used as USING parameter in PERFORM statement.
          Call the subroutine, fetch the data and do additional calculations and send data back to sapscript.
    Refer the SAP help link on PERFORM statement
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    you can find many threads on PERFORM in SAPSCRIPTS, do a search in SCN for additional help on that statement.
    Regards
    Bala Krishna

  • Blank page is getting displayed in SAPScript when using NEW-PAGE option.

    Hello Experts,
    We have created a customized SAPScript and in this separate Script is generated based on the currency(WAERS).
    So if we have 3 different currencies, then 3 pages will be created with there details, but we are using NEW-PAGE option in
    MAIN window to separate the pages and after 3rd page it is displaying 4th page also with footer details.
    So how can we avoid last blank page which is getting displayed?

    Hi isha.walia ,
       This issue can be solved by two ways. Please take the one which suits you better.
    Solution 1: If  you need to generate separate prints for different currencies.
    In the driver program, build an internal table for different currencies which needed to be printed. (Using delete adjacent duplicates, build the internal table with exact number of currencies to be printed). Remove the NEW-PAGE option and call the script/form inside the loop. Do the necessary conditions to manipulate the print.
    Advantages of above solution: Better control on spools if needed.
    Solution 2:  Get the count of the number of pages in a variable. Inside the print loop, increment a flag counter. Check it against the variable which contains the number of pages to be printed at the end of each page. Exit the loop when the number of pages to be printed is reached.
    Advantage of above solution: Simple to write the program.
    Thanks and Regards
    Raghesh R S

  • Sapscript and Standard Text - Polish Characters not printing

    Hi,
    I have created an English Sapscript and translated it to Polish via transaction SE76.
    Changing my PC Region and Language settings to Polish allowed me to enter Polish Characters into Hardcoded text in the Sapscript and Standard Text via s010.
    I have two problems:
    1) With my PC Region and Language settings set to Polish, when I create my sapscript output some of the polish characters that I have entered via SE76 and SO10 do not appear and are replaced by others e.g.
    ę is dispalyed as ê
    ć is displayed as æ
    ń is displazed as #
    2) I have a business requirement to be in England Logged with PC Region and Language set to English but to print a sapscript output in Polish. Is this possible.
    We are currently on non unicode SAP system.
    Please can anyone advise.
    Regards

    Hello,
    SAP discourages mixed code page or MDMP systems and with good reason. If there is any possibility of you upgrading to a Unicode system in the near future you should try to wait for it. Supporting multiple languages in Unicode is easy, in MDMP it can be quite tricky. And MDMP makes the move to Unicode more difficult.
    That said, your BASIS team can enable Polish and you can print in Polish while your PC is set for English. The SAPScript/Form must be in Polish or using an INCLUDE that is LANGUAGE 'PL' to let SAP know which code page to use when printing.
    Seriously, look at moving to Unicode, you need to do it eventually anyways.
    Michael

  • Sapscript/Smartform via mail with PDF attachment: logo is missing

    Hi all
    I'm implementing my function to send Sapscript/smartform via mail.
    I need to do it because when a message needs to be sent, I have to insert the message as attachment but also to add a text in the body mail.
    So I've just created a simple sapscript having a logo (as graphic) and a little text.
    I use the fm CONVERT_OTF to convert the OTF to PDF format and the following code to increase the pdf string from 132 to 255 char:
    LOOP AT t_pdf.
          TRANSLATE t_pdf USING ' ~'.
          CONCATENATE l_buffer t_pdf INTO l_buffer.
        ENDLOOP.
        TRANSLATE l_buffer USING '~ '.
        DO.
          MOVE l_buffer TO l_attachment.
          APPEND l_attachment TO x_attachment.
          SHIFT l_buffer LEFT BY 255 PLACES.
          IF l_buffer IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
    All seem to work fine, but as soon as I open the pdf file attached to the mail I can't see the logo
    So after calling fm CONVERT_OTF, I've created a pdf file by method GUI_DOWNLOAD, and then upload this file (by GUI_UPLOAD) into internal table for attachment and send the mail.
    Now really all work very fine, becaus I can see the logo
    Of course I don't want to dowload the file before sending a mail, but I need to send my print directly as pdf attachment
    The two ways seem to be equal, they use the same print and the same functions, only the way to upload the internal table for attachment is different:
    1) tha abap code above to expand the line from 132 to 255
    2) the method GUI_UPLOAD
    So something seems to be wrong in the first way because ithe logo is missing in the pdf attachment generated for the mail
    Max

    Hi
    I'm not working on unicode system, anyway I didn't see that parameter BIN_FILE, so I didn't use it
    I've read the note 1324547 and I've done just as it explaines: now works fine
    I don't know why it doesn't work with old manner (i.e data is treated as character-type), but it worls with the new one (If the data is treated as xstring-type)
    I can only suppose the data are corrupted while being elaborated for expand to 255 char....but I don't why
    Anyway your suggestion works for me
    Thank
    Max

  • How to create line in smart form

    dear all,
            i hv to create lines in smartform.
    BOX XPOS '0' MM YPOS '6' MM HEIGHT '0' MM WIDTH '190' MM FRAME 1 PT
    by using above statement i can create line in SAPSCRIPT.
    is there any similar statement in smartform to create lines
    if So plz send me a code.
    regards
    Vinod.

    create window and provide these parameters  in the output options to get the line. and  in  line  select check box line with                                                                               
    Left margin          0.00      CH    Width           80.00       CH   
      Upper margin     12.50      LN    Height             0.05       LN                                                                               
    line
       check the box  line with                                                                               
    Gray value       0   %     
       Width                     1.00       TW                       (0% = not filled)          
       vertical spacing       0.00       CM                                
       horizontal spacing   0.00       CM

  • Sapscript modification not displaying in invoice print preview

    Hi everyone,
    I have created a new sapscript and assigned it as a routine  to an output type in IMG. The testing part went fine and print preview was OK both through  SE71 form preview tool and VF03 (billing document). However I noticed I had to make some changes to the text on the form (layout corrections) so, I went back to my form in SE71, did the changes and this time I'm able to see the modifications within the print preview tool of SE71 but can't see anything while launching print preview in VF03, like I hadn't corrected anything !
    It seems that there's somehow a connection missing somewhere between my newly modified sapscript form and the actual print output of the corresponding billing document associated to it via the output type, but I can't figure out which one!!
    Any hints / help would be higlhy appreciated !
    Many thanks

    Hi,
    Did you activate the form after making the changes? If you don't activate, it will look  fine in SE71 but the application will use the older actvated form.
    Also, if the form exists in more than one language, check that you updated the one with the correct language key.
    Regards,
    Aidan

  • SapScript in ECC 6.0

    Hello,
    Guys I'm having a doubt, I created a form SapScript in ECC 6.0 for direct printing of Tickets for F110, with a copy of the standard did J_1B_BOLETO_ITAU. But do not print the bar code. I tell you that the SapScript no longer works in version ECC 6.0 is this true?
    Thanks,

    Hi,
    Does your printer have barcode DIMM module installed? In general, if you want to print a barcode, somebody must draw the bars
    of the barcode to get a correct print. One way is with a barcode DIMM installed in the printer as per SAP note #45643.
    Another possibility is to print via windows and device type SAPWIN, with a barcode.dll installed in the windows. See SAP note 14561.
    If your printer doesn't have a barcode DIMM and you don't want to use a barcode.dll, you can use the new barcode technology, which is described in SAP Notes #645158 and #430887. However this is only possible via Smartforms.
    Regards,
    Aidan

  • Custom sapscript to PDF and email

    Hi all,
    I have a requirement to create a new sapscript that can be converted to PDF and emailed. I have done this for regular reports but have no idea about doing it for sapscript.
    Does anybody know how I can do this?
    I've search the forums here but I haven't found a definate solution.
    Cheers,
          Tony

    Here is a sample program.
    REPORT ZRICH_0003.
    DATA: ITCPO LIKE ITCPO,
          TAB_LINES LIKE SY-TABIX.
    * Variables for EMAIL functionality
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILPACK   LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
    DATA: MAILHEAD   LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
    DATA: MAILBIN    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: SOLISTI1   LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    PERFORM SEND_FORM_VIA_EMAIL.
    *       FORM  SEND_FORM_VIA_EMAIL                                      *
    FORM  SEND_FORM_VIA_EMAIL.
      CLEAR:    MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
      REFRESH:  MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
    * Creation of the document to be sent File Name
      MAILDATA-OBJ_NAME = 'TEST'.
    * Mail Subject
      MAILDATA-OBJ_DESCR = 'Subject'.
    * Mail Contents
      MAILTXT-LINE = 'Here is your file'.
      APPEND MAILTXT.
    * Prepare Packing List
      PERFORM PREPARE_PACKING_LIST.
    * Set recipient - email address here!!!
      MAILREC-RECEIVER = '[email protected]'.
      MAILREC-REC_TYPE  = 'U'.
      APPEND MAILREC.
    * Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                PUT_IN_OUTBOX              = ' '
           TABLES
                PACKING_LIST               = MAILPACK
                OBJECT_HEADER              = MAILHEAD
                CONTENTS_BIN               = MAILBIN
                CONTENTS_TXT               = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
    ENDFORM.
    *      Form  PREPARE_PACKING_LIST
    FORM PREPARE_PACKING_LIST.
      CLEAR:    MAILPACK, MAILBIN, MAILHEAD.
      REFRESH:  MAILPACK, MAILBIN, MAILHEAD.
      DESCRIBE TABLE MAILTXT LINES TAB_LINES.
      READ TABLE MAILTXT INDEX TAB_LINES.
      MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
    * Creation of the entry for the compressed document
      CLEAR MAILPACK-TRANSF_BIN.
      MAILPACK-HEAD_START = 1.
      MAILPACK-HEAD_NUM = 0.
      MAILPACK-BODY_START = 1.
      MAILPACK-BODY_NUM = TAB_LINES.
      MAILPACK-DOC_TYPE = 'RAW'.
      APPEND MAILPACK.
    * Creation of the document attachment
    * This form gets the OTF code from the SAPscript form.
    * If you already have your OTF code, I believe that you may
    * be able to skip this form.  just do the following code, looping thru
    * your SOLISTI1 and updating MAILBIN.
    <b>  PERFORM GET_OTF_CODE.
      LOOP AT SOLISTI1.
        MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
        APPEND MAILBIN.
      ENDLOOP.</b>
      DESCRIBE TABLE MAILBIN LINES TAB_LINES.
      MAILHEAD = 'TEST.OTF'.
      APPEND MAILHEAD.
    ** Creation of the entry for the compressed attachment
      MAILPACK-TRANSF_BIN = 'X'.
      MAILPACK-HEAD_START = 1.
      MAILPACK-HEAD_NUM = 1.
      MAILPACK-BODY_START = 1.
      MAILPACK-BODY_NUM = TAB_LINES.
      MAILPACK-DOC_TYPE = 'OTF'.
      MAILPACK-OBJ_NAME = 'TEST'.
      MAILPACK-OBJ_DESCR = 'Subject'.
      MAILPACK-DOC_SIZE = TAB_LINES * 255.
      APPEND MAILPACK.
    ENDFORM.
    *      Form  GET_OTF_CODE
    FORM  GET_OTF_CODE.
      DATA: BEGIN OF OTF OCCURS 0.
              INCLUDE STRUCTURE ITCOO .
      DATA: END OF OTF.
      DATA: ITCPO LIKE ITCPO.
      DATA: ITCPP LIKE ITCPP.
    <b>  CLEAR ITCPO.
      ITCPO-TDGETOTF = 'X'.</b>
    * Start writing OTF code
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                FORM     = 'ZTEST_FORM'
                LANGUAGE = SY-LANGU
                OPTIONS  = ITCPO
                DIALOG   = ' '
           EXCEPTIONS
                OTHERS   = 1.
      CALL FUNCTION 'START_FORM'
           EXCEPTIONS
                ERROR_MESSAGE = 01
                OTHERS        = 02.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                WINDOW        = 'MAIN'
           EXCEPTIONS
                ERROR_MESSAGE = 01
                OTHERS        = 02.
    * Close up Form and get OTF code
      CALL FUNCTION 'END_FORM'
           EXCEPTIONS
                ERROR_MESSAGE = 01
                OTHERS        = 02.
      MOVE-CORRESPONDING ITCPO TO ITCPP.
      CALL FUNCTION 'CLOSE_FORM'
           IMPORTING
                RESULT  = ITCPP
    <b>       TABLES
                OTFDATA = OTF</b>
           EXCEPTIONS
                OTHERS  = 1.
    * Move OTF code to structure SOLI form email
    <b>  CLEAR SOLISTI1. REFRESH SOLISTI1.
      LOOP AT OTF.
        SOLISTI1-LINE = OTF.
        APPEND SOLISTI1.
      ENDLOOP.</b>
    ENDFORM.
    Please make sure to award points for helpful answers and Welcome to SDN!!!
    Regards,
    Rich Heilman

  • Invoice Smartforms or Sapscript for Argentina

    Gurus,
    Does anyone knows if SAP provided an Invoice smartform or sascript specific for Argentina?
    Thanks,
    Apollo

    hELLO,
    You can take a copy of MEDRUCK sapscript and customize it to your needs.
    I´d recommend to create a new sapScript instead.
    Bye
    Gabriel P

  • Texts in sapscript

    how to create texts in sapscript and why n when do we need to create texts??
    Thanks,
    Kiran

    Hi!
    If you mean standard texts, then you can create standard texts in transaction SO10.
    These texts are useful, if you want to use the same text in more than 1 SAPScript.
    You can include them like this:
    /: INCLUDE ZMYTEXT ID ST OBJECT TEXT LANGUAGE EN.
    Regards
    Tamá

  • Printing a sapscript gives error .

    Hi
    I have created a new sapscript  to print a tax invoice .When i preview it i can see it fine .
    Also when in the print options  put locl and print it .It gets printed to the printer that i have allocated in my local .
    But when i change the print options to put the name of the printer directly it gives me an error saying that Device type PLAIN does not support page format DINA4.
    It is the same printer but when put as local it prints but when we put the number directly it does not print and gives as error .
    Any suggstions ?
    Thanks in advance
    Anjali

    Hi,
    There is used another driver in SAP . With LOCLl you mostly use your windows printer driver. Your other printer choice uses a sap printer driver.
    You should check that one because that one makes trouble (tranaction SPAD).
    Gr., Frank

  • Sapscript form to smartstyle migration

    Hello,
    I'd like to migrate sapscript to smartform. This is the request from customer.
    I know that I can migrate sapscript style to smartstyle, but I`m newbie in sapscript and don't know how to find out which sapscript style is assigned to my sapscript.
    It seems like sapscript has no sapscrit style, there is only buttons Paragraph formats and Character Formats, so i think that formats of sapscript is hardcoded defined directly in sapscript.
    So I'd like to create smartstyle from sapscript form (not sapscript style).
    Or maybe there is a connection between my sapscript and a sapscript style, but I wasn't able to find out.
    Has anybody an idea?
    Best regards,
    Josef Motl

    refer.
    http://help.sap.com/saphelp_nw04/helpdata/en/9d/9599386185c064e10000009b38f8cf/frameset.htm
    Converting a SAPscript style
    Go to the Smart Styles inital screen (transaction SMARTSTYLES ).
    In the Style name field enter the name of the Smart Style you want to create.
    Choose Smart Styles ® Convert SAPscript style.
    Enter the name of the SAPscript style you want to convert.
    Choose Enter.
    A list of the converted styles appears.
    Choose Back. You can now change the Smart Style (Change).To activate the Smart Style choose Activate
    kishan negi

  • SAPSCRIPT intitial problem

    I go to SE71 and create a new form named "ZFORM3". when i click on create it says "FORM LANG EN is not available in client 800" .I know sum ppl hv to import a predefined form n then customize it. But is it cumpulsory coz i want to create my own sapscript from scratch.
    Secondly even after that message comes it takes me to form editor where some buttons r missing i guess. eg. i get buttons like paragraphs,character format but do not get WINDOWS and PAGE button at the top. Is it because of the language prob in client which was notified earlier ??
    PLZ help

    Hi,
    we can develope a scripts from scratch.. there is no rule that we should copy standard forms and customize it..
    when comes to your problem you better approch basis  guy..
    hope this will help you..
    Regards,
    Kiran

Maybe you are looking for

  • "Device Error" Code:3, Note: AS_Storage Error=-97060

    After installing my new internal blue-ray drive (MCE Technologies) into my Mac Pro Tower, I attempted to burn my first Blue-ray and this error popped up. Not sure why. Can anyone help me? Thanks!

  • Need Help in Tcode

    Hi Frnds, I need help regarding Tcode . I want the information of the Tcode which was last used by the user & at what time. Do we have any table in Sap, Which updates the Tcode Used information... ThanQ in Advance, Murthy

  • My new Macbook pro don't read CD

    hey guys, i have a macbook pro, its new, but don read any CD's, i dont know why, but if you can help me please contac me. thank you xx

  • Fcpproject files - can't open them in fcp 10.1.4

    I have fcpproject files that I'm trying to force final cut pro 10.1.4 to update but the files are grayed out.  I moved the project folder to the movies directory but that didn't have any effect.  Is there anything I'm overlooking?  How can I confirm

  • Unable to download new version of firefox

    Every time i download the new version of firefox, it says the file is corrupted, i've removed the previous version, deleted the old program file & also saves the file rather than running it from the site & it stll says the file is corrupt, any idears