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: 

Change Production Order

Former Member
0 Kudos
751

Hi,

I have to change field ARBPL (Work Ceter) in sap transaction (CO02 - Change Production Order) in OPERATION OVERVIEW

Can anyone suggest one BAPI or FM for this.

Thanks....bye

1 ACCEPTED SOLUTION

Former Member
0 Kudos
224

My order is an production order, not maintenance order!

6 REPLIES 6

former_member186143
Active Contributor
0 Kudos
224

you can change ARBPL in Tcode IR02 in the first screen from the menu select rename

it would change all occurences in the orders automaticaly

reward if usefull

arthur

Message was edited by:

A. de Smidt

Former Member
0 Kudos
224

I must change ARBPL with another ARBPL in the operation overview....not rename ARBPL

0 Kudos
224

is it a one time action or do you have to make this change more in the future ? and what kind of numer of operations need to be changed ? 100 , 1000, 10.000 ??

I suggest you create a selection and pass that on to a BDC code with IW32

here is a small sample how I use it to jump directly to the period tab in the operation from a selection where I have the ordernr and operation number


  PERFORM BDC_DYNPRO USING 'SAPLCOIH' '0101'.
  PERFORM BDC_FIELD  USING 'CAUFVD-AUFNR' p_aufnr.
  CHECK NOT p_vornr IS INITIAL.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'VGUE'.
  PERFORM BDC_DYNPRO USING 'SAPLCOIH'   '3000'.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'OBSE'.
  PERFORM BDC_DYNPRO USING 'SAPLCO05' '2010'.
  PERFORM BDC_FIELD  USING 'RCOLS-VORNR' p_vornr.
  PERFORM BDC_FIELD  USING 'RC27X-OBJECT' 'O'.
  PERFORM BDC_DYNPRO USING 'SAPLCOIH'   '3000'.
  PERFORM BDC_FIELD  USING 'RC27X-FLG_SEL(1)' 'X'.
  PERFORM BDC_FIELD  USING 'BDC_OKCODE' 'VGD3'.
  PERFORM BDC_DYNPRO USING 'SAPLCOIH'   '3800'.


   CALL transaction 'IW32' using bdcdata mode 'E' update  'S'.

make you're own recording with SM35 and programm the BDC as needed.

Message was edited by:

A. de Smidt

Former Member
0 Kudos
225

My order is an production order, not maintenance order!

0 Kudos
224

so you can use it as an example for a production order, the principle stays the same. make a selection of the operations and orders, loop through the selection and pass the values to you're BDC.

you have to make a new recording anyway , it's merely a direction on where to go to.

Message was edited by:

A. de Smidt

Message was edited by:

A. de Smidt

Former Member
0 Kudos
224

ok..i understand, but i wanted to know if there were any BAPI to modify production order....my release is 4.6c and the BAPI ''BAPI_PRODORD_CHANGE

" does't exist!

thanks however...bye