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: 

Goods movement

Former Member
0 Kudos

Hello Friends,

I need your suggestions:

Actually in tranaction iw42, when I enter the order and operation then the goods movement table is automatically filled. I need to clear this table when its partial conformation is....

So I am trying to do following:

I am looking for the place where the actuall logic of goods movement is, and there I will check if its partial movement is or not, and if yes, then clear the goods movement table ?

Any idea, if it will work ?, and secondly, can anyone pls help me to find out the place where the goods movement is happening, ? ( any FM or that purpose or so ? )

Kind regards,

8 REPLIES 8

gopi_narendra
Active Contributor
0 Kudos

MIGO is the tcode for goods receipt

MKPF and MSEG are the tables updated when a goods movement is created.

Material Doc Header and Material Doc Segment

Regards

Gopi

0 Kudos

Hi Gopi,

Thanks for your input,

Actually I have to prevent the goods movement to be happen, if in tcode iw42, its partially confirmed.....

So I am looking for the place where goods movemet is happening.... ( and for that purpose I assume there is FM / BAPI to do so, so I am in search of that fm / bapi which do goods movement )...

Regards,

0 Kudos

BAPI_GOODSMVT_CREATE is the BAPI to create the Goods Mvt, but u need to consider the Goods Movement type for those which u dont want to create the Goods Movement. Block those Movement types and rasie a error msg or something for such Movement types

MSEG_BWART - Movement type

Regards

Gopi

0 Kudos

Hi Gopi,

Actually I have to prevent all goods movement type, which are not set as final conformation.... hum......

I have debug the code in iw42, and did not find BAPI_GOODSMVT_CREATE, dont know what is gonig on here :-)....

Any way, I have to keep debugging ......

Thanks

0 Kudos

oohhh its in PM module...

check this FM : MB_CREATE_GOODS_MOVEMENT

This create the Goods Movement...

Check this..

Main Program : SAPLCMFU

Include : LCMFUF1

Regards

Gopi

Message was edited by:

Gopi Narendra

0 Kudos

hi Gopi,

Yes you are right, MB_CREATE_GOODS_MOVEMENT is found, what is the difference between MB_CREATE_GOODS_MOVEMENT and the other fm you provided earlier ?

Now the problem is how I can prevent this fm ( MB_CREATE_GOODS_MOVEMENT ) to be executed, when its partially confirmed ?

Regards,

Message was edited by:

Shah H

0 Kudos

this FM MB_CREATE_GOODS_MOVEMENT is used with in the same BAPI which i mentioned.

What i feel is you should restrict the user by showing a error msg if he tries to create Goods Mvt for the partially confirmed movement types.

so i just came across this exit, which can be of some help, go thru the documentation and check if it helps you. goto Tcode SMOD and see the Exit name : CMFU0002

Regards

Gopi

0 Kudos

Hi Gopi,

Thanks for your input, ( I have treid to first show the error msg, but user that, that should be possible, but goods movement should not have to happen, ) funny a bit...

Any way, I have to prevent the BAPI you mentioned to executed, if its partialy filled is...

Regards,