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

Rfc Executing take time for first time.

Former Member
0 Likes
409

Dear all,

I creat a one rfc

FUNCTION ZPIM_EDI_PULL_GRDATA.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(IMP_EDINO) LIKE YPIMT_GRUNLOAD-COUNTER

*" TABLES

*" EDI_GR STRUCTURE ZEDI_ICS_GR

*"----


SELECT * FROM YPIMT_GRUNLOAD

INTO corresponding fields

of table EDI_GR

WHERE counter = IMP_EDINO.

ENDFUNCTION.

when i Executing this program it will take time for first and second time but after 2 ,3 execution it become fast.

Can any suggest be why this problem is coming.

Regards

girish

Dear all,

I creat a one rfc

FUNCTION ZPIM_EDI_PULL_GRDATA.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(IMP_EDINO) LIKE YPIMT_GRUNLOAD-COUNTER

*" TABLES

*" EDI_GR STRUCTURE ZEDI_ICS_GR

*"----


SELECT * FROM YPIMT_GRUNLOAD

INTO corresponding fields

of table EDI_GR

WHERE counter = IMP_EDINO.

ENDFUNCTION.

when i Executing this program it will take time for first and second time but after 2 ,3 execution it become fast.

Can any suggest be why this problem is coming.

Regards

girish

2 REPLIES 2
Read only

Former Member
0 Likes
390

Hi,

Instead of using * , use the field names...

It will reduce the time..

regards,

lavanya

Read only

Former Member
0 Likes
390

Hello,

This is because the first time is not on the db buffer. In order to do a faster stm, try avoiding INTO CORRESPONDING FIELDS, it is slow.

Bye

Gabriel P-