Application Development 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: 

Regarding Process Order Details of Order category 40

0 Kudos

Hi ,

I need to fetch component details of a process order. While using bapi_prodord_get_detail for order category i get an error saying "Order 000001118700 has the wrong order category for this BAPI".  As far as my understanding the bapi only returns order details of order category 10 i.e. Production Order. Is there any FM which can give me the Process Order details for any type of order category or order category 40(Process Order). The parameters i am passing are as follows :


CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'

     EXPORTING

       number        = wa_field-aufnr

       order_objects = lw_order_objects

     IMPORTING

       return        = lw_return

     TABLES

       component     = lint_component.


I am passing 'X' for component in lw_order_objects.

Thanks in advance

Dilit

3 REPLIES 3

Former Member
0 Kudos

Hello Dilit,

Can you please try below FM and let me know whether you are able to get the required data.

CO_SF_AFFV_READ.

0 Kudos

I tried using this but this did not solve my problem 😞

0 Kudos

Can someone please give the solution for this .?