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

Validation for MB1C/ MB1A

Former Member
0 Likes
1,528

Hi all,

We are trying to do certain validation for MB1C and MB1A. We are using the User-Exit EXIT_SAPMM07M_001, include ZXMBCU02 to do this validation. This is functioning properly, but the issue is:

If the validation fails, we throw an error message and stop further processing. When the error message is displayed, the screen becomes Un-Editable. Is there a way to make the screen fields ready for input?

Note: I do not have access to screen fields in the exit and hence i cannot loop at screen, neither can i write it in chain..endchain.

Kindly assist on this regard.

Thanks & Regards,

Ram.

Hi all,

We are trying to do certain validation for MB1C and MB1A. We are using the User-Exit EXIT_SAPMM07M_001, include ZXMBCU02 to do this validation. This is functioning properly, but the issue is:

If the validation fails, we throw an error message and stop further processing. When the error message is displayed, the screen becomes Un-Editable. Is there a way to make the screen fields ready for input?

Note: I do not have access to screen fields in the exit and hence i cannot loop at screen, neither can i write it in chain..endchain.

Kindly assist on this regard.

Thanks & Regards,

Ram.

7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,270

I thnik this exit is not suitable for validation checks, the documentation says that its to add the segement text in the items.

Please specify what validation you are doing , so that i can suggest you any other exits or Badi's.

Read only

0 Likes
1,270

Hi Keshav,

We are validating the process by tracking the flow. It involves comparision of Movement Type, Reason for Movement and Recipient. Based on this combination if any step of the process is bypassed we need to stop the processing stating that the user has to follow appropriate steps.

Thanks & Regards,

Ram.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,270

You can try Badi MB_CHECK_LINE_BADI.

Mean while ill let you know if i come across any exits.

If you are using MIGO transaction then there are other badis available.

Read only

0 Likes
1,270

Hi Keshav,

The BADI that you have mentioned is not called while Saving the document. I need to do the check while saving the MB1C/ MB1A transactions.

Thanks & regards,

Ram.

Read only

Former Member
0 Likes
1,270

i try throwing a error message type success

and try checking that

with regards

s.janagar

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,270

Hi these two badi;s gets triggred for me in MB1C

MB_QUAN_CHECK_BADI

MB_CHECK_LINE_BADI

Goto class cl_exithandler

place a debug point in method get_instance

run the transaction

You will find these two badis getting called.

Read only

Former Member
0 Likes
1,270

As there was no User Exit for validations, the customer was convinced for the screen behaviour.