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

SAP Reporting Syntax for SET and Full Form

SAP reporting has a programming language called ABAP and here in this post we are going to explore the keyword SET complete usage in the syntax.

SET BLANK LINES ON.
SET BLANKS LINES OFF.

Effect

These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them. The default setting is SET BLANK LINES OFF .

Example

When outputting texts, include blank lines:

DATA: BEGIN OF TEXTTAB OCCURS 100,
LINE(72),
END OF TEXTTAB.
SET BLANK LINES ON.
LOOP AT TEXTTAB.
WRITE / TEXTTAB-LINE.
ENDLOOP.
Suppress blank lines again with the statement:
SET BLANK LINES OFF.

SET COUNTRY f.

Effect

Displays the decimal point and date in all subsequent output ( WRITE ) according to the settings specified in the table T005X for the country ID f .The return code value is set as follows:

SY-SUBRC = 0 The statement was successful.
SY_SUBRC = 4 The country ID was not found in table T005X .

The country must exist in table T005X . Otherwise, the formats used are "." for the decimal point and "MM/DD/YYYY" for the date.The special form SET COUNTRY SPACE (or f contains SPACE ) resets the decimal point and date display formats to the setting contained in the current user's master record. In this case, table T005X is not read and the return code value is always 0. The effect of SET COUNTRY is not restricted to the current program, but applies at once to all programs in the current roll area.

Example

When outputting documents, display the decimal point and date in the format specified for the country of the recipient:

DATA: RECEIVER_COUNTRY LIKE T005X-LAND,
DATE LIKE SY-DATUM,
AMOUNT TYPE P DECIMALS 2.
...
SET COUNTRY RECEIVER_COUNTRY.
IF SY-SUBRC = 4.
WRITE: / RECEIVER COUNTRY, ' is unknown'.
ENDIF.
WRITE: / DATE, AMOUNT.

Then, you can say SET COUNTRY SPACE. to display the decimal point and date according to the
specification for the user again.

SET EXTENDED CHECK OFF.
SET EXTENDED CHECK ON.

Effect

You use these statements tot switch the extended syntax check off or on. If the extended syntax check (Transaction SLIN ) reports errors which you do not consider to be errors, and you want to suppress them in future, you can insert the above statements at the appropriate places in the program. A " SET EXTENDED CHECK OFF. " should be followed as soon as possible by a " SET EXTENDED CHECK ON. ", so that the check is only switched off for a short time.

These statements are not interpreted at runtime. You use them only to mark the source code. During the extended syntax check, you can ignore these statements by using the additional function Include suppressed fields.

SET LANGUAGE lg.

Effect

Initializes all text elements TEXT-nnn and all languagespecific text literals 'abcd.....'(nnn) ( nnn = text number) in the specified language. If the text pool does not exist in the desired language, searches in the system language. If the text pool does not exist in the system language either, searches in the secondary language.

SET PARAMETER ID pid FIELD f.

Effect

Writes the contents of the field f to the global SAP memory under the key pid . If the key already contains a value, it is overwritten.The key pid must consist of three characters. You can find a list of the keys (parameters) used in the SAP system description or in the ABAP/4 Development Workbench. The global SAP memory remains available to the user during the entire terminal session. This means that set values are retained when you leave a program. You should not use the SAP memory for temporary storage of values because other modes use the same global memory. If you need a new key (parameter), you can create this in the ABAP/4 Development Workbench.


DATA: REPID(8) VALUE 'RFSCHU01'.
SET PARAMETER ID 'RID' FIELD REPID.

Sets the program name, e.g. for transfer to another program.

Related Posts:



abap sales order management business process


Billing and payment process in erp sap abap