Updates from September, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • saphelpdeskinfo 9:23 am on September 22, 2011 Permalink | Reply  

    What are domains and data element 


     domains and data element

    •  Domains:

                                Domain is the central object for describing the technical characteristics of an attribute of an business objects. It describes the value range of the field.


    Technical name: 0WEB_DOMAIN


    Use

    This InfoObject tells you the names of the domains.

    Technical Data

    Available as of release BW 2.1C


    •  Data Element:

                               It is used to describe the semantic definition of the table fields like description the field. Data element describes how a field can be displayed to end-user.

    reference type defines the types of reference variables in ABAP programs.An elementary type is defined by the built-in data type, length and possibly the number of decimal places. These type attributes can either be defined directly in the data element or copied from a domain.A data element describes either an elementary type or a reference type.

    The field CONNID (flight class) of table SBOOK refers to the data element S_CONN_ID. This data element gets its technical attributes (data type NUMC, field length 4) from domain S_CONN_ID. Data element S_CONN_ID describes the technical attributes and meaning (with an assigned long text and an explanatory short text) of field CONNID (and all other fields that refer to this data element).
    A variable having the type of data element S_CONN_ID can be defined in an ABAP program with the statement DATA CONNID TYPE S_CONN_ID.


     
  • saphelpdeskinfo 8:36 am on September 22, 2011 Permalink | Reply  

    What is an ABAP data dictionary? 


    What is an ABAP data dictionary?

    • ABAP 4 data dictionary describes the logical structures of the objects used in application development and shows how they are mapped to the underlying relational database in tables/views.

    Data Types in the ABAP Dictionary
    The ABAP Dictionary allows you to define global data types. You can use the TYPE addition of an appropriate ABAP statement to refer to these data types in any ABAP program.
    Database Tables and Views
    One of the most important tasks of the ABAP Dictionary is to administer database tables in the central database of the SAP system.. The Dictionary contains meta-descriptions of the database tables, and uses these to create the physical tables in the database. A view is a “virtual table” containing fields from one or more tables.

     
  • saphelpdeskinfo 6:14 pm on August 23, 2011 Permalink | Reply  

    Types of ABAP programs 


    As in other programming languages, an ABAP program is either an executable unit or a library, which provides reusable code to other programs and is not independently executable.
    ABAP distinguishes two types of executable programs:
    Report
    Module pools
    Reports follow a relatively simple programming model whereby a user optionally enters a set of parameters (e.g. a selection over a subset of data) and the program then uses the input parameters to produce a report in the form of an interactive list. The term “report” can be somewhat misleading in that reports can also be designed to modify data; the reason why these programs are called reports is the “list-oriented” nature of the output they produce.
    Module pools define more complex patterns of user interaction using a collection of screens. The term “screen” refers to the actual, physical image that the user sees. Each screen also has a “flow logic”, which refers to the ABAP code implicitly invoked by the screens. Each screen has its own flow logic, which is divided into a “PBO” (Process Before Output) and “PAI” (Process After Input) section. In SAP documentation the term “dynpro” (dynamic program) refers to the combination of the screen and its flow logic.
    The non-executable program types are:
    INCLUDE modules
    Subroutine pools
    Function groups
    Object classes
    Interfaces
    Type pools
    An INCLUDE module gets included at generation time into the calling unit; it is often used to subdivide very large programs. Subroutine pools contain ABAP subroutines (blocks of code enclosed by FORM/ENDFORM statements and invoked with PERFORM). Function groups are libraries of self-contained function modules (enclosed by FUNCTION/ENDFUNCTION and invoked with CALL FUNCTION). Object classes and interfaces are similar to Java classes and interfaces; the first define a set of methods and attributes, the second contain “empty” method definitions, for which any class implementing the interface must provide explicit code. Type pools define collections of data types and constants.

     
  • saphelpdeskinfo 4:55 am on August 23, 2011 Permalink | Reply  

    System error when you create new report bodies 


    Symptom

    Component: Product Safety

    Module: Report definition

    You want to create a new report body. The generation of this report fails. The new report is set to status “System error”.

    The related generation job is also displayed as incorrect in the WWI monitor (transaction CG5Z). The system issues error message C$ 832 “Creating structure data has failed” in the job log for the report.

    This error occurs only when you generate report bodies. You can create other reports (final reports or “Report from Template”, for example) without any problems.

    Reason

    This error occurs because a formatted long text that contains character formats is displayed in the report.

    Formatted long texts can occur for identifiers, phrases and user-defined texts. These long texts are saved in the SAPscript format (ITF) in the specification database. The long texts must be converted into the RTF format to be displayed in the report.

    Options are provided to control the converter that is used for this. You can set one of these options using the program RSCPSETEDITOR. If the option “Enable Multi-CharacterFormat Support for Enabled Editor(s)” is activated, additional information is written to the RTF format, and this may prevent the creation of structure information for the report body.

    Prerequisite:

    SAP_BASIS as of 620

    The output of formatted long texts has been activated using the EH&S environment parameter LONGTEXT_FORMAT_SUPPORT (IMG activity “Specify Environment Parameters”).

    Solution

    The option “Enable Multi-CharacterFormat Support for Enabled Editor(s)” is not supported when EH&S reports are generated (see Note 964987 for more information about this option).

    If this is activated, you cannot create any further reports in which formatted long texts are output. It must therefore be deactivated.

    You can check and, if required, deactivate the setting for the multi-character format option using the program RSCPSETEDITOR. Enter the program RSCPSETEDITOR in transaction SE38 and choose “Execute (F8)”.

    Remove the checkmark for “Enable Multi-CharacterFormat Support for Enabled Editor(s)” if it is set and choose “Activate”.

    RSCPSETEDITOR can also be started using the program RSCPINST. After you start RSCPINST in transaction SE38, select “Goto” -> “Set MS Word as Editor” on the next screen.

     
  • saphelpdeskinfo 4:26 pm on August 21, 2011 Permalink | Reply  

    ABAP interview questions and answers Part1 


    21)What is Smart Forms?- Smart Forms allows you to create forms using a graphical design tool with robust functionality, color, and more. Additionally, all new forms developed at SAP will be created with the new Smart Form solution.

    22)How can I make a differentiation between dependent and independent data?- Client dependent or independent transfer requirements include client specific or cross client objects in the change requests. Workbench objects like SAPscripts are client specific, some entries in customizing are client independent. If you display the object list for one change request, and then for each object the object attributes, you will find the flag client specific. If one object in the task list has this flag on, then that transport will be client dependent.

    23)What is the difference between macro and subroutine?- Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Subroutines (FORM) can be called from both the program the are defined in and other programs . A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. A FORM is a local subroutine (which can be called external). A FUNCTION is (more or less) a subroutine that is called external. Since debugging a MACRO is not really possible, prevent the use of them (I’ve never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.

     
  • saphelpdeskinfo 4:22 pm on August 21, 2011 Permalink | Reply  

    ABAP interview questions and answers Part2 


    13)What are screen painter and menu painter?- Screen painter: Screen painter is a tool to design and maintain screen and its elements. It allows user to create GUI screens for the transactions. Attributes, layout, filed attributes and flow logic are the elements of Screen painter. Menu painter: Menu painter is a tool to design the interface components. Status, menu bars, menu lists, F-key settings, functions and titles are the components of Menu painters. Screen painter and menu painter both are the graphical interface of an ABAP/4 applications.

    14)What are the components of SAP scripts?- SAP scripts is a word processing tool of SAP which has the following components: Standard text. It is like a standard normal documents. Layout sets. – Layout set consists of the following components: Windows and pages, Paragraph formats, Character formats. Creating forms in the R/3 system. Every layout set consists of Header, paragraph, and character string. ABAP/4 program.

    15)What is ALV programming in ABAP? When is this grid used in ABAP?- ALV is Application List viewer. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain up to 90 columns in the display with the wide array of display options.

    16)What are the events in ABAP/4 language?- Initialization, At selection-screen, Start-of-selection, end-of-selection, top-of-page, end-of-page, At line-selection, At user-command, At PF, Get, At New, At LAST, AT END, AT FIRST.

    17)What is CTS and what do you know about it?- The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench and in Customizing, and then transport the changes between the SAP Systems and clients in your system landscape. This documentation provides you with an overview of how to manage changes with the CTS and essential information on setting up your system and client landscape and deciding on a transport strategy. Read and follow this documentation when planning your development project.

    18)What are logical databases? What are the advantages/ dis-advantages of logical databases?- To read data from a database tables we use logical database. A logical database provides read-only access to a group of related tables to an ABAP/4 program. Advantages: i)check functions which check that user input is complete, correct,and plausible. ii)Meaningful data selection. iii)central authorization checks for database accesses. iv)good read access performance while retaining the hierarchical data view determined by the application logic. dis advantages: i)If you donot specify a logical database in the program attributes,the GET events never occur. ii)There is no ENDGET command,so the code block associated with an event ends with the next event statement (such as another GET or an END-OF-SELECTION).

    19)What is a batch input session?- BATCH INPUT SESSION is an intermediate step between internal table and database table. Data along with the action is stored in session ie data for screen fields, to which screen it is passed, program name behind it, and how next screen is processed.

    20)How to upload data using CATT ?- These are the steps to be followed to Upload data through CATT: Creation of the CATT test case & recording the sample data input. Download of the source file template. Modification of the source file. Upload of the data from the source file.

     
  • saphelpdeskinfo 4:19 pm on August 21, 2011 Permalink | Reply  

    ABAP interview questions and answers Part3 


    7)What is an ABAP/4 Query?- ABAP/4 Query is a powerful tool to generate simple reports without any coding. ABAP/4 Query can generate the following 3 simple reports: Basic List: It is the simple reports. Statistics: Reports with statistical functions like Average, Percentages. Ranked Lists: For analytical reports. – For creating a ABAP/4 Query, programmer has to create user group and a functional group. Functional group can be created using with or without logical database table. Finally, assign user group to functional group. Finally, create a query on the functional group generated.

    8)What is BDC programming?- Transferring of large/external/legacy data into SAP system using Batch Input programming. Batch input is a automatic procedure referred to as BDC(Batch Data Communications).The central component of the transfer is a queue file which receives the data vie a batch input programs and groups associated data into “sessions”.

    9)What are the functional modules used in sequence in BDC?- These are the 3 functional modules which are used in a sequence to perform a data transfer successfully using BDC programming: BDC_OPEN_GROUP – Parameters like Name of the client, sessions and user name are specified in this functional modules. BDC_INSERT – It is used to insert the data for one transaction into a session. BDC_CLOSE_GROUP – This is used to close the batch input session.

    10)What are internal tables?- Internal tables are a standard data type object which exists only during the runtime of the program. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need.

    11)What is ITS? What are the merits of ITS?- ITS is a Internet Transaction Server. ITS forms an interface between HTTP server and R/3 system, which converts screen provided data by the R/3 system into HTML documents and vice-versa. Merits of ITS: A complete web transaction can be developed and tested in R/3 system. All transaction components, including those used by the ITS outside the R/3 system at runtime, can be stored in the R/3 system. The advantage of automatic language processing in the R/3 system can be utilized to language-dependent HTML documents at runtime.

    12)What is DynPro?- DynPro is a Dynamic Programming which is a combination of screen and the associated flow logic Screen is also called as DynPro.

     
  • saphelpdeskinfo 9:33 pm on August 20, 2011 Permalink | Reply  

    Alphabet B ABAP Syntax 


    BACK
    Relative positioning for output in a list.
    Syntax
    BACK.
    Positions the list output either in the first column of the first line after the page header on the current page, or in the first column of the first line of a line block if you have previously used the RESERVE statement.
    BREAK-POINT
    Starts the ABAP Debugger.
    Syntax
    BREAK-POINT.
    Interrupts program execution and starts the Debugger. This allows you to test your programs by halting them at any point.

     
  • saphelpdeskinfo 9:29 pm on August 20, 2011 Permalink | Reply  

    Alphabet A ABAP Syntax 


    ADD for Single Fields
    Adds two single fields.
    Syntax
    ADD TO .
    The contents of are added to the contents of . The result is placed in . Equivalent of
    = + .
    ADD for Sequences of Fields
    Adds sequences of fields.
    Syntax
    ADD THEN UNTIL GIVING .
    ADD THEN UNTIL ACCORDING TO GIVING .
    ADD THEN UNTIL TO .
    ADD FROM TO GIVING .
    If , ,…, is a sequence of fields with a uniform gap between each, the same type, and the same length, the fields are added together and the result placed in . The variants allow you to restrict the fields to a partial sequence, to include in the sum, or to perform the operation for a sequence of consecutive fields.
    ADD-CORRESPONDING
    Adds components of structures.
    Syntax
    ADD-CORRESPONDING TO .
    Adds together all of the components of structures and that have identical names, and places the results in the corresponding components of .
    ALIASES
    Defines class-specific alias names for an interface component in ABAP Objects.
    Syntax
    ALIASES FOR .
    Defines within a class as a synonym for the interface component .
    APPEND
    Appends one or more lines to the end of an index table.
    Syntax
    APPEND |LINES OF TO .
    Appends one line or several lines of an internal table to the index table .
    ASSIGN
    Assigns a field to a field symbol.
    Syntax
    ASSIGN TO .
    Assigns the data object to the field symbol , after which, points to the data object. The pointed brackets are part of the syntax of the field symbol.
    AT for Event Blocks
    Event keywords for defining event blocks for screen events.
    Syntax
    AT SELECTION-SCREEN…
    AT LINE-SELECTION.
    AT USER-COMMAND.
    AT PFn.
    User actions on selection screens or lists trigger events in the ABAP runtime environment. The event keywords define event blocks, which are called when the corresponding event occurs.
    AT for Control Levels
    Control level change when you process extracts and internal tables in a loop.
    Syntax
    AT NEW .
    AT END OF .
    AT FIRST.
    AT LAST.
    AT .
    These statements are used in control level processing with extract datasets or internal tables. Each introduces a statement block that you must conclude with the ENDAT statement. The statements between AT and ENDAT are executed whenever the corresponding control level change occurs.
    AUTHORITY-CHECK
    Checks the authorization of a user.
    Syntax
    AUTHORITY-CHECK OBJECT

    ID FIELD ID FIELD … ID FIELD . The statement checks whether the user has all of the authorizations defined in the authorization object

    . ,…, are the authorization fields in the object, and ,… , are data objects in the program. The value of each data object is checked against the corresponding authorization field.

     
  • saphelpdeskinfo 9:25 pm on August 20, 2011 Permalink | Reply  

    ABAP PROGRAMING 


    ABAP PROGRAMING

    1) What is Abap program?
    Sol: Programs written in Abap programming language is called Abap program.
    Abap program mainly consists of Abap statements, which are group as processing blocks.

    2) What Abap program consists of?
    Sol: Abap program consists of Abap statements which are grouped as processing blocks. So Abap program mainly consists of Processing blocks, which are processed sequentially as soon as they are called by runtime environment (Kernel and Basis services is called runtime environment).

    3) What are the different kinds of Abap programs?
    Sol: There are 2 kinds of Abap programs:
    Report programs (Abap reports)
    Dialog programs.

    4) What is runtime environment?
    Sol: Set of system provided programs that must be available for execution at runtime.

    5) What is the structure of Abap program?
    Sol: Abap program has modular structure.
    Each Abap program has the following structure:
    1. Declaration part for global data,
    2. Dialog modules,
    3. Event blocks, and
    4. Subroutines.

    6) How structure of an Abap program is divided?
    Sol: Each Abap program structure is divided into 2 parts:
    • Declaration part for global data (of variable, classes, selection screens etc) &
    • Processing block
    o Dialog modules
    o Event blocks &
    o Subroutines.

    7) Does Abap have different types of Abap program? If yes, on what basis they are categorized?
    Sol: Yes, there are different Abap program types. Abap program is categorized based on program type.

    8) What is program type?
    Sol: It is the factor which determines whether a program can be run, if so how.

    9) List different types of Abap program in Abap language?
    Sol: There are 7 types of Abap programs
    1. Type 1 = Executable Abap programs.
    2. Type M = Module pool programs (Dialog programs)
    3. Type F = Function group
    4. Type S = Subroutine pool
    5. Type I = Include program
    6. Type K = Class pool
    7. Type J = Interface pool

    10) Can we call a program from another application program?
    Sol: yes it is possible to call a program from another application program, by making use of Abap keywords for e.g. submit, leave, leave to list processing etc.

    11) List different events in executable program or report?
    Sol: Events in executable program are:
    1. Load-of-program
    2. Initialization
    3. At-selection-screen
    4. Start-of-selection
    5. Get – with logical database
    6. Check – with logical database (with get event)
    7. Reject – with logical database (with get event)
    8. Stop – with logical database and also with other events like initial.., at sel-screen, s-o-s and also with get event
    9. End-of-selection
    10. Module
    11. Endmodule

    12) Load-of-program?
    Sol: Event keyword:
    The corresponding event is triggered in an internal session immediately after a program with type 1, M, F, or S is loaded. The corresponding processing block is processed once per program and internal session (it will be triggered only once, but the contents of which will be displayed even after this event is written many a times in the program).

    REPORT ZWASEEM_PROGRAM_EVENTS .

    break-point.
    load-of-program.
    write:/ ‘Hello this is load of program event’.

    initialization.
    write:/ ‘initial’.

    start-of-selection.
    write:/ ‘start of selection’.

    start-of-selection.
    write:/ ‘start of selection -2’.

    load-of-program.
    write:/ ‘Hello this is load of program event ——-‘.

    The processing block LOAD-OF-PROGRAM has approximately the same function in an ABAP program with type 1, M, F, or S as the constructor method of a class in ABAP Objects (to assign some default values).

    13) Initialization event?
    Sol: This event occurs before the standard selection screen is called. You can use it, for example, to initialize the input fields of the standard selection screen.

    14) Describe the process flow of Initialization?
    Sol: The precise flow logic of INITIALIZATION is as follows:
    1. First, the default values are placed in the selections (DEFAULT specifications).
    2. Then the INITIALIZATION event is processed.
    3. Now, the variants are imported (if the program is started using a variant), and any values passed in the WITH clause of the SUBMIT statement are passed to the relevant fields.
    4. The AT SELECTION-SCREEN OUTPUT event is now processed if it is defined in the program. This event is processed in each PBO of the selection screen (unlike INITIALIZATION, which is processed only once).
    5. The selection screen is displayed.
    6. The screen fields containing user input are transferred to the program fields.
    7. Finally, the START-OF-SELECTION event is processed.

    15) How many time the event Initialization is triggered?
    Sol: Since the INITIALIZATION event is only processed once (when the program starts), it is not suitable for screen modifications, such as hiding individual parameters (LOOP AT SCREEN, MODIFY SCREEN), since these modifications would disappear after a single cycle of the selection screen. The correct event for screen modifications is AT SELECTION-SCREEN OUTPUT.

    16) Is Initialization event used for screen modifications?
    Sol: Since the INITIALIZATION event is only processed once (when the program starts), it is not suitable for screen modifications, such as hiding individual parameters (LOOP AT SCREEN, MODIFY SCREEN), since these modifications would disappear after a single cycle of the selection screen. The correct event for screen modifications is AT SELECTION-SCREEN OUTPUT.

    17) Does Initialization event get processed with call selection-screen?
    Sol: The INITIALIZATION event is only processed with SUBMIT, not with CALL SELECTION-SCREEN.

    18) Does SET PF_STATUS statement work during this event?
    Sol: The SET PF-STATUS statement does not work during the processing of an event. Instead, you should set a status with one of the function modules RS_SET_SELSCREEN_STATUS or RS_EXTERNAL_SELSCREEN_STATUS

    19) At Selection-screen event?
    Sol: At selection-screen is the basic form of whole series of at selection-screen that is triggered when the standard selection screen is being processed, i.e. it will be triggered or processed between Initialization and start-of-selection.
    At selection-screen is used to validate the user input and also to modify the selection screen before it is called (PBO).
    Or
    The basic form of the selection screen events is the AT SELECTION-SCREEN event.
    This event occurs after the runtime environment has passed all input data from the selection screen to the ABAP program.
    The other selection screen events allow programmers to modify the selection screen before it is sent and specifically check user input.

    20) List other forms of At selection screen?
    Sol: Other At selection-screen events are:
    1. At selection-screen on field
    2. At selection-screen on block
    3. At selection-screen on end of select-table
    4. At selection-screen on help-request for field
    5. At selection-screen on value-request for field
    6. At selection-screen on radiobutton group group_name
    7. At selection-screen on exit_command
    8. At selection-screen output.

    21) At selection-screen on field?
    Sol: In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON
    is triggered when the contents of each individual input field are passed from the selection screen to the ABAP program.

    22) At selection-screen on block?
    Sol: In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON BLOCK
    is triggered when the contents of all of the fields in a block are passed from the selection screen to the ABAP program.
    You can use this event block to check the consistency of the input fields in the block. If an error message occurs within this event block, the fields in the block are made ready for input again on the selection screen.

    23) At selection-screen on select-table and end of select-table?
    Sol: These events are triggered on table selected for multiple values of select-options.
    At first, the
    AT SELECTION-SCREEN ON
    event is triggered for the current line of the selection table.
    It can then be processed like a single field.
    Next, the
    AT SELECTION-SCREEN ON END OF
    event is triggered.
    This event block allows you to check the whole selection table . Warning messages are displayed as dialog boxes, not in the status line.

    24) At selection-screen on help-request for field?
    Sol: If the data type of an input field declared in an executable program is defined in the ABAP Dictionary, the documentation of the underlying data element is automatically displayed if the user positions the cursor in that field and presses F1. To create help for input fields that have no Dictionary reference, or to override the help normally linked to the field, you can create an event block for the event
    AT SELECTION-SCREEN ON HELP-REQUEST FOR
    The event is triggered when the user calls the F1 help for the field . If no corresponding event block has been defined, the help from the ABAP Dictionary is displayed, or none at all if the field has no Dictionary reference. If a corresponding event block exists, it takes precedence over the default help mechanism. It is then up to the programmer to ensure that appropriate help is displayed.

    Note: You cannot declare the event block AT SELECTION-SCREEN ON HELP-REQUEST for input fields on the selection screen that are declared within a logical database.
    Example:

    PARAMETERS: P_CARR_1 TYPE ZWASDATA.

    AT SELECTION-SCREEN ON HELP-REQUEST FOR P_CARR_1.

    CALL SCREEN 100 STARTING AT 10 5
    ENDING AT 60 10.

    25) At selection-screen on value-request for field?
    Sol: If a field in an executable program is defined with reference to an ABAP Dictionary field for which possible entries help is defined, the values from the ABAP Dictionary help are automatically displayed when the user calls the F4 help for that field. To create possible values help for input fields that have no Dictionary reference, or to override the help normally linked to the field, you can create an event block for the event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR
    The event is triggered when the user calls the F4 help for the field . If no corresponding event block has been defined, the possible values help from the ABAP Dictionary is displayed, or none at all if the field has no Dictionary reference. If a corresponding event block exists, it takes precedence over the default possible values help mechanism. It is then up to the programmer to ensure that an appropriate list of values is displayed, and that the user can choose a value from it.
    Note: You cannot declare the event block AT SELECTION-SCREEN ON VALUE-REQUEST for input fields on the selection screens that are declared within a logical database.

    26) At selection-screen on radiobutton group group_name?
    Sol: In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP
    is triggered when the contents of all of the fields in a radio button group are passed from the selection screen to the ABAP program.
    This event block allows you to check the whole group.
    If an error message occurs within this event block, the radio button group is made ready for input again on the selection screen.
    The individual fields of radio button groups do not trigger the event AT SELECTION-SCREEN ON .

    27) At selection screen on exit-command?
    Sol: This event is normally only triggered by “system” pushbuttons. Be careful when using it, so as not to interrupt the system processes.
    Effect: This event is processed when an exit command is triggered on the selection screen, that is, a command after which there are no field checks or PAI processing. These are usually the events “Back”, “Cancel”, and “Exit”.

    28) At selection-screen output?
    Sol: This event is executed at PBO of the selection screen every time the user presses ENTER – in contrast to INITIALIZATION.

    29) What START-OF-SELECTION processing block/event contains?
    Sol: This event will be triggered when the standard selection screen have been processed/ displayed (Screen # 1000 is displayed).
    Use: You can use it to prepare for reading data and creating the list by, for example, setting values for internal fields and writing introductory notes on the output list.
    E.g. start-of-selection.
    write:/ ‘start of selection’.

    Note:
    o The REPORT statement always executes a START-OF-SELECTION implicitly.
    o Consequently all processing logic between the REPORT statement and the next event keyword (until the system encounters any other event like load-of-program, initialization, at selection-screen) is automatically processed in the START-OF-SELECTION event.
    o Immediately afterwards, the system processes the statements that belong to an explicit START-OF-SELECTION block.
    o All ABAP statements (except declarative statements in the declaration part of the program) are part of a processing block. Non-declarative ABAP statements, which occur between the declaration of global data and a processing block, are automatically assigned to the START-OF-SELECTION processing block.

    30) Get event?
    Sol: The corresponding events are triggered in an executable program when data is read within the program using a logical database.
    Notes
    1. You can only use the “GET node.” statement once in a program.
    2. Internally, GET events are implemented as FORM routines. Consequently, all data objects that you create using DATA are local, that is, they can only be addressed within the event. This also applies to AT SELECTION-SCREEN ….

    31) Check event?
    Sol: When database tables are read using logical databases, you can use a special variant of the CHECK statement in the event blocks for GET events.
    CHECK SELECT-OPTIONS.
    • The statement checks if the contents of the interface work area that has been filled by the logical database for the current GET event, meets the conditions in all selection tables that are linked to the database table read.
    • This variant of the CHECK statement only works in conjunction with selection criteria that are linked to database tables, and should only be used for GET events.

    32) Reject event?
    Sol: This statement exits a GET block. Stops processing the current database table line and resumes with the next line of the table on the same hierarchy level. Unlike the CHECK statement, you can also use REJECT within a subroutine or loop for table selection.

    33) Stop event?
    Sol: Effect
    This statement terminates a processing block in an executable program.
    Note
    The statement is only intended for use in the INITIALIZATION, AT SELECTION-SCREEN, START-OF-SELECTION, and GET events. It terminates the current processing block in an executable program and triggers the END-OF-SELECTION event. In all other processing blocks, or when you do not want to trigger the END-OF-SELECTION event, you must use EXIT.

    34) End-of-selection?
    Sol: The END-OF-SELECTION event is triggered in type 1 programs once the logical database has finished reading all data and before the list processor is started.
    You can use the corresponding event block to process and format the data that the program has stored in internal tables or extracts during the various GET events.

    35) What is module?
    Sol: The processing block of code between Module and Endmodule is called “MODULE”.
    The module statement is used in the Executable program to call the module mod_name present in the screen flow logic (PBO, PAI, PHR, and PVR).
    Example
    DATA: INPUT, GOOD_INPUT.
    MODULE CONTROL.

    IF INPUT NE GOOD_INPUT.
    MESSAGE E123.
    ENDIF.
    ENDMODULE.

    Note
    The ABAP/4 statement MODULE, which is always terminated by ENDMODULE, must not be confused with the flow logic statement MODULE (screen).

    36) End module?
    Sol: Indicates the termination of Module call present in screen flow logic.
    Closes a module mod_name which is called by keyword “Module”.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel