cancel
Showing results for 
Search instead for 
Did you mean: 

SAPMV45A - Available userexit after standard SAP Credit Check

Former Member
0 Kudos

Hello!

I need to find out a userexit in SAPMV45A that I can enter additional code that is only called after the standard Credit Check of SAP.

As a result, depending on the Credit Status after standard SAP Credit Check, I need to update the contents of a field in VBAP.

Does anyone knows where can I do this?

Thanks to everyone!

Fátima

Accepted Solutions (0)

Answers (3)

Answers (3)

SmileZhang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Fatima,

MV45AFZZ USEREXIT_SAVE_DOCUMENT

it is called in Beleg_sichern after the SD_ORDER_CRDIT_CHECK is called and you could get the VBUK-CMGST when calling this userexit. However please pay attention that the userexit is called at the end of beleg_sichern which means that it is ok to update the field value but please don't any check in this userexit.

Adding check and issuing error message should be done in a ealier stage with USEREXIT_SAVE_DOCUMENT_PREPARE.

Hope it helps.

Thanks and best regards,

Smile

Former Member
0 Kudos

Hi Smile!,

Thanks for your answer.

I will explain better my goal:

During the saving of an order, there is a SAP standard Credit Check.

After this happens I need to validate field VBUK-CMGST. If that field is B or C, then I need to clear field Fixed Date/Qty (VBAP-FIXMG).

How do you advise me to do this then?

I really looking forward to have your adivse. I will be extremely grateful to you!

Many thanks.

Fátima

SmileZhang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Fatima,

Then I think Userexit_save_document could be used.

I have confirmed in our test system that it is called after the credit check when saving the document.

And VBUK-CMGST is also available.

Thanks and best regards,

Smile

Former Member
0 Kudos

Smile,

Another concern I have.

In Credit Mangement we have quite some Risk Categories that use the exit LVKMPFZ2.

This exit is used on program SAPLVKMP and is called before SAPMV45A finishes.

Do you know if I could do my check here and update VBAP-FIXMG if that is the case?

Thanks

Fátima

Lakshmipathi
Active Contributor
0 Kudos

You can try with any of the following:-

1) LVKMPFZ1: USER_CREDIT_CHECK1

2) LVKMPFZ2: USER_CREDIT_CHECK2

3) LVKMPFZ3: USER_CREDIT_CHECK3

thanks

G. Lakshmipathi

Former Member
0 Kudos

wrongly setup as answered