cancel
Showing results for 
Search instead for 
Did you mean: 

What is the use of paranthases after Internal table?

atslokesh
Explorer
0 Kudos

While checking the Internal Table is initial or not, I've seen a practice of using paratheses like it_tab() and for methods, can anyone give me a short information?

SachinArtani
Participant

Hi Lokesh, your query is not clear. I believe you are talking about the one of the operators introduced in ABAP 7.40. For example, with value operator, you can set the datatype with an internal table name. Syntax -

VALUE dtype|#( ( … ) ( … ) … )

Please read this blog - https://blogs.sap.com/2015/10/25/abap-740-quick-reference/

Thanks

Sandra_Rossi
Active Contributor
0 Kudos

In the below statement where S_MATNR is an internal table with header line, the characters after internal table are not parentheses but square brackets:

IF s_matnr[] IS NOT INITIAL.

ENDIF.

The following statement with parentheses is invalid:

IF s_matnr() IS NOT INITIAL.

Please clarify your question.

Accepted Solutions (0)

Answers (1)

Answers (1)

SURYA_ABAP
Participant
0 Kudos

Hi atslokesh,

Example : internal table is with header line (Act as both workare and internal table with same name)

if then it is recommended to use itab[], meaning of it is internal table content.

if we use only itab, it means work area.

Hope this may answered your view.