cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Planned Order using Customized Report

Former Member
0 Kudos

Hi,

Based on the Product,production area and i need to select the planned orders belongs to a particular plant and then copy it to a target plant.

I appreciate if any one give tips from which tables i have to get the planned orders which is genereated in PPM.

Thanks in advance.

Regards,

Babu

Message was edited by:

babu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Babu,

Use the below code for fetching the planned order

SELECT * FROM <b>/sapapo/ordmap</b> INTO TABLE gv_ordid

CONNECTION lca

WHERE r3obj = '5'

and delnr = <Pass the order number>

and DELPS = <Pass the item number>.

Note: Make sure the connection name 'LCA' is present in the table DBCON.

Use the function module <b>BAPI_POSRVAPS_SAVEMULTI3</b> for creating the planned orders.

Best Regards,

Siva.

Answers (0)