|
Mon, 12 May 2008 19:16:00 +0200 ACCR01 SAPMACCR01 Create Accrual/Deferral Document
Fri, 11 Apr 2008 09:51:00 +0200 Creating customer-specific objects within the customer name range
Fri, 11 Apr 2008 09:51:00 +0200 SSCR (SAP Software Change Registration) is a procedure, for registering all manual changes to SAP source coding and SAP Dictionary objects.
What is the difference between modifications and enhancements ? Modifications mean making changes to the SAP standard functionality. Enhancements mean adding some functionality to SAP standard functionality Fri, 11 Apr 2008 09:50:00 +0200 Modifying standard code can lead to errors
Modifications mean more work during software upgrades Fri, 11 Apr 2008 09:50:00 +0200 Customer exits are not available for all programs and screens within the R/3 standard applications. You can only use exits if they already exist within the SAP R/3 System . Otherwise you have to opt for modifications
Fri, 11 Apr 2008 09:49:00 +0200 Menu exits
Screen exits Function module exits Keyword exits Fri, 11 Apr 2008 09:47:00 +0200 Adding functionality to R/3 applications. Function module exits play a role in both menu and screen exits.
Fri, 11 Apr 2008 09:40:00 +0200 To take advantage of the exits available within standard R/3 applications, you need to create an add-on project. This project lets you organize the enhancement packages and exits you want to use. The add-on project also allows you to hang add-on functionality onto the exit hooks contained with SAP enhancements.
Fri, 11 Apr 2008 09:39:00 +0200 A list is generally used to output mass data. It can be output on either the screen or a printer.
List may contain colors, symbols and icons as well as text. There is a standard GUI status for lists. Lists may also have a header and up to four lines of column headers. These are independent program objects, and are translatable. You can also program interactive lists, which allow users to select lines or particular values. A selection triggers further processing. This might, for example, generate a further list containing a detail list. You fill the corresponding basic list buffer with WRITE statements at PBO or PAI. You can create your own list and column headers by programming a TOP-OF-PAGE event. This event will be triggered whenever a new page is created in the list buffer (NEW-PAGE). You can direct the output directly to the spool with the NEW-PAGE PRINT ON statement. To create interactive lists on screens, you can use the list events AT LINE-SELECTION, AT USER-COMMAND, TOP-OF-PAGE, END-OF-PAGE and TOP_OF_PAGE DURING LINESELECTION. There is no common list buffer outside of a CALL level. The list display is processed at the end of the screen in which LEAVE TO LIST-PROCESSING was programmed at PBO or PAI. To direct the output to the spool, use the NEW-PAGE PRINT ON statement, but not LEAVE TO LIST-PROCESSING. To create a list that is displayed on a screen, use the ABAP statement LEAVE TO LISTPROCESSING. This sets a switch that ensures that the contents of the list buffer are output once the current screen has been processed. The SET PF-STATUS SPACE statement ensures that the list is displayed with the standard GUI status for lists. Once the screen has been fully processed and LEAVE TO LIST- PROCESSING was executed, the list is displayed on list screen 120 (screen for a basis program). You can also use the following form: LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0. SET PF-STATUS SPACE. WRITE ... LEAVE SCREEN. When the system exits list processing (user presses F3, or ABAP statement LEAVE LISTPROCESSING), the system carries on processing the program with the screen following the one from which the list processing was started. You can override this by using the AND RETURN TO SCREEN You can update databases either using ABAP's Open SQL commands, or with the database-specific commands of your database's Native SQL command set. You can access ABAP cluster databases using special ABAP commands. You can access the data in database tables using the Open SQL commands. The command set includes operations of the Data Manipulation Language (DML). The Data Definition Language (DDL) operations are not available in Open SQL, as these functions are performed by the ABAP Dictionary. Native SQL commands allow you to carry out both DML and DDL operations. The commands for ABAP cluster databases enable operations to be carried out on the data in the cluster databases. The tables themselves are created in the ABAP Dictionary as transparent tables. For general information on cluster tables, refer to the course appendix. For further information on Native and Open SQL, see the ABAP Editor Keyword documentation for the term SQL. Each time you access the database using Open SQL, the database interface of each work process (application server) converts this to a database-specific command. For this reason, the ABAP programs themselves are independent of the database used and can be transferred to other system platforms (with a different database system) without additional programming requirements. SAP database tables can be buffered at the application server level. The aims of buffering are to Reduce the time needed to access data with read accesses. Data on the application server can be accessed more quickly than data on the database. Reduce the load on the database. Reading the data from application server buffers reduces the number of database accesses. The buffered tables are accessed exclusively via database interface mechanisms. Database accesses with Native SQL enable database-specific commands to be used. This requires a detailed knowledge of the syntax in question. Programs that use Native SQL commands need additional programming after they are transported to different system environments (different database systems), since the syntax of the SQL commands generally varies from one database to the next. The target quantity can be limited on the database using all the Open SQL commands discussed here. One or more rows can be processed with a SQL command. Each command also provides the option of specifying the table name dynamically. In addition to this, each type of operation has a syntax variant, which can be used to change individual fields in a row. With masked field selections (WHERE Fri, 11 Apr 2008 09:39:00 +0200 Context menus (right mouse key, SHIFT F10) are shortcuts for functions that are frequently used.
They can be used to display context-sensitive menus. The context is defined by the position (cursor for SHIFT F10, mouse location for right mouse key) where the user called the context menu. If needed, you can specify the context more precisely with the displayed contents. This permits the user to select functions that are relevant for the current context using the context menu. You define whether a context menu should be offered when you create a screen object (screens, input fields, table controls, boxes, ...). When the user selects a context menu on an object, an event mechanism (as understood by ABAP objects) calls a certain subroutine in the application program. The program is assigned a menu reference. The program uses this menu reference to build the display menu. Menus defined with the Menu Painter and dynamic menus can be used here. After the user executes a menu function, the application program regains control and can react to the user input. Context menus are assigned to output fields. When you assign a context menu to a box, table control or screen (normal or subscreen), all the subordinate output fields that do not have a context menu inherit that one. You can create a context menu from within the object list of the Object Navigator. Position the cursor on GUI status and right-click. The Object Navigator automatically opens the Menu Painter. Of course you can also create a context menu directly in the Menu Painter. A context menu is a special GUI status. Assign it a name, a descriptive text and status type Context menu. In a context menu you can link any function codes and function texts. In particular, you can take advantage of your screen pushbuttons. The functions already provided in the interface can be used as an F4 input help. The link technique ensures consistent context menus in large applications. You should observe the following rules when designing context menus. Do not use any functions that cannot be found elsewhere in the system (pushbuttons or interface). Avoid using more than two hierarchy levels in context menus. Do not use more than 10 entries, but map all the available pushbuttons. Use separators to structure the context menu optically. Place object-specific statements at the beginning of the menu. Pressing the right mouse key triggers a callback routine in your program. You can create this callback routine in your application program with forward navigation. It is named ON_CTMENU_ Fri, 11 Apr 2008 09:38:00 +0200 A table control is an area on the screen in which the system displays data in tabular form. It is processed using a loop. The top line of a table control is the header line, which is distinguished by a gray separator.
Within a table control, you can use table elements, key words, templates, checkboxes, radio buttons, radio button groups, and pushbuttons. A line may have up to 255 columns; each column may have a title. You can display or enter single structured lines of data using a table control. Features: Resizeable table for displaying and editing data. The user or program can change the column width and position, save the changes, and reload them later. Check column for marking lines. Marked lines are highlighted in a different color. Line selection: Single lines, multiple lines, all lines, and deselection Column headings double as pushbuttons for marking columns. Scrollbars for horizontal and vertical scrolling. You can fix any number of key (leading) columns. Cell attributes are variable at runtime. Users can save display variants for table controls. These variants can be saved by each user, along with the basic setting, as the current display setting or as the default display setting. The table control contains a series of attributes that are controlled entirely at the presentation server: These are: Horizontal scrolling using the scrollbar in the table control Swapping columns Changing column widths Marking columns Marking lines The PAI processing block is triggered when you scroll vertically in the table control or save the user configuration. As well as the normal "Object name", "Start position on screen" and "Static size" attributes, table controls also have special table control attributes. The "Special table control attributes" determine the table type and display options for a table control, as well as whether it can be configured by the user. The fields stepl and loopc of structure syst contain information about the loop processing used with table controls (see following pages). For further information about the static attributes, refer to the online documentation. When you create a table control, you must create: A table control area. Table control fields. To create a table control area, choose the table control object from the object list in the Screen Painter and place it in the screen work area. Fix the top-left hand corner of the table control area, and then drag the object to the required size. In the "Object name" attribute, assign a name to your table control. In the ABAP program, declare a structure with the same name, containing the dynamically changeable attributes of the table control. The CONTROLS statement declares a complex data object with the type TABLEVIEW (corresponding to the type CXTAB_CONTROL, declared in type group CXTAB in the ABAP Dictionary). At runtime, the data object (my_control) contains the static attributes of the table control. You maintain the initial values (static attributes) in the Screen Painter. The USING SCREEN addition in the CONTROLS statement determines the screen whose initial values are to be used for the table control. You can reset a table control to its initial attributes at any time using the statement REFRESH CONTROL Fri, 11 Apr 2008 09:38:00 +0200 A subscreen area is a reserved rectangular area on a screen, into which you place another screen at runtime. Subscreen areas may not contain any other screen elements. To use a subscreen, you create a second screen (with the type subscreen), and display it in the subscreen area you defined on the main screen. A subscreen is an independent screen that you display within another screen. You may want to use a subscreen as a way of displaying a group of objects in certain circumstances, but not in others. You can use this technique to display or hide extra fields on the main screen, depending on the entries the user has made. A second use for subscreens is that different programs can use the same subscreens. To do this, you must execute other screen programs within your main program. You can include more than one subscreen on a single main screen. You can also determine the subscreens dynamically at runtime. You can use subscreens in the following circumstances: In screen enhancements (screen exits), Within other screen objects (tabstrip control) In the Modification Assistant In Web transactions. If the subscreen is larger than the subscreen area in which it is called, the system only displays as much of it as will fit onto the screen. However, you can use the Scrollable attribute to ensure that, if the screen is too big, the system will display scrollbars. The resizing attributes control whether the size of a subscreen area can be changed vertically and horizontally. You should set these attributes if you want the size of the subscreen area to change with the size of the whole window. You can use the minimum size attribute to set a lower limit beyond which the subscreen area cannot be resized. The Context menu attribute allows you to assign a context-sensitive menu to the output fields on the subscreen screen. The following restrictions apply to subscreens: CALL SUBSCREEN ... is not allowed between LOOP and ENDLOOP or between CHAIN and ENDCHAIN. A subscreen may not have a named OK_CODE field. Object names must be unique within the set of all subscreens called in a single main screen. Subscreens may not contain a module with the AT EXIT-COMMAND addition. You cannot use the SET TITLEBAR, SET PF-STATUS, SET SCREEN, or LEAVE SCREEN statements in the modules of a subscreen. To create a subscreen area, choose subscreen from the object list in the Screen Painter and place it on the screen. Fix the top-left hand corner of the table control area, and then drag the object to the required size. In the Object text field, enter a name for the subscreen area. You need this to identify the area when you call the subscreen. |