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

Error in BAPI 'BAPI_PRODORD_COMPLETE_TECH'

Former Member
0 Likes
2,439

Hi Experts,

I am facing an error when the standard BAPI ' BAPI_PRODORD_COMPLETE_TECH' is called, the error message is as shown as the following pic.

However, the error is under in standard BAPI and I have no idea how to solve it.

May I request some hints?

Thanks,

King

9 REPLIES 9
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
2,216

Hello.

     Please paste the topmost portion of the error message screen for better analysis.

Regards.

Read only

0 Likes
2,216

Here is the topmost portion.

Thanks,

King

Read only

0 Likes
2,216

Are you changing the default values passed to scope_compl_tech, work_process_group and  work_process_max ?

Please paste your code calling the BAPI.

Read only

0 Likes
2,216

Thanks for reply!

here is the call for calling the BAPI:

           WA_ORDER_KEY-ORDER_NUMBER = WA_OUTPUT-WO_NO.
           APPEND WA_ORDER_KEY TO IT_ORDER_KEY.


           CALL FUNCTION 'BAPI_PRODORD_COMPLETE_TECH'
           TABLES
                  ORDERS = IT_ORDER_KEY
                  DETAIL_RETURN = BAPI_RETURN


Thanks,

King
             .

Read only

0 Likes
2,216

Are you able to do TECO via CO02 tcode for the given production order(s)?

Read only

0 Likes
2,216

Some of production orders cannot do TECO. However, the error message will return.

Read only

0 Likes
2,216

Whether the run time error occurs even for those order inputs which can be TECOed via CO02?

Read only

0 Likes
2,216

The problem will not occur for those order inputs which can be TECOed via CO02

Read only

0 Likes
2,216

Did you run report COWORKDISPATCHEW as explicitly suggested by dump/error message?

Regards,

Raymond