Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Performance Enhancement.

Former Member
0 Likes
359

how can u improve the performance of this code:

sy-subrc = 4.
  if komp-kposn ne 0.
    check: komp-prsfd ca 'BX'.
    check: komp-kznep = space.
  endif.
  sy-subrc = 0.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
326

Hello,

Remove the check statement and use if--endif.

Vasanth

2 REPLIES 2
Read only

Former Member
0 Likes
327

Hello,

Remove the check statement and use if--endif.

Vasanth

Read only

Former Member
0 Likes
326

Hello,

Remove the first IF...ENDIF and replace with CHECK.

This should do some thing.

Thank you.