DATA : lt1 TYPE TABLE OF spfli. SELECT * FROM spfli INTO TABLE lt1. LOOP AT lt1 ASSIGNING FIELD–SYMBOL(<fs1>). WRITE <fs1>–carrid, <fs1>–connid, <fs1>–cityfrom, <fs1>–cityto. ENDLOOP. ULINE. TYPES : lt2 TYPE TABLE OF spfli WITH EMPTY KEY. DATA(lt2) = VALUE lt2( FOR ls IN lt1 WHERE ( carrid = ‘LH’ ) ( carrid = ls–carrid connid = ls–connid cityfrom = ls–cityfrom cityto = ls–cityto ) ). LOOP AT lt2 ASSIGNING FIELD–SYMBOL(<fs2>). WRITE
<fs2>–carrid, <fs2>–connid, <fs2>–cityfrom, <fs2>–cityto . ENDLOOP. The FOR Loop runs on the table LT1 with
Author: coderobbot
LINE_INDEX( )
LINE_INDEX( ) – Gets the index of the record where the first key value found. LINE_INDEX( ) – If record with specified key not found
LINE_EXISTS( )
The predicate function line_exists can be considered as a short form of the statement READ TABLE with the addition TRANSPORTING NO FIELDS following by sy-subrc
Using User Parameter ID
Step1. Go to Tx- SU01 Step2. Provide the user name and click on display. Step3. Go to Parameters tab. Its displays a list of
Different Languages Installed in SAP System
Step1. Go to Tx- SMLT Step2. Here the installed languages available in SAP system.
Running background job by triggering an event
Step1. To create an event go to Tx- SM62 Step2. Select the 4th tab and to create an event click on the Create button. Step3.