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: 

How to Change the price for each material in Goods Reciept

Former Member
0 Kudos

Hi,

I need to change the net prices of each materiel based on some conditions for GR in MIGO transaction. But when i used some enhancements and changed the price. The price change  is not reflected in this transaction. But all others fields are changing. can anyone give any suggestions to change the price.

8 REPLIES 8

SimoneMilesi
Active Contributor
0 Kudos

You are giving pretty few infos.

Which are the "Some enhacements"? How did you change the price? Changing the conditions? changing the net value of the PO?

We cannot read your code and know what did you do and if it's ok your code.

0 Kudos

Thanks for quick reply.

I am using the exit MBCF0005. I am getting the Line item of the GR in this exit. I am changing the DMBTR field in the changing structure C_AM07M. But the Price change is not reflecting in the transaction.

0 Kudos

I will simplify my question. Can we change the price DMBTR field in the GR for each line item?

0 Kudos

This is a baid. ::MB_DOCUMENT_BADI   it is having Two methods.

Try either one or Two. Just Try.

I was tried for validating the data.

Get And Set, Now i can able To Get. But Set i was not tried.(there is no Get N Set Just for understanding purpose i was explained).

I don't thing System is allowing To set a values to the Fields.

because it is based on Po. Just Try it.

SimoneMilesi
Active Contributor
0 Kudos

Check where the function is used: it's called in printing programs, so i doubt you can change MSEG values.

You should use BAdI MB_MIGO_ITEM_BADI

0 Kudos

Hi Simone,

In MB_MIGO_ITEM_BADI, the Exporting fields are storage location and item text only. We cant change the DMBTR using this BADI

0 Kudos

You are right, sorry.

Check for the BAdIs suggested by

MB_DOCUMENT_BADI

MB_DOCUMENT_UPDATE

0 Kudos

Hi Simone,

Both the BADIs has only Importing parameters and no exporting or changing. We cant pass the change values back to the transaction