Application Development and Automation 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: 
Read only

User Exit for MB1A

arun_jayaramu
Associate
Associate
0 Likes
840

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

3 REPLIES 3
Read only

Former Member
0 Likes
739

hello ,

try badi - MB_CHECK_LINE_BADI

regards

prabhu

Read only

arnab_roy3
Explorer
0 Likes
739

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.

Read only

Former Member
0 Likes
739

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