GET PARAMETER: ABAP Keyword a day
GET PARAMETER
Gets an SPA/GPA parameters.
Syntax
GET PARAMETER ID <pid> FIELD <field_name>.
Writes the value of the SPA/GPA parameter <pid> from the user-specific SAP memory into the variable <f>.
GET PARAMETER
Gets an SPA/GPA parameters.
Syntax
GET PARAMETER ID <pid> FIELD <field_name>.
Writes the value of the SPA/GPA parameter <pid> from the user-specific SAP memory into the variable <f>.
Gets the current text environment.
GET LOCALE LANGUAGE <lg> COUNTY <c> MODIFIER <m>.
Returns the current language, country ID and any modifier into the corresponding variables
DATA: lang TYPE tcp0c-langu, cntry TYPE tcp0c-country, mod TYPE tcp0c-modifier. GET LOCALE LANGUAGE lang COUNTRY cntry MODIFIER mod. ... SET LOCALE LANGUAGE lang COUNTRY cntry.
GET DATASET: Retrives the arrtibutes of the file.
GET DATASET [POSITIONS ] [ATTRIBUTE ].
Gets the attributes of a file opened using OPEN DATASET. The POSITIONS additions writes the current read/write position to the field <pos>. The ATTRIBUTE addition writes the attributes to a structure, <attr>, of the type DSET_ATTRIBUTES.
DATA: file TYPE string VALUE 'test.dat', pos TYPE I, text TYPE string. OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED. TRANSFER '1234567890' TO file. GET DATASET file POSITION pos. TRANSFER 'ABCDEFGHIJ' TO file. CLOSE DATASET file. OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED AT POSITION pos. READ DATASET file INTO text. CLOSE DATASET file.
GET: Event keyword for defining event blocks for reporting events.
GET <node> [FIELDS <fi> <f 2>...]. GET node LATE [FIELDS f1 f2 ...].
Only occurs in executable programs. When the logical database has passed a line of the node
Here is a sample ABAP program using GET.
REPORT Zdemo_get. NODES: spfli. START-OF-SELECTION. GET spfli FIELDS carrid connid cityfrom cityto. SKIP. ULINE. WRITE: / 'Carrid:', spfli-carrid, 'Connid:', spfli-connid, / 'From: ', spfli-cityfrom, 'To: ', spfli-cityto. ULINE.
FUNCTION : Defines a function module.
FUNCTION <func_name>
Introduces the function module . This statement is not entered in the ABAP Editor, but is automatically generated by the Function Builder in the ABAP Workbench. The function module definition ends with the ENDFUNCTION statement