How do i create a header template for ABAP programs?

Hi all.
Need a little bit of help here. When you create a new program you get a template with space for comments at the top of the program and basic stuff. If I want to change this template to add areas that we want to have comments on for every program we make at work. How do I do that?
Instead of :
I want to have in a way similar to this:
*     Author:                         *
*     Function:                    *
And so on…
I want the words to be there when our developers creates the program.
How can I do that?
BR
Kalle

After I create a new report program, I delete everything but the REPORT line.  I then put this code in for my skeleton.
* Created By:            Walter Industries (Paul Chapman)
* Created On:            02/29/2008
* Tran Code:             ZLMxx
* Program Name:          YPTC_REPORT_SKELETON        " replace New Progam Name herer
* Program Descr:         Configurable Leads Data Query
*                         Modification Log
* Programmer   :Issue:   Date   : Chg Req. : Description
* Paul Chapman :00000:02/29/2008:DEVK000000:New Program
REPORT yptc_report_skeleton MESSAGE-ID zleads_msg.      " replace New Progam Name herer
*_________________________________________________ Tables
TABLES: zpca, cepc, zlmlead.
*_________________________________________________ Constants
CONSTANTS:
  line_length      TYPE i VALUE 100,
  c_tab            TYPE x VALUE 9,                          " x'09'
  c_crlf           TYPE x VALUE 3338.  " x'ODOA'
*_________________________________________________ Types
TYPES: BEGIN OF scr_text_line,
         line(line_length) TYPE c,
       END OF scr_text_line.
*_________________________________________________ DATA
DATA:
  curr_screen_tab(4) TYPE n.
*_________________________________________________ ALV Area
*_________________________________________________ Ranges
RANGES:
  r_branch       FOR zpca-branch.
*_________________________________________________ Selection Screen
SELECTION-SCREEN:
  BEGIN OF TABBED BLOCK tabs FOR 36 LINES,
    TAB (20) tab1   USER-COMMAND push1 DEFAULT SCREEN 1010,
    TAB (20) tab2   USER-COMMAND push2 DEFAULT SCREEN 1020,
  END OF BLOCK tabs.
* Tab1 Options            S E L E C T I O N    S C R E E N S    Tab 01 *
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:
   sdiv      FOR cepc-prctr MATCHCODE OBJECT zdivjwh,
   ssbrch    FOR zlmlead-branch.
SELECTION-SCREEN: END OF BLOCK blk1.
SELECTION-SCREEN: BEGIN OF BLOCK bl10 WITH FRAME TITLE text-010.
PARAMETERS:
  cparm1   AS CHECKBOX USER-COMMAND sel,
  cparm2   AS CHECKBOX USER-COMMAND sel,
  cparm3   AS CHECKBOX USER-COMMAND sel,
  cparm4   AS CHECKBOX USER-COMMAND sel,
  cparm5   AS CHECKBOX USER-COMMAND sel.
SELECTION-SCREEN: END OF BLOCK bl10.
SELECTION-SCREEN END OF SCREEN 1010.
* Tab 2 Options            S E L E C T I O N    S C R E E N S   Tab 02 *
SELECTION-SCREEN BEGIN OF SCREEN 1020 AS SUBSCREEN.
SELECTION-SCREEN: BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
SELECT-OPTIONS:
   sctype      FOR zlmlead-ctype,
   sprfcnt     FOR zlmlead-prefcont.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(25)   text-201.
SELECTION-SCREEN POSITION 30.
PARAMETERS:  rb_opt1 RADIOBUTTON GROUP gr20.
SELECTION-SCREEN COMMENT 34(03)  text-991. " Yes
SELECTION-SCREEN POSITION 40.
PARAMETERS:  rb_opt2 RADIOBUTTON GROUP gr20.
SELECTION-SCREEN COMMENT 44(03)  text-992. " No
SELECTION-SCREEN POSITION 50.
PARAMETERS:  rb_opt3 RADIOBUTTON GROUP gr20.
SELECTION-SCREEN COMMENT 54(06)  text-993. " Either
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN: END OF BLOCK blk2.
SELECTION-SCREEN: BEGIN OF BLOCK bl20 WITH FRAME TITLE text-020.
PARAMETERS:
  cb_opt1   AS CHECKBOX,
  cb_opt2   AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN: END OF BLOCK bl20.
SELECTION-SCREEN END OF SCREEN 1020.
*____________________________________________ Screen Actions
AT SELECTION-SCREEN OUTPUT.
  PERFORM what_tab_am_i_on.
  CASE curr_screen_tab.
    WHEN '1010'.                                            " Tab 1
    WHEN '1020'.                                            " Tab 2
    WHEN OTHERS.
  ENDCASE.
  PERFORM tab_hide_unhide.
