2007 Jun 12 8:17 AM
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,
2007 Jun 12 8:22 AM
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
2007 Jun 12 8:25 AM
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,
2007 Jun 12 8:31 AM
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
2007 Jun 12 8:36 AM
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
2007 Jun 12 8:43 AM
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
2007 Jun 12 8:45 AM
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
2007 Jun 12 8:57 AM
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
2007 Jun 12 9:03 AM
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,