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

Any Performance issue

Former Member
0 Likes
501

Hi,

In the below if statement will there be any performance issue or any. One thing i am having records in fs_vend.

Or wht happens when i use ELSE statement.

IF fs_vend IS INITIAL.

    • Do nothing.*

ELSE.

APPEND fs_vend TO t_vend.

ENDIF.

IF fs_vend IS INITIAL.

APPEND fs_vend TO t_vend.

ENDIF.

Any suggestions on this

Regards

VEnk@

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
479

Hi ,

u can use as like this .......

IF fs_vend IS NOT INITIAL.

APPEND fs_vend TO t_vend.

ENDIF.

Thanks

Shambhu

3 REPLIES 3
Read only

Former Member
0 Likes
480

Hi ,

u can use as like this .......

IF fs_vend IS NOT INITIAL.

APPEND fs_vend TO t_vend.

ENDIF.

Thanks

Shambhu

Read only

Former Member
0 Likes
479

Hi,

I dont see any performance related issue here. If you want to avoid the else part directly use


IF not fs_vend IS INITIAL.
APPEND fs_vend TO t_vend.
ENDIF. 

Vikranth

Read only

Former Member
0 Likes
479

Hi Venkat,

If FS_VEND is an Interanal table with Header line.

then

if not FS_VEND[] is initial.

t_vend[] = fs_vend[]

endi.

Cheeers

Ram