![]() ![]() In regard to the INITIALIZATION event, which of the following is NOT a true statement?Ī. The field declared below is of what data type?ġ1. The event that is processed after all data has been read but before the list is displayed is:ġ0. A DO loop increments the system field _.ĩ. The editor function that formats and indents the lines of code automatically is calledĨ. In a line of code, text-100, is an example of which type of text element?ħ. Which of the following may NOT be modified using the ABAP Dictionary transaction?Ħ. All of these allow you to step through the flow of a program line-by-line except:ĥ. name1 like KNA1-NAME1 value ‘ABAP programmer’.Ĥ. If a field, NAME1, is declared as a global data object, what will be output by theĭATA. ![]() A DATA statement may appear only at the top of a program, before START-OFSELECTION.ģ. This data type has a default length of one and a blank default value.Ģ. If no explicit table key is specified for LOOP, then the addition USING KEY loop_key is optional.1. No other key can be specified apart from the predefined name loop_key. It states explicitly that the current table row is deleted by the LOOP. ABAP Addition What does it do? This addition is required if the table key used by the LOOP is specified explicitly in the statement LOOP. Example ABAP Coding The following loop deletes all lines in an internal table, since the short form of the DELETE statement always deletes the current first line. addition to specify the row number explicitly.Latest notes:We do not recommend that you use this alternative. This variant is not allowed outside of a LOOP and raises a warning in the syntax check, if the check cannot detect (statically) its presence in a loop. If the current row has already been deleted in the same loop, however, the behaviour is undefined. If the addition USING KEY is specified in LOOP, then the variant USING KEY loop_key must be specified for this variant. The current table row of the LOOP is then deleted implicitly. USING KEY loop_key What does it do? This variant is only possible within a LOOP across the same internal table. addition can be used for all table types, if USING KEY is used.Latest notes:If a sorted secondary key exists, the If the primary table key is specified under the name primary_key, the table must be an index table, and the behavior is the same as when USING KEY is not specified. You cannot declare a secondary hashed key. The row to be deleted is then determined from its secondary table index. If the table has a sorted secondary key, this can be specified in keyname. ABAP Addition What does it do? If the addition USING KEY is used, a table key can be declared in keyname to declare the table index to be used explicitly.READ TABLE scarr_tab WITH TABLE KEY carrid = p_carrid TRANSPORTING NO FIELDS. SELECT * FROM scarr INTO TABLE scarr_tab. DATA scarr_tab TYPE SORTED TABLE OF scarr WITH UNIQUE KEY carrid. Example ABAP Coding Deletes the table row that has the same value as carrid in the key field p_carrid, by specifying a primary table index. can only be used with index tables and determines the row to be deleted from the primary table index.If the addition USING KEY is not used, the addition If idx contains a value of 0 or less, an exception is raised that cannot be handled. idx is a numerical expression position of the operand type i. addition is used, the DELETE statement deletes the row of the row number specified in idx with respect to a table index.USING KEY keyname What does it do? If the TABLE itab table_key What does it do? If you use the variant with the TABLE addition, you specify the row by using the primary table key table_key. itab What does it do? These alternatives specify which single row of the internal table itab is to be deleted. Get Example source ABAP code based on a different SAP table ABAP Statement DELETE itab - itab_line Short Reference ABAP Syntax ABAP_KEY. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |