cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement in Co01

former_member210857
Participant
0 Kudos

Hi friends,

I need to change the batch in the item details in the Co01. When the BOM consist of only one batch then I need to show that batch in the item details.

I tried the badi  WORKORDER_UPDATE ,But I am not able to change the batch as it is showing that the internal table is read only .

How can I change the value

Thanks and Regards,

Subeesh Kannottil

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member210857
Participant
0 Kudos

Hi Sijin

I have tried my maximum to get some point where I can change it, I got many places where we are getting the values ,but even though we try to change it is not reflecting in the  transaction

Former Member
0 Kudos

Fine Subeesh ,

I was just making a guess.

Coz many a times I have found one in different scenarios.

Finding an Implicit Enhancement point is really a tedious , patience demanding job.

Lets wait for any expert comments regarding your solution

former_member210857
Participant
0 Kudos

former_member210857
Participant
0 Kudos

Hi,

I didn't find any implicit enhancement before save.

I found that inside CO_ZV_ORDER_POST the commit happens .

I am thinking to do an implicit enhancement inside this function module after commit ,and use production order change and found bapi  BAPI_PRODORD_CHANGE .But there is no way that I can change the batch inside that .

Is there anything wrong in writing a BDC code inside this function  module or is there any other bapi

where I can change the header batch

Thanks and Regards,

Subeesh Kannottil

Former Member
0 Kudos

That I can't say ,

Lets wait for some expert comments regarding this.

But I guess there might be any Implicit Enhancement point hiding somewhere in the very big code of CO01

former_member210857
Participant
0 Kudos

Hi,

Pls check this

method IF_EX_WORKORDER_UPDATE~BEFORE_UPDATE.

    

FIELD-SYMBOLS : <fs> type  afpob,

                <fs1> type aafpo .

LOOP AT it_item ASSIGNING <fs>.

<fs>-CHARG = '1234'.

ENDLOOP.

ENDMETHOD .




But here when I am trying to change the value I am getting a dump




Former Member
0 Kudos

Fine ,

Then you need to look out for any Implicit Enhancement options.

Former Member
0 Kudos

Can you please paste the screen shot of your code ?

former_member210857
Participant
0 Kudos

Hi,

I want to get an user exit to get the batch in item details.

thanks and regards,

Subeesh Kannottil

Former Member
0 Kudos

I just wanted to see the coding which you have done in WORKORDER_UPDATE.


If for changing you have used MODIFY syntax , you try to use FIELD SYMBOLS instead and check.

atul_mohanty
Active Contributor
0 Kudos

Hi

Check for the user exits in SMOD, enhacements starting with PPCO000 example PPCO0001, PPCO0002

Former Member
0 Kudos

Else you try something like this in the above BADI itself or EXIT.