Application Development 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: 

Performance Enhancement.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello,

Remove the check statement and use if--endif.

Vasanth

2 REPLIES 2

Former Member
0 Kudos

Hello,

Remove the check statement and use if--endif.

Vasanth

Former Member
0 Kudos

Hello,

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

This should do some thing.

Thank you.