*___________________________________________  Initialization
INITIALIZATION.
* Tab Text
  tab1  = 'Tab 1'.
  tab2  = 'Tab 2'.
*_________________________________________________ Load of Program
LOAD-OF-PROGRAM.
*_________________________________________________ Start of Selection
START-OF-SELECTION.
  PERFORM set_up_branch_range.
*_________________________________________________ End of Selection
END-OF-SELECTION.
*&      Form  what_tab_am_i_on
FORM what_tab_am_i_on.
  LOOP AT SCREEN.
    IF     screen-name CS 'BLOCK_1010'.
      curr_screen_tab = '1010'.
    ELSEIF screen-name CS 'BLOCK_1020'.
      curr_screen_tab = '1020'.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " what_tab_am_i_on
*&      Form  tab_hide_unhide
FORM tab_hide_unhide.
  LOOP AT SCREEN.
    CHECK screen-group3 = 'TAB'.
    CASE screen-name.
      WHEN 'TAB1'.
*        IF
*          screen-active = 1.
*          screen-required = 1.
*          screen-input = 1.
*          screen-output = 1.
*          screen-intensified = 1.
*          screen-invisible = 1.
*        ELSE.
*          screen-active = 0.
*          screen-required = 0.
*          screen-input = 0.
*          screen-output = 0.
*          screen-intensified = 0.
*          screen-invisible = 0.
*        ENDIF.
      WHEN 'TAB2'.
*        IF
*          screen-active = 1.
*        ELSE.
*          screen-active = 0.
*        ENDIF.
    ENDCASE.
    MODIFY SCREEN.
  ENDLOOP.
ENDFORM.                    " tab_hide_unhide
*&      Form  set_up_branch_range
FORM set_up_branch_range.
  r_branch[]  = ssbrch[].
  CHECK NOT sdiv  IS INITIAL.
  r_branch     = 'IEQ'.
  SELECT branch INTO r_branch-low
    FROM zpca
    WHERE region = 'JWHCO'
      AND division IN sdiv.
    APPEND r_branch.
  ENDSELECT.
  SORT r_branch.
  DELETE ADJACENT DUPLICATES FROM r_branch.
ENDFORM.                    " set_up_branch_range

