cancel
Showing results for 
Search instead for 
Did you mean: 

Performance Optimization in field symbols

karthik_sub
Participant
0 Kudos
173

Hi Experts,

There was an existing code as below where observed that it consumes some time in the trace and <lt_data> holds around 40 records.

Is there an option that i can fine tune this to increase the performance. Thanks.

        LOOP AT <lt_data> ASSIGNING FIELD-SYMBOL(<fs_data>).
          ASSIGN COMPONENT 'fpm_bol_guibb_ref_0000000009' OF STRUCTURE <fs_data> TO FIELD-SYMBOL(<fs_value>).
          IF <fs_value> IS ASSIGNED.
            <fs_value> abap_true.
          ENDIF.
        ENDLOOP.

 

REgards,

Karthik S

Accepted Solutions (0)

Answers (1)

Answers (1)

jochen_weyandt
Explorer
0 Kudos

I think you actually don't need the assign component statement.

<fs_data>-fpm_bol_guibb_ref_0000000009 = abap_true 

should do the job.

Apart from that I don't think there should be a performance issue at all. Maybe check with transaction SAT and check the hit list, concentrate on the statements with most net time.