2009 Nov 18 10:06 PM
Hi All,
Is there a way we can limit posting of movement types based on Merchandise Category (class)u2026
The requirement is to post shrink of articles in the storesu2026. The movement type would be 551u2026 but the customer wants this posting to be authorized based on the Merchandise Category
For example a person from Electronics (MC001) should not be allowed to post shrink an article from Grocery (MC002)u2026
I am referring to the field MATKL from table MARA... the authorization should be based on this field but since it is not available as an authorizaion object for MB1A we are not able to go with standard.
When exploring the option of user exits, we found the ones below.
MBCF0002 Customer function exit: Segment text in article doc. item
MBCF0005 Article document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Art. Doc.
I am not sure if i can use anyone of these. There has to be a new authorization object devloped and this has to be called when posting article document with movement type MB1A. So how do we get this done with an user exit?
Regards
Arun
Hi All,
Is there a way we can limit posting of movement types based on Merchandise Category (class)u2026
The requirement is to post shrink of articles in the storesu2026. The movement type would be 551u2026 but the customer wants this posting to be authorized based on the Merchandise Category
For example a person from Electronics (MC001) should not be allowed to post shrink an article from Grocery (MC002)u2026
I am referring to the field MATKL from table MARA... the authorization should be based on this field but since it is not available as an authorizaion object for MB1A we are not able to go with standard.
When exploring the option of user exits, we found the ones below.
MBCF0002 Customer function exit: Segment text in article doc. item
MBCF0005 Article document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Art. Doc.
I am not sure if i can use anyone of these. There has to be a new authorization object devloped and this has to be called when posting article document with movement type MB1A. So how do we get this done with an user exit?
Regards
Arun
2009 Nov 19 3:47 AM
2009 Nov 19 8:22 AM
Hi,
You can try using the exit EXIT_SAPMM07M_001 in MBCF0002.
There is a parameter in the exit I_MSEG for MSEG data which has material number in MATNR field.
Once you get the material number you can pick the corresponding MATKL field from MARA.
and then proceed with your authorization check with the authorization object you developed.
2009 Nov 19 10:25 AM
Hi Arun,
Try using enhancement ( MBCF0002 Customer function exit: Segment text in material doc. item)
exit: EXIT_SAPMM07M_001
Hope this can solve your problems.
Regards,
Tutun