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

function module in a loop

Former Member
0 Likes
502

Hi all,

I am using this function module inside a loop.

It is giving the performance issue.Based on loop the internal table only i am passing the value to the function module.

how to avoid that,please help me.

CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'

EXPORTING

order_header_in = ls_order_header_in

IMPORTING

return = it_return1

TABLES

order_items_in = it_order_items_in

order_partners = it_order_partners

order_items_out = it_order_items_bapi_out

order_condition_ex = it_order_conditions_in.

  • extensionin = it_extensionin_bapi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
459

Hi Rakesh,

This depends on ur requirement.If u have to simulate multiple sales order this is the only way u can do it..

Thanks Arjun

2 REPLIES 2
Read only

Former Member
0 Likes
460

Hi Rakesh,

This depends on ur requirement.If u have to simulate multiple sales order this is the only way u can do it..

Thanks Arjun

Read only

Former Member
0 Likes
459

Hi,

Some cases we can't give performance. we do it in background. it will be better