Similar Messages

  • How Do I Create a New Template for iBooks Author?

    Apple's provided templates are way too narrow for some of the ideas I want to implement. I do not see any real method for creating a template from scratch. I stripped one of the available templates down to nothing and rebuilt some of the pages and then selected Save As Template... but iBooks Author keeps the original template as the content instead of allowing me to use my own created Chapter, Section, and Pages with the Add Pages.. Button.
    How to you create a new template from scratch? I think it is absurd if you can only create a new template from one of the 6 predefined templates.

    Be careful on unlocking and deleting stuff, cause this very easily can destroy the layout and your current arrangement
    About dimensions, If i am not mistaken, i read on another thread that this cannot be happen.

  • Template for ABAP programs

    Hi all.
    I've implemnted the following soultion for our SAP system.
    Go to TCODE CMOD,
    Create a new Project like ZSE38 as follows.
    Check the 'Enhancements Assignments' Radio button, click create and add SEUED001 ( for Editor )
    now SAVE, click on Components and select the User Exit that you want to use.
    EXIT_SAPLS38E_001 <-- this is a function module.
    inside this FM there is an INCLUDE program ZXSEUU08.
    double click on it, when a warning message appears in the status bar below press ENTER
    to create the program.
    write the code you want inside this program. or add the following code.
    code
    DATA: it_code(256) TYPE c OCCURS 0.
    DATA: wa_code like line of it_code.
    DATA: it_new_code(256) TYPE c OCCURS 0.
    DATA: lv_linecount TYPE i.
    IF OPERATION = 'EDIT'.
    read report program into it_code.
    DESCRIBE TABLE it_code LINES lv_linecount.
    IF lv_linecount LE 10.
    read table it_code into wa_code index 5.
    if wa_code(9) '*& Author'.
    read table it_code into wa_code index 1.
    append wa_code to it_new_code.
    read table it_code into wa_code index 2.
    append wa_code to it_new_code.
    read table it_code into wa_code index 3.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*&---------------------------------------------------------------------*'.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*& Author :'.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*& Date :' .
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*& Purpose :'.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*&---------------------------------------------------------------------*'.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*& Date Changed by Tag Description'.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*&'.
    append wa_code to it_new_code.
    clear wa_code.
    wa_code = '*&---------------------------------------------------------------------*'.
    append wa_code to it_new_code.
    data: lv_firstline type i.
    loop at it_code into wa_code from 4 to 8.
    if wa_code = ''.
    lv_firstline = sy-tabix.
    endif.
    endloop.
    loop at it_code into wa_code from lv_firstline.
    append wa_code to it_new_code.
    endloop.
    insert report program from it_new_code.
    ENDIF.
    ENDIF.
    ENDIF.
    [/code]
    After this, activate the include program.
    then go back to CMOD transaction and activate the PROJECT that you've just created.
    and you're ready to go........
    Everything is working fine except that i do not want this template to be implemented when I do an include.
    What changes do i need to do?
    BR
    Andreas

    Hello Andreas
    I the same include that you are creating your template(ZXSEUU08) check to see what type of program you are working with.
    * Check to make sure program is type 1 before inserting template.
    select single * from trdir where name = program.
    check: sy-subrc = 0.
    if trdir-subc = '1'
    ... some code here - only executed if program is type 1 (executeable)....
    endif.
    Of course you can excldue incldudes by checking for subc = 'I'.
    Regards
    Greg Kern

  • Creating a HTML Template for Professional Web Transaction

    Hi ,
    I am  trying to create a template for a transaction. While creating the internet service.. i select the initial screen for the template to be generated. A template is generated. But it gives error when i try to use it.
    How do i create a HTML template for transaction , for which there are no default template available when creating a internet service.
    Please help.
    Thanks and Regards
    Bharathwaj

    Hi ,
    I am  trying to create a template for a transaction. While creating the internet service.. i select the initial screen for the template to be generated. A template is generated. But it gives error when i try to use it.
    How do i create a HTML template for transaction , for which there are no default template available when creating a internet service.
    Please help.
    Thanks and Regards
    Bharathwaj

  • Need document on how to create write back template for 11g

    Can anybody provide documentation on how to create write back template for OBIEE 11g?
    Thanks

    Can anybody provide documentation on how to create write back template for OBIEE 11g?Yes! Oracle does. How about you start by reading it? I will give a hint, it's on the System's Administration guide.

  • How to create a new template for pages in iPad?

    How to create a new template for pages in iPad?

    In spite of the latest updates Pages for iPad does not support:
    1) User templates
    2) Headers
    3) Footers
    4) Page numbers
    and it is not compatible with Pages for OSX, a document cannot be edited alternatively on Mac and iPad without destroying headers and footers.
    - The Word export is far from perfect
    - Does not really support Page Layout mode (you cannot duplicate a page at least)
    - Does not have a multi-page overview
    - The spelling support of iOS and OSX is at the level of Apple Maps except 4-5 languages.
    - It takes a long time until it starts
    INSTEAD, according to the latest updates:
    - It can do change tracking
    - Lock and unlock objects
    - Add reflections to shapes
    Dear Apple, please understand:
    - We like iPad and we wish to use it for real work.
    - We wish to have user templates, headers, footers and page numbers.
    - We do not expect all the features of Pages for OSX, but we do expect real compatibility.
    - We do not wish to switch back to Word for Windows unless you force us.
    Please try to concentrate on real development not on unimportant changes like in the latest dissapointing update.

  • How do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that,

    how do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that, then it needs to "fly-out-bottom" again, I can do that, but not on the same line of text...any ideas...

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some

    Hi
    As my topic says
    How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some custom presets?
    Assume you have Flash Builder 4.5, CS Extension builder 2.0, Xcode 4.5.1 running under MacOS 10.8.

    I understand why you need updated running headers in your book. To a sighted reader these serve as a guide to where you are and help you find things quickly.  In addition, if you are exporting your data to XML or HTML from the tagged PDF it would also be important to have these in the proper location. 
    But for accessibility purposes, it doesn't have to be there because the screen reader reads everything in linear order, line by line.  No one is looking at the page.  A user listening to the screen reader read the page is going to hear this heading, just before the actual word itself. So they will hear the first word on the page twice.  It's not the end of the world if it's there, but such headings are not necessary for accessibility unless they are not repetitive and contain information that is not otherwise available.
    So I would say, fine if you need them or want them there, it's just one word. 
    I think you should try exporting your book to PDF (or even just a chapter of the book) and look at the tags panel in Acrobat to see if you are getting the result you want.  I can't tell you exactly what you should do to get those results, you are using a plug-in I don't have. 
    I can tell you I didn't have to add the headers to any article at all, they just automatically export if the other articles in the file are added and you don't select the header style option "not for export as XML."
    You may not experience the same results with your plug-in, but I think it will probably work the same way. 
    Give it a try and best of luck.

  • How do we create and publish templates in SRM ?

    Good day guru's
    How do  we create and publish templates in SRM , for contracts management ?
    Your help will be appreciated

    Hi,
    What is your SRM version?
    There are 3 buttons (Create, Create template, Create from Template) in the Process Contract screen, bbp_ctr_main in SRM50 (SRM_SERVER 550).
    Regards,
    Masa

  • Creating a customized template for Content Presenter

    Hi people,
    I created a new template for content presenter, I created a jsff file and add a entry in
    <jdev_projects>\Application1\mds\oracle\webcenter\content\templates\registry\templates-registry.xml
    This is my entry:
    <view id="mycorp.content.templates.pressrelease.listitem">
    <name>
    Marketing Press Releases
    </name>
    <description>
    This is a view of Marketing Department Press Releases
    </description>
    <template-def>
    /oracle/webcenter/content/templates/template1.jsff
    </template-def>
    </view>
    But isn't working, I don't know where I need put my template1.jsff, I've tried in mds folder, in WebContent Folder, at same folder that templates-registry.xml but nothing works,
    Someone knows where I need put this file and how can I set <template-def>?
    Thks in advance

    Hi people,
    I have already the answer,
    In <template-def> if you use "/"(forward slash) so you're in root context app (http://<host>:<port>//<app>/you're here)
    Thks anyway,

  • How do i create a page template in order to spawn new pages?

    How do i create a page template in order to spawn new pages?

    Where did you find the link/interface that led you to ask your question here?
    You should find the forum for whatever product your question involves and post there.
    Here is a link to a page that has links to all Adobe forums...
    Forum links page:
    http://forums.adobe.com/index.jspa

  • How do you create a layout template in photoshop elements 8

    How do you create a layout template into photoshop elements 8

    You have to do it manually.
    Use the marquee tools to define the components of the template, then apply a stroke via the Edit menu. It's best to place the stroke on a separate layer, and position with the move tool.
    You may fine it helpful to have the grid open for orientation.

  • How do i create 2 parameter pages for 1 report?

    Hi,
    I want to make a purchase order report. first: i need a parameter page to ask how many items that you want to order. second, once user enters a number(let's say 5), i want to have anoter parameter page show 5 empty fields that user can enter 5 items' barcode#, once they entered barcodes, the report will show these 5 items info.
    my difficulty is how do i create 2 parameter page for 1 report?
    thank you

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • I have an I phone and my own account  and just purchased an ITouch for my daughter - how do i create a seperate account for her on my computer?

    I have an I phone and my own  I tunes account  and just purchased an ITouch for my daughter - how do i create a seperate account for her on my computer? I want to make sure that my apps do not sync on her I touch.

    Go into Setttings -> Messages and make sure your Caller ID setting for Messages is set properly.

  • HT204053 how do i create an apple id for my 12 yr old?

    how do i create an apple id for my 12 yr old?

    Welcome to the community.
    Unfortunately, you cannot do that. The first hurdle that you are going to face, is that mobile devices, by virtue of being prone to loss, will always require that a password is entered before a purchase of any kind is made.
    If your concern about the password, is related to your privacy in regard to your mail, contacts and calendar information rather than their acces to make purchases, then the best solution would be for you to use another Apple ID for iCloud.
    Apple have called the whole cloud thing iCloud, there are a number of features under the iCloud umbrella, some of which require their own login. iTunes is one of these, another is what Apple have unfortunately also called iCloud too.
    You can use the same Apple ID (account) to login to both iCloud and iTunes, but you don't need to and often users will login to each service using a different ID.
    The part that you need to remember is that the services available when you log into iCloud are completely different and unrelated to those when you log in to iTunes. Your iCloud login enables mail, contacts, calendars, find my phone, Back to My Mac, Documents & Data sharing and photostream, it does not affect any of your iTunes services.

Maybe you are looking for

  • Aging Report for Inventory

    Dear Brother, Is there any standard report for aging purpose for MM inventory. Regards

  • Slow shutdown, restart, logout on MBP retina 10.9.3

    I have been unable to shutdown or restart my MBP mid 2012 retina (2.6 GHz Intel Core i70, other than by holding down the power button.  I've tried, I think, almost all suggestions on this forum (safe mode, restore, repair permissions reset PVRAM. etc

  • Is there any way to...

    I have a Macbook Pro with a busted display. The HD has also been wiped. I'm waiting for a replacement display, and in the meantime am wondering if there is any way to get it hooked up to an external display using the DVI to Video adapter. I'm not sur

  • From Sourcing Cockpit all PO should go in HELD status

    Hi all, When I am specifying the missing data in SC from Sourcing Cockpit, Its creating a PO and has been ordered. Now my requirement is when ever a PO is created from Sourcing Cockpit it should go in Held state so that the Purchaser can have a contr

  • OE and OWF_MGR don't exist when OWB setup

    Dear guru, When Oracle Database 11g R2 installation is finished on Window 7 32bit, I prepared the setting for owb and then I found out that oe user and owf_mgr user don't exist. So I can't carry on. Please help me. Thanks in advance. Su