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 executing CO_SF_CAUFVD_GET

Former Member
0 Likes
2,124

Hi, I'm getting the following error executing the function module, I need to get the information from structure CAUFVD.

Any idea ?

Error: intern: Prg-error in LCOSFU21 reading AFPO

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,746

Thanks all, it seems that function doesn't work, I tried PM_ORDER_DATA_READ instead and solved my problem.

8 REPLIES 8
Read only

Former Member
0 Likes
1,746

One idea. Hit the question mark in the bottom right corner of your pop up to get more information about this error - detailed description error message number etc. At least you can share the results here if you don't feel any more enlightened after reading the long text.

Read only

Former Member
0 Likes
1,746

hi Karina
Seems there are no relative order item in AFPO or VSAFPO_CN DBtable, maybe you can change other order to call this function.

regards,

Archer

Read only

0 Likes
1,746

Hi Dengyong, you're right, the function it doesn't work for that kind of orders, I tried with others and it worked fine, I found another one that solves my problem, thank you!

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,746

Hello Karina.

     The FM that you had mentioned is not released.

     Instead you can use BAPI_PRODORD_GET_DETAIL.

Regards.

Read only

Former Member
0 Likes
1,747

Thanks all, it seems that function doesn't work, I tried PM_ORDER_DATA_READ instead and solved my problem.

Read only

0 Likes
1,746

Karina,

     The FM PM_ORDER_DATA_READ is also not released.

     Though it may solve your problem, it is not the best way when you have BAPI for that.    

Regards.

Read only

0 Likes
1,746

Thanks, but that BAPI is only suitable for production orders, right?

I need one method for maintenance orders, with this one I get the message error: Order X has the wrong order category for this BAPI.

Thanks in advance for your guidance, I had not noticed that the function module PM_ORDER_DATA_READ was not released yet.

Read only

0 Likes
1,746

Yes, the BAPI I had mentioned is only for production orders.

For maintenance orders, try BAPI_ALM_ORDER_GET_DETAIL.