on 2025 Feb 16 2:56 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.