2007 Mar 21 4:18 PM
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
2007 Mar 22 11:09 AM
2007 Mar 21 4:36 PM
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
2007 Mar 21 4:43 PM
I must change ARBPL with another ARBPL in the operation overview....not rename ARBPL
2007 Mar 21 4:57 PM
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
2007 Mar 22 11:09 AM
2007 Mar 22 12:12 PM
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
2007 Mar 22 1:22 PM
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