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.

Similar Messages

  • WHAT ARE THE FORMS (SCRIPTS) WHICH ARE NOT PROVIDED BY STANDARD SAP?

    WHAT ARE THE FORMS (SCRIPTS) WHICH ARE NOT PROVIDED BY STANDARD SAP?

    Hi Pravin
    For a beginner in CRM - Sales would be a right choice to understand how CRM behaves when integrated with backend R/3.
    Still as far as CRM goes, most of the components are not exposed to their fullest potential and that is why its not outshining the competitors in market.

  • What are the SAP inbox tables.

    Hi Team
    i want to know what are the SAP inbox tables.
    if i have click on SAP inbox for perticular user, retrived 37000 entries and give short dump "Time Out" . i want to know from which table retrived the records and display into the SAP inbox(SBWP).
    Thanks in advance.
    Puneet.

    Look at SAPoffice tables and Business Workplace tables : SOOD, SOOS, SOC3, SOFFCONT1, BCST_SR, BCST_CAM
    Regards,
    Raymond

  • What are the SAP Business one requirements for intercompany intergration

    Hi. what are the SAP Business one requirements for intercompany intergration

    Hi Wendy,
    Intercompany 1.1 is supported on SAP Business One 8.82 and Intercompany 2.0 is supported on SAP Business One 9.0.
    So depending on Solution version your are looking for, refer to Prerequisites section in the respective version's Administrator Guide.
    For further information on Intercompany Integration Solution for SAP Business one, you may refer the following:
    https://websmp210.sap-ag.de/partneredge/b1/intercompany  
    Regards,
    Agneesh Jain
    SAP Intercompany Team

  • What are the following script doing?

    What are the following script doing? What does symbol *<* stand for?
    protected Map<Member, List<String>> divideWork(Set members, List<String>
    fileNames)
    Thank you

    su_penguin wrote:
    Side note: http://en.wikipedia.org/wiki/Operator_overloading
    Extra credit: What trick does Java's syntax use to allow Generics to compile with or without whitespace between the angle brackets? Ex: Map< Member, List< String > >
    Why doesn't it work in C++?Does this have something to do with the comment "Note that it is not an LL(1) grammar"? [http://java.sun.com/docs/books/jls/third_edition/html/syntax.html]

  • What are the sap basis daily activities  in support project

    Hi Friends, recently i am involved in Support project, could you please tell me what are the daily activities to follow in support project
    thanks&regards
    suresh

    Hi Suresh,
    Few of daily activities in which you as a Basis Consultant should involve are as below:
    - Day to day system administrative issues raised by users e.g. User ID locked or new SAP ID creations etc.
    - Daily watch on background batch jobs. If any job failed due to some reason, work on it to avoid such failure in future with the help of function consultant
    - Watch on system performance
    - Authorizations & Roles definitions & assignements depending upon requirement.
    - System Backup depending upon business requirement
    - Printer setup in SAP
    - Watch on Print spool to avoid failures in SAP doccuments printing
    - Watch on interfaces (IDoc/EDI etc), if any, with external system
    Also talk to your earlier or senior Basis consultant to know more.
    Hope it will help you.
    Regards,
    Anup

  • What are the SAP backup for SID (SAP DB), Master & MSDB?

    Dear Experts,
    I'm trying to do backup via tcode DB13 for full backup.  Somehow there are 3 database option for me to choose, which are Master, MSDB and SID (SAP DB).
    I just wonder what are they.
    My concern is which of the above options consists all the customizing data in IMG.
    Please advise.
    regards,
    Abraham

    Hi Abraham,
    Data is in SID (sap db) but if possible you choose all three in one go. Otherwise take backup of SID
    Read this one if possible,
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDBMSSDBA/BCDBMSSDBA.pdf
    Thanks

  • What are the SAP standard programs?

    Hi PM Guys,
    I have a question that is as below:-
    We have the following Master Data:
    1) Functional Location
    2) Equipment
    3) Equipment BOM
    4) Counter
    5) Catalog Profiles
    6) Task List
    a) General Task List
    b) Equipment Task List
    7) Maintenance Plans
    a) Time Based
    b) Performance Based
    Can you tell me the SAP standard programs available for the above master data which can be used for data migration of the above master data from the flat files into SAP system.
    Thanks in Advance,
    Vijaya Krishna

    HI
    you can find the standard program while executing the T code LSMW itself.
    type LSMW ,specify the description in the next screen select the <b>Standard batch or direct input</b> under the heading you can find the in the field <b>object</b> use F4 to find all the standard programs in SAP
    0400   Equipment         
    0410   Message (IH)      
    0420   Confirmation (IH) 
    0425   Measuring point   
    0430   Measurement Documen
    0440   Functional location
    0450   Object link       
    0460   Maintenance plan  
    0470   Equipment task list
    0480   FnctnlLoc.TaskList
    0490   Gen.task list     
    regards
    thyagarjan

  • What are the SAP api calls...

    Hi, I have a question about the SAP Portal framework. For example, if I created an edit page for editing portlets, is there an api call that I make to tell SAP portal that I am on edit mode so that portal will subsequently save the changes to perhaps an xml file? Maybe there is a edit_mode variable ?
    Any suggestions or sample code is greatly appreciated!
    Thanks so much!
    Baggett.

    Hi Detlev, if you have some time, if possible, can you take a look at EP Content Development question: <b>"Where is admin config page ? ..."</b>  Any help is very appreciated!
    Thanks so much!
    Baggett

  • What are the SAP Installation  Rewquirements

    I want to buy this laptop
    dell inspiron14r
    Intel® Coreu2122 i3-350M Processor (2.26Ghz, 4Threads, 3M cache)
    Genuine Windows® 7 Home Basic 64 bit (English)
    2GB (1 X 2 GB) 1 DIMM DDR3 1333Mhz
    320GB 5400RPM Hard Drive
    14.0 Widescreen HD WLED Glossy Display with TrueLifeu2122 (1366x768
    Intel® HD Graphics (India)
    DVD+/-RW Optical Drive
    SAP can be install in that laptop?

    Hello,
    I believe you won't have problems if you are installing a SAP system just for test purposes. You might experience performance issues as it has only 2GB.
    Also definitely you will have to change the OS, to a Windows Server (be aware that 2008 R2 is not supported yet) or another
    OS that you prefer. Please check the supported OS / DB platforms at service.sap.com/pam
    Then also follow the specific installation guide for the system that you are installing (e.g. NW7.0 EhP1 SR1 / ERP 6.0 EhP4, etc)
    you can find the guides at service.sap.com/instguides as well.
    Regards,
    Daniel

  • What are the sap basis administrator tasks for SAP CRM 7.0

    Hello Guys,
    I am an SAP BASIS administrator. I have never worked on any CRM system.
    Now a days people in market talk much about wheather you have worked on CRM.
    I have  no idea how CRM basis administration is different from the basis administartion of other products based on netweaver.
    I would appreciate if someone throw some light on "SAP basis administration of CRM system".
    Thanks in Advance.

    Hi,
    Some excellent documentations are available in:- https://websmp205.sap-ag.de/crm-inst (search for the operation guide pdfs, if required you can also check inst/upg docs). User your S user id/password to login.
    From my experience, in practical field most of the issues you will face with qRFC/BDoc message flow handling and JAVA stack administration. Stress on these two areas and go through the guides, CRM admin won't be a major issue.
    Once you go through the basic operation guides and start working on the system then you will come to know there exists many CRM specific trx(SMW02,SMWP..etc) codes and CRM related tables(CRMPAROLTP,CRMRFCPAR.. etc),bgd jobs/reports - which you have to take care at times.
    Thanks

  • What are the SAP B1 limits

    I am looking for any official SAP information on the limitations of transaction volume supported by B1. I have a client that will be recieving 10,000 web orders per day, of one or two lines on each order. B1 can likely handle taking these orders through a third party system like Ibolt. But the question is about SAP performance when we are adding 10,000 BP's per day, generating 10k deliveries and invoices per day. Will B1 slow down too much, even if we put strong hardware in place. The tables will grow rapidly and users searching for BP's or marketing douments and running reports will not wait for the system when they search. Has SAP released any benchmarks about performance and limits? Thanks

    Hi Peter,
    SAP B1 is a solution for small and medium companies. it would be better to use SAP A1 if you want to implement in large companies.
    Rgds,
    JimM

  • What are the must have SAP componets req to publish MDM 7.1.03.86 on web

    Can anyone explain to me what are the SAP components required for MDM 7.1.03.86 allowing me create a webpage front end to MDM 7.1 and create and publish my own screens?
    Like many I am very new to the world of SAP.
    There are many others in my own company with a vast knowledge of what are all the pieces needed to run almost anything
    In SAP. One of the exceptions to this rule is SAP Master Data Management (MDM).
    We run:
    - SAP MDM version 7.1.03.86
    - A Windows 2003 server
    - Oracle 10.X.
    - 7.1 Import Manager
    - 7.1 Import Server
    - 7.1 Data Manager
    - 7.1 Syndication Server
    - I see reference to the 7.1 MDM Publishers but I donu2019t see the API in the way I have software loaded right now.
    I would like to get to the point where I can create a web portal front end to the MDM product.
    My problem is I canu2019t get anyone to give me a an answer as to what are the other pieced of software I would need to get
    In an end to end solution. Starting with barebones and working up to the works!
    Here is what I would like to be able to do:
    - Publish in a SAP Portal screens to the web. (SAP NetWeaver CE Portal, PI Portal ????)
    - Write code in Java, SQL, VB and more, save and test them. (SAP NetWeaver WebDynpro for Java ???)
    - create a web screen in the portal and publish to a Portal or URL. (SDK kit or Developer's kit Like: SAP NetWeaver
    Developer Studio ???)
    - It looks to me like the "SAP NetWeaver BPM" product is "Nice" to have but not required.
    This is soo confusing, PLEASE help!
    Thank You
    Steve T

    Hi Steve
    Adding to Anu's response:
    The prebuilt packages (worksets) cannot be used on a CE portal - only on a NW Enterprise Portal.
    iView templates are also provided which allows you to put together your own pages and worksets. Again, these require the Enterprise Portal.
    You don't have to use an SAP portal. You can use any webserver combined with Java code
    (that makes use of the MDM Java API) to access the data (check out http://catalog.bd.com/ for a sample of this). Of course, this requires a lot more effort on your side.
    "SAP NetWeaver BPM" amounts to NetWeaver CE. It is required if you want to make use of the WebDynpro components in new MDM releases.
    Since you mentioned the MDM Publisher, if you want to simply publish "read only" data to a web front-end, you may be able to make use of the MDM Publisher together with Adboe InDesign.
    Java code can make use of the MDM Java API. Windows development tools can make use of the MDM COM and MDM .NET APIs.
    HTH,
    Mark

  • What are the logical database source (SQVI) should i use for quick viewer

    Dear expert,
    Would like to seek for your help, how to use (SQVI) quick viewer/SAP query to generate the listing of   and can I use SQVI -quick viewer and select the data source as logical database source to generate in order to generate the listing of GL account number,GL account descrition , tax category,posting without tax allowed column in the query by company?
    Between, what are the data source should I use for logical database to generate the query with listing of GL account number,GL account descrition , tax category,posting without tax allowed column in the query by company?
    Please help.
    Many Thanks.
    Regards,
    Karen

    Hi,
    Thank you for the prompt reply, what I would like the query to generate is the master data GL listing for GL account,GL description,Tax category, posting without tax allowed column where i use BRF as the data source for logical database to generate the quick viewver but the BRF data source do not have the GL description.
    How I can join table/join query or what are the data source should i use so that i can able to generate the query with GL master data listing by company code by display GL account,GL description,Tax category, posting without tax allowed?
    Between,do you have any reference/link/document on the how to use the SQV1?
    Also, what the difference between SQV1 and SQ01 ?
    And also what are the sap query,inforset query,quick viewer mean for and what are the difference between them also when should i use sap query,inforset query,quick viewer  to generate the query?
    Please help.
    Many thanks.
    KH

  • 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