What is lable in sap-script ?plz explain

why we can't possible in smartform?

Hi,
Most of the products shipped from a company's warehouse will have big stickers in the cartons. These stickers hold the information such as product number, serial number and shipping address and many more information. These are used to easily identify what is packed inside that carton. So for these kind of usage we need to use Thermal printers to generate the labels or stickers. Thermal printing is not possible using a normal printer. You need special printers for thermal printers.
You can use SAP script and Smartform( from latest version )  to print labels. Do a search on OSS Notes you will find a lots of information on supported printers and how to implement.
Cheers
VJ

Similar Messages

  • How to print lables in SAP SCRIPT

    Hi all,
      Here i have a requirement in SAP Script How to print the lables instead of Hard coding the field Description. Please help me how to do.
    Regards
    Raghava

    Hi
    First Create a Lable in script
    Refer This link for creation of lable in SAP SCRIPT 
    How to create lables in SAP SCRIPTS?
    Ranga

  • What are the main sap script events and their functionality and usage?

    what are the main sap script events and their functionality and usage?

    Hi,
    Inside the Script, there are events like Top of Page, End of page etc.
    Please elaborate about your requirement.
    Best regards,
    Prashant

  • Printing barcode lables in sap script forms

    hi friends,
    i am trying from long time to print barcode on Z4m barcode printer.the folowing is the requirment.
    Application object is : MM07ET
    Text ID : 7001 of the application object
    Layout set: RM07ETIKETT .
    Layout set is i copied from client 000 .
    Folowing is the ZPL code i am using to get barcode print.
    /    ^XA
    /    CWI,U00S8_S2.FNTFS
    /    FO125,10A0N,21,0CI0FRFDAES CARTEGENAFS
    /    CWJ,U00O01JW.FNTFS
    /    FO20,57A0N,27,0CI0FRFDMaterial Number :FS
    /    CWK,T00O01JW.FNTFS
    /    FO19,97A0N,27,0CI0FRFDMatl Desc :FS
    /    CWJ,U00O01JW.FNTFS
    /    FO20,133A0N,27,0CI0FRFDStorage Location :FS
    /    CWJ,U00O01JW.FNTFS
    /    FO20,175A0N,27,0CI0FRFDBin Location :FS
    /    CWJ,U00O01JW.FNTFS
    /    FO19,214A0N,27,0CI0FRFDValuation Type :FS
    /    CWK,T00O01JW.FNTFS
    /    FO19,253A0N,27,0CI0FRFDDoc Number/Item :FS
    /    BY2,3.0FO64,290BCN,64,N,Y,NFRFD>:10.000.006FS
    /    CWL,T00S8_S2.FNTFS
    /    FO144,101A0N,21,0CI0FRFDabcdefghijklmnopqrstuvwxyzFS
    /    CWI,U00S8_S2.FNTFS
    /    FO154,360A0N,21,0CI0FRFD10.000.006FS
    /    CWI,U00S8_S2.FNTFS
    /    FO179,181A0N,21,0CI0FRFDasdf123456FS
    /    CWI,U00S8_S2.FNTFS
    /    FO230,137A0N,21,0CI0FRFD01234FS
    /    CWI,U00S8_S2.FNTFS
    /    FO220,63A0N,21,0CI0FRFD10.000.006FS
    /    CWI,U00S8_S2.FNTFS
    /    FO200,219A0N,21,0CI0FRFDM1FS
    /    CWI,U00S8_S2.FNTFS
    /    FO222,258A0N,21,0CI0FRFD5000000011FS
    /    ^PQ1
    /    ^XZ
    i need clarification on following items.
    1) Weather this zpl code i need to write in MM07ET object.? or in layoutset ZRM07ETIKETT
    2) ABOVE CODE HAS BEEN CREATED BY BARONE.(OTHER WISE I CAN ALSO WRITE MY OWN ZPL LANGUAGE)
    3)HOW TO SEND SEND SAME CODE IN TO PRINTER MEMOREY.(IF IT IS .ITF HOW TO SEND IT THROUGH SAPSCRIPT.)
    (PLS ANSWER ANY ONE AS EARLY AS POSSIBLE).

    Typically I've put the code into the MM07ET object, leaving the layout set as simple as possible.
    The question I pose is how do you transport MM07ET? I have done it in the past in older versions, but it seems my notes are not valid anymore? I know you can upload and download MM07ET, but a transport is preferable.
    I used to manually assign an object to the transport:
    R3TR TEXT MM07ET,MM07ET_ETIKETT,7001,E
    Any ideas?
    Regards,
    Louise Langley

  • Lables in SAP Script

    Hi,
      Is there a way we can find out where the labels are printed from?
    Regards,
    BS.

    Total Questions:  42 (41 unresolved) 
    This query is very much similar to the previous one.
    I will suggest, first be clear with your requirement and then search for it, if you dont get the reply then post it.

  • Problem in pinting sap script

    what is this syntex in sap script plz explain BOX XPOS '0'CM YPOS '0'CM WIDTH '2'CM HEIGHT '3.5'CM FRAME 10 TW.   what is 'frame 10 tw' is here?

    hi,
    the syntax implies,
    BOX
    this draws a box at the specified  position with the specified size.
    xpos ypos upper---upper left corner of the box
    width Width of the box.
    height: Height of the box.
    frame: Thickness of frame around the box. Default: 0 (no frame).
    intensity : grayscale value of box contents as % .
    TW (twip)  · PT (point)    · IN (inch)    · MM (millimeter)   · CM (centimeter)   · LN (line)   · CH (character).
    tw is an unit of measurement
    BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    Regards
    Jayapriya

  • How to debugg particular statement in sap script

    hi friends,
    i want to know How to debugg particular statement in sap script.
    plz reply.
    thanks in advance,
    regards
    bhaskar

    hi
      execute rstxdbug to activate script debugger...once the driver program reaches open_form, a popup box will come where u can mention the name of a command, call functinon, text element, etc to place a break point...once it gets into the debugging mode, double click on any line to set a break point, after that pressing f8 will get you to that line
    if helpful, reward
    Sathish. R

  • SAP Script Events

    what are the main sap script events and their functionality and usage?

    Hi Sharad,
    if you are talking about Function modules
    then first OPEN_FORM "used to open the form
               WRITE_FORM "used to write the content to form
               CLOSE_FORM "used to close the form which is opened.
               START_FORM "used to start a form
                          "you can call different layout
               END_FORM   "used to end the form which was started
               CONTROL_FORM "using this you can call control commands
    regards
    vijay

  • What is commitment item in sap ps, why do we use it , plz explain...thankx in advance

    what is commitment item in sap ps, why do we use it , plz explain...thankx in advance

    Hi
    Commitment item is a term used in FM module.
    It is by the way of Commitment item cost is posted and budget check is occurred in FM (Fund centers)
    Google it to understand it in detail.
    Regards
    Saurabh

  • What is  Sap Scripts for purchase order

    hai,
    what is the sap script or smart form for purchase order,
    and how to modify the existing standerd one.
    explain me in step by step.

    hi
    Please ask question on sapscript in sapscript forum.
    use sap script form  medruck for PO
    SmartForm /BPR3PF/MMPO_L is the standard delivered Purchase Order in 4.6c
    Transaction code m/34 allows you to associate your 'Y' copy of the standad PO to your included company specific PO requirements such as company log graphic and other particulars.
    Go to transaction OMFE. Tell me what you see there for the output type you are interested in. Let me take the standard output type NEU. The entry looks something like this.
    NEU Purchase order 1 SAPFM06P ENTRY_NEU MEDRUCK.
    The first one is your output type, next is its description, next is the medium, then the program, routine, and the form name.
    You already copied the layout MEDRUCK to ZMEDRUCK. Now copy SAPFM06P to ZZSAPFM06P. Now ENTRY_NEU routine is in the include FM06PE02. You need to make your changes here to accommodate for the new field. So copy this include to ZZFM06PE02 and make your changes. Also, in ZZSAPFM06P, change the line where it says INCLUDE FM06PE02 to INCLUDE ZZFM06PE02.
    Now in this routine ENTRY_NEU, there is a function module call ME_READ_PO_FOR_PRINTING which reads in the PO data from the tables. We need to copy this function module as well as this is where you will do your extra selections for the new fields. You will do the same with the other function call ME_PRINT_PO, if you need to change anything on the print.
    after this to define output type...
    NACE
    You can track the form and the print program used for that form
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
    Condition records in NACE?
    EX--in simple terms..take a transaction say ME21N ( Purchase Order ), u can see a Print icon there. now when u click on this icon, it has to print the PO document. Now how does it do that? when u click Print, the control gets transffered to a print program, now which program gets triggered is decided by what program name u specify in NACE.
    So in NACE>EF>Output Type>NEU>processing routine--> u can see some standard program already configured( maybe SAPFM06P n form MEDRUCK )..these are the programs n sapscript that gets executed wen u say "PRINT" in the transactrion...so u can customise the print program for customer changes over here by copying the standard program n form into a Z/Y one and replacing the program names in NACE.
    Yogesh N
    Edited by: Yogesh N on Aug 20, 2008 3:19 AM

  • What is activity in SAP CRM  with examples plz?

    Dear All
       What is activity in SAP CRM  with examples plz?
    Thanks
    CRM Newbee

    Activities are explained in CR010 & CR300. It is a transaction type used to record sales activities e.g. telephone call, email or customer visit or a follow up call, request to fill up a questionnaire or request to set the status to complete etc. in customer/partner engagement lifecycle. This has mainly information like: Activity type partner, texts & dates. However it is an order document like opportunity, sales order etc. & extra information can be added by including customer set types like we do in opportunity, quotation, sales order, conttract etc.
    Activities are a central part of SAP CRM & used across application e.g. Interaction Center, Sales, Marketing etc.
    I hope this should be sufficient & helpful.
    If you need to understand more about basic concept of Activities please see the dropdown list for Activity types..this will give you a good idea as to what are the kinds of business transactions which can be activities.
    Regarding Quotation thing...Quotation is not an activity but 'Create Quotation' or 'Create Quotation as follow up to a lead or opportunity' can be an activity.
    Thanks,
    Vivek

  • What is the diff b/w Sap Scripts and Smart Forms

    Hi,
          Whats the diff b/w SAP Scripts and Smart Forms..
             I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st  and SIMILARLY FOR SMARTFORMS WHETHER FM'S  R FORMS.
    Thanks & Regards,
    Gopi.

    Hi
    Difference with SMARTFORMS vs. SapScript(SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated.
    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    check out this link:
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Reward points if helpful.
    Regards,
    Swathi.

  • What are the sap scripts

    plz tell me any tutorials abt the sap scripts

    HI,
    Please follow the link given below to explore SAPSCRIPT.
    SAPSCRIPT
    SAPSCRIPT 2
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://www.sap-img.com/sapscripts.htm
    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
    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
    Other Links
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    http://www.allsaplinks.com/dialog_programming.html
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://www.geocities.com/ZSAPcHAT
    http://www.sappoint.com/abap/ssintro.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/sscript.pdf
    http://www.sappoint.com/abap/lsetssap.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    http://www.sappoint.com/abap/sscrtpex1.pdf
    http://www.sap-img.com/sapscripts.htm
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    Regards,
    Padmam.

  • What is the tcode to created standard text to include in sap script

    HI
    what is the tcode to created standard text
    i want to include  standary text in sap script
    regads
    Arora

    Hi ,
    If you want to upload a logo , then u can use program RSTXLDMC if it is in .TIFF format or if you want to upload a grphic which is in .bmp then u can use SE78 or directly u can use SO10 also.
    SAPScript Transaction codes
    SE71 - Form painter
    SE72 - Style maintenance
    SE78 - SapScript Graphics Management
    SO10 - Create standard text module
    Reading Text in SAPScripts
    If you only need to output the text, you don't need to used READ_TEXT like in an ABAP program,
    just use the INCLUDE command in SAPScript.
    It will read the text and output it to your form.
    The Syntax is like this:
    /: INCLUDE &T166K-TXNAM& OBJECT &T166K-TDOBJECT& ID &T166K-TDID& LANGUAGE &EKKO-SPRAS&
    Check the following link:
    http://sap-img.com/sapscripts.htm
    Regards,
    Raghav

  • What are the different functions used in sap script?

    Hi,
    What are the different functions used in sap script? What are the parameters used in each Function?
    Regards,
    Mahesh

    he print program is used to print forms. The program retieves the necesary data from datbase tables, defines the order of in which text elements are printed, chooses a form for printing and selects an output device and print options.
    Function modules in a printprogram:
    When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine forms into a single spool request use START_FORM and END_FORM.
    To print textelements in a form use WRITE_FORM. The order in which the textelements are printed, is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you can also use the WRITE_FORM_LINES function module.
    To transfer control command to a form use CONTROL_FORM.
    Structure of a print program
    Read data
    Tables: xxx.
    SELECT *
    FROM xxx.
    Open form printing - Must be called before working with any of the other form function modules.
    Must be ended with function module CLOSE FORM
    call function 'OPEN_FORM'.....
    To begin several indentical forms containing different data within a single spool request, begin each form using START_FORM, and end it using END_FORM
    call funtion 'START_FORM'.....
    Write text elements to a window of the form
    call function 'WRITE_FORM'.....
    Ends spool request started with START_FORM
    call funtion 'END_FORM'.....
    Closes form printing
    call function 'CLOSE_FORM'...
    OPEN_FORM function
    Syntax:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
      FORM                              = ' '
      LANGUAGE                          = SY-LANGU
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      OTHERS                            = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    FORM      Name of the form
    DEVICE      
    PRINTER : Print output using spool
    TELEFAX: Fax output
    SCREEN: Output to screen
    OPTIONS      Used to control attrubutes for printing or faxing (Number of copies, immediate output....
    The input for the parameter is structure ITCPO.
    CLOSE_FORM function
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      OTHERS                         = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Paramerters:
    RESULT      Returns status information and print/fax parameters after the form has been printed. RESULT is of structure ITCPP.
    WRITE_FORM function
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      ELEMENT                        = ' '
      FUNCTION                       = 'SET'
      TYPE                           = 'BODY'
      WINDOW                         = 'MAIN'
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
      ELEMENT                        = 1
      FUNCTION                       = 2
      TYPE                           = 3
      UNOPENED                       = 4
      UNSTARTED                      = 5
      WINDOW                         = 6
      BAD_PAGEFORMAT_FOR_PRINT       = 7
      SPOOL_ERROR                    = 8
      OTHERS                         = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    ELEMENT      Specifies which textelement is printed
    WINDOW      Specifies which window is printed
    TYPE      Specifies the output area of the main window. This can be:
    TOP - Used for headers
    BODY
    BOTTOM - Used for footers
    FUNCTION      Specifies whether text is to be appended, replaced or added
    Example of how to use the WRITE_FORM function module together with a script.
    Form layout of the MAIN window
    /E INTRODUCTION
    Dear Customer
    /E ITEM_HEADER
    IH Carrier, Departure
    /E ITEM_LINE
    IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
    /E CLOSING_REMARK
    The print program
    Writing INTRODUCTION
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'INTRODUCTION'
              FUNCTION                 = 'SET'
              TYPE                     = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Writing ITEM_HEADER
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'SET'
              TYPE                     = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Set ITEM_HEADER into TOP area of main window for subsequent pages
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'SET'
              TYPE                     = 'TOP'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Write ITEM_LINE
    LOOP AT .....
       CALL FUNCTION 'WRITE_FORM'
            EXPORTING
                 ELEMENT               = 'ITEM_LINE'
                 FUNCTION              = 'SET'
                 TYPE                  = 'BODY'
                 WINDOW                = 'MAIN'
           EXCEPTIONS
                OTHERS                 = 8.
    ENDLOOP.
    Delete ITEM_HEADER from TOP area of main window
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'DELETE'
              TYPE                     = 'TOP'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                    = 8
    Print CLOSING_REMARK
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'CLOSING_REMARK'
              FUNCTION                 = 'SET'
              TYPE                          = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                    = 8
    START_FORM function
    CALL FUNCTION 'START_FORM'
    EXPORTING
      ARCHIVE_INDEX          =
      FORM                   = ' '
      LANGUAGE               = ' '
      STARTPAGE              = ' '
      PROGRAM                = ' '
      MAIL_APPL_OBJECT       =
    IMPORTING
      LANGUAGE               =
    EXCEPTIONS
      FORM                   = 1
      FORMAT                 = 2
      UNENDED                = 3
      UNOPENED               = 4
      UNUSED                 = 5
      SPOOL_ERROR            = 6
      OTHERS                 = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    END_FORM function
    CALL FUNCTION 'END_FORM'
    IMPORTING
      RESULT                         =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SPOOL_ERROR                    = 3
      OTHERS                         = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONTROL_FORM function
    The CONTROL_FORM function module alows you to create SapScript control statements from within an APAB program.
    Syntax:
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        command         =
    EXCEPTIONS
      UNOPENED        = 1
      UNSTARTED       = 2
      OTHERS          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example:
    Protecting the text element ITEM_LINE
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        TEXELEMENT = 'ITEM_LINE'.
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'ENDPROTECT'.

Maybe you are looking for

  • My ipad 4 doesnt connect at my school and I need it to work there. what do I do?

    Hello My Ipad4 doesnt get connected at my school. What do I do? Thank you!

  • After updates solo button doesn't work with comp track, anyone have the same problem?

    Hello everyone, after upadtes solo button is not soloing a comp track, is there someone that knows to fix this bug? it's possible that now logic consider a comp track as muted, and then doesn't solo the comp track ? thanks everyone

  • RO has been saved (any delivery can be created)

    Hi! When saving a RO the system display the following message: RO has been saved (any delivery can be created) Message No. V1260, but, when you check the follow-on documents the delivery is there!! I'm not quite sure if it's a problem that has to do

  • DMM Version Mismatch Error

    I am running a TestStand sequence which makes a call to niDMM_init. Most times this works correctly, but intermittently I get error -1074117853 (every week or so, the function is may be called 50 times between failures) "Error, Version mismatch error

  • Can't remove AutoFill data

    There are some user names that are stored in Safari's AutoFill that I want to remove, but I can't. When I highlight them and click "Remove," nothing at all happens. There are others, however, that I am able to remove. Any idea why some are stuck? Eve