Syntax ... line_exists(table_exp) ... Effect Withinline_exists, an explicitly specified table key in the table rowtable_lineof the table expression is handled in the same way as afree search keyspecified for this table key. Notes
ABAP Development Hi , line_exists is used to check if the record exists in the internal table based on some conditions. This syntax is the same as the READ TABLE with TRANSPORTING NO FIELDS followed by sy-subrc check. RaymondGiuseppi
we got a strange syntax error while using the function line_exists() inside the COND-operator. Here is the generalized coding therefore (rf_result is of type ABAP_BOOL): rf_result = COND #( WHEN iv_id IS INITIAL THEN abap_false ELSE line_exists( mt_data[ id = iv_id ] ) ). The...
From SAP Help, This function should be used carefully – you should not use this function to first check if the line is there in the table and than use the table expression to read the table. Instead of that, only the table expression assigning to Field Symbol followed by catching the ex...
The attributes KEY_NAME and (if the table is not empty) KEY_COMP_VALUES are not filled here. Exceptions to this rule are when a start value is specified, uses in the statement ASSIGN, in the predicate function line_exists, and in the table function line_index. ...
Let me start with begging your apologies for not publishing any article in long time. I had to take a pause . I would try to publish as many as I can now. ABAP 740 has many new features. This new feature Table Expressions are also powerful and reduce the “code clutter”. ...
xul, zcml) XQuery (xq, xql, xqm, xquery, xqy) XSD (XSD, xsd) XSLT (XSL, xsl, XSLT, xslt) Xtend (xtend) yacc (y, yacc) YAML (clang-format, clang-tidy, gemrc, glide.lock, mir, reek, rviz, sublime-syntax, syntax, yaml, yaml-tmlanguage, yml, yml.mysql) Zig (zig) zsh (zsh...
In many operand positions that expect internal tables, the syntax check forces [] to be specified after the name of an internal table with header line.In very old programs, you may find that the obsolete pseudo component *sys* is used to address the header line (instead of [])....
Syntax ... line_index(table_exp) ... The table functionline_indexreturns the number of the row found using thetable expressiontable_expwith respect to thetable indexused. The return value has the typei. The rowitab_linefound using the table expression must be defined by specifying a key...