Subscribe

RSS Feed (xml)

Powered By

Powered by Blogger

SAP Hana Interview Questions and Answers

Showing posts with label SAP ABAP Keywords. Show all posts
Showing posts with label SAP ABAP Keywords. Show all posts

Sunday, October 7, 2012

SAP ABAP APPEND Keyword Syntax and Definition

SAP ABAP APPEND Keyword Syntax and Definition

Appends one or more lines to the end of an index table.
Syntax
APPEND <line>|LINES OF <jtab> TO <itab>.
Appends one line <line> or several lines of an internal table <jtab> to the index table <itab>.

Saturday, October 6, 2012

SAP ABAP ALIASES Keyword Syntax

SAP ABAP ALIASES Keyword Syntax

Defines class-specific alias names for an interface component in ABAP Objects.
Syntax
ALIASES <alias> FOR <intf~comp>.
Defines <alias> within a class as a synonym for the interface component <intf~comp>.

Friday, October 5, 2012

ADD Keyword for CORRESPONDING - SAP ABAP

ADD Keyword for CORRESPONDING - SAP ABAP

Adds components of structures.

Syntax

ADD-CORRESPONDING <struc1> TO <struc2>.
Adds together all of the components of structures <struc1> and <struc2> that have identical
names, and places the results in the corresponding components of <struc2>.

Thursday, October 4, 2012

SAP ABAP ASSIGN Keyword Syntax

SAP ABAP ASSIGN Keyword Syntax

Assigns a field to a field symbol.
Syntax
ASSIGN <f> TO <FS>.
Assigns the data object <f> to the field symbol <FS>, after which, <FS> points to the data object.
The pointed brackets are part of the syntax of the field symbol.

ADD Keyword for Sequences of Fields - SAP ABAP

ADD Keyword for Sequences of Fields - SAP ABAP

Adds sequences of fields.

Syntax

ADD <n1> THEN <n2> UNTIL <nz> GIVING <m>.
ADD <n1> THEN <n2> UNTIL <nz> ACCORDING TO <sel> GIVING <m>.
ADD <n1> THEN <n2> UNTIL <nz> TO <m>.
ADD <n1> FROM <m1> TO <mz> GIVING <m>.

If <n1>, <n2>,..., <nz> 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 <m>. The variants
allow you to restrict the fields to a partial sequence, to include <m> in the sum, or to perform the
operation for a sequence of consecutive fields.

Wednesday, October 3, 2012

SAP ABAP: ADD Keyword Definition and syntax.

ADD for Single Fields Syntax

 
Using ADD keyword we can add two single fields. Please look on below syntax.
 
Syntax:
 
ADD <n> TO <m>.
The contents of <n> are added to the contents of <m>. The result is placed in <m>. Equivalent of
<m> = <m> + <n>.