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

problen with function CLOI_CHANGES_UPL_31

Former Member
0 Likes
962

Hi,I have the problem like this.

When I use function CLOI_CHANGES_UPL_31 to change production orders.

I need know which order change OK and which order change failed.SO I use the function CLOI_CHANGES_UPL_31

in the LOOP itab.

IN this case,I can get the messge about the order.

BUT there is a problem. the function just work at the first time at the LOOP.

From the second time It show the error message like this : Restart interface after commit! (message CLASS : C/ NO:10)

How can I AVOID the problem or another function can use?

2 REPLIES 2
Read only

Former Member
0 Likes
575

Hi Zheng,

Can you paste the call to the FM CLOI_CHANGES_UPL_31.

This fm can only be called once in a session. In your case for the first time it is working fine, and later on this message is sent at runtime.

Better use the syntax of asynchronous call something like this:

call function 'CLOI_CHANGES_UPL_31'

starting new task 'CLOI_INVOKE'

performing end_task on end of task

exporting

tables.

    • Now write a check of some global variable.

wait until flag = 'X'.

This flag will be set in the subroutine END_TASK.

Repeat this logic in loop and check the result.

Regards,

Shashikanth. D

Read only

0 Likes
575

Hi, Shashikanth

IN your help , I had done the problem.

Thank you very much!