SAP Full Form,Meaning and Introduction to ABAP Syntax for START OF SELECTION

SAP has full form of syntax and programming language named as ABAP and here in this post we are going to see the introduction to sap syntax for the keyword START OF SELECTION in its programming language.

Basic form

START-OF-SELECTION.

Effect

This is an event key word. Before the first logical database table access, it introduces any initial processing to be executed prior to the block specified under the next event key word .

The REPORT statement automatically starts the START-OFSELECTION processing. Any processing between the REPORT statement and the subsequent event key word is executed at START-OF-SELECTION .

Immediately after, the processing block introduced by an explicit START-OF-SELECTION is executed.

STATICS


Variants
1. STATICS f.
2. STATICS f(len).
3. STATICS: BEGIN OF rec,
...
END OF rec.
4. STATICS: BEGIN OF itab OCCURS n,
...
END OF itab.
Effect

The STATICS statement is a variation of the DATA statement. It allows you to define variables in a procedure (i.e. a FORM or FUNCTION ) with local visibility, but static validity. Static validity means that, unlike normal local variables, the life of static variables does not depend on the defining procedure, but on the program at runtime. Static variables are thus not redefined on the stack each time the defining procedure is called, but exist independently of this in the program and keep their value, regardless of calls to the defining procedure.

Like all other data objects , static variables always have a particular data type. Data types and data objects are important components of the ABAP/4 type concept .

Example

DATA RESULT TYPE I.
PERFORM RANDOM CHANGING RESULT.
FORM RANDOM CHANGING P_RESULT TYPE I.
STATICS L_STATE TYPE I.
L_STATE = ( L_STATE * 113 + 34 ) MOD 256.
P_RESULT = L_STATE.
ENDFORM.

STOP


Basic form

STOP.

Effect

Cancels all data selection. No further tables are read.

STOP is followed immediately by the END-OF-SELECTION processing. If you do not want this, you may have to use EXIT instead.

SUBMIT

Basic form

SUBMIT rep.

Additions

1. ... LINE-SIZE col
2. ... LINE-COUNT lin
3. ... TO SAP-SPOOL
4. ... VIA SELECTION-SCREEN
5. ... AND RETURN
6. ... EXPORTING LIST TO MEMORY
7. ... USER user VIA JOB job NUMBER n

Effect

Calls the report rep . Leaves the active program and starts the new report rep .

Addition 1
... LINE-SIZE col

Effect

Prints the report with the line width col .

Addition 2

... LINE-COUNT lin

Effect

Prints the report with lin lines (per page).

Addition 4

... VIA SELECTION-SCREEN

Effect

Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.

Addition 6

... EXPORTING LIST TO MEMORY

Effect

Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules
'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .

Addition 7


... USER user VIA JOB job NUMBER n

Effect

Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .

When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.

Addition 9

... USING SELECTION-SETS OF PROGRAM prog Effect Uses variants of the program prog when executing the program rep .

Related Posts:


SAP definition,full form,over veiw and introduction

SAP Full form of planning and distribution of goods
SAP full form for mrp,sales and materiel planning
What is SAP and Why do we are in need of It
What is SAP Full form and its definition part one
SAP Full form and introduction part two

SAP FULL FORM syntax for keyword SPLIT

No comments:

Post a Comment